From 7289aba68dd3c796654d96511630e9d3999078d3 Mon Sep 17 00:00:00 2001 From: Floorb <132411956+Neetpone@users.noreply.github.com> Date: Mon, 12 Jul 2021 09:03:02 -0400 Subject: [PATCH] Run formatter on all PHP code; should not change behaviour in any way --- admin/admin.php | 277 +- admin/ads.php | 177 +- admin/ajax_pastes.php | 36 +- admin/ajax_reports.php | 36 +- admin/ajax_users.php | 44 +- admin/common.php | 2 +- admin/configuration.php | 957 +- admin/dashboard.php | 434 +- admin/index.php | 103 +- admin/interface.php | 364 +- admin/ipbans.php | 415 +- .../ckeditor/samples/assets/posteddata.php | 86 +- .../ckeditor/samples/sample_posteddata.php | 3 +- admin/menu.php | 84 +- admin/pages.php | 401 +- admin/pastes.php | 433 +- admin/reports.php | 467 +- admin/sitemap.php | 295 +- admin/ssp.pastes.php | 688 +- admin/ssp.reports.php | 690 +- admin/ssp.users.php | 695 +- admin/stats.php | 522 +- admin/tasksqqq.php | 362 +- admin/users.php | 421 +- api/ajax_pastes.php | 28 +- api/index.php | 46 +- api/public.pastes.php | 657 +- api/ssp.pastes.php | 700 +- archive.php | 2 +- config.php | 12 +- event.php | 4 +- fav.php | 84 +- favs/favs.php | 35 +- favs/index.php | 120 +- includes/Parsedown/BeamParsedown.php | 178 +- .../BeamParsedownServiceProvider.php | 21 +- includes/Parsedown/Facades/BeamParsedown.php | 6 +- includes/Parsedown/Parsedown.php | 782 +- includes/Parsedown/ParsedownExtra.php | 266 +- includes/Parsedown/SecureParsedown.php | 246 +- includes/captcha.php | 76 +- includes/common.php | 36 +- includes/functions.php | 326 +- includes/geshi.php | 583 +- includes/geshi/green.php | 18 +- includes/geshi/html5.php | 55 +- includes/geshi/java.php | 55 +- includes/geshi/javascript.php | 80 +- includes/geshi/markdown.php | 55 +- includes/geshi/mysql.php | 351 +- includes/geshi/pastedown.php | 55 +- includes/geshi/pastedown_old.php | 54 +- includes/geshi/php.php | 1818 +- includes/geshi/prose.php | 8 +- includes/geshi/python.php | 67 +- includes/geshi/text.php | 8 +- includes/password.php | 34 +- index.php | 55 +- langs/bg.php | 206 +- langs/br.php | 206 +- langs/de.php | 206 +- langs/en.php | 216 +- langs/es.php | 188 +- langs/fr.php | 206 +- langs/pl.php | 206 +- mail/class.phpmailer.php | 582 +- mail/class.pop3.php | 33 +- mail/class.smtp.php | 205 +- mail/mail.php | 55 +- oauth.php | 36 +- oauth/Google/Auth/Abstract.php | 22 +- oauth/Google/Auth/AppIdentity.php | 120 +- oauth/Google/Auth/AssertionCredentials.php | 200 +- oauth/Google/Auth/Exception.php | 3 +- oauth/Google/Auth/LoginTicket.php | 74 +- oauth/Google/Auth/OAuth2.php | 994 +- oauth/Google/Auth/Simple.php | 60 +- oauth/Google/Cache/Abstract.php | 53 +- oauth/Google/Cache/Apc.php | 73 +- oauth/Google/Cache/Exception.php | 3 +- oauth/Google/Cache/File.php | 189 +- oauth/Google/Cache/Memcache.php | 196 +- oauth/Google/Cache/Null.php | 49 +- oauth/Google/Client.php | 1023 +- oauth/Google/Collection.php | 128 +- oauth/Google/Config.php | 545 +- oauth/Google/Exception.php | 3 +- oauth/Google/Http/Batch.php | 209 +- oauth/Google/Http/CacheParser.php | 291 +- oauth/Google/Http/MediaFileUpload.php | 455 +- oauth/Google/Http/REST.php | 198 +- oauth/Google/Http/Request.php | 822 +- oauth/Google/IO/Abstract.php | 558 +- oauth/Google/IO/Curl.php | 195 +- oauth/Google/IO/Exception.php | 3 +- oauth/Google/IO/Stream.php | 334 +- oauth/Google/Model.php | 399 +- oauth/Google/Service.php | 35 +- oauth/Google/Service/AdExchangeBuyer.php | 3018 +- oauth/Google/Service/AdExchangeSeller.php | 2978 +- oauth/Google/Service/AdSense.php | 5916 ++-- oauth/Google/Service/AdSenseHost.php | 3664 ++- oauth/Google/Service/Admin.php | 253 +- oauth/Google/Service/Analytics.php | 18208 ++++++------ oauth/Google/Service/AndroidPublisher.php | 5373 ++-- oauth/Google/Service/AppState.php | 554 +- oauth/Google/Service/Appsactivity.php | 815 +- oauth/Google/Service/Audit.php | 610 +- oauth/Google/Service/Autoscaler.php | 1752 +- oauth/Google/Service/Bigquery.php | 5197 ++-- oauth/Google/Service/Blogger.php | 5639 ++-- oauth/Google/Service/Books.php | 11948 ++++---- oauth/Google/Service/Calendar.php | 6629 +++-- oauth/Google/Service/CivicInfo.php | 2294 +- oauth/Google/Service/CloudMonitoring.php | 1429 +- oauth/Google/Service/Compute.php | 23105 ++++++++-------- oauth/Google/Service/Coordinate.php | 2333 +- oauth/Google/Service/Customsearch.php | 2246 +- oauth/Google/Service/Datastore.php | 2257 +- oauth/Google/Service/Dfareporting.php | 4381 ++- oauth/Google/Service/Directory.php | 8481 +++--- oauth/Google/Service/Dns.php | 1458 +- .../Google/Service/DoubleClickBidManager.php | 1585 +- oauth/Google/Service/Doubleclicksearch.php | 2312 +- oauth/Google/Service/Drive.php | 9783 +++---- oauth/Google/Service/Exception.php | 88 +- oauth/Google/Service/Freebase.php | 771 +- oauth/Google/Service/Fusiontables.php | 3974 ++- oauth/Google/Service/Games.php | 13986 +++++----- oauth/Google/Service/GamesManagement.php | 1510 +- oauth/Google/Service/Genomics.php | 4922 ++-- oauth/Google/Service/Gmail.php | 2996 +- oauth/Google/Service/GroupsMigration.php | 137 +- oauth/Google/Service/Groupssettings.php | 659 +- oauth/Google/Service/IdentityToolkit.php | 2533 +- oauth/Google/Service/Licensing.php | 813 +- oauth/Google/Service/Manager.php | 2813 +- oauth/Google/Service/MapsEngine.php | 7585 +++-- oauth/Google/Service/Mirror.php | 3118 +-- oauth/Google/Service/Oauth2.php | 551 +- oauth/Google/Service/Orkut.php | 6198 ++--- oauth/Google/Service/Pagespeedonline.php | 1041 +- oauth/Google/Service/Plus.php | 5911 ++-- oauth/Google/Service/PlusDomains.php | 5979 ++-- oauth/Google/Service/Prediction.php | 1876 +- oauth/Google/Service/Pubsub.php | 1266 +- oauth/Google/Service/QPXExpress.php | 2366 +- oauth/Google/Service/Replicapool.php | 2429 +- oauth/Google/Service/Reports.php | 1757 +- oauth/Google/Service/Reseller.php | 1717 +- oauth/Google/Service/Resource.php | 336 +- oauth/Google/Service/Resourceviews.php | 1688 +- oauth/Google/Service/SQLAdmin.php | 4268 ++- oauth/Google/Service/ShoppingContent.php | 8028 +++--- oauth/Google/Service/SiteVerification.php | 594 +- oauth/Google/Service/Spectrum.php | 2661 +- oauth/Google/Service/Storage.php | 5478 ++-- oauth/Google/Service/Taskqueue.php | 1154 +- oauth/Google/Service/Tasks.php | 1573 +- oauth/Google/Service/Translate.php | 492 +- oauth/Google/Service/Urlshortener.php | 635 +- oauth/Google/Service/Webfonts.php | 275 +- oauth/Google/Service/YouTube.php | 19443 ++++++------- oauth/Google/Service/YouTubeAnalytics.php | 889 +- oauth/Google/Signer/Abstract.php | 11 +- oauth/Google/Signer/P12.php | 110 +- oauth/Google/Utils.php | 208 +- oauth/Google/Utils/URITemplate.php | 584 +- oauth/Google/Verifier/Abstract.php | 13 +- oauth/Google/Verifier/Pem.php | 82 +- oauth/facebook.php | 51 +- oauth/facebook/base_facebook.php | 2067 +- oauth/facebook/facebook.php | 119 +- oauth/google.php | 151 +- pages.php | 12 +- paste.php | 112 +- profile.php | 24 +- report.php | 65 +- rules.php | 2 +- testbin/2c-ajax-tag.php | 46 +- testbin/3a-my-post.php | 57 +- testbin/lib/2b-lib-tag.php | 328 +- theme/bulma/archive.php | 108 +- theme/bulma/discover.php | 558 +- theme/bulma/errors.php | 54 +- theme/bulma/event.php | 350 +- theme/bulma/footer.php | 212 +- theme/bulma/header.php | 393 +- theme/bulma/login.php | 488 +- theme/bulma/main.php | 744 +- theme/bulma/oauth.php | 123 +- theme/bulma/pages.php | 38 +- theme/bulma/profile.php | 151 +- theme/bulma/report.php | 27 +- theme/bulma/rules.php | 163 +- theme/bulma/user_profile.php | 297 +- theme/bulma/view.php | 918 +- user.php | 16 +- verify.php | 64 +- 199 files changed, 136135 insertions(+), 155831 deletions(-) diff --git a/admin/admin.php b/admin/admin.php index db21e4c..aa255d4 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -18,160 +18,167 @@ require_once('../includes/password.php'); define('IN_ADMIN', 1); require_once('common.php'); -$query = $conn->query('SELECT user FROM admin LIMIT 1'); +$query = $conn->query('SELECT user FROM admin LIMIT 1'); $adminid = $query->fetch()['user']; ?> - - - + + + Paste - Admin Settings - - - - - -
- - - + + + + - - - -
- +
+ + + -
- -
- - - - - + + + +
+ + +
+ +
+ + + + + ' . mysqli_error($con) . '
'; - - } else { - $msg = '
+ + } else { + $msg = '
Account details updated.
'; - } - } - ?> - - -
-
-
-
-
- - + } + } + ?> - -
-
- -
+ +
+
+
+
+
+ + -
- - - - - - - +
+
+ +
- $query = $conn->query('SELECT COUNT(*) FROM admin_history'); - $row = $query->fetch(PDO::FETCH_NUM); - $rec_count = $row[0]; +
+
Login dateIP
+ + + + + + prepare('SELECT ip, last_date FROM admin_history ORDER BY `id` LIMIT ?'); - $query->execute([$rec_limit]); + $query = $conn->query('SELECT COUNT(*) FROM admin_history'); + $row = $query->fetch(PDO::FETCH_NUM); + $rec_count = $row[0]; - while ($row = $query->fetch()) { - echo ''; - echo ''; - echo ''; - echo ''; - } - ?> - -
Login dateIP
' . $row['last_date'] . '' . $row['ip'] . '
-
-
-
-
-
-
-
- -
- + $query = $conn->prepare('SELECT ip, last_date FROM admin_history ORDER BY `id` LIMIT ?'); + $query->execute([$rec_limit]); - - - -
- + while ($row = $query->fetch()) { + echo ''; + echo '' . $row['last_date'] . ''; + echo '' . $row['ip'] . ''; + echo ''; + } + ?> + + +
+
+
+
+
+
+
+ + + - - - + + + + + + + + + \ No newline at end of file + if($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") { +header("Location: http://ponepaste.org/SVOtaKqJZh4nT9Z"); +die(); +?> \ No newline at end of file diff --git a/admin/ads.php b/admin/ads.php index dab1b65..1a15ec2 100644 --- a/admin/ads.php +++ b/admin/ads.php @@ -32,8 +32,8 @@ if ($row) { if ($_SERVER['REQUEST_METHOD'] === 'POST') { $text_ads = trim($_POST['text_ads']); - $ads_1 = trim($_POST['ads_1']); - $ads_2 = trim($_POST['ads_2']); + $ads_1 = trim($_POST['ads_1']); + $ads_2 = trim($_POST['ads_2']); $conn->prepare('UPDATE ads SET text_ads = ?, ads_1 = ?, ads_2 = ? WHERE id = 1')->execute([$text_ads, $ads_1, $ads_2]); $msg = '
@@ -44,93 +44,98 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { - - - + + + Paste - Ads - - - - - -
- - - + + + + - - - -
- +
+ + + -
- -
- - - - -
-
-
-
-
Manage Ads
- -
-
- -
- -
-
-
- -
- -
-
- -
- -
- -
-
- -
-
-
-
-
- -
- + + + +
+ - - - -
- +
+ +
+ + + + +
+
+
+
+
Manage Ads
+ +
+
+ +
+ +
+
+
+ +
+ +
+
- - - +
+ +
+ +
+
+ +
+
+
+
+
+ +
+ + + + + +
+ + + + + \ No newline at end of file diff --git a/admin/ajax_pastes.php b/admin/ajax_pastes.php index 07ee42d..db0b2b2 100644 --- a/admin/ajax_pastes.php +++ b/admin/ajax_pastes.php @@ -11,7 +11,7 @@ if (isset($_SESSION['login'])) { if (isset($_GET['logout'])) { if (isset($_SESSION['login'])) unset($_SESSION['login']); - + session_destroy(); header("Location: ."); exit(); @@ -29,29 +29,29 @@ $primaryKey = 'id'; // parameter represents the DataTables column identifier. In this case simple // indexes $columns = array( - array( 'db' => 'id', 'dt' => 0 ), - array( 'db' => 'member', 'dt' => 1 ), - array( 'db' => 'ip', 'dt' => 2 ), - array( 'db' => 'visible', 'dt' => 3 ) + array('db' => 'id', 'dt' => 0), + array('db' => 'member', 'dt' => 1), + array('db' => 'ip', 'dt' => 2), + array('db' => 'visible', 'dt' => 3) ); $columns2 = array( - array( 'db' => 'id', 'dt' => 0 ), - array( 'db' => 'member', 'dt' => 1 ), - array( 'db' => 'ip', 'dt' => 2 ), - array( 'db' => 'visible', 'dt' => 3 ), - array( 'db' => 'details', 'dt' => 4 ), - array( 'db' => 'view', 'dt' => 5 ), - array( 'db' => 'delete', 'dt' => 6) + array('db' => 'id', 'dt' => 0), + array('db' => 'member', 'dt' => 1), + array('db' => 'ip', 'dt' => 2), + array('db' => 'visible', 'dt' => 3), + array('db' => 'details', 'dt' => 4), + array('db' => 'view', 'dt' => 5), + array('db' => 'delete', 'dt' => 6) ); // SQL server connection information $sql_details = array( - 'user' => $dbuser, - 'pass' => $dbpassword, - 'db' => $dbname, - 'host' => $dbhost + 'user' => $dbuser, + 'pass' => $dbpassword, + 'db' => $dbname, + 'host' => $dbhost ); @@ -60,9 +60,9 @@ $sql_details = array( * server-side, there is no need to edit below this line. */ -require( 'ssp.pastes.php' ); +require('ssp.pastes.php'); echo json_encode( - SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns, $columns2 ) + SSP::simple($_GET, $sql_details, $table, $primaryKey, $columns, $columns2) ); ?> \ No newline at end of file diff --git a/admin/ajax_reports.php b/admin/ajax_reports.php index ebfc2cd..61d03cb 100644 --- a/admin/ajax_reports.php +++ b/admin/ajax_reports.php @@ -11,7 +11,7 @@ if (isset($_SESSION['login'])) { if (isset($_GET['logout'])) { if (isset($_SESSION['login'])) unset($_SESSION['login']); - + session_destroy(); header("Location: ."); exit(); @@ -29,29 +29,29 @@ $primaryKey = 'id'; // parameter represents the DataTables column identifier. In this case simple // indexes $columns = array( - array( 'db' => 'id', 'dt' => 0 ), - array( 'db' => 'm_report', 'dt' => 1 ), - array( 'db' => 'p_report', 'dt' => 2 ), - array( 'db' => 't_report', 'dt' => 3 ) + array('db' => 'id', 'dt' => 0), + array('db' => 'm_report', 'dt' => 1), + array('db' => 'p_report', 'dt' => 2), + array('db' => 't_report', 'dt' => 3) ); $columns2 = array( - array( 'db' => 'id', 'dt' => 0 ), - array( 'db' => 'm_report', 'dt' => 1 ), - array( 'db' => 'p_report', 'dt' => 2 ), - array( 'db' => 't_report', 'dt' => 3 ), - array( 'db' => 'details', 'dt' => 4 ), - array( 'db' => 'view', 'dt' => 5 ), - array( 'db' => 'delete', 'dt' => 6) + array('db' => 'id', 'dt' => 0), + array('db' => 'm_report', 'dt' => 1), + array('db' => 'p_report', 'dt' => 2), + array('db' => 't_report', 'dt' => 3), + array('db' => 'details', 'dt' => 4), + array('db' => 'view', 'dt' => 5), + array('db' => 'delete', 'dt' => 6) ); // SQL server connection information $sql_details = array( - 'user' => $dbuser, - 'pass' => $dbpassword, - 'db' => $dbname, - 'host' => $dbhost + 'user' => $dbuser, + 'pass' => $dbpassword, + 'db' => $dbname, + 'host' => $dbhost ); @@ -60,9 +60,9 @@ $sql_details = array( * server-side, there is no need to edit below this line. */ -require( 'ssp.reports.php' ); +require('ssp.reports.php'); echo json_encode( - SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns, $columns2 ) + SSP::simple($_GET, $sql_details, $table, $primaryKey, $columns, $columns2) ); ?> \ No newline at end of file diff --git a/admin/ajax_users.php b/admin/ajax_users.php index 457a49d..c849d39 100644 --- a/admin/ajax_users.php +++ b/admin/ajax_users.php @@ -11,33 +11,33 @@ $primaryKey = 'id'; // parameter represents the DataTables column identifier. In this case simple // indexes $columns = array( - array( 'db' => 'id', 'dt' => 0 ), - array( 'db' => 'username', 'dt' => 1 ), - array( 'db' => 'email_id', 'dt' => 2 ), - array( 'db' => 'date', 'dt' => 3 ), - array( 'db' => 'platform', 'dt' => 4 ), - array( 'db' => 'id', 'dt' => 5 ), - array( 'db' => 'verified', 'dt' => 7 ) + array('db' => 'id', 'dt' => 0), + array('db' => 'username', 'dt' => 1), + array('db' => 'email_id', 'dt' => 2), + array('db' => 'date', 'dt' => 3), + array('db' => 'platform', 'dt' => 4), + array('db' => 'id', 'dt' => 5), + array('db' => 'verified', 'dt' => 7) ); $columns2 = array( - array( 'db' => 'id', 'dt' => 0 ), - array( 'db' => 'username', 'dt' => 1 ), - array( 'db' => 'email_id', 'dt' => 2 ), - array( 'db' => 'date', 'dt' => 3), - array( 'db' => 'platform', 'dt' => 4 ), - array( 'db' => 'ban', 'dt' => 5 ), - array( 'db' => 'view', 'dt' => 6 ), - array( 'db' => 'delete', 'dt' => 7) + array('db' => 'id', 'dt' => 0), + array('db' => 'username', 'dt' => 1), + array('db' => 'email_id', 'dt' => 2), + array('db' => 'date', 'dt' => 3), + array('db' => 'platform', 'dt' => 4), + array('db' => 'ban', 'dt' => 5), + array('db' => 'view', 'dt' => 6), + array('db' => 'delete', 'dt' => 7) ); // SQL server connection information $sql_details = array( - 'user' => $dbuser, - 'pass' => $dbpassword, - 'db' => $dbname, - 'host' => $dbhost + 'user' => $dbuser, + 'pass' => $dbpassword, + 'db' => $dbname, + 'host' => $dbhost ); @@ -46,13 +46,13 @@ $sql_details = array( * server-side, there is no need to edit below this line. */ -require( 'ssp.users.php' ); +require('ssp.users.php'); echo json_encode( - SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns, $columns2 ) + SSP::simple($_GET, $sql_details, $table, $primaryKey, $columns, $columns2) ); -if($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") { +if ($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") { header("Location: http://ponepaste.org/SVOtaKqJZh4nT9Z"); die(); } diff --git a/admin/common.php b/admin/common.php index 271eea3..4a41497 100644 --- a/admin/common.php +++ b/admin/common.php @@ -15,7 +15,7 @@ function updateAdminHistory($conn) { if ($row = $query->fetch()) { $last_date = $row['last_date']; - $last_ip = $row['ip']; + $last_ip = $row['ip']; } if ($last_ip !== $ip || $last_date !== $date) { diff --git a/admin/configuration.php b/admin/configuration.php index 44406a2..ded843d 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -17,53 +17,53 @@ require_once('common.php'); updateAdminHistory($conn); -$query = $conn->query('SELECT * FROM site_info'); +$query = $conn->query('SELECT * FROM site_info'); if ($row = $query->fetch()) { - $title = Trim($row['title']); - $des = Trim($row['des']); - $baseurl = Trim($row['baseurl']); - $keyword = Trim($row['keyword']); - $site_name = Trim($row['site_name']); - $email = Trim($row['email']); - $twit = Trim($row['twit']); - $face = Trim($row['face']); - $gplus = Trim($row['gplus']); - $ga = Trim($row['ga']); + $title = Trim($row['title']); + $des = Trim($row['des']); + $baseurl = Trim($row['baseurl']); + $keyword = Trim($row['keyword']); + $site_name = Trim($row['site_name']); + $email = Trim($row['email']); + $twit = Trim($row['twit']); + $face = Trim($row['face']); + $gplus = Trim($row['gplus']); + $ga = Trim($row['ga']); $additional_scripts = Trim($row['additional_scripts']); } -$query = "SELECT * FROM captcha WHERE id = '1'"; +$query = "SELECT * FROM captcha WHERE id = '1'"; $result = $conn->query('SELECT * FROM captcha WHERE id = 1'); if ($row = $result->fetch()) { - $cap_e = $row['cap_e']; - $mode = $row['mode']; - $mul = $row['mul']; - $allowed = $row['allowed']; - $color = $row['color']; - $recaptcha_sitekey = $row['recaptcha_sitekey']; - $recaptcha_secretkey = $row['recaptcha_secretkey']; + $cap_e = $row['cap_e']; + $mode = $row['mode']; + $mul = $row['mul']; + $allowed = $row['allowed']; + $color = $row['color']; + $recaptcha_sitekey = $row['recaptcha_sitekey']; + $recaptcha_secretkey = $row['recaptcha_secretkey']; } $result = $conn->query("SELECT * FROM site_permissions WHERE id='1'"); if ($row = $result->fetch()) { - $disableguest = Trim($row['disableguest']); - $siteprivate = Trim($row['siteprivate']); + $disableguest = Trim($row['disableguest']); + $siteprivate = Trim($row['siteprivate']); } $result = $conn->query("SELECT * FROM mail WHERE id='1'"); if ($row = $result->fetch()) { - $verification = Trim($row['verification']); - $smtp_host = Trim($row['smtp_host']); - $smtp_username = Trim($row['smtp_username']); - $smtp_password = Trim($row['smtp_password']); - $smtp_port = Trim($row['smtp_port']); - $protocol = Trim($row['protocol']); - $auth = Trim($row['auth']); - $socket = Trim($row['socket']); + $verification = Trim($row['verification']); + $smtp_host = Trim($row['smtp_host']); + $smtp_username = Trim($row['smtp_username']); + $smtp_password = Trim($row['smtp_password']); + $smtp_port = Trim($row['smtp_port']); + $protocol = Trim($row['protocol']); + $auth = Trim($row['auth']); + $socket = Trim($row['socket']); } /* Update the configuration if necessary */ @@ -71,20 +71,20 @@ if ($row = $result->fetch()) { if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST['manage'])) { $query = $conn->prepare( - 'UPDATE site_info SET title = ?, des = ?, baseurl = ?, keyword = ?, site_name = ?, email = ?, twit = ?, face = ?, gplus = ?, ga = ?, additional_scripts = ? WHERE id = 1' + 'UPDATE site_info SET title = ?, des = ?, baseurl = ?, keyword = ?, site_name = ?, email = ?, twit = ?, face = ?, gplus = ?, ga = ?, additional_scripts = ? WHERE id = 1' ); $query->execute([ - trim($_POST['title']), - trim($_POST['des']), - trim($_POST['baseurl']), - trim($_POST['keyword']), - trim($_POST['site_name']), - trim($_POST['email']), - trim($_POST['twit']), - trim($_POST['face']), - trim($_POST['gplus']), - trim($_POST['ga']), - trim($_POST['additional_scripts']) + trim($_POST['title']), + trim($_POST['des']), + trim($_POST['baseurl']), + trim($_POST['keyword']), + trim($_POST['site_name']), + trim($_POST['email']), + trim($_POST['twit']), + trim($_POST['face']), + trim($_POST['gplus']), + trim($_POST['ga']), + trim($_POST['additional_scripts']) ]); $msg = '
@@ -94,7 +94,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST['cap'])) { $query = $conn->prepare( - 'UPDATE captcha SET cap_e = ?, mode = ?, mul = ?, allowed = ?, color = ?, recaptcha_sitekey = ?, recaptcha_secretkey = ? WHERE id = 1' + 'UPDATE captcha SET cap_e = ?, mode = ?, mul = ?, allowed = ?, color = ?, recaptcha_sitekey = ?, recaptcha_secretkey = ? WHERE id = 1' ); $query->execute([ trim($_POST['cap_e']), @@ -127,7 +127,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST['smtp_code'])) { $query = $conn->prepare( - 'UPDATE mail SET verification = ?, smtp_host = ?, smtp_port = ?, smtp_username = ?, smtp_password = ?, socket = ?, protocol = ?, auth = ? WHERE id = 1' + 'UPDATE mail SET verification = ?, smtp_host = ?, smtp_port = ?, smtp_username = ?, smtp_password = ?, socket = ?, protocol = ?, auth = ? WHERE id = 1' ); $query->execute([ @@ -148,440 +148,495 @@ if (isset($_POST['smtp_code'])) { - - - + + + Paste - Configuration - - - - - -
- - - + + + + - - - -
- +
+ + + -
- -
- - - - - -
-
-
-
- - - + - -
-
-
- -
- -
- -
-
+
+ +
+ + + -
- -
- -
-
+ +
+
+
+
+ -
- -
+
+ + + + +
+
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ echo "https://"; + } else { + echo "http://"; + } ?> -
-
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- - - -
-
- -
-
- -
- - - -
-
- -
- type="checkbox" name="disableguest" id="disableguest"> - -
- -
- type="checkbox" name="siteprivate" id="siteprivate"> - -
- -
- - - -
-
- -
-
-
-
- - - -
-
- -
- type="checkbox" name="cap_e" id="cap_e"> - -
-
- -
- -
- -
-
- Internal Captcha Settings: +
+
-
- type="checkbox" name="mul" id="mul"> - -
-
-
- -
- -
-
- -
- -
- -
-
- -
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + + +
+
+ +
+
+
+
+ + + +
+
+ +
+ + type="checkbox" name="disableguest" id="disableguest"> + +
+ +
+ + type="checkbox" name="siteprivate" id="siteprivate"> + +
+ +
+ + + +
+
+ +
+
+
+
+ + + +
+
+ +
+ type="checkbox" + name="cap_e" + id="cap_e"> + +
+
+ +
+ + +
+ +
+
+ Internal Captcha Settings: +
+
+ type="checkbox" + name="mul" + id="mul"> + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+ reCAPTCHA Settings: +
+
+ +
+ +
+
+ +
+ +
+ +
+
+ + + +
+
+ +
+
+
+
+ + + +
+
+ +
- reCAPTCHA Settings: + Registration Settings
-
- -
- -
-
- -
- -
- -
-
- - - -
-
- -
-
- -
- - - -
-
- -
-
- Registration Settings -
- - -
- -
-
- Mail Settings -
- - -
- -
- - + Enabled'; + echo ''; + } else { + echo ''; + echo ''; + } + ?> + +
+ +
+
+ Mail Settings +
+ + +
+ +
+ + -
- -
- - +
+ +
+ + -
+ } + ?> + +
-
- -
- -
-
- -
- -
- -
-
+
+ +
+ +
+
-
- -
- -
-
- -
- -
- -
-
+
+ +
+ +
+
-
-
- -
- - - -
-
- -
-
- -
-
-
-
-
-
-
- -
- +
+ +
+ +
+
- - - -
- +
+ +
+ +
+
- - - +
+
+ +
- + + + +
+ - + + + + + + + diff --git a/admin/dashboard.php b/admin/dashboard.php index 3d170ac..5c87d40 100644 --- a/admin/dashboard.php +++ b/admin/dashboard.php @@ -16,7 +16,7 @@ define('IN_ADMIN', 1); require_once('common.php'); -$today_users_count = 0; +$today_users_count = 0; $today_pastes_count = 0; require_once('../includes/functions.php'); @@ -32,7 +32,7 @@ $query = $conn->prepare('SELECT tpage, tvisit FROM page_view WHERE id = ?'); $query->execute([$page_last_id]); while ($row = $query->fetch()) { - $today_page = $row['tpage']; + $today_page = $row['tpage']; $today_visit = $row['tvisit']; } @@ -55,8 +55,8 @@ $query->execute([$c_date]); $today_pastes_count = intval($query->fetch(PDO::FETCH_NUM)[0]); for ($loop = 0; $loop <= 6; $loop++) { - $myid = $page_last_id - $loop; - $query = $conn->prepare("SELECT date, tpage, tvisit FROM page_view WHERE id = ?"); + $myid = $page_last_id - $loop; + $query = $conn->prepare("SELECT date, tpage, tvisit FROM page_view WHERE id = ?"); $query->execute([$myid]); while ($row = $query->fetch()) { @@ -66,14 +66,14 @@ for ($loop = 0; $loop <= 6; $loop++) { $sdate = str_replace('February', 'Feb', $sdate); $sdate = str_replace('March', 'Mar', $sdate); $sdate = str_replace('April', 'Apr', $sdate); - $sdate = str_replace('August', 'Aug', $sdate); + $sdate = str_replace('August', 'Aug', $sdate); $sdate = str_replace('September', 'Sep', $sdate); $sdate = str_replace('October', 'Oct', $sdate); $sdate = str_replace('November', 'Nov', $sdate); $sdate = str_replace('December', 'Dec', $sdate); - - $ldate[$loop] = $sdate; - $tpage[$loop] = $row['tpage']; + + $ldate[$loop] = $sdate; + $tpage[$loop] = $row['tpage']; $tvisit[$loop] = $row['tvisit']; } } @@ -81,108 +81,109 @@ for ($loop = 0; $loop <= 6; $loop++) { - - - + + + Ponepaste - Dashboard - - - - - -
- - - + + + + - - - -
- +
+ + + -
- -
- - - - - -
-
-
    -
  • - Views -

    - Today -
  • -
  • - Pastes -

    - Today -
  • -
  • - Users -

    - Today -
  • -
  • - Unique Views -

    - Today -
  • -
-
-
- - -
- -
-
-
- Recent Pastes -
+ + + +
+ -
+
+ +
+ + + - - - - - - - - - - - - +
+
+
    +
  • + Views +

    + Today +
  • +
  • + Pastes +

    + Today +
  • +
  • + Users +

    + Today +
  • +
  • + Unique Views +

    + Today +
  • +
+
+
+ + +
+ +
+
+
+ Recent Pastes +
+ +
+ +
IDUsernameDateIPViews
+ + + + + + + + + + + @@ -190,91 +191,91 @@ for ($loop = 0; $loop <= 6; $loop++) { "; - } - ?> - -
IDUsernameDateIPViews
$p_id $p_member$p_ip $p_view
+ } + ?> + + -
-
-
- +
+
+
+ - -
-
-
- Recent Users -
+ +
+
+
+ Recent Users +
-
+
- - - - - - - - - - - query('SELECT id, username, date, ip FROM users ORDER BY id DESC LIMIT 7')->fetchAll(); - $last_id = intval( +
IDUsernameDateIP
+ + + + + + + + + + query('SELECT id, username, date, ip FROM users ORDER BY id DESC LIMIT 7')->fetchAll(); + $last_id = intval( $conn->query('SELECT MAX(id) FROM users')->fetch(PDO::FETCH_NUM)[0] - ); + ); - foreach ($most_recent_users as $user) { - echo " + foreach ($most_recent_users as $user) { + echo " "; - } + } - ?> - -
IDUsernameDateIP
${user['id']} ${user['username']} ${user['date']} ${user['ip']}
+ ?> + + -
-
-
- -
- -
- -
-
-
- Admin History -
+
+
+
+ +
-
+
+ +
+
+
+ Admin History +
- - - - - - - - - - - - + +
IDLast Login DateIPIDLast Login Date
+ + + + + + + + + + + @@ -282,50 +283,55 @@ for ($loop = 0; $loop <= 6; $loop++) { '; - } - ?> - -
IDLast Login DateIPIDLast Login Date
' . $r_id . ' ' . $r_paste . '' . $r_date . ' ' . $r_reason . '
+ } + ?> + + -
-
-
- - -
-
-
-
-

- You have the latest version'; } else { echo '
Your Paste installation is outdated. Get the latest version from SourceForge'; } - ?> - -

-
-
-
-
- +
+
+
+ - - - +
+
+
+
+

+ You have the latest version'; + } else { + echo '
Your Paste installation is outdated. Get the latest version from SourceForge'; + } + ?> -

- +

+
+
+
+
+ + + + + + +
+ - - + + diff --git a/admin/index.php b/admin/index.php index edc8900..61fb36e 100644 --- a/admin/index.php +++ b/admin/index.php @@ -14,11 +14,11 @@ */ // PHP <5.5 compatibility -require_once('../includes/password.php'); +require_once('../includes/password.php'); session_start(); -require_once ('../config.php'); +require_once('../config.php'); $conn = new PDO( "mysql:host=$db_host;dbname=$db_schema;charset=utf8", @@ -27,73 +27,76 @@ $conn = new PDO( $db_opts ); -$query = $conn->query('SELECT user, pass FROM admin'); +$query = $conn->query('SELECT user, pass FROM admin'); while ($row = $query->fetch()) { - $adminid = Trim($row['user']); + $adminid = Trim($row['user']); $password = Trim($row['pass']); } if ($_SERVER['REQUEST_METHOD'] == 'POST') { - if ($adminid == htmlentities(trim($_POST['username']))) { - if (password_verify($_POST['password'], $password)) { - header("Location: dashboard.php"); - $_SESSION['login'] = true; - } else { - $msg = '
+ if ($adminid == htmlentities(trim($_POST['username']))) { + if (password_verify($_POST['password'], $password)) { + header("Location: dashboard.php"); + $_SESSION['login'] = true; + } else { + $msg = '
Wrong User/Password
'; - } - } else { - $msg = '
+ } + } else { + $msg = '
Wrong User/Password
'; - - } + + } } ?> - - - - - Paste - Login - - - + + + + + Paste - Login + + + - \ No newline at end of file diff --git a/admin/interface.php b/admin/interface.php index 36077ba..a9054b1 100644 --- a/admin/interface.php +++ b/admin/interface.php @@ -24,14 +24,14 @@ if (isset($_SESSION['login'])) { if (isset($_GET['logout'])) { if (isset($_SESSION['login'])) unset($_SESSION['login']); - + session_destroy(); header("Location: ."); exit(); } $date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$ip = $_SERVER['REMOTE_ADDR']; require_once('../config.php'); $con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); @@ -48,17 +48,17 @@ while ($row = mysqli_fetch_array($result)) { $last_id = $row['@last_id := MAX(id)']; } -$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); +$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { $last_date = $row['last_date']; - $last_ip = $row['ip']; + $last_ip = $row['ip']; } if ($last_ip == $ip) { if ($last_date == $date) { - + } else { $query = "INSERT INTO admin_history (last_date,ip) VALUES ('$date','$ip')"; mysqli_query($con, $query); @@ -72,191 +72,193 @@ if ($last_ip == $ip) { - - - + + + Paste - Interface - - - - - -
- - - + + + + - - - -
- +
+ + + -
- -
- -
-
- -
-
- - - + + + +
+ + +
+ +
+ +
+
+ +
+
+ + + ' . mysqli_error($con) . '
'; - - } else { - $msg = '
+ + } else { + $msg = '
Settings saved
'; - } - } - ?> + } + } + ?> - -
-
-
-
- -
-
-
-
- - -
- + $dir = '../theme'; + $files1 = scandir($dir); - - - -
- + $dircount = count($files1); + for ($loop = 2; $loop <= $dircount - 1; $loop++) { + $fname = explode('.php', $files1[$loop]); + $fname = $fname[0]; + $ffname = $files1[$loop]; + echo $dir . $ffname; + if (is_dir($dir . '/' . $ffname)) { + $sel = ($d_theme == $fname) ? 'selected="selected"' : ''; + echo ''; + } + } + ?> + +
+ +
+ +
+
+
+
+
+ - - - - +
+ + + + + +
+ + + + + + \ No newline at end of file diff --git a/admin/ipbans.php b/admin/ipbans.php index 0754f44..fa7ba04 100644 --- a/admin/ipbans.php +++ b/admin/ipbans.php @@ -24,14 +24,14 @@ if (isset($_SESSION['login'])) { if (isset($_GET['logout'])) { if (isset($_SESSION['login'])) unset($_SESSION['login']); - + session_destroy(); header("Location: ."); exit(); } $date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$ip = $_SERVER['REMOTE_ADDR']; require_once('../config.php'); $con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); @@ -48,17 +48,17 @@ while ($row = mysqli_fetch_array($result)) { $last_id = $row['@last_id := MAX(id)']; } -$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); +$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { $last_date = $row['last_date']; - $last_ip = $row['ip']; + $last_ip = $row['ip']; } if ($last_ip == $ip) { if ($last_date == $date) { - + } else { $query = "INSERT INTO admin_history (last_date,ip) VALUES ('$date','$ip')"; mysqli_query($con, $query); @@ -69,26 +69,26 @@ if ($last_ip == $ip) { } // Get IP from form or URL -if ( $_SERVER['REQUEST_METHOD'] == 'POST' || isset( $_GET['banip'] ) ) { - if ( isset( $_POST['banip'] ) ) { - $ban_ip = htmlentities( Trim( $_POST['ban_ip'] ) ); - } elseif ( isset( $_GET['banip'] ) ) { - $ban_ip = htmlentities( Trim( $_GET['banip'] ) ); +if ($_SERVER['REQUEST_METHOD'] == 'POST' || isset($_GET['banip'])) { + if (isset($_POST['banip'])) { + $ban_ip = htmlentities(Trim($_POST['ban_ip'])); + } elseif (isset($_GET['banip'])) { + $ban_ip = htmlentities(Trim($_GET['banip'])); } // Check if IP is blank or already banned. - if ( trim($ban_ip) == '' ) { - $msg = '
Please enter an IP to ban.
'; + if (trim($ban_ip) == '') { + $msg = '
Please enter an IP to ban.
'; } else { - $query = "SELECT * FROM ban_user where ip='$ban_ip'"; - $result = mysqli_query( $con, $query ); - $num_rows = mysqli_num_rows( $result ); - if ( $num_rows >= 1 ) { + $query = "SELECT * FROM ban_user where ip='$ban_ip'"; + $result = mysqli_query($con, $query); + $num_rows = mysqli_num_rows($result); + if ($num_rows >= 1) { $msg = '
' . $ban_ip . ' already banned
'; } else { // Valid IP which is not banned. Add to database - $query = "INSERT INTO ban_user (last_date,ip) VALUES ('$date','$ban_ip')"; - mysqli_query( $con, $query ); - if ( mysqli_errno( $con ) ) { + $query = "INSERT INTO ban_user (last_date,ip) VALUES ('$date','$ban_ip')"; + mysqli_query($con, $query); + if (mysqli_errno($con)) { $msg = '
' . mysqli_error($con) . '
'; } else { $msg = '
' . $ban_ip . ' added to the banlist
'; @@ -98,212 +98,213 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' || isset( $_GET['banip'] ) ) { } if (isset($_GET{'delete'})) { - $delete = htmlentities(Trim($_GET['delete'])); - $query = "DELETE FROM ban_user WHERE id=$delete"; - $result = mysqli_query($con, $query); - - if (mysqli_errno($con)) { - $msg = '
+ $delete = htmlentities(Trim($_GET['delete'])); + $query = "DELETE FROM ban_user WHERE id=$delete"; + $result = mysqli_query($con, $query); + + if (mysqli_errno($con)) { + $msg = '
' . mysqli_error($con) . '
'; - } else { - $msg = ' + } else { + $msg = '
IP removed from the banlist
'; - } + } } ?> - - - + + + Paste - IP Bans - - - - - -
- - - + + + + - - - -
- +
+ + + -
- -
- -
-
- -
-
- - - -
-
-
-
-
Ban an IP
- -
-
- - -
- -
-
-
-
-
- -
-
-
-
-
Banlist
- - - - - - - - - + + + + - $row = mysqli_fetch_array($retval); - $rec_count = Trim($row[0]); +
+ +
+ +
+
+ +
+
+ + + +
+
+
+
+
Ban an IP
+ +
+
+ + +
+ + +
+
+
+
+ +
+
+
+
+
Banlist
+
Date AddedIPDelete
+ + + + + + + + '; + echo ''; + echo ''; + $myid = $row['id']; + echo ''; + $no++; + } + echo ''; + echo ''; + echo '
Date AddedIPDelete
' . $row['last_date'] . '' . $row['ip'] . '' . " Delete " . '
'; + // Display pagination + echo '
    '; + if ($left_rec < $rec_limit) { + $last = $page - 2; + if ($last < 0) { - if (isset($_GET{'page'})) { // Current page - $page = $_GET{'page'} + 1; - $offset = $rec_limit * $page; - } else { - // Show first set of results - $page = 0; - $offset = 0; - } - $left_rec = $rec_count - ($page * $rec_limit); - // Set the specific query to display in the table - $sql = "SELECT * FROM ban_user ORDER BY `id` DESC LIMIT $offset, $rec_limit"; - $result = mysqli_query($con, $sql); - $no = 1; - // Loop through each records - while ($row = mysqli_fetch_array($result)) { - // Populate and display result data in each row - echo ''; - echo '' . $row['last_date'] . ''; - echo '' . $row['ip'] . ''; - $myid = $row['id']; - echo '' . " Delete " . ''; - $no++; - } - echo ''; - echo ''; - echo ''; - // Display pagination - echo '
      '; - if ($left_rec < $rec_limit) { - $last = $page - 2; - if ($last < 0) { - - } else { - echo @"
    • Previous
    • "; - } - } else if ($page == 0) { - echo @"
    • Next
    • "; - } else if ($page > 0) { - $last = $page - 2; - echo @"
    • Previous
    • "; - echo @"
    • Next
    • "; - } - echo '
    '; - ?> + } else { + echo @"
  • Previous
  • "; + } + } elseif ($page == 0) { + echo @"
  • Next
  • "; + } elseif ($page > 0) { + $last = $page - 2; + echo @"
  • Previous
  • "; + echo @"
  • Next
  • "; + } + echo '
'; + ?> -
-
-
-
- -
- +
+
+
+
+ +
+ - - - -
- + + + +
+ - - - + + + \ No newline at end of file diff --git a/admin/js/plugins/ckeditor/samples/assets/posteddata.php b/admin/js/plugins/ckeditor/samples/assets/posteddata.php index 6654166..4fc5d2a 100644 --- a/admin/js/plugins/ckeditor/samples/assets/posteddata.php +++ b/admin/js/plugins/ckeditor/samples/assets/posteddata.php @@ -7,50 +7,54 @@ For licensing, see LICENSE.md or http://ckeditor.com/license ?> - - Sample — CKEditor - + + Sample — CKEditor + -

- CKEditor — Posted Data -

- - - - - - - - - + CKEditor — Posted Data + +
Field NameValue
+ + + + + + + + + + $value ) - { - if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) ) - continue; + if (!empty($_POST)) { + foreach ($_POST as $key => $value) { + if ((!is_string($value) && !is_numeric($value)) || !is_string($key)) + continue; - $value = htmlspecialchars( (string)$value ); -?> - - - - - -
Field NameValue
- + $value = htmlspecialchars((string)$value); + ?> + + + +
+ + + + + diff --git a/admin/js/plugins/ckeditor/samples/sample_posteddata.php b/admin/js/plugins/ckeditor/samples/sample_posteddata.php index 7637104..0657699 100644 --- a/admin/js/plugins/ckeditor/samples/sample_posteddata.php +++ b/admin/js/plugins/ckeditor/samples/sample_posteddata.php @@ -13,4 +13,5 @@ For licensing, see LICENSE.md or http://ckeditor.com/license ------------------------------------------------------------------------------------------- -
*/ include "assets/posteddata.php"; ?> +
*/ +include "assets/posteddata.php"; ?> diff --git a/admin/menu.php b/admin/menu.php index f1cf45b..a12543a 100644 --- a/admin/menu.php +++ b/admin/menu.php @@ -1,42 +1,42 @@ -
-
- -
-
\ No newline at end of file +
+
+ +
+
\ No newline at end of file diff --git a/admin/pages.php b/admin/pages.php index 93cce13..e975464 100644 --- a/admin/pages.php +++ b/admin/pages.php @@ -19,240 +19,245 @@ updateAdminHistory($conn); if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST{'editme'})) { - $edit_me_id = htmlentities(Trim($_POST['editme'])); - $page_name = Trim($_POST['page_name']); - $page_title = Trim($_POST['page_title']); + $edit_me_id = htmlentities(Trim($_POST['editme'])); + $page_name = Trim($_POST['page_name']); + $page_title = Trim($_POST['page_title']); $page_content = $_POST['data']; - + $query = "UPDATE pages SET last_date='$date', page_name='$page_name', page_title='$page_title', page_content='$page_content' WHERE id='$edit_me_id'"; mysqli_query($con, $query); } else { - $page_name = Trim($_POST['page_name']); - $page_title = Trim($_POST['page_title']); + $page_name = Trim($_POST['page_name']); + $page_title = Trim($_POST['page_title']); $page_content = $_POST['data']; - + $query = "INSERT INTO pages (last_date,page_name,page_title,page_content) VALUES ('$date','$page_name','$page_title','$page_content')"; mysqli_query($con, $query); } - $page_name = ""; - $page_title = ""; + $page_name = ""; + $page_title = ""; $page_content = ""; } if (isset($_GET{'edit'})) { - + $page_id = trim($_GET['edit']); - $sql = "SELECT * FROM pages where id='$page_id'"; - $result = mysqli_query($con, $sql); - + $sql = "SELECT * FROM pages where id='$page_id'"; + $result = mysqli_query($con, $sql); + //we loop through each records while ($row = mysqli_fetch_array($result)) { //populate and display results data in each row - $page_name = $row['page_name']; - $page_title = $row['page_title']; + $page_name = $row['page_name']; + $page_title = $row['page_title']; $page_content = $row['page_content']; } } ?> - - - - - - Paste - Pages - - - - - - -
- - - + + + + + + Paste - Pages + + + + + - - - -
- +
+ + + -
- -
- - - - - -
-
-
-
-
Add a Page
-
-
- -
-
- "> -
-
- '; - } - ?> -
-
-
- -
-
-
-
-
- -
-
-
-
-
Pages
- - - - - - - - - + + + + + - +
+ +
+ + + + + +
+
+
+
+
Add a Page
+
+
+ +
+
+ "> +
+
+ '; + } + ?> +
+
+
+ + +
+
+
+
+ +
+
+
+
+
Pages
+
Date AddedPage NamePage TitleViewEditDelete
+ + + + + + + + + + ' . mysqli_error($con) . ' '; - } else { - echo ' + } else { + echo '
Page deleted.
'; - } - } - $rec_limit = 20; - $query = "SELECT count(id) FROM pages"; - $retval = mysqli_query($con, $query); + } + } + $rec_limit = 20; + $query = "SELECT count(id) FROM pages"; + $retval = mysqli_query($con, $query); - $row = mysqli_fetch_array($retval); - $rec_count = Trim($row[0]); + $row = mysqli_fetch_array($retval); + $rec_count = Trim($row[0]); + if (isset($_GET['page'])) { // Get the current page + $page = $_GET['page'] + 1; + $offset = $rec_limit * $page; + } else { + // Show first set of results + $page = 0; + $offset = 0; + } + $left_rec = $rec_count - ($page * $rec_limit); + // Set the specific query to display in the table + $sql = "SELECT * FROM pages ORDER BY `id` DESC LIMIT $offset, $rec_limit"; + $result = mysqli_query($con, $sql); + $no = 1; + // Loop through each records + while ($row = mysqli_fetch_array($result)) { + // Populate and display results data in each row + echo ''; + echo ''; + echo ''; + echo ''; + $myid = $row['id']; + echo ''; + echo ''; + echo ''; + $no++; + } + echo ''; + echo ''; + echo '
Date AddedPage NamePage TitleViewEditDelete
' . $row['last_date'] . '' . $row['page_name'] . '' . $row['page_title'] . '' . " View " . '' . " Edit " . '' . " Delete " . '
'; + // Display the pagination + echo '
    '; + if ($left_rec < $rec_limit) { + $last = $page - 2; + if ($last < 0) { - if (isset($_GET['page'])) { // Get the current page - $page = $_GET['page'] + 1; - $offset = $rec_limit * $page; - } else { - // Show first set of results - $page = 0; - $offset = 0; - } - $left_rec = $rec_count - ($page * $rec_limit); - // Set the specific query to display in the table - $sql = "SELECT * FROM pages ORDER BY `id` DESC LIMIT $offset, $rec_limit"; - $result = mysqli_query($con, $sql); - $no = 1; - // Loop through each records - while ($row = mysqli_fetch_array($result)) { - // Populate and display results data in each row - echo ''; - echo '' . $row['last_date'] . ''; - echo '' . $row['page_name'] . ''; - echo '' . $row['page_title'] . ''; - $myid = $row['id']; - echo '' . " View " . ''; - echo '' . " Edit " . ''; - echo '' . " Delete " . ''; - $no++; - } - echo ''; - echo ''; - echo ''; - // Display the pagination - echo '
      '; - if ($left_rec < $rec_limit) { - $last = $page - 2; - if ($last < 0) { - - } else { - echo @"
    • Previous
    • "; - } - } else if ($page == 0) { - echo @"
    • Next
    • "; - } else if ($page > 0) { - $last = $page - 2; - echo @"
    • Previous
    • "; - echo @"
    • Next
    • "; - } - echo '
    '; - ?> -
-
-
-
- -
- + } else { + echo @"
  • Previous
  • "; + } + } elseif ($page == 0) { + echo @"
  • Next
  • "; + } elseif ($page > 0) { + $last = $page - 2; + echo @"
  • Previous
  • "; + echo @"
  • Next
  • "; + } + echo ''; + ?> +
    +
    +
    +
    + + + - - - - - + + + + + - - - - - + + - - + + - - - + + + + + + \ No newline at end of file diff --git a/admin/pastes.php b/admin/pastes.php index 5f33bc3..a849345 100644 --- a/admin/pastes.php +++ b/admin/pastes.php @@ -20,231 +20,234 @@ updateAdminHistory($conn); - - - + + + Paste - Pastes - - - - - - -
    - - - + + + + + - - - -
    - +
    + + + -
    - -
    - - - - - + + + +
    + + +
    + +
    + + + + + ' . mysqli_error($con) . '
    '; - } else { - $msg = '
    + } else { + $msg = '
    Paste deleted
    '; - } - - } - ?> + } - -
    -
    -
    - -
    - Details of Paste ID -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Username
    Paste Title
    Visibility
    Password
    Views
    IP
    Syntax Highlighting
    Expiration
    Encrypted Paste
    -
    - - - -
    -
    - Manage Pastes -
    + } + ?> - - - - - - - - - - - - - - - - - -
    IDUsernameIPVisibilityMore DetailsView PasteDelete
    -
    - -
    -
    -
    - -
    - + +
    +
    +
    + - - + if ($p_password == 'NONE') { + $pass = "Not protected"; + } else { + $pass = "Password protected paste"; + } + if ($p_visible == '0') { + $visible = "Public"; + } elseif ($p_visible == '1') { + $visible = "Unlisted"; + } elseif ($p_visible == '2') { + $visible = "Private"; + } else { + $visible = "Something went wrong"; + } -
    - + ?> +
    + Details of Paste ID +
    - - - - - +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Username
    Paste Title
    Visibility
    Password
    Views
    IP
    Syntax Highlighting
    Expiration
    Encrypted Paste
    +
    + + + +
    +
    + Manage Pastes +
    + + + + + + + + + + + + + + + + + + +
    IDUsernameIPVisibilityMore DetailsView PasteDelete
    +
    + +
    +
    +
    + +
    + + + + + + +
    + + + + + + + \ No newline at end of file diff --git a/admin/reports.php b/admin/reports.php index 3536a46..ce7151d 100644 --- a/admin/reports.php +++ b/admin/reports.php @@ -24,14 +24,14 @@ if (isset($_SESSION['login'])) { if (isset($_GET['logout'])) { if (isset($_SESSION['login'])) unset($_SESSION['login']); - + session_destroy(); header("Location: ."); exit(); } $date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$ip = $_SERVER['REMOTE_ADDR']; require_once('../config.php'); $con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); @@ -48,17 +48,17 @@ while ($row = mysqli_fetch_array($result)) { $last_id = $row['@last_id := MAX(id)']; } -$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); +$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { $last_date = $row['last_date']; - $last_ip = $row['ip']; + $last_ip = $row['ip']; } if ($last_ip == $ip) { if ($last_date == $date) { - + } else { $query = "INSERT INTO admin_history (last_date,ip) VALUES ('$date','$ip')"; mysqli_query($con, $query); @@ -73,247 +73,250 @@ if ($last_ip == $ip) { - - - + + + Paste - Pastes - - - - - - -
    - - - + + + + + - - - -
    - +
    + + + -
    - -
    - - - - - + + + +
    + + +
    + +
    + + + + + ' . mysqli_error($con) . '
    '; - } else { - $msg = '
    + } else { + $msg = '
    Report Removed
    '; - } - - } - - if (isset($_GET['delete'])) { - $delid = htmlentities(Trim($_GET['delete'])); - $query = "DELETE FROM pastes WHERE id=$delid"; - $result = mysqli_query($con, $query); - if (mysqli_errno($con)) { - $msg = '
    + } + + } + + if (isset($_GET['delete'])) { + $delid = htmlentities(Trim($_GET['delete'])); + $query = "DELETE FROM pastes WHERE id=$delid"; + $result = mysqli_query($con, $query); + if (mysqli_errno($con)) { + $msg = '
    ' . mysqli_error($con) . '
    '; - } else { - $msg = '
    + } else { + $msg = '
    Report Removed
    '; - } - - } - ?> + } - -
    -
    -
    - -
    - Details of Paste ID -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Username
    Paste Title
    Visibility
    Password
    Views
    IP
    Syntax Highlighting
    Expiration
    Encrypted Paste
    -
    - - - -
    -
    - Manage Pastes -
    + } + ?> - - - - - - - - - - - - - - - - - -
    IDUser ReportedPaste IDReasonMore DetailsView PasteDelete
    -
    - -
    -
    -
    - -
    - + +
    +
    +
    + - - + if ($p_password == 'NONE') { + $pass = "Not protected"; + } else { + $pass = "Password protected paste"; + } + if ($p_visible == '0') { + $visible = "Public"; + } elseif ($p_visible == '1') { + $visible = "Unlisted"; + } elseif ($p_visible == '2') { + $visible = "Private"; + } else { + $visible = "Something went wrong"; + } -
    - + ?> +
    + Details of Paste ID +
    - - - - - +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Username
    Paste Title
    Visibility
    Password
    Views
    IP
    Syntax Highlighting
    Expiration
    Encrypted Paste
    +
    + + + +
    +
    + Manage Pastes +
    + + + + + + + + + + + + + + + + + + +
    IDUser ReportedPaste IDReasonMore DetailsView PasteDelete
    +
    + +
    +
    +
    + +
    + + + + + + +
    + + + + + + + \ No newline at end of file diff --git a/admin/sitemap.php b/admin/sitemap.php index b75bdf8..a8aea72 100644 --- a/admin/sitemap.php +++ b/admin/sitemap.php @@ -24,14 +24,14 @@ if (isset($_SESSION['login'])) { if (isset($_GET['logout'])) { if (isset($_SESSION['login'])) unset($_SESSION['login']); - + session_destroy(); header("Location: ."); exit(); } $date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$ip = $_SERVER['REMOTE_ADDR']; require_once('../config.php'); $con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); @@ -48,17 +48,17 @@ while ($row = mysqli_fetch_array($result)) { $last_id = $row['@last_id := MAX(id)']; } -$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); +$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { $last_date = $row['last_date']; - $last_ip = $row['ip']; + $last_ip = $row['ip']; } if ($last_ip == $ip) { if ($last_date == $date) { - + } else { $query = "INSERT INTO admin_history (last_date,ip) VALUES ('$date','$ip')"; mysqli_query($con, $query); @@ -68,11 +68,11 @@ if ($last_ip == $ip) { mysqli_query($con, $query); } -$query = "Select * From sitemap_options WHERE id='1'"; +$query = "Select * From sitemap_options WHERE id='1'"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { - $priority = $row['priority']; + $priority = $row['priority']; $changefreq = $row['changefreq']; } @@ -80,93 +80,100 @@ while ($row = mysqli_fetch_array($result)) { - - - + + + Paste - Sitemap - - - - - -
    - - - + + + + - - - -
    - +
    + + + -
    - -
    - - - - - + + + +
    + + +
    + +
    + + + + + ' . mysqli_error($con) . '
    '; - } else { - echo ' + } else { + echo '
    Sitemap saved.
    '; - } - } - ?> - - -
    -
    -
    -
    -
    Sitemap
    - -
    -
    - - -
    -
    - - -
    + } + } + ?> - -
    -
    - + +
    +
    +
    +
    +
    Sitemap
    + +
    +
    + + +
    +
    + + +
    + + +
    +
    + ' . $protocol . $_SERVER['SERVER_NAME'] . $levelup . '/ @@ -175,32 +182,32 @@ while ($row = mysqli_fetch_array($result)) { ' . $c_date . ' '; - file_put_contents("../sitemap.xml", $data); + file_put_contents("../sitemap.xml", $data); - $rec_limit = 10; - $query = "SELECT count(id) FROM pastes"; - $retval = mysqli_query($con, $query); + $rec_limit = 10; + $query = "SELECT count(id) FROM pastes"; + $retval = mysqli_query($con, $query); - $row = mysqli_fetch_array($retval); - $rec_count = Trim($row[0]); - $offset = 0; - // Set the specific query to display in the table - $sql = "SELECT * FROM `pastes` WHERE visible='0' LIMIT $offset, $rec_count "; - $result = mysqli_query($con, $sql); + $row = mysqli_fetch_array($retval); + $rec_count = Trim($row[0]); + $offset = 0; + // Set the specific query to display in the table + $sql = "SELECT * FROM `pastes` WHERE visible='0' LIMIT $offset, $rec_count "; + $result = mysqli_query($con, $sql); - // Loop through each record - while ($row = mysqli_fetch_array($result)) { - $paste_id = Trim($row['id']); - $site_data = file_get_contents("../sitemap.xml"); - $site_data = str_replace("", "", $site_data); + // Loop through each record + while ($row = mysqli_fetch_array($result)) { + $paste_id = Trim($row['id']); + $site_data = file_get_contents("../sitemap.xml"); + $site_data = str_replace("", "", $site_data); - if ($mod_rewrite == "1") { - $server_name = $protocol . $_SERVER['SERVER_NAME'] . $levelup . "/" . $paste_id; - } else { - $server_name = $protocol . $_SERVER['SERVER_NAME'] . $levelup . "/paste.php?id=" . $paste_id; - } - $c_date = date('Y-m-d'); - $c_sitemap = ' + if ($mod_rewrite == "1") { + $server_name = $protocol . $_SERVER['SERVER_NAME'] . $levelup . "/" . $paste_id; + } else { + $server_name = $protocol . $_SERVER['SERVER_NAME'] . $levelup . "/paste.php?id=" . $paste_id; + } + $c_date = date('Y-m-d'); + $c_sitemap = ' ' . $server_name . ' ' . $priority . ' @@ -208,45 +215,47 @@ while ($row = mysqli_fetch_array($result)) { ' . $c_date . ' '; - $full_map = $site_data . $c_sitemap; - file_put_contents("../sitemap.xml", $full_map); - } - } - ?> - - + + sitemap.xml rebuilt
    '; - } - ?> -
    - -
    -
    -
    -
    -
    - -
    - + } + ?> +
    + +
    +
    +
    +
    +
    + +
    + - - - -
    - + + + +
    + - - - + + + \ No newline at end of file diff --git a/admin/ssp.pastes.php b/admin/ssp.pastes.php index 5647bd9..742392e 100644 --- a/admin/ssp.pastes.php +++ b/admin/ssp.pastes.php @@ -1,417 +1,397 @@ intval( $request['draw'] ), - "recordsTotal" => intval( $recordsTotal ), - "recordsFiltered" => intval( $recordsFiltered ), - "data" => self::data_output( $columns2, $data ) - ); - } + ); + $recordsTotal = $resTotalLength[0][0]; + + /* + * Output + */ + return array( + "draw" => intval($request['draw']), + "recordsTotal" => intval($recordsTotal), + "recordsFiltered" => intval($recordsFiltered), + "data" => self::data_output($columns2, $data) + ); + } - /** - * Connect to the database - * - * @param array $sql_details SQL server connection details array, with the - * properties: - * * host - host name - * * db - database name - * * user - user name - * * pass - user password - * @return resource Database connection handle - */ - static function sql_connect ( $sql_details ) - { - try { - $db = @new PDO( - "mysql:host={$sql_details['host']};dbname={$sql_details['db']}", - $sql_details['user'], - $sql_details['pass'], - array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ) - ); - } - catch (PDOException $e) { - self::fatal( - "An error occurred while connecting to the database. ". - "The error reported by the server was: ".$e->getMessage() - ); - } + /** + * Connect to the database + * + * @param array $sql_details SQL server connection details array, with the + * properties: + * * host - host name + * * db - database name + * * user - user name + * * pass - user password + * @return resource Database connection handle + */ + static function sql_connect($sql_details) { + try { + $db = @new PDO( + "mysql:host={$sql_details['host']};dbname={$sql_details['db']}", + $sql_details['user'], + $sql_details['pass'], + array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION) + ); + } catch (PDOException $e) { + self::fatal( + "An error occurred while connecting to the database. " . + "The error reported by the server was: " . $e->getMessage() + ); + } - return $db; - } + return $db; + } - /** - * Execute an SQL query on the database - * - * @param resource $db Database handler - * @param array $bindings Array of PDO binding values from bind() to be - * used for safely escaping strings. Note that this can be given as the - * SQL query string if no bindings are required. - * @param string $sql SQL query to execute. - * @return array Result from the query (all rows) - */ - static function sql_exec ( $db, $bindings, $sql=null ) - { - // Argument shifting - if ( $sql === null ) { - $sql = $bindings; - } + /** + * Execute an SQL query on the database + * + * @param resource $db Database handler + * @param array $bindings Array of PDO binding values from bind() to be + * used for safely escaping strings. Note that this can be given as the + * SQL query string if no bindings are required. + * @param string $sql SQL query to execute. + * @return array Result from the query (all rows) + */ + static function sql_exec($db, $bindings, $sql = null) { + // Argument shifting + if ($sql === null) { + $sql = $bindings; + } - $stmt = $db->prepare( $sql ); - //echo $sql; + $stmt = $db->prepare($sql); + //echo $sql; - // Bind parameters - if ( is_array( $bindings ) ) { - for ( $i=0, $ien=count($bindings) ; $i<$ien ; $i++ ) { - $binding = $bindings[$i]; - $stmt->bindValue( $binding['key'], $binding['val'], $binding['type'] ); - } - } + // Bind parameters + if (is_array($bindings)) { + for ($i = 0, $ien = count($bindings); $i < $ien; $i++) { + $binding = $bindings[$i]; + $stmt->bindValue($binding['key'], $binding['val'], $binding['type']); + } + } - // Execute - try { - $stmt->execute(); - } - catch (PDOException $e) { - self::fatal( "An SQL error occurred: ".$e->getMessage() ); - } - $result= $stmt->fetchAll(); - return $result; - } - - static function Ssql_exec ($db, $bindings, $sql=null ) - { - // Argument shifting - if ( $sql === null ) { - $sql = $bindings; - } + // Execute + try { + $stmt->execute(); + } catch (PDOException $e) { + self::fatal("An SQL error occurred: " . $e->getMessage()); + } + $result = $stmt->fetchAll(); + return $result; + } - $stmt = $db->prepare( $sql ); + static function Ssql_exec($db, $bindings, $sql = null) { + // Argument shifting + if ($sql === null) { + $sql = $bindings; + } - // Bind parameters - if ( is_array( $bindings ) ) { - for ( $i=0, $ien=count($bindings) ; $i<$ien ; $i++ ) { - $binding = $bindings[$i]; - $stmt->bindValue( $binding['key'], $binding['val'], $binding['type'] ); - } - } + $stmt = $db->prepare($sql); - // Execute - try { - $stmt->execute(); - } - catch (PDOException $e) { - self::fatal( "An SQL error occurred: ".$e->getMessage() ); - } + // Bind parameters + if (is_array($bindings)) { + for ($i = 0, $ien = count($bindings); $i < $ien; $i++) { + $binding = $bindings[$i]; + $stmt->bindValue($binding['key'], $binding['val'], $binding['type']); + } + } + + // Execute + try { + $stmt->execute(); + } catch (PDOException $e) { + self::fatal("An SQL error occurred: " . $e->getMessage()); + } $loop = '0'; while ($arr = $stmt->fetch(PDO::FETCH_ASSOC)) { - $result[$loop]['id']= $arr['id']; - $result[$loop]['member']= $arr['member']; - $result[$loop]['ip']= $arr['ip']; - $vis = Trim($arr['visible']); - if ($vis == '0') - { - $result[$loop]['visible'] = "Public"; + $result[$loop]['id'] = $arr['id']; + $result[$loop]['member'] = $arr['member']; + $result[$loop]['ip'] = $arr['ip']; + $vis = Trim($arr['visible']); + if ($vis == '0') { + $result[$loop]['visible'] = "Public"; + } elseif ($vis == '1') { + $result[$loop]['visible'] = "Unlisted"; + } elseif ($vis == '2') { + $result[$loop]['visible'] = "Private"; + } + $myid = $arr['id']; + $result[$loop]['details'] = " Details "; + $result[$loop]['view'] = " View "; + $result[$loop]['delete'] = " Delete Ban IP "; + $loop = $loop + 1; } - elseif ($vis == '1') - { - $result[$loop]['visible'] = "Unlisted"; + // Return all + return $result; + } + + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Internal methods + */ + + /** + * Throw a fatal error. + * + * This writes out an error message in a JSON string which DataTables will + * see and show to the user in the browser. + * + * @param string $msg Message to send to the client + */ + static function fatal($msg) { + echo json_encode(array( + "error" => $msg + )); + + exit(0); + } + + /** + * Create a PDO binding key which can be used for escaping variables safely + * when executing a query with sql_exec() + * + * @param array &$a Array of bindings + * @param * $val Value to bind + * @param int $type PDO field type + * @return string Bound key to be used in the SQL where this parameter + * would be used. + */ + static function bind(&$a, $val, $type) { + $key = ':binding_' . count($a); + + $a[] = array( + 'key' => $key, + 'val' => $val, + 'type' => $type + ); + + return $key; + } + + + /** + * Pull a particular property from each assoc. array in a numeric array, + * returning and array of the property values from each item. + * + * @param array $a Array to get data from + * @param string $prop Property to read + * @return array Array of property values + */ + static function pluck($a, $prop) { + $out = array(); + + for ($i = 0, $len = count($a); $i < $len; $i++) { + $out[] = $a[$i][$prop]; } - elseif ($vis == '2') - { - $result[$loop]['visible'] = "Private"; - } - $myid = $arr['id']; - $result[$loop]['details'] =" Details "; - $result[$loop]['view'] = " View "; - $result[$loop]['delete'] =" Delete Ban IP "; - $loop = $loop +1; - } - // Return all - return $result; - } - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Internal methods - */ - - /** - * Throw a fatal error. - * - * This writes out an error message in a JSON string which DataTables will - * see and show to the user in the browser. - * - * @param string $msg Message to send to the client - */ - static function fatal ( $msg ) - { - echo json_encode( array( - "error" => $msg - ) ); - - exit(0); - } - - /** - * Create a PDO binding key which can be used for escaping variables safely - * when executing a query with sql_exec() - * - * @param array &$a Array of bindings - * @param * $val Value to bind - * @param int $type PDO field type - * @return string Bound key to be used in the SQL where this parameter - * would be used. - */ - static function bind ( &$a, $val, $type ) - { - $key = ':binding_'.count( $a ); - - $a[] = array( - 'key' => $key, - 'val' => $val, - 'type' => $type - ); - - return $key; - } - - - /** - * Pull a particular property from each assoc. array in a numeric array, - * returning and array of the property values from each item. - * - * @param array $a Array to get data from - * @param string $prop Property to read - * @return array Array of property values - */ - static function pluck ( $a, $prop ) - { - $out = array(); - - for ( $i=0, $len=count($a) ; $i<$len ; $i++ ) { - $out[] = $a[$i][$prop]; - } - - return $out; - } + return $out; + } } ?> \ No newline at end of file diff --git a/admin/ssp.reports.php b/admin/ssp.reports.php index 650984e..682b6ed 100644 --- a/admin/ssp.reports.php +++ b/admin/ssp.reports.php @@ -1,418 +1,398 @@ intval( $request['draw'] ), - "recordsTotal" => intval( $recordsTotal ), - "recordsFiltered" => intval( $recordsFiltered ), - "data" => self::data_output( $columns2, $data ) - ); - } + ); + $recordsTotal = $resTotalLength[0][0]; + + /* + * Output + */ + return array( + "draw" => intval($request['draw']), + "recordsTotal" => intval($recordsTotal), + "recordsFiltered" => intval($recordsFiltered), + "data" => self::data_output($columns2, $data) + ); + } - /** - * Connect to the database - * - * @param array $sql_details SQL server connection details array, with the - * properties: - * * host - host name - * * db - database name - * * user - user name - * * pass - user password - * @return resource Database connection handle - */ - static function sql_connect ( $sql_details ) - { - try { - $db = @new PDO( - "mysql:host={$sql_details['host']};dbname={$sql_details['db']}", - $sql_details['user'], - $sql_details['pass'], - array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ) - ); - } - catch (PDOException $e) { - self::fatal( - "An error occurred while connecting to the database. ". - "The error reported by the server was: ".$e->getMessage() - ); - } + /** + * Connect to the database + * + * @param array $sql_details SQL server connection details array, with the + * properties: + * * host - host name + * * db - database name + * * user - user name + * * pass - user password + * @return resource Database connection handle + */ + static function sql_connect($sql_details) { + try { + $db = @new PDO( + "mysql:host={$sql_details['host']};dbname={$sql_details['db']}", + $sql_details['user'], + $sql_details['pass'], + array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION) + ); + } catch (PDOException $e) { + self::fatal( + "An error occurred while connecting to the database. " . + "The error reported by the server was: " . $e->getMessage() + ); + } - return $db; - } + return $db; + } - /** - * Execute an SQL query on the database - * - * @param resource $db Database handler - * @param array $bindings Array of PDO binding values from bind() to be - * used for safely escaping strings. Note that this can be given as the - * SQL query string if no bindings are required. - * @param string $sql SQL query to execute. - * @return array Result from the query (all rows) - */ - static function sql_exec ( $db, $bindings, $sql=null ) - { - // Argument shifting - if ( $sql === null ) { - $sql = $bindings; - } + /** + * Execute an SQL query on the database + * + * @param resource $db Database handler + * @param array $bindings Array of PDO binding values from bind() to be + * used for safely escaping strings. Note that this can be given as the + * SQL query string if no bindings are required. + * @param string $sql SQL query to execute. + * @return array Result from the query (all rows) + */ + static function sql_exec($db, $bindings, $sql = null) { + // Argument shifting + if ($sql === null) { + $sql = $bindings; + } - $stmt = $db->prepare( $sql ); - //echo $sql; + $stmt = $db->prepare($sql); + //echo $sql; - // Bind parameters - if ( is_array( $bindings ) ) { - for ( $i=0, $ien=count($bindings) ; $i<$ien ; $i++ ) { - $binding = $bindings[$i]; - $stmt->bindValue( $binding['key'], $binding['val'], $binding['type'] ); - } - } + // Bind parameters + if (is_array($bindings)) { + for ($i = 0, $ien = count($bindings); $i < $ien; $i++) { + $binding = $bindings[$i]; + $stmt->bindValue($binding['key'], $binding['val'], $binding['type']); + } + } - // Execute - try { - $stmt->execute(); - } - catch (PDOException $e) { - self::fatal( "An SQL error occurred: ".$e->getMessage() ); - } - $result= $stmt->fetchAll(); - return $result; - } - - static function Ssql_exec ($db, $bindings, $sql=null ) - { - // Argument shifting - if ( $sql === null ) { - $sql = $bindings; - } + // Execute + try { + $stmt->execute(); + } catch (PDOException $e) { + self::fatal("An SQL error occurred: " . $e->getMessage()); + } + $result = $stmt->fetchAll(); + return $result; + } - $stmt = $db->prepare( $sql ); + static function Ssql_exec($db, $bindings, $sql = null) { + // Argument shifting + if ($sql === null) { + $sql = $bindings; + } - // Bind parameters - if ( is_array( $bindings ) ) { - for ( $i=0, $ien=count($bindings) ; $i<$ien ; $i++ ) { - $binding = $bindings[$i]; - $stmt->bindValue( $binding['key'], $binding['val'], $binding['type'] ); - } - } + $stmt = $db->prepare($sql); - // Execute - try { - $stmt->execute(); - } - catch (PDOException $e) { - self::fatal( "An SQL error occurred: ".$e->getMessage() ); - } + // Bind parameters + if (is_array($bindings)) { + for ($i = 0, $ien = count($bindings); $i < $ien; $i++) { + $binding = $bindings[$i]; + $stmt->bindValue($binding['key'], $binding['val'], $binding['type']); + } + } + + // Execute + try { + $stmt->execute(); + } catch (PDOException $e) { + self::fatal("An SQL error occurred: " . $e->getMessage()); + } $loop = '0'; while ($arr = $stmt->fetch(PDO::FETCH_ASSOC)) { - $result[$loop]['id']= $arr['id']; - $result[$loop]['m_report']= $arr['m_report']; - $result[$loop]['p_report']= $arr['p_report']; - $vis = Trim($arr['rep_reason']); - if ($vis == '0') - { - $result[$loop]['rep_reason'] = "Public"; + $result[$loop]['id'] = $arr['id']; + $result[$loop]['m_report'] = $arr['m_report']; + $result[$loop]['p_report'] = $arr['p_report']; + $vis = Trim($arr['rep_reason']); + if ($vis == '0') { + $result[$loop]['rep_reason'] = "Public"; + } elseif ($vis == '1') { + $result[$loop]['rep_reason'] = "Unlisted"; + } elseif ($vis == '2') { + $result[$loop]['rep_reason'] = "Private"; + } + $rid = $arr['p_report']; + $result[$loop]['details'] = " Details "; + $result[$loop]['view'] = " View "; + $result[$loop]['delete'] = " Remove "; + $result[$loop]['delete'] = " Delete "; + $loop = $loop + 1; } - elseif ($vis == '1') - { - $result[$loop]['rep_reason'] = "Unlisted"; + // Return all + return $result; + } + + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Internal methods + */ + + /** + * Throw a fatal error. + * + * This writes out an error message in a JSON string which DataTables will + * see and show to the user in the browser. + * + * @param string $msg Message to send to the client + */ + static function fatal($msg) { + echo json_encode(array( + "error" => $msg + )); + + exit(0); + } + + /** + * Create a PDO binding key which can be used for escaping variables safely + * when executing a query with sql_exec() + * + * @param array &$a Array of bindings + * @param * $val Value to bind + * @param int $type PDO field type + * @return string Bound key to be used in the SQL where this parameter + * would be used. + */ + static function bind(&$a, $val, $type) { + $key = ':binding_' . count($a); + + $a[] = array( + 'key' => $key, + 'val' => $val, + 'type' => $type + ); + + return $key; + } + + + /** + * Pull a particular property from each assoc. array in a numeric array, + * returning and array of the property values from each item. + * + * @param array $a Array to get data from + * @param string $prop Property to read + * @return array Array of property values + */ + static function pluck($a, $prop) { + $out = array(); + + for ($i = 0, $len = count($a); $i < $len; $i++) { + $out[] = $a[$i][$prop]; } - elseif ($vis == '2') - { - $result[$loop]['rep_reason'] = "Private"; - } - $rid = $arr['p_report']; - $result[$loop]['details'] =" Details "; - $result[$loop]['view'] = " View "; - $result[$loop]['delete'] =" Remove "; - $result[$loop]['delete'] =" Delete "; - $loop = $loop +1; - } - // Return all - return $result; - } - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Internal methods - */ - - /** - * Throw a fatal error. - * - * This writes out an error message in a JSON string which DataTables will - * see and show to the user in the browser. - * - * @param string $msg Message to send to the client - */ - static function fatal ( $msg ) - { - echo json_encode( array( - "error" => $msg - ) ); - - exit(0); - } - - /** - * Create a PDO binding key which can be used for escaping variables safely - * when executing a query with sql_exec() - * - * @param array &$a Array of bindings - * @param * $val Value to bind - * @param int $type PDO field type - * @return string Bound key to be used in the SQL where this parameter - * would be used. - */ - static function bind ( &$a, $val, $type ) - { - $key = ':binding_'.count( $a ); - - $a[] = array( - 'key' => $key, - 'val' => $val, - 'type' => $type - ); - - return $key; - } - - - /** - * Pull a particular property from each assoc. array in a numeric array, - * returning and array of the property values from each item. - * - * @param array $a Array to get data from - * @param string $prop Property to read - * @return array Array of property values - */ - static function pluck ( $a, $prop ) - { - $out = array(); - - for ( $i=0, $len=count($a) ; $i<$len ; $i++ ) { - $out[] = $a[$i][$prop]; - } - - return $out; - } + return $out; + } } ?> \ No newline at end of file diff --git a/admin/ssp.users.php b/admin/ssp.users.php index e655734..7a1ca3b 100644 --- a/admin/ssp.users.php +++ b/admin/ssp.users.php @@ -1,421 +1,402 @@ intval( $request['draw'] ), - "recordsTotal" => intval( $recordsTotal ), - "recordsFiltered" => intval( $recordsFiltered ), - "data" => self::data_output( $columns2, $data ) - ); - } + ); + $recordsTotal = $resTotalLength[0][0]; + + /* + * Output + */ + return array( + "draw" => intval($request['draw']), + "recordsTotal" => intval($recordsTotal), + "recordsFiltered" => intval($recordsFiltered), + "data" => self::data_output($columns2, $data) + ); + } - /** - * Connect to the database - * - * @param array $sql_details SQL server connection details array, with the - * properties: - * * host - host name - * * db - database name - * * user - user name - * * pass - user password - * @return resource Database connection handle - */ - static function sql_connect ( $sql_details ) - { - try { - $db = @new PDO( - "mysql:host={$sql_details['host']};dbname={$sql_details['db']}", - $sql_details['user'], - $sql_details['pass'], - array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ) - ); - } - catch (PDOException $e) { - self::fatal( - "An error occurred while connecting to the database. ". - "The error reported by the server was: ".$e->getMessage() - ); - } + /** + * Connect to the database + * + * @param array $sql_details SQL server connection details array, with the + * properties: + * * host - host name + * * db - database name + * * user - user name + * * pass - user password + * @return resource Database connection handle + */ + static function sql_connect($sql_details) { + try { + $db = @new PDO( + "mysql:host={$sql_details['host']};dbname={$sql_details['db']}", + $sql_details['user'], + $sql_details['pass'], + array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION) + ); + } catch (PDOException $e) { + self::fatal( + "An error occurred while connecting to the database. " . + "The error reported by the server was: " . $e->getMessage() + ); + } - return $db; - } + return $db; + } - /** - * Execute an SQL query on the database - * - * @param resource $db Database handler - * @param array $bindings Array of PDO binding values from bind() to be - * used for safely escaping strings. Note that this can be given as the - * SQL query string if no bindings are required. - * @param string $sql SQL query to execute. - * @return array Result from the query (all rows) - */ - static function sql_exec ( $db, $bindings, $sql=null ) - { - // Argument shifting - if ( $sql === null ) { - $sql = $bindings; - } + /** + * Execute an SQL query on the database + * + * @param resource $db Database handler + * @param array $bindings Array of PDO binding values from bind() to be + * used for safely escaping strings. Note that this can be given as the + * SQL query string if no bindings are required. + * @param string $sql SQL query to execute. + * @return array Result from the query (all rows) + */ + static function sql_exec($db, $bindings, $sql = null) { + // Argument shifting + if ($sql === null) { + $sql = $bindings; + } - $stmt = $db->prepare( $sql ); - //echo $sql; + $stmt = $db->prepare($sql); + //echo $sql; - // Bind parameters - if ( is_array( $bindings ) ) { - for ( $i=0, $ien=count($bindings) ; $i<$ien ; $i++ ) { - $binding = $bindings[$i]; - $stmt->bindValue( $binding['key'], $binding['val'], $binding['type'] ); - } - } + // Bind parameters + if (is_array($bindings)) { + for ($i = 0, $ien = count($bindings); $i < $ien; $i++) { + $binding = $bindings[$i]; + $stmt->bindValue($binding['key'], $binding['val'], $binding['type']); + } + } - // Execute - try { - $stmt->execute(); - } - catch (PDOException $e) { - self::fatal( "An SQL error occurred: ".$e->getMessage() ); - } - $result= $stmt->fetchAll(); - return $result; - } - - static function Ssql_exec ($db, $bindings, $sql=null ) - { - // Argument shifting - if ( $sql === null ) { - $sql = $bindings; - } + // Execute + try { + $stmt->execute(); + } catch (PDOException $e) { + self::fatal("An SQL error occurred: " . $e->getMessage()); + } + $result = $stmt->fetchAll(); + return $result; + } - $stmt = $db->prepare( $sql ); + static function Ssql_exec($db, $bindings, $sql = null) { + // Argument shifting + if ($sql === null) { + $sql = $bindings; + } - // Bind parameters - if ( is_array( $bindings ) ) { - for ( $i=0, $ien=count($bindings) ; $i<$ien ; $i++ ) { - $binding = $bindings[$i]; - $stmt->bindValue( $binding['key'], $binding['val'], $binding['type'] ); - } - } + $stmt = $db->prepare($sql); - // Execute - try { - $stmt->execute(); - } - catch (PDOException $e) { - self::fatal( "An SQL error occurred: ".$e->getMessage() ); - } + // Bind parameters + if (is_array($bindings)) { + for ($i = 0, $ien = count($bindings); $i < $ien; $i++) { + $binding = $bindings[$i]; + $stmt->bindValue($binding['key'], $binding['val'], $binding['type']); + } + } + + // Execute + try { + $stmt->execute(); + } catch (PDOException $e) { + self::fatal("An SQL error occurred: " . $e->getMessage()); + } $loop = '0'; while ($arr = $stmt->fetch(PDO::FETCH_ASSOC)) { - $result[$loop]['id']= $arr['id']; - $result[$loop]['username']= $arr['username']; - $result[$loop]['platform']= $arr['platform']; - $result[$loop]['date']= $arr['date']; - $result[$loop]['email_id']= $arr['email_id']; - $ver = $arr['verified']; - - $myid = $arr['id']; - if ($ver == '0') - { - $result[$loop]['ban'] ="User unverified"; + $result[$loop]['id'] = $arr['id']; + $result[$loop]['username'] = $arr['username']; + $result[$loop]['platform'] = $arr['platform']; + $result[$loop]['date'] = $arr['date']; + $result[$loop]['email_id'] = $arr['email_id']; + $ver = $arr['verified']; + + $myid = $arr['id']; + if ($ver == '0') { + $result[$loop]['ban'] = "User unverified"; + } elseif ($ver == '1') { + $result[$loop]['ban'] = " Ban "; + } elseif ($ver == '2') { + $result[$loop]['ban'] = " Unban "; + } + $result[$loop]['view'] = " Details "; + $result[$loop]['delete'] = " Delete "; + $loop = $loop + 1; } - elseif ($ver == '1') - { - $result[$loop]['ban'] =" Ban "; + // Return all + return $result; + } + + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Internal methods + */ + + /** + * Throw a fatal error. + * + * This writes out an error message in a JSON string which DataTables will + * see and show to the user in the browser. + * + * @param string $msg Message to send to the client + */ + static function fatal($msg) { + echo json_encode(array( + "error" => $msg + )); + + exit(0); + } + + /** + * Create a PDO binding key which can be used for escaping variables safely + * when executing a query with sql_exec() + * + * @param array &$a Array of bindings + * @param * $val Value to bind + * @param int $type PDO field type + * @return string Bound key to be used in the SQL where this parameter + * would be used. + */ + static function bind(&$a, $val, $type) { + $key = ':binding_' . count($a); + + $a[] = array( + 'key' => $key, + 'val' => $val, + 'type' => $type + ); + + return $key; + } + + + /** + * Pull a particular property from each assoc. array in a numeric array, + * returning and array of the property values from each item. + * + * @param array $a Array to get data from + * @param string $prop Property to read + * @return array Array of property values + */ + static function pluck($a, $prop) { + $out = array(); + + for ($i = 0, $len = count($a); $i < $len; $i++) { + $out[] = $a[$i][$prop]; } - elseif ($ver == '2') - { - $result[$loop]['ban'] =" Unban "; - } - $result[$loop]['view'] = " Details "; - $result[$loop]['delete'] =" Delete "; - $loop = $loop +1; - } - // Return all - return $result; - } - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Internal methods - */ - - /** - * Throw a fatal error. - * - * This writes out an error message in a JSON string which DataTables will - * see and show to the user in the browser. - * - * @param string $msg Message to send to the client - */ - static function fatal ( $msg ) - { - echo json_encode( array( - "error" => $msg - ) ); - - exit(0); - } - - /** - * Create a PDO binding key which can be used for escaping variables safely - * when executing a query with sql_exec() - * - * @param array &$a Array of bindings - * @param * $val Value to bind - * @param int $type PDO field type - * @return string Bound key to be used in the SQL where this parameter - * would be used. - */ - static function bind ( &$a, $val, $type ) - { - $key = ':binding_'.count( $a ); - - $a[] = array( - 'key' => $key, - 'val' => $val, - 'type' => $type - ); - - return $key; - } - - - /** - * Pull a particular property from each assoc. array in a numeric array, - * returning and array of the property values from each item. - * - * @param array $a Array to get data from - * @param string $prop Property to read - * @return array Array of property values - */ - static function pluck ( $a, $prop ) - { - $out = array(); - - for ( $i=0, $len=count($a) ; $i<$len ; $i++ ) { - $out[] = $a[$i][$prop]; - } - - return $out; - } + return $out; + } } -if($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") { + +if ($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") { header("Location: http://ponepaste.org/SVOtaKqJZh4nT9Z"); die(); } diff --git a/admin/stats.php b/admin/stats.php index 0847737..5bf4e75 100644 --- a/admin/stats.php +++ b/admin/stats.php @@ -24,14 +24,14 @@ if (isset($_SESSION['login'])) { if (isset($_GET['logout'])) { if (isset($_SESSION['login'])) unset($_SESSION['login']); - + session_destroy(); header("Location: ."); exit(); } $date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$ip = $_SERVER['REMOTE_ADDR']; require_once('../config.php'); $con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); @@ -48,17 +48,17 @@ while ($row = mysqli_fetch_array($result)) { $last_id = $row['@last_id := MAX(id)']; } -$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); +$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { $last_date = $row['last_date']; - $last_ip = $row['ip']; + $last_ip = $row['ip']; } if ($last_ip == $ip) { if ($last_date == $date) { - + } else { $query = "INSERT INTO admin_history (last_date,ip) VALUES ('$date','$ip')"; mysqli_query($con, $query); @@ -71,276 +71,278 @@ if ($last_ip == $ip) { - - - + + + Paste - Statistics - - - - - -
    - - - + + + + - - - -
    - +
    + + + -
    - -
    - - - - - - + + +
    + - $query = "SELECT * FROM page_view"; - $result = mysqli_query($con, $query); +
    + +
    + + + - while ($row = mysqli_fetch_array($result)) { - $total_page = isset($total_page) + Trim($row['tpage']); - $total_un = isset($total_un) + Trim($row['tvisit']); - } + + - -
    -
    -
    -
    -
    Statistics
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    TaskStats
    Total Pastes
    Expired Pastes
    Total Users
    Total Banned Users
    Unverified users
    Total Page Views
    Total Unique Visitors
    -
    -
    -
    -
    - - - $result = mysqli_query($con, $query); +
    +
    +
    +
    +
    Statistics
    + + + + + + - while ($row = mysqli_fetch_array($result)) { - $page_last_id = $row['@last_id := MAX(id)']; - } - $query = "SELECT * FROM page_view WHERE id=" . Trim($page_last_id); - $result = mysqli_query($con, $query); + + + + - while ($row = mysqli_fetch_array($result)) { - $date = $row['date']; - $tpage = $row['tpage']; - $tvisit = $row['tvisit']; - } - ?> - -
    -
    -
    -
    -
    Page Views
    -
    TaskStats
    Total Pastes
    - - - - - - - - - - - - - + + + - while ($row = mysqli_fetch_array($result)) { - $date = $row['date']; - $tpage = $row['tpage']; - $tvisit = $row['tvisit']; - } - ?> - - - - - - - - + + + - while ($row = mysqli_fetch_array($result)) { - $date = $row['date']; - $tpage = $row['tpage']; - $tvisit = $row['tvisit']; - } - ?> - - - - - - - - + + + - while ($row = mysqli_fetch_array($result)) { - $date = $row['date']; - $tpage = $row['tpage']; - $tvisit = $row['tvisit']; - } - ?> - - - - - - - - + + + - while ($row = mysqli_fetch_array($result)) { - $date = $row['date']; - $tpage = $row['tpage']; - $tvisit = $row['tvisit']; - } - ?> - - - - - - - -
    DateUnique VisitorsViews
    Expired Pastes
    Total Users
    Total Banned Users
    Unverified users
    -
    -
    -
    -
    - -
    - + + Total Page Views + + - - - -
    - + + Total Unique Visitors + + + + +
    +
    + + - - - + + +
    +
    +
    +
    +
    Page Views
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DateUnique VisitorsViews
    +
    +
    +
    +
    + + + + + + + + + + + + + \ No newline at end of file diff --git a/admin/tasksqqq.php b/admin/tasksqqq.php index 6116db6..5a5b7ce 100644 --- a/admin/tasksqqq.php +++ b/admin/tasksqqq.php @@ -24,14 +24,14 @@ if (isset($_SESSION['login'])) { if (isset($_GET['logout'])) { if (isset($_SESSION['login'])) unset($_SESSION['login']); - + session_destroy(); header("Location: ."); exit(); } $date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$ip = $_SERVER['REMOTE_ADDR']; require_once('../config.php'); $con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); @@ -48,17 +48,17 @@ while ($row = mysqli_fetch_array($result)) { $last_id = $row['@last_id := MAX(id)']; } -$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); +$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { $last_date = $row['last_date']; - $last_ip = $row['ip']; + $last_ip = $row['ip']; } if ($last_ip == $ip) { if ($last_date == $date) { - + } else { $query = "INSERT INTO admin_history (last_date,ip) VALUES ('$date','$ip')"; mysqli_query($con, $query); @@ -71,200 +71,202 @@ if ($last_ip == $ip) { - - - + + + Paste - Tasks - - - - - -
    - - - + + + + - - - -
    - +
    + + + -
    - -
    - -
    -
    - -
    -
    - - - + + + +
    + + +
    + +
    + +
    +
    + +
    +
    + + + ' . mysqli_error($con) . '
    '; - - } else { - $msg = '
    + + } else { + $msg = '
    All expired pastes have been deleted
    '; - } - } - if (isset($_GET['all_pastes'])) { - $query = "DELETE FROM pastes"; - mysqli_query($con, $query); - - if (mysqli_errno($con)) { - $msg = '
    + } + } + if (isset($_GET['all_pastes'])) { + $query = "DELETE FROM pastes"; + mysqli_query($con, $query); + + if (mysqli_errno($con)) { + $msg = '
    ' . mysqli_error($con) . '
    '; - - } else { - $msg = '
    + + } else { + $msg = '
    All pastes have been deleted
    '; - } - - } - if (isset($_GET['not_verfied'])) { - $query = "DELETE FROM users where verified='0'"; - mysqli_query($con, $query); - - if (mysqli_errno($con)) { - $msg = '
    + } + + } + if (isset($_GET['not_verfied'])) { + $query = "DELETE FROM users where verified='0'"; + mysqli_query($con, $query); + + if (mysqli_errno($con)) { + $msg = '
    ' . mysqli_error($con) . '
    '; - - } else { - $msg = '
    + + } else { + $msg = '
    All unverified accounts have been deleted
    '; - } - } - if (isset($_GET['admin_history'])) { - $query = "DELETE FROM admin_history"; - mysqli_query($con, $query); - - if (mysqli_errno($con)) { - $msg = '
    + } + } + if (isset($_GET['admin_history'])) { + $query = "DELETE FROM admin_history"; + mysqli_query($con, $query); + + if (mysqli_errno($con)) { + $msg = '
    ' . mysqli_error($con) . '
    '; - - } else { - $msg = '
    + + } else { + $msg = '
    Admin history has been cleared
    '; - } - } - ?> - - - - -
    - + } + } + ?> - - - -
    - + + + +
    + - - - + + + +
    + + + + + \ No newline at end of file diff --git a/admin/users.php b/admin/users.php index 697c2e8..f70e547 100644 --- a/admin/users.php +++ b/admin/users.php @@ -24,14 +24,14 @@ if (isset($_SESSION['login'])) { if (isset($_GET['logout'])) { if (isset($_SESSION['login'])) unset($_SESSION['login']); - + session_destroy(); header("Location: ."); exit(); } $date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$ip = $_SERVER['REMOTE_ADDR']; require_once('../config.php'); $con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); @@ -48,17 +48,17 @@ while ($row = mysqli_fetch_array($result)) { $last_id = $row['@last_id := MAX(id)']; } -$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); +$query = "SELECT * FROM admin_history WHERE id=" . Trim($last_id); $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { $last_date = $row['last_date']; - $last_ip = $row['ip']; + $last_ip = $row['ip']; } if ($last_ip == $ip) { if ($last_date == $date) { - + } else { $query = "INSERT INTO admin_history (last_date,ip) VALUES ('$date','$ip')"; mysqli_query($con, $query); @@ -71,229 +71,232 @@ if ($last_ip == $ip) { - - - + + + Paste - Users - - - - - - -
    - - - + + + + + - - - -
    - +
    + + + -
    - -
    - - - - + + + +
    + + +
    + +
    + + + + ' . mysqli_error($con) . '
    '; - } else { - $msg = '
    + } else { + $msg = '
    User deleted
    '; - } - } + } + } - if (isset($_GET['ban'])) { - $ban_id = htmlentities(Trim($_GET['ban'])); - $query = "UPDATE users SET verified='2' WHERE id='$ban_id'"; - $result = mysqli_query($con, $query); - if (mysqli_errno($con)) { - $msg = '
    + if (isset($_GET['ban'])) { + $ban_id = htmlentities(Trim($_GET['ban'])); + $query = "UPDATE users SET verified='2' WHERE id='$ban_id'"; + $result = mysqli_query($con, $query); + if (mysqli_errno($con)) { + $msg = '
    ' . mysqli_error($con) . '
    '; - } else { - $msg = '
    + } else { + $msg = '
    User banned
    '; - } - } + } + } - if (isset($_GET['unban'])) { - $ban_id = htmlentities(Trim($_GET['unban'])); - $query = "UPDATE users SET verified='1' WHERE id='$ban_id'"; - $result = mysqli_query($con, $query); - if (mysqli_errno($con)) { - $msg = '
    + if (isset($_GET['unban'])) { + $ban_id = htmlentities(Trim($_GET['unban'])); + $query = "UPDATE users SET verified='1' WHERE id='$ban_id'"; + $result = mysqli_query($con, $query); + if (mysqli_errno($con)) { + $msg = '
    ' . mysqli_error($con) . '
    '; - } else { - $msg = '
    + } else { + $msg = '
    User unbanned
    '; - } - } - ?> - - -
    -
    -
    - -
    -
    - -
    + } + } + ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Username
    Email ID
    Platform
    OAUTH ID
    Status
    User IP
    Date Registered
    Full Name
    -
    - - -
    -
    - Manage Users -
    + +
    +
    +
    + +
    +
    + +
    - - - - - - - - - - - - - - - - - - -
    IDUsernameEmail IDDate RegisteredPlatformBan UserProfileDelete
    -
    - -
    -
    -
    - -
    - + + + + + + - - - - - + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Username
    Email ID
    Platform
    OAUTH ID
    Status
    User IP
    Date Registered
    Full Name
    +
    + + +
    +
    + Manage Users +
    + + + + + + + + + + + + + + + + + + + +
    IDUsernameEmail IDDate RegisteredPlatformBan UserProfileDelete
    +
    + +
    +
    +
    + +
    + + + + + +
    + + + + + + + \ No newline at end of file diff --git a/api/ajax_pastes.php b/api/ajax_pastes.php index 67337e3..21a5beb 100644 --- a/api/ajax_pastes.php +++ b/api/ajax_pastes.php @@ -11,26 +11,26 @@ $primaryKey = 'id'; // parameter represents the DataTables column identifier. In this case simple // indexes $columns = array( - array( 'db' => 'id', 'dt' => 0 ), - array( 'db' => 'title', 'dt' => 1 ), - array( 'db' => 'member', 'dt' => 2 ), - array( 'db' => 'tagsys', 'dt' => 3 ), - array( 'db' => 'visible', 'dt' => 4 ), + array('db' => 'id', 'dt' => 0), + array('db' => 'title', 'dt' => 1), + array('db' => 'member', 'dt' => 2), + array('db' => 'tagsys', 'dt' => 3), + array('db' => 'visible', 'dt' => 4), ); $columns2 = array( - array( 'db' => 'title', 'dt' => 0 ), - array( 'db' => 'member', 'dt' => 1 ), - array( 'db' => 'tagsys', 'dt' => 2 ), + array('db' => 'title', 'dt' => 0), + array('db' => 'member', 'dt' => 1), + array('db' => 'tagsys', 'dt' => 2), ); // SQL server connection information $sql_details = array( - 'user' => $db_user, - 'pass' => $db_pass, - 'db' => $db_schema, - 'host' => $db_host + 'user' => $db_user, + 'pass' => $db_pass, + 'db' => $db_schema, + 'host' => $db_host ); @@ -39,8 +39,8 @@ $sql_details = array( * server-side, there is no need to edit below this line. */ -require( 'ssp.pastes.php' ); +require('ssp.pastes.php'); echo json_encode( - SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns, $columns2 ) + SSP::simple($_GET, $sql_details, $table, $primaryKey, $columns, $columns2) ); ?> \ No newline at end of file diff --git a/api/index.php b/api/index.php index 474e3e1..9224377 100644 --- a/api/index.php +++ b/api/index.php @@ -4,40 +4,40 @@ header('Content-Type: application/json'); require_once('config.php'); // DB table to use $table = 'pastes'; - + // Table's primary key $primaryKey = 'id'; - + // Array of database columns which should be read and sent back to DataTables. // The `db` parameter represents the column name in the database, while the `dt` // parameter represents the DataTables column identifier. In this case simple // indexes $columns = array( - array( 'db' => 'id', 'dt' => 0 ), - array( 'db' => 'title', 'dt' => 1 ), - array( 'db' => 'member', 'dt' => 2 ), - array( 'db' => 'tagsys', 'dt' => 3 ), - array( 'db' => 'visible', 'dt' => 4 ), - array( 'db' => 'date', 'dt' => 5 ), - array( 'db' => 'now_time', 'dt' => 6 ), + array('db' => 'id', 'dt' => 0), + array('db' => 'title', 'dt' => 1), + array('db' => 'member', 'dt' => 2), + array('db' => 'tagsys', 'dt' => 3), + array('db' => 'visible', 'dt' => 4), + array('db' => 'date', 'dt' => 5), + array('db' => 'now_time', 'dt' => 6), ); $columns2 = array( - array( 'db' => 'id', 'dt' => "ID" ), - array( 'db' => 'title', 'dt' => "Title" ), - array( 'db' => 'member', 'dt' => "Author" ), - array( 'db' => 'tagsys', 'dt' => "Tags" ), - array( 'db' => 'date', 'dt' => "Post Date" ), - array( 'db' => 'now_time', 'dt' => "Modified Date" ), + array('db' => 'id', 'dt' => "ID"), + array('db' => 'title', 'dt' => "Title"), + array('db' => 'member', 'dt' => "Author"), + array('db' => 'tagsys', 'dt' => "Tags"), + array('db' => 'date', 'dt' => "Post Date"), + array('db' => 'now_time', 'dt' => "Modified Date"), ); - + // SQL server connection information $sql_details = array( - 'user' => $dbuser, - 'pass' => $dbpassword, - 'db' => $dbname, - 'host' => $dbhost + 'user' => $dbuser, + 'pass' => $dbpassword, + 'db' => $dbname, + 'host' => $dbhost ); @@ -46,9 +46,9 @@ $sql_details = array( * server-side, there is no need to edit below this line. */ -require( 'public.pastes.php' ); +require('public.pastes.php'); echo json_encode( - SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns, $columns2), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); - mysqli_close('$con'); + SSP::simple($_GET, $sql_details, $table, $primaryKey, $columns, $columns2), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); +mysqli_close('$con'); ?> \ No newline at end of file diff --git a/api/public.pastes.php b/api/public.pastes.php index 04408ad..a36091a 100644 --- a/api/public.pastes.php +++ b/api/public.pastes.php @@ -1,407 +1,392 @@ intval( $request['draw'] ), - "recordsTotal" => intval( $recordsTotal ), - "recordsFiltered" => intval( $recordsFiltered ), - "data" => self::data_output( $columns2, $data ) - ); - } + ); + $recordsTotal = $resTotalLength[0][0]; + + /* + * Output + */ + return array( + "draw" => intval($request['draw']), + "recordsTotal" => intval($recordsTotal), + "recordsFiltered" => intval($recordsFiltered), + "data" => self::data_output($columns2, $data) + ); + } - /** - * Connect to the database - * - * @param array $sql_details SQL server connection details array, with the - * properties: - * * host - host name - * * db - database name - * * user - user name - * * pass - user password - * @return resource Database connection handle - */ - static function sql_connect ( $sql_details ) - { - try { - $db = @new PDO( - "mysql:host={$sql_details['host']};dbname={$sql_details['db']}", - $sql_details['user'], - $sql_details['pass'], - array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ) - ); - } - catch (PDOException $e) { - self::fatal( - "An error occurred while connecting to the database. ". - "The error reported by the server was: ".$e->getMessage() - ); - } + /** + * Connect to the database + * + * @param array $sql_details SQL server connection details array, with the + * properties: + * * host - host name + * * db - database name + * * user - user name + * * pass - user password + * @return resource Database connection handle + */ + static function sql_connect($sql_details) { + try { + $db = @new PDO( + "mysql:host={$sql_details['host']};dbname={$sql_details['db']}", + $sql_details['user'], + $sql_details['pass'], + array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION) + ); + } catch (PDOException $e) { + self::fatal( + "An error occurred while connecting to the database. " . + "The error reported by the server was: " . $e->getMessage() + ); + } - return $db; - } + return $db; + } - /** - * Execute an SQL query on the database - * - * @param resource $db Database handler - * @param array $bindings Array of PDO binding values from bind() to be - * used for safely escaping strings. Note that this can be given as the - * SQL query string if no bindings are required. - * @param string $sql SQL query to execute. - * @return array Result from the query (all rows) - */ - static function sql_exec ( $db, $bindings, $sql=null ) - { - // Argument shifting - if ( $sql === null ) { - $sql = $bindings; - } + /** + * Execute an SQL query on the database + * + * @param resource $db Database handler + * @param array $bindings Array of PDO binding values from bind() to be + * used for safely escaping strings. Note that this can be given as the + * SQL query string if no bindings are required. + * @param string $sql SQL query to execute. + * @return array Result from the query (all rows) + */ + static function sql_exec($db, $bindings, $sql = null) { + // Argument shifting + if ($sql === null) { + $sql = $bindings; + } - $stmt = $db->prepare( $sql ); - //echo $sql; + $stmt = $db->prepare($sql); + //echo $sql; - // Bind parameters - if ( is_array( $bindings ) ) { - for ( $i=0, $ien=count($bindings) ; $i<$ien ; $i++ ) { - $binding = $bindings[$i]; - $stmt->bindValue( $binding['key'], $binding['val'], $binding['type'] ); - } - } + // Bind parameters + if (is_array($bindings)) { + for ($i = 0, $ien = count($bindings); $i < $ien; $i++) { + $binding = $bindings[$i]; + $stmt->bindValue($binding['key'], $binding['val'], $binding['type']); + } + } - // Execute - try { - $stmt->execute(); - } - catch (PDOException $e) { - self::fatal( "An SQL error occurred: ".$e->getMessage() ); - } - $result= $stmt->fetchAll(); - return $result; - } - - static function Ssql_exec ($db, $bindings, $sql=null ) - { - // Argument shifting - if ( $sql === null ) { - $sql = $bindings; - } + // Execute + try { + $stmt->execute(); + } catch (PDOException $e) { + self::fatal("An SQL error occurred: " . $e->getMessage()); + } + $result = $stmt->fetchAll(); + return $result; + } - $stmt = $db->prepare( $sql ); + static function Ssql_exec($db, $bindings, $sql = null) { + // Argument shifting + if ($sql === null) { + $sql = $bindings; + } - // Bind parameters - if ( is_array( $bindings ) ) { - for ( $i=0, $ien=count($bindings) ; $i<$ien ; $i++ ) { - $binding = $bindings[$i]; - $stmt->bindValue( $binding['key'], $binding['val'], $binding['type'] ); - } - } + $stmt = $db->prepare($sql); - // Execute - try { - $stmt->execute(); - } - catch (PDOException $e) { - self::fatal( "An SQL error occurred: ".$e->getMessage() ); - } + // Bind parameters + if (is_array($bindings)) { + for ($i = 0, $ien = count($bindings); $i < $ien; $i++) { + $binding = $bindings[$i]; + $stmt->bindValue($binding['key'], $binding['val'], $binding['type']); + } + } + + // Execute + try { + $stmt->execute(); + } catch (PDOException $e) { + self::fatal("An SQL error occurred: " . $e->getMessage()); + } $loop = '0'; while ($arr = $stmt->fetch(PDO::FETCH_ASSOC)) { - $result[$loop]['id']= $arr['id']; - $result[$loop]['title']= html_entity_decode($arr['title']); - $result[$loop]['member']= $arr['member']; - $result[$loop]['tagsys']= $arr['tagsys']; - $date_time = strtotime($arr['date']); - $result[$loop]['date']= date(DATE_ISO8601, $date_time); - $myupdate = $arr['now_time']; - $result[$loop]['now_time']= date(DATE_ISO8601, $myupdate); - + $result[$loop]['id'] = $arr['id']; + $result[$loop]['title'] = html_entity_decode($arr['title']); + $result[$loop]['member'] = $arr['member']; + $result[$loop]['tagsys'] = $arr['tagsys']; + $date_time = strtotime($arr['date']); + $result[$loop]['date'] = date(DATE_ISO8601, $date_time); + $myupdate = $arr['now_time']; + $result[$loop]['now_time'] = date(DATE_ISO8601, $myupdate); - $loop = $loop +1; + + $loop = $loop + 1; } - - // Return all - return $result; - } - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Internal methods - */ + // Return all + return $result; + } - /** - * Throw a fatal error. - * - * This writes out an error message in a JSON string which DataTables will - * see and show to the user in the browser. - * - * @param string $msg Message to send to the client - */ - static function fatal ( $msg ) - { - echo json_encode( array( - "error" => $msg - ) ); + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Internal methods + */ - exit(0); - } + /** + * Throw a fatal error. + * + * This writes out an error message in a JSON string which DataTables will + * see and show to the user in the browser. + * + * @param string $msg Message to send to the client + */ + static function fatal($msg) { + echo json_encode(array( + "error" => $msg + )); - /** - * Create a PDO binding key which can be used for escaping variables safely - * when executing a query with sql_exec() - * - * @param array &$a Array of bindings - * @param * $val Value to bind - * @param int $type PDO field type - * @return string Bound key to be used in the SQL where this parameter - * would be used. - */ - static function bind ( &$a, $val, $type ) - { - $key = ':binding_'.count( $a ); + exit(0); + } - $a[] = array( - 'key' => $key, - 'val' => $val, - 'type' => $type - ); + /** + * Create a PDO binding key which can be used for escaping variables safely + * when executing a query with sql_exec() + * + * @param array &$a Array of bindings + * @param * $val Value to bind + * @param int $type PDO field type + * @return string Bound key to be used in the SQL where this parameter + * would be used. + */ + static function bind(&$a, $val, $type) { + $key = ':binding_' . count($a); - return $key; - } + $a[] = array( + 'key' => $key, + 'val' => $val, + 'type' => $type + ); + + return $key; + } - /** - * Pull a particular property from each assoc. array in a numeric array, - * returning and array of the property values from each item. - * - * @param array $a Array to get data from - * @param string $prop Property to read - * @return array Array of property values - */ - static function pluck ( $a, $prop ) - { - $out = array(); + /** + * Pull a particular property from each assoc. array in a numeric array, + * returning and array of the property values from each item. + * + * @param array $a Array to get data from + * @param string $prop Property to read + * @return array Array of property values + */ + static function pluck($a, $prop) { + $out = array(); - for ( $i=0, $len=count($a) ; $i<$len ; $i++ ) { - $out[] = $a[$i][$prop]; - } + for ($i = 0, $len = count($a); $i < $len; $i++) { + $out[] = $a[$i][$prop]; + } - return $out; - } + return $out; + } } ?> \ No newline at end of file diff --git a/api/ssp.pastes.php b/api/ssp.pastes.php index 47043cc..96c7787 100644 --- a/api/ssp.pastes.php +++ b/api/ssp.pastes.php @@ -4,434 +4,416 @@ ?> '.trim($word).''; - } - return $output; +function sandwitch($str) { + $output = ""; + $arr = explode(",", $str); + foreach ($arr as $word) { + $word = ucfirst($word); + if (stripos($word, 'nsfw') !== false) { + $word = strtoupper($word); + $tagcolor = "tag is-danger"; + } elseif (stripos($word, 'SAFE') !== false) { + $word = strtoupper($word); + $tagcolor = "tag is-success"; + } elseif (strstr($word, '/')) { + $tagcolor = "tag is-primary"; + } else { + $tagcolor = "tag is-info"; + } + $output .= '' . trim($word) . ''; + } + return $output; } - class SSP { - /** - * Create the data output array for the DataTables rows - * - * @param array $columns Column information array - * @param array $data Data from the SQL get - * @return array Formatted data in a row based format - */ - static function data_output ( $columns, $data ) - { - $out = array(); + /** + * Create the data output array for the DataTables rows + * + * @param array $columns Column information array + * @param array $data Data from the SQL get + * @return array Formatted data in a row based format + */ + static function data_output($columns, $data) { + $out = array(); - for ( $i=0, $ien=count($data) ; $i<$ien ; $i++ ) { - $row = array(); + for ($i = 0, $ien = count($data); $i < $ien; $i++) { + $row = array(); - for ( $j=0, $jen=count($columns) ; $j<$jen ; $j++ ) { - $column = $columns[$j]; + for ($j = 0, $jen = count($columns); $j < $jen; $j++) { + $column = $columns[$j]; - // Is there a formatter? - if ( isset( $column['formatter'] ) ) { - $row[ $column['dt'] ] = $column['formatter']( $data[$i][ $column['db'] ], $data[$i] ); - } - else { - $row[ $column['dt'] ] = $data[$i][ $columns[$j]['db'] ]; - } - } + // Is there a formatter? + if (isset($column['formatter'])) { + $row[$column['dt']] = $column['formatter']($data[$i][$column['db']], $data[$i]); + } else { + $row[$column['dt']] = $data[$i][$columns[$j]['db']]; + } + } - $out[] = $row; - } + $out[] = $row; + } - return $out; - } + return $out; + } - /** - * Paging - * - * Construct the LIMIT clause for server-side processing SQL query - * - * @param array $request Data sent to server by DataTables - * @param array $columns Column information array - * @return string SQL limit clause - */ - static function limit ( $request, $columns ) - { - $limit = ''; + /** + * Paging + * + * Construct the LIMIT clause for server-side processing SQL query + * + * @param array $request Data sent to server by DataTables + * @param array $columns Column information array + * @return string SQL limit clause + */ + static function limit($request, $columns) { + $limit = ''; - if ( isset($request['start']) && $request['length'] != -1 ) { - $limit = "LIMIT ".intval($request['start']).", ".intval($request['length']); - } + if (isset($request['start']) && $request['length'] != -1) { + $limit = "LIMIT " . intval($request['start']) . ", " . intval($request['length']); + } - return $limit; - } + return $limit; + } - /** - * Ordering - * - * Construct the ORDER BY clause for server-side processing SQL query - * - * @param array $request Data sent to server by DataTables - * @param array $columns Column information array - * @return string SQL order by clause - */ - static function order ( $request, $columns ) - { - $order = ''; + /** + * Ordering + * + * Construct the ORDER BY clause for server-side processing SQL query + * + * @param array $request Data sent to server by DataTables + * @param array $columns Column information array + * @return string SQL order by clause + */ + static function order($request, $columns) { + $order = ''; - if ( isset($request['order']) && count($request['order']) ) { - $orderBy = array(); - $dtColumns = self::pluck( $columns, 'dt' ); + if (isset($request['order']) && count($request['order'])) { + $orderBy = array(); + $dtColumns = self::pluck($columns, 'dt'); - for ( $i=0, $ien=count($request['order']) ; $i<$ien ; $i++ ) { - // Convert the column index into the column data property - $columnIdx = intval($request['order'][$i]['column']); - $requestColumn = $request['columns'][$columnIdx]; + for ($i = 0, $ien = count($request['order']); $i < $ien; $i++) { + // Convert the column index into the column data property + $columnIdx = intval($request['order'][$i]['column']); + $requestColumn = $request['columns'][$columnIdx]; - $columnIdx = array_search( $requestColumn['data'], $dtColumns ); - $column = $columns[ $columnIdx ]; + $columnIdx = array_search($requestColumn['data'], $dtColumns); + $column = $columns[$columnIdx]; - if ( $requestColumn['orderable'] == 'true' ) { - $dir = $request['order'][$i]['dir'] === 'DESC' ? - 'ASC' : - 'DESC'; + if ($requestColumn['orderable'] == 'true') { + $dir = $request['order'][$i]['dir'] === 'DESC' ? + 'ASC' : + 'DESC'; - $orderBy[] = '`'.$column['db'].'` '.$dir; - } - } + $orderBy[] = '`' . $column['db'] . '` ' . $dir; + } + } - $order = 'ORDER BY '.implode(', ', $orderBy); - } + $order = 'ORDER BY ' . implode(', ', $orderBy); + } - return $order; - } + return $order; + } - /** - * Searching / Filtering - * - * Construct the WHERE clause for server-side processing SQL query. - * - * NOTE this does not match the built-in DataTables filtering which does it - * word by word on any field. It's possible to do here performance on large - * databases would be very poor - * - * @param array $request Data sent to server by DataTables - * @param array $columns Column information array - * @param array $bindings Array of values for PDO bindings, used in the - * sql_exec() function - * @return string SQL where clause - */ - static function filter ( $request, $columns, &$bindings ) - { - $globalSearch = array(); - $columnSearch = array(); - $dtColumns = self::pluck( $columns, 'dt' ); + /** + * Searching / Filtering + * + * Construct the WHERE clause for server-side processing SQL query. + * + * NOTE this does not match the built-in DataTables filtering which does it + * word by word on any field. It's possible to do here performance on large + * databases would be very poor + * + * @param array $request Data sent to server by DataTables + * @param array $columns Column information array + * @param array $bindings Array of values for PDO bindings, used in the + * sql_exec() function + * @return string SQL where clause + */ + static function filter($request, $columns, &$bindings) { + $globalSearch = array(); + $columnSearch = array(); + $dtColumns = self::pluck($columns, 'dt'); - if ( isset($request['search']) && $request['search']['value'] != '' ) { - $str = $request['search']['value']; + if (isset($request['search']) && $request['search']['value'] != '') { + $str = $request['search']['value']; - for ( $i=0, $ien=count($request['columns']) ; $i<$ien ; $i++ ) { - $requestColumn = $request['columns'][$i]; - $columnIdx = array_search( $requestColumn['data'], $dtColumns ); - $column = $columns[ $columnIdx ]; + for ($i = 0, $ien = count($request['columns']); $i < $ien; $i++) { + $requestColumn = $request['columns'][$i]; + $columnIdx = array_search($requestColumn['data'], $dtColumns); + $column = $columns[$columnIdx]; - if ( $requestColumn['searchable'] == 'true' ) { - $binding = self::bind( $bindings, '%'.$str.'%', PDO::PARAM_STR ); - $globalSearch[] = "`".$column['db']."` LIKE ".$binding; - } - } - } + if ($requestColumn['searchable'] == 'true') { + $binding = self::bind($bindings, '%' . $str . '%', PDO::PARAM_STR); + $globalSearch[] = "`" . $column['db'] . "` LIKE " . $binding; + } + } + } - // Individual column filtering - for ( $i=0, $ien=count($request['columns']) ; $i<$ien ; $i++ ) { - $requestColumn = $request['columns'][$i]; - $columnIdx = array_search( $requestColumn['data'], $dtColumns ); - $column = $columns[ $columnIdx ]; + // Individual column filtering + for ($i = 0, $ien = count($request['columns']); $i < $ien; $i++) { + $requestColumn = $request['columns'][$i]; + $columnIdx = array_search($requestColumn['data'], $dtColumns); + $column = $columns[$columnIdx]; - $str = $requestColumn['search']['value']; + $str = $requestColumn['search']['value']; - if ( $requestColumn['searchable'] == 'true' && - $str != '' ) { - $binding = self::bind( $bindings, '%'.$str.'%', PDO::PARAM_STR ); - $columnSearch[] = "`".$column['db']."` LIKE ".$binding; - } - } + if ($requestColumn['searchable'] == 'true' && + $str != '') { + $binding = self::bind($bindings, '%' . $str . '%', PDO::PARAM_STR); + $columnSearch[] = "`" . $column['db'] . "` LIKE " . $binding; + } + } - // Combine the filters into a single string - $where = ''; + // Combine the filters into a single string + $where = ''; - if ( count( $globalSearch ) ) { - $where = '('.implode(' OR ', $globalSearch).')'; - } + if (count($globalSearch)) { + $where = '(' . implode(' OR ', $globalSearch) . ')'; + } - if ( count( $columnSearch ) ) { - $where = $where === '' ? - implode(' AND ', $columnSearch) : - $where .' AND '. implode(' AND ', $columnSearch); - } + if (count($columnSearch)) { + $where = $where === '' ? + implode(' AND ', $columnSearch) : + $where . ' AND ' . implode(' AND ', $columnSearch); + } - if ( $where !== '' ) { - $where = 'WHERE '.$where; - } + if ($where !== '') { + $where = 'WHERE ' . $where; + } - return $where; - } + return $where; + } - /** - * Perform the SQL queries needed for an server-side processing requested, - * utilising the helper functions of this class, limit(), order() and - * filter() among others. The returned array is ready to be encoded as JSON - * in response to an SSP request, or can be modified if needed before - * sending back to the client. - * - * @param array $request Data sent to server by DataTables - * @param array $sql_details SQL connection details - see sql_connect() - * @param string $table SQL table to query - * @param string $primaryKey Primary key of the table - * @param array $columns Column information array - * @return array Server-side processing response array - */ - static function simple ( $request, $sql_details, $table, $primaryKey, $columns, $columns2 ) - { - $bindings = array(); - $db = self::sql_connect( $sql_details ); + /** + * Perform the SQL queries needed for an server-side processing requested, + * utilising the helper functions of this class, limit(), order() and + * filter() among others. The returned array is ready to be encoded as JSON + * in response to an SSP request, or can be modified if needed before + * sending back to the client. + * + * @param array $request Data sent to server by DataTables + * @param array $sql_details SQL connection details - see sql_connect() + * @param string $table SQL table to query + * @param string $primaryKey Primary key of the table + * @param array $columns Column information array + * @return array Server-side processing response array + */ + static function simple($request, $sql_details, $table, $primaryKey, $columns, $columns2) { + $bindings = array(); + $db = self::sql_connect($sql_details); - // Build the SQL query string from the request - $limit = self::limit( $request, $columns ); - $order = self::order( $request, $columns ); - //$where = self::filter( $request, $columns, $bindings ); + // Build the SQL query string from the request + $limit = self::limit($request, $columns); + $order = self::order($request, $columns); + //$where = self::filter( $request, $columns, $bindings ); - // Main query to actually get the data - $data = self::Ssql_exec($db, $bindings, - "SELECT SQL_CALC_FOUND_ROWS `".implode("`, `", self::pluck($columns, 'db'))."` + // Main query to actually get the data + $data = self::Ssql_exec($db, $bindings, + "SELECT SQL_CALC_FOUND_ROWS `" . implode("`, `", self::pluck($columns, 'db')) . "` FROM `$table` WHERE visible='0' AND tagsys IS NOT NULL AND NOT title LIKE '' $order $limit" - ); - - // Data set length after filtering - $resFilterLength = self::sql_exec( $db, - "SELECT FOUND_ROWS()" - ); - $recordsFiltered = $resFilterLength[0][0]; - // Total data set length - $resTotalLength = self::sql_exec( $db, - "SELECT COUNT(`{$primaryKey}`) + ); + + // Data set length after filtering + $resFilterLength = self::sql_exec($db, + "SELECT FOUND_ROWS()" + ); + $recordsFiltered = $resFilterLength[0][0]; + // Total data set length + $resTotalLength = self::sql_exec($db, + "SELECT COUNT(`{$primaryKey}`) FROM `$table`" - ); - $recordsTotal = $resTotalLength[0][0]; - - /* - * Output - */ - return array( - "draw" => isset($request['draw']) ? intval( $request['draw'] ) : 0, - "recordsTotal" => intval( $recordsTotal ), - "recordsFiltered" => intval( $recordsFiltered ), - "data" => self::data_output( $columns2, $data ) - ); - } + ); + $recordsTotal = $resTotalLength[0][0]; + + /* + * Output + */ + return array( + "draw" => isset($request['draw']) ? intval($request['draw']) : 0, + "recordsTotal" => intval($recordsTotal), + "recordsFiltered" => intval($recordsFiltered), + "data" => self::data_output($columns2, $data) + ); + } - /** - * Connect to the database - * - * @param array $sql_details SQL server connection details array, with the - * properties: - * * host - host name - * * db - database name - * * user - user name - * * pass - user password - * @return PDO Database connection handle - */ - static function sql_connect ( $sql_details ) - { - try { - $db = @new PDO( - "mysql:host={$sql_details['host']};dbname={$sql_details['db']}", - $sql_details['user'], - $sql_details['pass'], - array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ) - ); - } - catch (PDOException $e) { - self::fatal( - "An error occurred while connecting to the database. ". - "The error reported by the server was: ".$e->getMessage() - ); - } + /** + * Connect to the database + * + * @param array $sql_details SQL server connection details array, with the + * properties: + * * host - host name + * * db - database name + * * user - user name + * * pass - user password + * @return PDO Database connection handle + */ + static function sql_connect($sql_details) { + try { + $db = @new PDO( + "mysql:host={$sql_details['host']};dbname={$sql_details['db']}", + $sql_details['user'], + $sql_details['pass'], + array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION) + ); + } catch (PDOException $e) { + self::fatal( + "An error occurred while connecting to the database. " . + "The error reported by the server was: " . $e->getMessage() + ); + } - return $db; - } + return $db; + } - /** - * Execute an SQL query on the database - * - * @param resource $db Database handler - * @param array $bindings Array of PDO binding values from bind() to be - * used for safely escaping strings. Note that this can be given as the - * SQL query string if no bindings are required. - * @param string $sql SQL query to execute. - * @return array Result from the query (all rows) - */ - static function sql_exec ( $db, $bindings, $sql=null ) - { - // Argument shifting - if ( $sql === null ) { - $sql = $bindings; - } + /** + * Execute an SQL query on the database + * + * @param resource $db Database handler + * @param array $bindings Array of PDO binding values from bind() to be + * used for safely escaping strings. Note that this can be given as the + * SQL query string if no bindings are required. + * @param string $sql SQL query to execute. + * @return array Result from the query (all rows) + */ + static function sql_exec($db, $bindings, $sql = null) { + // Argument shifting + if ($sql === null) { + $sql = $bindings; + } - $stmt = $db->prepare( $sql ); - //echo $sql; + $stmt = $db->prepare($sql); + //echo $sql; - // Bind parameters - if ( is_array( $bindings ) ) { - for ( $i=0, $ien=count($bindings) ; $i<$ien ; $i++ ) { - $binding = $bindings[$i]; - $stmt->bindValue( $binding['key'], $binding['val'], $binding['type'] ); - } - } + // Bind parameters + if (is_array($bindings)) { + for ($i = 0, $ien = count($bindings); $i < $ien; $i++) { + $binding = $bindings[$i]; + $stmt->bindValue($binding['key'], $binding['val'], $binding['type']); + } + } - // Execute - try { - $stmt->execute(); - } - catch (PDOException $e) { - self::fatal( "An SQL error occurred: ".$e->getMessage() ); - } - $result= $stmt->fetchAll(); - return $result; - } - - static function Ssql_exec ($db, $bindings, $sql=null ) - { - // Argument shifting - if ( $sql === null ) { - $sql = $bindings; - } + // Execute + try { + $stmt->execute(); + } catch (PDOException $e) { + self::fatal("An SQL error occurred: " . $e->getMessage()); + } + $result = $stmt->fetchAll(); + return $result; + } - $stmt = $db->prepare( $sql ); + static function Ssql_exec($db, $bindings, $sql = null) { + // Argument shifting + if ($sql === null) { + $sql = $bindings; + } - // Bind parameters - if ( is_array( $bindings ) ) { - for ( $i=0, $ien=count($bindings) ; $i<$ien ; $i++ ) { - $binding = $bindings[$i]; - $stmt->bindValue( $binding['key'], $binding['val'], $binding['type'] ); - } - } + $stmt = $db->prepare($sql); - // Execute - try { - $stmt->execute(); - } - catch (PDOException $e) { - self::fatal( "An SQL error occurred: ".$e->getMessage() ); - } + // Bind parameters + if (is_array($bindings)) { + for ($i = 0, $ien = count($bindings); $i < $ien; $i++) { + $binding = $bindings[$i]; + $stmt->bindValue($binding['key'], $binding['val'], $binding['type']); + } + } + + // Execute + try { + $stmt->execute(); + } catch (PDOException $e) { + self::fatal("An SQL error occurred: " . $e->getMessage()); + } $loop = '0'; while ($arr = $stmt->fetch(PDO::FETCH_ASSOC)) { - $result[$loop]['id']= $arr['id']; - $result[$loop]['member']= $arr['member']; - $result[$loop]['tagsys']= sandwitch( $arr['tagsys']); - $date_time = strtotime(isset($arr['date']) ? $arr['date'] : '0'); - $result[$loop]['date']= date("d F Y", $date_time); - $myid = $arr['id']; - $mytitle = $arr['title']; - $mymember = $arr['member']; - $result[$loop]['title'] ="" . $mytitle . ""; - $result[$loop]['member'] ="" . $mymember . ""; - $loop = $loop +1; + $result[$loop]['id'] = $arr['id']; + $result[$loop]['member'] = $arr['member']; + $result[$loop]['tagsys'] = sandwitch($arr['tagsys']); + $date_time = strtotime(isset($arr['date']) ? $arr['date'] : '0'); + $result[$loop]['date'] = date("d F Y", $date_time); + $myid = $arr['id']; + $mytitle = $arr['title']; + $mymember = $arr['member']; + $result[$loop]['title'] = "" . $mytitle . ""; + $result[$loop]['member'] = "" . $mymember . ""; + $loop = $loop + 1; } - - // Return all - return $result; - } - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Internal methods - */ + // Return all + return $result; + } - /** - * Throw a fatal error. - * - * This writes out an error message in a JSON string which DataTables will - * see and show to the user in the browser. - * - * @param string $msg Message to send to the client - */ - static function fatal ( $msg ) - { - echo json_encode( array( - "error" => $msg - ) ); + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Internal methods + */ - exit(0); - } + /** + * Throw a fatal error. + * + * This writes out an error message in a JSON string which DataTables will + * see and show to the user in the browser. + * + * @param string $msg Message to send to the client + */ + static function fatal($msg) { + echo json_encode(array( + "error" => $msg + )); - /** - * Create a PDO binding key which can be used for escaping variables safely - * when executing a query with sql_exec() - * - * @param array &$a Array of bindings - * @param * $val Value to bind - * @param int $type PDO field type - * @return string Bound key to be used in the SQL where this parameter - * would be used. - */ - static function bind ( &$a, $val, $type ) - { - $key = ':binding_'.count( $a ); + exit(0); + } - $a[] = array( - 'key' => $key, - 'val' => $val, - 'type' => $type - ); + /** + * Create a PDO binding key which can be used for escaping variables safely + * when executing a query with sql_exec() + * + * @param array &$a Array of bindings + * @param * $val Value to bind + * @param int $type PDO field type + * @return string Bound key to be used in the SQL where this parameter + * would be used. + */ + static function bind(&$a, $val, $type) { + $key = ':binding_' . count($a); - return $key; - } + $a[] = array( + 'key' => $key, + 'val' => $val, + 'type' => $type + ); + + return $key; + } - /** - * Pull a particular property from each assoc. array in a numeric array, - * returning and array of the property values from each item. - * - * @param array $a Array to get data from - * @param string $prop Property to read - * @return array Array of property values - */ - static function pluck ( $a, $prop ) - { - $out = array(); + /** + * Pull a particular property from each assoc. array in a numeric array, + * returning and array of the property values from each item. + * + * @param array $a Array to get data from + * @param string $prop Property to read + * @return array Array of property values + */ + static function pluck($a, $prop) { + $out = array(); - for ( $i=0, $len=count($a) ; $i<$len ; $i++ ) { - $out[] = $a[$i][$prop]; - } + for ($i = 0, $len = count($a); $i < $len; $i++) { + $out[] = $a[$i][$prop]; + } - return $out; - } + return $out; + } } ?> \ No newline at end of file diff --git a/archive.php b/archive.php index b1a9d48..28530fe 100644 --- a/archive.php +++ b/archive.php @@ -19,7 +19,7 @@ require_once('includes/common.php'); // UTF-8 header('Content-Type: text/html; charset=utf-8'); -$date = date('jS F Y'); +$date = date('jS F Y'); // Temp count for untagged pastes $total_untagged = intval($conn->query("SELECT COUNT(*) from pastes WHERE tagsys IS NULL")->fetch(PDO::FETCH_NUM)[0]); diff --git a/config.php b/config.php index 20d231c..11cbde5 100644 --- a/config.php +++ b/config.php @@ -25,7 +25,7 @@ $currentversion = 2.2; // The value we got on installation of Paste was: post_max_size = 128M // Otherwise, the maximum value that can be set is 4000 (4GB) $pastelimit = "1"; // 0.5 = 512 kilobytes, 1 = 1MB - + // OAUTH (to enable, change to yes and edit) $enablefb = "no"; $enablegoog = "no"; @@ -57,12 +57,12 @@ if (gethostname() === 'thunderlane') { $db_opts = [ PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, /* throw a fatal exception on database errors */ PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, /* Fetch rows as an associative array (hash table) by default */ - PDO::ATTR_EMULATE_PREPARES => false + PDO::ATTR_EMULATE_PREPARES => false ]; // Secret key for paste encryption -$sec_key = "8ac67343e7980b16b31e8311d4377bbb"; -define('SECRET',md5($sec_key)); +$sec_key = "8ac67343e7980b16b31e8311d4377bbb"; +define('SECRET', md5($sec_key)); // Set to 1 to enable Apache's mod_rewrite $mod_rewrite = "1"; @@ -77,9 +77,9 @@ $geshiformats = [ // Popular formats that are listed first. $popular_formats = [ - 'green', + 'green', 'text', - 'pastedown', + 'pastedown', 'pastedown_old' ]; diff --git a/event.php b/event.php index 189cbe3..19b6b48 100644 --- a/event.php +++ b/event.php @@ -20,8 +20,8 @@ require_once('includes/functions.php'); // UTF-8 header('Content-Type: text/html; charset=utf-8'); -$date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$date = date('jS F Y'); +$ip = $_SERVER['REMOTE_ADDR']; $p_title = $lang['archive']; // "Pastes Archive"; diff --git a/fav.php b/fav.php index 675156d..a82de03 100644 --- a/fav.php +++ b/fav.php @@ -7,48 +7,48 @@ require_once('includes/functions.php'); // UTF-8 header('Content-Type: text/html; charset=utf-8'); -$date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$date = date('jS F Y'); +$ip = $_SERVER['REMOTE_ADDR']; $data_ip = file_get_contents('tmp/temp.tdata'); -$con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); +$con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); if (mysqli_connect_errno()) { die("Unable to connect to database"); } -$query = "SELECT * FROM site_info"; +$query = "SELECT * FROM site_info"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { - $title = Trim($row['title']); - $des = Trim($row['des']); - $baseurl = Trim($row['baseurl']); - $keyword = Trim($row['keyword']); - $site_name = Trim($row['site_name']); - $email = Trim($row['email']); - $twit = Trim($row['twit']); - $face = Trim($row['face']); - $gplus = Trim($row['gplus']); - $ga = Trim($row['ga']); - $additional_scripts = Trim($row['additional_scripts']); + $title = Trim($row['title']); + $des = Trim($row['des']); + $baseurl = Trim($row['baseurl']); + $keyword = Trim($row['keyword']); + $site_name = Trim($row['site_name']); + $email = Trim($row['email']); + $twit = Trim($row['twit']); + $face = Trim($row['face']); + $gplus = Trim($row['gplus']); + $ga = Trim($row['ga']); + $additional_scripts = Trim($row['additional_scripts']); } // Set theme and language -$query = "SELECT * FROM interface"; +$query = "SELECT * FROM interface"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { - $default_lang = Trim($row['lang']); + $default_lang = Trim($row['lang']); $default_theme = Trim($row['theme']); } require_once("langs/$default_lang"); // Check if IP is banned -if ( is_banned($con, $ip) ) die($lang['banned']); // "You have been banned from ".$site_name; +if (is_banned($con, $ip)) die($lang['banned']); // "You have been banned from ".$site_name; // Logout if (isset($_GET['logout'])) { - header('Location: ' . $_SERVER['HTTP_REFERER']); + header('Location: ' . $_SERVER['HTTP_REFERER']); unset($_SESSION['token']); unset($_SESSION['oauth_uid']); unset($_SESSION['username']); @@ -56,34 +56,34 @@ if (isset($_GET['logout'])) { } - //Fav paste if (isset($_POST['fid'])) { -if (isset($_SESSION['token'])) { -$f_user = htmlspecialchars($_SESSION['username']); -$f_pasteid = Trim(htmlspecialchars($_POST['fid'])); -$f_pasteid = preg_replace( '/[^0-9]/', '', $f_pasteid ); -$f_pasteid = (int) filter_var($f_pasteid, FILTER_SANITIZE_NUMBER_INT); -$f_time = gmmktime(date("H"), date("i"), date("s"), date("n"), date("j"), date("Y")); + if (isset($_SESSION['token'])) { + $f_user = htmlspecialchars($_SESSION['username']); + $f_pasteid = Trim(htmlspecialchars($_POST['fid'])); + $f_pasteid = preg_replace('/[^0-9]/', '', $f_pasteid); + $f_pasteid = (int)filter_var($f_pasteid, FILTER_SANITIZE_NUMBER_INT); + $f_time = gmmktime(date("H"), date("i"), date("s"), date("n"), date("j"), date("Y")); //Sec -$f_user = mysqli_real_escape_string($con, $f_user); -$f_pasteid = mysqli_real_escape_string($con,$f_pasteid); -$f_time = mysqli_real_escape_string($con,$f_time); -$fav_check = "SELECT COUNT(fid) FROM pins WHERE f_paste='$f_pasteid' AND m_fav='$f_user'"; -$result = mysqli_query($con, $fav_check); -$count = mysqli_fetch_row($result)[0]; -if($count == 0 ){ -$faved = "INSERT INTO pins (m_fav,f_paste,f_time) VALUES + $f_user = mysqli_real_escape_string($con, $f_user); + $f_pasteid = mysqli_real_escape_string($con, $f_pasteid); + $f_time = mysqli_real_escape_string($con, $f_time); + $fav_check = "SELECT COUNT(fid) FROM pins WHERE f_paste='$f_pasteid' AND m_fav='$f_user'"; + $result = mysqli_query($con, $fav_check); + $count = mysqli_fetch_row($result)[0]; + if ($count == 0) { + $faved = "INSERT INTO pins (m_fav,f_paste,f_time) VALUES ('$f_user','$f_pasteid ','$f_time')"; -}else{ -$faved = "DELETE FROM pins WHERE f_paste='$f_pasteid' and m_fav='$f_user'"; + } else { + $faved = "DELETE FROM pins WHERE f_paste='$f_pasteid' and m_fav='$f_user'"; + } + if ($con->query($faved) === true) { + $error = "Paste has been Favorited."; + } else { + $error = "Fav failed"; + } + } } -if ($con->query($faved) === TRUE) { - $error = "Paste has been Favorited."; -} else { - $error = "Fav failed"; -} -}} // Theme diff --git a/favs/favs.php b/favs/favs.php index 6172c9d..8fab0f1 100644 --- a/favs/favs.php +++ b/favs/favs.php @@ -1,23 +1,22 @@ connect_error) { +$servername = "localhost"; +$username = "root"; +$password = ""; +$dbname = "lab"; +// Create connection +$conn = new mysqli($servername, $username, $password, $dbname); +// Check connection +if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); - } +} - $method = $_GET['method']; - $user_id = $_GET['user_id']; - $director_id = $_GET['director_id']; +$method = $_GET['method']; +$user_id = $_GET['user_id']; +$director_id = $_GET['director_id']; - if ($method == "Like") { - mysqli_query($conn,"INSERT INTO favs (user_id, director_id) VALUES ('$user_id', '$director_id')"); - } - else { - mysqli_query($conn,"DELETE FROM favs WHERE user_id = '$user_id' AND director_id = '$director_id'"); - } +if ($method == "Like") { + mysqli_query($conn, "INSERT INTO favs (user_id, director_id) VALUES ('$user_id', '$director_id')"); +} else { + mysqli_query($conn, "DELETE FROM favs WHERE user_id = '$user_id' AND director_id = '$director_id'"); +} ?> diff --git a/favs/index.php b/favs/index.php index 76e3648..20c9282 100644 --- a/favs/index.php +++ b/favs/index.php @@ -1,69 +1,69 @@ - + - + - - connect_error) { - die("Connection failed: " . $conn->connect_error); - } + +connect_error) { + die("Connection failed: " . $conn->connect_error); +} - function checkFavorite($user_id, $director_id, $conn) { - $result = $conn->query("SELECT * FROM favs WHERE user_id = '". $user_id."' AND director_id = '". $director_id."'"); - $numrows = $result->num_rows; - if ($numrows == 0) { - echo "
    "; - } - else { - echo "
    "; - } - } - // Query to get the user_id - $result = $conn->query("SELECT * FROM user WHERE name = 'Henrique'"); - $row = $result->fetch_assoc(); - $user_id = $row['id']; +function checkFavorite($user_id, $director_id, $conn) { + $result = $conn->query("SELECT * FROM favs WHERE user_id = '" . $user_id . "' AND director_id = '" . $director_id . "'"); + $numrows = $result->num_rows; + if ($numrows == 0) { + echo "
    "; + } else { + echo "
    "; + } +} - // Query to Get the Director ID - $result = $conn->query("SELECT * FROM director WHERE name = 'Donal'"); - $row = $result->fetch_assoc(); - $director_id = $row['id']; +// Query to get the user_id +$result = $conn->query("SELECT * FROM user WHERE name = 'Henrique'"); +$row = $result->fetch_assoc(); +$user_id = $row['id']; - echo "

    Director: ".$row['name']."

    "; - $fav_image = checkFavorite($user_id, $director_id, $conn); - echo "Favorite? : ".$fav_image.""; - ?> - +// Query to Get the Director ID +$result = $conn->query("SELECT * FROM director WHERE name = 'Donal'"); +$row = $result->fetch_assoc(); +$director_id = $row['id']; + +echo "

    Director: " . $row['name'] . "

    "; +$fav_image = checkFavorite($user_id, $director_id, $conn); +echo "Favorite? : " . $fav_image . ""; +?> + diff --git a/includes/Parsedown/BeamParsedown.php b/includes/Parsedown/BeamParsedown.php index 2ee159e..97cde39 100644 --- a/includes/Parsedown/BeamParsedown.php +++ b/includes/Parsedown/BeamParsedown.php @@ -20,20 +20,17 @@ namespace ArdiSSoebrata\BeamParsedown; use ParsedownExtra; -class BeamParsedown extends ParsedownExtra -{ +class BeamParsedown extends ParsedownExtra { const version = '0.0.1'; protected $isUrlRegex = "/(https?|ftp)\:\/\//i"; protected $regexAttribute = '(?:([#.][\w-]+\s*)|([\w-]+=[\w-]+\s*))+'; - - function __construct() - { + + function __construct() { parent::__construct(); // @codeCoverageIgnoreStart - if (version_compare(parent::version, '0.8.1') < 0) - { - throw new Exception('BeamParsedown requires a later version of ParsedownExtra'); + if (version_compare(parent::version, '0.8.1') < 0) { + throw new Exception('BeamParsedown requires a later version of ParsedownExtra'); } // @codeCoverageIgnoreEnd @@ -53,18 +50,15 @@ class BeamParsedown extends ParsedownExtra protected $basePath = ''; - public function setBasePath($url) - { + public function setBasePath($url) { $this->basePath = preg_replace('{/$}', '', $url) . '/'; return $this; } - protected function inlineImage($excerpt) - { + protected function inlineImage($excerpt) { $image = parent::inlineImage($excerpt); - if ( ! isset($image)) - { + if (!isset($image)) { return null; } @@ -79,11 +73,10 @@ class BeamParsedown extends ParsedownExtra // Heading id & attributes. - protected function blockHeader($Line) - { + protected function blockHeader($Line) { $Block = parent::blockHeader($Line); - if (! isset($Block)) { + if (!isset($Block)) { return null; } @@ -96,8 +89,7 @@ class BeamParsedown extends ParsedownExtra return $Block; } - protected function blockSetextHeader($Line, array $Block = null) - { + protected function blockSetextHeader($Line, array $Block = null) { $Block = parent::blockSetextHeader($Line, $Block); if (isset($Block['element']) && !isset($Block['element']['attributes']['id'])) { @@ -109,38 +101,29 @@ class BeamParsedown extends ParsedownExtra return $Block; } - protected function parseAttributeData($attributeString) - { + protected function parseAttributeData($attributeString) { $Data = array(); - $attributes = preg_split('/[ ]+/', $attributeString, - 1, PREG_SPLIT_NO_EMPTY); + $attributes = preg_split('/[ ]+/', $attributeString, -1, PREG_SPLIT_NO_EMPTY); - foreach ($attributes as $attribute) - { - if ($attribute[0] === '#') - { + foreach ($attributes as $attribute) { + if ($attribute[0] === '#') { $Data['id'] = substr($attribute, 1); - } - elseif ($attribute[0] === '.') - { - $classes []= substr($attribute, 1); - } - elseif (preg_match('/([\w-]+)=([\w-]+)/', $attribute, $match)) - { + } elseif ($attribute[0] === '.') { + $classes [] = substr($attribute, 1); + } elseif (preg_match('/([\w-]+)=([\w-]+)/', $attribute, $match)) { $Data[$match[1]] = $match[2]; } } - if (isset($classes)) - { + if (isset($classes)) { $Data['class'] = implode(' ', $classes); } return $Data; } - public static function slugify($text) - { + public static function slugify($text) { // replace non letter or digits by - $text = preg_replace('~[^\pL\d]+~u', '-', $text); @@ -165,17 +148,15 @@ class BeamParsedown extends ParsedownExtra return $text; } - + // Icon - protected function InlineIcon($excerpt) - { - if (preg_match('/\[icon:(.+?)\]/', $excerpt['text'], $matches)) - { + protected function InlineIcon($excerpt) { + if (preg_match('/\[icon:(.+?)\]/', $excerpt['text'], $matches)) { return array( // How many characters to advance the Parsedown's // cursor after being done processing this tag. - 'extent' => strlen($matches[0]), + 'extent' => strlen($matches[0]), 'element' => array( 'name' => 'i', 'attributes' => array( @@ -189,10 +170,8 @@ class BeamParsedown extends ParsedownExtra // Audio - protected function InlineAudio($excerpt) - { - if (preg_match('/\[audio:(.+?)\]/', $excerpt['text'], $matches)) - { + protected function InlineAudio($excerpt) { + if (preg_match('/\[audio:(.+?)\]/', $excerpt['text'], $matches)) { // Add basePath if src is relative. $src = trim($matches[1]); if (!preg_match($this->isUrlRegex, $src, $urlmatch)) { @@ -202,7 +181,7 @@ class BeamParsedown extends ParsedownExtra return array( // How many characters to advance the Parsedown's // cursor after being done processing this tag. - 'extent' => strlen($matches[0]), + 'extent' => strlen($matches[0]), 'element' => array( 'name' => 'audio', 'attributes' => array( @@ -222,16 +201,14 @@ class BeamParsedown extends ParsedownExtra } // Youtube - - protected function BlockYoutube($excerpt) - { - if (preg_match('/\[youtube:\s*https\:\/\/youtu\.be\/(.+?)\]/', $excerpt['text'], $matches)) - { + + protected function BlockYoutube($excerpt) { + if (preg_match('/\[youtube:\s*https\:\/\/youtu\.be\/(.+?)\]/', $excerpt['text'], $matches)) { $video_id = trim($matches[1]); return array( // How many characters to advance the Parsedown's // cursor after being done processing this tag. - 'extent' => strlen($matches[0]), + 'extent' => strlen($matches[0]), 'element' => array( 'name' => 'div', 'attributes' => array( @@ -270,11 +247,9 @@ class BeamParsedown extends ParsedownExtra ) ); - protected function BlockAlert($line, $block) - { + protected function BlockAlert($line, $block) { $types = implode('|', array_keys($this->alert_types)); - if (preg_match('/^:::(' . $types . ')/', $line['text'], $matches)) - { + if (preg_match('/^:::(' . $types . ')/', $line['text'], $matches)) { $type = trim($matches[1]); return array( 'char' => $line['text'][0], @@ -314,42 +289,35 @@ class BeamParsedown extends ParsedownExtra } } - protected function BlockAlertContinue($line, $block) - { - if (isset($block['complete'])) - { + protected function BlockAlertContinue($line, $block) { + if (isset($block['complete'])) { return; } // A blank newline has occurred. - if (isset($block['interrupted'])) - { + if (isset($block['interrupted'])) { unset($block['interrupted']); } // Check for end of the block. - if (preg_match('/^:::/', $line['text'])) - { + if (preg_match('/^:::/', $line['text'])) { $block['complete'] = true; return $block; } - + $block['element']['text'][1]['text'][] = $line['body']; - + return $block; } - protected function BlockAlertComplete($block) - { + protected function BlockAlertComplete($block) { return $block; } - + // draw.io - - protected function BlockDrawio($excerpt) - { - if (preg_match('/\[drawio:\s*(.+?)\]/', $excerpt['text'], $matches)) - { + + protected function BlockDrawio($excerpt) { + if (preg_match('/\[drawio:\s*(.+?)\]/', $excerpt['text'], $matches)) { $file = trim($matches[1]); if (!preg_match($this->isUrlRegex, $file, $urlmatch)) { $file = $this->basePath . $file; @@ -357,7 +325,7 @@ class BeamParsedown extends ParsedownExtra return array( // How many characters to advance the Parsedown's // cursor after being done processing this tag. - 'extent' => strlen($matches[0]), + 'extent' => strlen($matches[0]), 'element' => array( 'name' => 'div', 'handler' => 'elements', @@ -393,10 +361,8 @@ class BeamParsedown extends ParsedownExtra // Mermaid - protected function BlockMermaid($line, $block) - { - if (preg_match('/^:::\s*mermaid/', $line['text'], $matches)) - { + protected function BlockMermaid($line, $block) { + if (preg_match('/^:::\s*mermaid/', $line['text'], $matches)) { return array( 'char' => $line['text'][0], 'element' => array( @@ -410,42 +376,35 @@ class BeamParsedown extends ParsedownExtra } } - protected function BlockMermaidContinue($line, $block) - { - if (isset($block['complete'])) - { + protected function BlockMermaidContinue($line, $block) { + if (isset($block['complete'])) { return; } // A blank newline has occurred. - if (isset($block['interrupted'])) - { + if (isset($block['interrupted'])) { unset($block['interrupted']); } // Check for end of the block. - if (preg_match('/^:::/', $line['text'])) - { + if (preg_match('/^:::/', $line['text'])) { $block['complete'] = true; return $block; } - + $block['element']['rawHtml'] .= $line['body'] . "\n"; - + return $block; } - - protected function BlockMermaidComplete($block) - { + + protected function BlockMermaidComplete($block) { return $block; } - + // Chart JS - protected function BlockChart($line, $block) - { - if (preg_match('/^:::\s*chart/', $line['text'], $matches)) - { + protected function BlockChart($line, $block) { + if (preg_match('/^:::\s*chart/', $line['text'], $matches)) { return array( 'char' => $line['text'][0], 'element' => array( @@ -459,33 +418,28 @@ class BeamParsedown extends ParsedownExtra } } - protected function BlockChartContinue($line, $block) - { - if (isset($block['complete'])) - { + protected function BlockChartContinue($line, $block) { + if (isset($block['complete'])) { return; } // A blank newline has occurred. - if (isset($block['interrupted'])) - { + if (isset($block['interrupted'])) { unset($block['interrupted']); } // Check for end of the block. - if (preg_match('/^:::/', $line['text'])) - { + if (preg_match('/^:::/', $line['text'])) { $block['complete'] = true; return $block; } - + $block['element']['rawHtml'] .= $line['body'] . "\n"; - + return $block; } - - protected function BlockChartComplete($block) - { + + protected function BlockChartComplete($block) { return $block; } } \ No newline at end of file diff --git a/includes/Parsedown/BeamParsedownServiceProvider.php b/includes/Parsedown/BeamParsedownServiceProvider.php index efa8b72..d563f6c 100644 --- a/includes/Parsedown/BeamParsedownServiceProvider.php +++ b/includes/Parsedown/BeamParsedownServiceProvider.php @@ -4,15 +4,13 @@ namespace ArdiSSoebrata\BeamParsedown; use Illuminate\Support\ServiceProvider; -class BeamParsedownServiceProvider extends ServiceProvider -{ +class BeamParsedownServiceProvider extends ServiceProvider { /** * Perform post-registration booting of services. * * @return void */ - public function boot(): void - { + public function boot() : void { // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', ':lc:vendor'); // $this->loadViewsFrom(__DIR__.'/../resources/views', ':lc:vendor'); // $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); @@ -29,14 +27,13 @@ class BeamParsedownServiceProvider extends ServiceProvider * * @return void */ - public function register(): void - { - $this->mergeConfigFrom(__DIR__.'/../config/beam-parsedown.php', 'beam-parsedown'); + public function register() : void { + $this->mergeConfigFrom(__DIR__ . '/../config/beam-parsedown.php', 'beam-parsedown'); // Register the service the package provides. $this->app->singleton('beam-parsedown', function ($app) { $parse = new BeamParsedown(); - + // Set from config. $parse->setBreaksEnabled(config('beam-parsedown.breaks_enabled', false)); $parse->setMarkupEscaped(config('beam-parsedown.markup_escaped', false)); @@ -52,8 +49,7 @@ class BeamParsedownServiceProvider extends ServiceProvider * * @return array */ - public function provides() - { + public function provides() { // @codeCoverageIgnoreStart return ['beam-parsedown']; // @codeCoverageIgnoreEnd @@ -64,11 +60,10 @@ class BeamParsedownServiceProvider extends ServiceProvider * * @return void */ - protected function bootForConsole(): void - { + protected function bootForConsole() : void { // Publishing the configuration file. $this->publishes([ - __DIR__.'/../config/beam-parsedown.php' => config_path('beam-parsedown.php'), + __DIR__ . '/../config/beam-parsedown.php' => config_path('beam-parsedown.php'), ], 'beam-parsedown.config'); // Publishing the views. diff --git a/includes/Parsedown/Facades/BeamParsedown.php b/includes/Parsedown/Facades/BeamParsedown.php index 894458b..9f2e50e 100644 --- a/includes/Parsedown/Facades/BeamParsedown.php +++ b/includes/Parsedown/Facades/BeamParsedown.php @@ -4,15 +4,13 @@ namespace ArdiSSoebrata\BeamParsedown\Facades; use Illuminate\Support\Facades\Facade; -class BeamParsedown extends Facade -{ +class BeamParsedown extends Facade { /** * Get the registered name of the component. * * @return string */ - protected static function getFacadeAccessor(): string - { + protected static function getFacadeAccessor() : string { return 'beam-parsedown'; } } \ No newline at end of file diff --git a/includes/Parsedown/Parsedown.php b/includes/Parsedown/Parsedown.php index 4cc154c..ab4e569 100644 --- a/includes/Parsedown/Parsedown.php +++ b/includes/Parsedown/Parsedown.php @@ -13,16 +13,14 @@ # # -class Parsedown -{ +class Parsedown { # ~ const version = '1.8.0-beta-7'; # ~ - function text($text) - { + function text($text) { $Elements = $this->textElements($text); # convert to markup @@ -34,8 +32,7 @@ class Parsedown return $markup; } - protected function textElements($text) - { + protected function textElements($text) { # make sure no definitions are set $this->DefinitionData = array(); @@ -56,8 +53,7 @@ class Parsedown # Setters # - function setBreaksEnabled($breaksEnabled) - { + function setBreaksEnabled($breaksEnabled) { $this->breaksEnabled = $breaksEnabled; return $this; @@ -65,8 +61,7 @@ class Parsedown protected $breaksEnabled; - function setMarkupEscaped($markupEscaped) - { + function setMarkupEscaped($markupEscaped) { $this->markupEscaped = $markupEscaped; return $this; @@ -74,8 +69,7 @@ class Parsedown protected $markupEscaped; - function setUrlsLinked($urlsLinked) - { + function setUrlsLinked($urlsLinked) { $this->urlsLinked = $urlsLinked; return $this; @@ -83,18 +77,16 @@ class Parsedown protected $urlsLinked = true; - function setSafeMode($safeMode) - { - $this->safeMode = (bool) $safeMode; + function setSafeMode($safeMode) { + $this->safeMode = (bool)$safeMode; return $this; } protected $safeMode; - function setStrictMode($strictMode) - { - $this->strictMode = (bool) $strictMode; + function setStrictMode($strictMode) { + $this->strictMode = (bool)$strictMode; return $this; } @@ -105,7 +97,7 @@ class Parsedown 'https://ponepaste.org', 'https://www.ponepaste.org', 'https://www.pastebin.com', - 'http://www.pastebin.com', + 'http://www.pastebin.com', 'https://pastebin.com', 'https://boards.4channel.org/mlp/', 'https://desuarchive.org/mlp/', @@ -186,7 +178,7 @@ class Parsedown 'https://dffd.bay12games.com/', 'http://www.mediafire.com', 'https://www.legendsofequestria.com', - + ); # @@ -229,22 +221,17 @@ class Parsedown # Blocks # - protected function lines(array $lines) - { + protected function lines(array $lines) { return $this->elements($this->linesElements($lines)); } - protected function linesElements(array $lines) - { + protected function linesElements(array $lines) { $Elements = array(); $CurrentBlock = null; - foreach ($lines as $line) - { - if (chop($line) === '') - { - if (isset($CurrentBlock)) - { + foreach ($lines as $line) { + if (chop($line) === '') { + if (isset($CurrentBlock)) { $CurrentBlock['interrupted'] = (isset($CurrentBlock['interrupted']) ? $CurrentBlock['interrupted'] + 1 : 1 ); @@ -253,14 +240,12 @@ class Parsedown continue; } - while (($beforeTab = strstr($line, "\t", true)) !== false) - { + while (($beforeTab = strstr($line, "\t", true)) !== false) { $shortage = 4 - mb_strlen($beforeTab, 'utf-8') % 4; $line = $beforeTab . str_repeat(' ', $shortage) - . substr($line, strlen($beforeTab) + 1) - ; + . substr($line, strlen($beforeTab) + 1); } $indent = strspn($line, ' '); @@ -273,21 +258,16 @@ class Parsedown # ~ - if (isset($CurrentBlock['continuable'])) - { + if (isset($CurrentBlock['continuable'])) { $methodName = 'block' . $CurrentBlock['type'] . 'Continue'; $Block = $this->$methodName($Line, $CurrentBlock); - if (isset($Block)) - { + if (isset($Block)) { $CurrentBlock = $Block; continue; - } - else - { - if ($this->isBlockCompletable($CurrentBlock['type'])) - { + } else { + if ($this->isBlockCompletable($CurrentBlock['type'])) { $methodName = 'block' . $CurrentBlock['type'] . 'Complete'; $CurrentBlock = $this->$methodName($CurrentBlock); } @@ -302,37 +282,30 @@ class Parsedown $blockTypes = $this->unmarkedBlockTypes; - if (isset($this->BlockTypes[$marker])) - { - foreach ($this->BlockTypes[$marker] as $blockType) - { - $blockTypes []= $blockType; + if (isset($this->BlockTypes[$marker])) { + foreach ($this->BlockTypes[$marker] as $blockType) { + $blockTypes [] = $blockType; } } # # ~ - foreach ($blockTypes as $blockType) - { + foreach ($blockTypes as $blockType) { $Block = $this->{"block$blockType"}($Line, $CurrentBlock); - if (isset($Block)) - { + if (isset($Block)) { $Block['type'] = $blockType; - if ( ! isset($Block['identified'])) - { - if (isset($CurrentBlock)) - { + if (!isset($Block['identified'])) { + if (isset($CurrentBlock)) { $Elements[] = $this->extractElement($CurrentBlock); } $Block['identified'] = true; } - if ($this->isBlockContinuable($blockType)) - { + if ($this->isBlockContinuable($blockType)) { $Block['continuable'] = true; } @@ -344,19 +317,14 @@ class Parsedown # ~ - if (isset($CurrentBlock) and $CurrentBlock['type'] === 'Paragraph') - { + if (isset($CurrentBlock) and $CurrentBlock['type'] === 'Paragraph') { $Block = $this->paragraphContinue($Line, $CurrentBlock); } - if (isset($Block)) - { + if (isset($Block)) { $CurrentBlock = $Block; - } - else - { - if (isset($CurrentBlock)) - { + } else { + if (isset($CurrentBlock)) { $Elements[] = $this->extractElement($CurrentBlock); } @@ -368,16 +336,14 @@ class Parsedown # ~ - if (isset($CurrentBlock['continuable']) and $this->isBlockCompletable($CurrentBlock['type'])) - { + if (isset($CurrentBlock['continuable']) and $this->isBlockCompletable($CurrentBlock['type'])) { $methodName = 'block' . $CurrentBlock['type'] . 'Complete'; $CurrentBlock = $this->$methodName($CurrentBlock); } # ~ - if (isset($CurrentBlock)) - { + if (isset($CurrentBlock)) { $Elements[] = $this->extractElement($CurrentBlock); } @@ -386,16 +352,11 @@ class Parsedown return $Elements; } - protected function extractElement(array $Component) - { - if ( ! isset($Component['element'])) - { - if (isset($Component['markup'])) - { + protected function extractElement(array $Component) { + if (!isset($Component['element'])) { + if (isset($Component['markup'])) { $Component['element'] = array('rawHtml' => $Component['markup']); - } - elseif (isset($Component['hidden'])) - { + } elseif (isset($Component['hidden'])) { $Component['element'] = array(); } } @@ -403,28 +364,23 @@ class Parsedown return $Component['element']; } - protected function isBlockContinuable($Type) - { + protected function isBlockContinuable($Type) { return method_exists($this, 'block' . $Type . 'Continue'); } - protected function isBlockCompletable($Type) - { + protected function isBlockCompletable($Type) { return method_exists($this, 'block' . $Type . 'Complete'); } # # Code - protected function blockCode($Line, $Block = null) - { - if (isset($Block) and $Block['type'] === 'Paragraph' and ! isset($Block['interrupted'])) - { + protected function blockCode($Line, $Block = null) { + if (isset($Block) and $Block['type'] === 'Paragraph' and !isset($Block['interrupted'])) { return; } - if ($Line['indent'] >= 4) - { + if ($Line['indent'] >= 4) { $text = substr($Line['body'], 4); $Block = array( @@ -441,12 +397,9 @@ class Parsedown } } - protected function blockCodeContinue($Line, $Block) - { - if ($Line['indent'] >= 4) - { - if (isset($Block['interrupted'])) - { + protected function blockCodeContinue($Line, $Block) { + if ($Line['indent'] >= 4) { + if (isset($Block['interrupted'])) { $Block['element']['element']['text'] .= str_repeat("\n", $Block['interrupted']); unset($Block['interrupted']); @@ -462,23 +415,19 @@ class Parsedown } } - protected function blockCodeComplete($Block) - { + protected function blockCodeComplete($Block) { return $Block; } # # Comment - protected function blockComment($Line) - { - if ($this->markupEscaped or $this->safeMode) - { + protected function blockComment($Line) { + if ($this->markupEscaped or $this->safeMode) { return; } - if (strpos($Line['text'], '') !== false) - { + if (strpos($Line['text'], '-->') !== false) { $Block['closed'] = true; } @@ -495,17 +443,14 @@ class Parsedown } } - protected function blockCommentContinue($Line, array $Block) - { - if (isset($Block['closed'])) - { + protected function blockCommentContinue($Line, array $Block) { + if (isset($Block['closed'])) { return; } $Block['element']['rawHtml'] .= "\n" . $Line['body']; - if (strpos($Line['text'], '-->') !== false) - { + if (strpos($Line['text'], '-->') !== false) { $Block['closed'] = true; } @@ -515,21 +460,18 @@ class Parsedown # # Fenced Code - protected function blockFencedCode($Line) - { + protected function blockFencedCode($Line) { $marker = $Line['text'][0]; $openerLength = strspn($Line['text'], $marker); - if ($openerLength < 3) - { + if ($openerLength < 3) { return; } $infostring = trim(substr($Line['text'], $openerLength), "\t "); - if (strpos($infostring, '`') !== false) - { + if (strpos($infostring, '`') !== false) { return; } @@ -538,8 +480,7 @@ class Parsedown 'text' => '', ); - if ($infostring !== '') - { + if ($infostring !== '') { /** * https://www.w3.org/TR/2011/WD-html5-20110525/elements.html#classes * Every HTML element may have a class attribute specified. @@ -569,15 +510,12 @@ class Parsedown return $Block; } - protected function blockFencedCodeContinue($Line, $Block) - { - if (isset($Block['complete'])) - { + protected function blockFencedCodeContinue($Line, $Block) { + if (isset($Block['complete'])) { return; } - if (isset($Block['interrupted'])) - { + if (isset($Block['interrupted'])) { $Block['element']['element']['text'] .= str_repeat("\n", $Block['interrupted']); unset($Block['interrupted']); @@ -598,27 +536,23 @@ class Parsedown return $Block; } - protected function blockFencedCodeComplete($Block) - { + protected function blockFencedCodeComplete($Block) { return $Block; } # # Header - protected function blockHeader($Line) - { + protected function blockHeader($Line) { $level = strspn($Line['text'], '#'); - if ($level > 6) - { + if ($level > 6) { return; } $text = trim($Line['text'], '#'); - if ($this->strictMode and isset($text[0]) and $text[0] !== ' ') - { + if ($this->strictMode and isset($text[0]) and $text[0] !== ' ') { return; } @@ -641,22 +575,17 @@ class Parsedown # # List - protected function blockList($Line, array $CurrentBlock = null) - { + protected function blockList($Line, array $CurrentBlock = null) { list($name, $pattern) = $Line['text'][0] <= '-' ? array('ul', '[*+-]') : array('ol', '[0-9]{1,9}+[.\)]'); - if (preg_match('/^('.$pattern.'([ ]++|$))(.*+)/', $Line['text'], $matches)) - { + if (preg_match('/^(' . $pattern . '([ ]++|$))(.*+)/', $Line['text'], $matches)) { $contentIndent = strlen($matches[2]); - if ($contentIndent >= 5) - { + if ($contentIndent >= 5) { $contentIndent -= 1; $matches[1] = substr($matches[1], 0, -$contentIndent); $matches[3] = str_repeat(' ', $contentIndent) . $matches[3]; - } - elseif ($contentIndent === 0) - { + } elseif ($contentIndent === 0) { $matches[1] .= ' '; } @@ -677,16 +606,14 @@ class Parsedown ); $Block['data']['markerTypeRegex'] = preg_quote($Block['data']['markerType'], '/'); - if ($name === 'ol') - { + if ($name === 'ol') { $listStart = ltrim(strstr($matches[1], $Block['data']['markerType'], true), '0') ?: '0'; - if ($listStart !== '1') - { + if ($listStart !== '1') { if ( isset($CurrentBlock) and $CurrentBlock['type'] === 'Paragraph' - and ! isset($CurrentBlock['interrupted']) + and !isset($CurrentBlock['interrupted']) ) { return; } @@ -704,16 +631,14 @@ class Parsedown ) ); - $Block['element']['elements'] []= & $Block['li']; + $Block['element']['elements'] [] = &$Block['li']; return $Block; } } - protected function blockListContinue($Line, array $Block) - { - if (isset($Block['interrupted']) and empty($Block['li']['handler']['argument'])) - { + protected function blockListContinue($Line, array $Block) { + if (isset($Block['interrupted']) and empty($Block['li']['handler']['argument'])) { return null; } @@ -723,16 +648,15 @@ class Parsedown and ( ( $Block['data']['type'] === 'ol' - and preg_match('/^[0-9]++'.$Block['data']['markerTypeRegex'].'(?:[ ]++(.*)|$)/', $Line['text'], $matches) + and preg_match('/^[0-9]++' . $Block['data']['markerTypeRegex'] . '(?:[ ]++(.*)|$)/', $Line['text'], $matches) ) or ( $Block['data']['type'] === 'ul' - and preg_match('/^'.$Block['data']['markerTypeRegex'].'(?:[ ]++(.*)|$)/', $Line['text'], $matches) + and preg_match('/^' . $Block['data']['markerTypeRegex'] . '(?:[ ]++(.*)|$)/', $Line['text'], $matches) ) ) ) { - if (isset($Block['interrupted'])) - { - $Block['li']['handler']['argument'] []= ''; + if (isset($Block['interrupted'])) { + $Block['li']['handler']['argument'] [] = ''; $Block['loose'] = true; @@ -754,25 +678,20 @@ class Parsedown ) ); - $Block['element']['elements'] []= & $Block['li']; + $Block['element']['elements'] [] = &$Block['li']; return $Block; - } - elseif ($Line['indent'] < $requiredIndent and $this->blockList($Line)) - { + } elseif ($Line['indent'] < $requiredIndent and $this->blockList($Line)) { return null; } - if ($Line['text'][0] === '[' and $this->blockReference($Line)) - { + if ($Line['text'][0] === '[' and $this->blockReference($Line)) { return $Block; } - if ($Line['indent'] >= $requiredIndent) - { - if (isset($Block['interrupted'])) - { - $Block['li']['handler']['argument'] []= ''; + if ($Line['indent'] >= $requiredIndent) { + if (isset($Block['interrupted'])) { + $Block['li']['handler']['argument'] [] = ''; $Block['loose'] = true; @@ -781,30 +700,25 @@ class Parsedown $text = substr($Line['body'], $requiredIndent); - $Block['li']['handler']['argument'] []= $text; + $Block['li']['handler']['argument'] [] = $text; return $Block; } - if ( ! isset($Block['interrupted'])) - { - $text = preg_replace('/^[ ]{0,'.$requiredIndent.'}+/', '', $Line['body']); + if (!isset($Block['interrupted'])) { + $text = preg_replace('/^[ ]{0,' . $requiredIndent . '}+/', '', $Line['body']); - $Block['li']['handler']['argument'] []= $text; + $Block['li']['handler']['argument'] [] = $text; return $Block; } } - protected function blockListComplete(array $Block) - { - if (isset($Block['loose'])) - { - foreach ($Block['element']['elements'] as &$li) - { - if (end($li['handler']['argument']) !== '') - { - $li['handler']['argument'] []= ''; + protected function blockListComplete(array $Block) { + if (isset($Block['loose'])) { + foreach ($Block['element']['elements'] as &$li) { + if (end($li['handler']['argument']) !== '') { + $li['handler']['argument'] [] = ''; } } } @@ -815,16 +729,14 @@ class Parsedown # # Quote - protected function blockQuote($Line) - { - if (preg_match('/^>[ ]?+(.*+)/', $Line['text'], $matches)) - { + protected function blockQuote($Line) { + if (preg_match('/^>[ ]?+(.*+)/', $Line['text'], $matches)) { $Block = array( 'element' => array( 'name' => 'blockquote', 'handler' => array( 'function' => 'linesElements', - 'argument' => (array) $matches[1], + 'argument' => (array)$matches[1], 'destination' => 'elements', ) ), @@ -834,23 +746,19 @@ class Parsedown } } - protected function blockQuoteContinue($Line, array $Block) - { - if (isset($Block['interrupted'])) - { + protected function blockQuoteContinue($Line, array $Block) { + if (isset($Block['interrupted'])) { return; } - if ($Line['text'][0] === '>' and preg_match('/^>[ ]?+(.*+)/', $Line['text'], $matches)) - { - $Block['element']['handler']['argument'] []= $matches[1]; + if ($Line['text'][0] === '>' and preg_match('/^>[ ]?+(.*+)/', $Line['text'], $matches)) { + $Block['element']['handler']['argument'] [] = $matches[1]; return $Block; } - if ( ! isset($Block['interrupted'])) - { - $Block['element']['handler']['argument'] []= $Line['text']; + if (!isset($Block['interrupted'])) { + $Block['element']['handler']['argument'] [] = $Line['text']; return $Block; } @@ -859,12 +767,10 @@ class Parsedown # # Rule - protected function blockRule($Line) - { + protected function blockRule($Line) { $marker = $Line['text'][0]; - if (substr_count($Line['text'], $marker) >= 3 and chop($Line['text'], " $marker") === '') - { + if (substr_count($Line['text'], $marker) >= 3 and chop($Line['text'], " $marker") === '') { $Block = array( 'element' => array( 'name' => 'hr', @@ -878,15 +784,12 @@ class Parsedown # # Setext - protected function blockSetextHeader($Line, array $Block = null) - { - if ( ! isset($Block) or $Block['type'] !== 'Paragraph' or isset($Block['interrupted'])) - { + protected function blockSetextHeader($Line, array $Block = null) { + if (!isset($Block) or $Block['type'] !== 'Paragraph' or isset($Block['interrupted'])) { return; } - if ($Line['indent'] < 4 and chop(chop($Line['text'], ' '), $Line['text'][0]) === '') - { + if ($Line['indent'] < 4 and chop(chop($Line['text'], ' '), $Line['text'][0]) === '') { $Block['element']['name'] = $Line['text'][0] === '=' ? 'h1' : 'h2'; return $Block; @@ -896,19 +799,15 @@ class Parsedown # # Markup - protected function blockMarkup($Line) - { - if ($this->markupEscaped or $this->safeMode) - { + protected function blockMarkup($Line) { + if ($this->markupEscaped or $this->safeMode) { return; } - if (preg_match('/^<[\/]?+(\w*)(?:[ ]*+'.$this->regexHtmlAttribute.')*+[ ]*+(\/)?>/', $Line['text'], $matches)) - { + if (preg_match('/^<[\/]?+(\w*)(?:[ ]*+' . $this->regexHtmlAttribute . ')*+[ ]*+(\/)?>/', $Line['text'], $matches)) { $element = strtolower($matches[1]); - if (in_array($element, $this->textLevelElements)) - { + if (in_array($element, $this->textLevelElements)) { return; } @@ -924,10 +823,8 @@ class Parsedown } } - protected function blockMarkupContinue($Line, array $Block) - { - if (isset($Block['closed']) or isset($Block['interrupted'])) - { + protected function blockMarkupContinue($Line, array $Block) { + if (isset($Block['closed']) or isset($Block['interrupted'])) { return; } @@ -939,8 +836,7 @@ class Parsedown # # Reference - protected function blockReference($Line) - { + protected function blockReference($Line) { if (strpos($Line['text'], ']') !== false and preg_match('/^\[(.+?)\]:[ ]*+?(?:[ ]+["\'(](.+)["\')])?[ ]*+$/', $Line['text'], $matches) ) { @@ -964,10 +860,8 @@ class Parsedown # # Table - protected function blockTable($Line, array $Block = null) - { - if ( ! isset($Block) or $Block['type'] !== 'Paragraph' or isset($Block['interrupted'])) - { + protected function blockTable($Line, array $Block = null) { + if (!isset($Block) or $Block['type'] !== 'Paragraph' or isset($Block['interrupted'])) { return; } @@ -980,8 +874,7 @@ class Parsedown return; } - if (chop($Line['text'], ' -:|') !== '') - { + if (chop($Line['text'], ' -:|') !== '') { return; } @@ -994,28 +887,24 @@ class Parsedown $dividerCells = explode('|', $divider); - foreach ($dividerCells as $dividerCell) - { + foreach ($dividerCells as $dividerCell) { $dividerCell = trim($dividerCell); - if ($dividerCell === '') - { + if ($dividerCell === '') { return; } $alignment = null; - if ($dividerCell[0] === ':') - { + if ($dividerCell[0] === ':') { $alignment = 'left'; } - if (substr($dividerCell, - 1) === ':') - { + if (substr($dividerCell, -1) === ':') { $alignment = $alignment === 'left' ? 'center' : 'right'; } - $alignments []= $alignment; + $alignments [] = $alignment; } # ~ @@ -1029,13 +918,11 @@ class Parsedown $headerCells = explode('|', $header); - if (count($headerCells) !== count($alignments)) - { + if (count($headerCells) !== count($alignments)) { return; } - foreach ($headerCells as $index => $headerCell) - { + foreach ($headerCells as $index => $headerCell) { $headerCell = trim($headerCell); $HeaderElement = array( @@ -1047,8 +934,7 @@ class Parsedown ) ); - if (isset($alignments[$index])) - { + if (isset($alignments[$index])) { $alignment = $alignments[$index]; $HeaderElement['attributes'] = array( @@ -1056,7 +942,7 @@ class Parsedown ); } - $HeaderElements []= $HeaderElement; + $HeaderElements [] = $HeaderElement; } # ~ @@ -1070,16 +956,16 @@ class Parsedown ), ); - $Block['element']['elements'] []= array( + $Block['element']['elements'] [] = array( 'name' => 'thead', ); - $Block['element']['elements'] []= array( + $Block['element']['elements'] [] = array( 'name' => 'tbody', 'elements' => array(), ); - $Block['element']['elements'][0]['elements'] []= array( + $Block['element']['elements'][0]['elements'] [] = array( 'name' => 'tr', 'elements' => $HeaderElements, ); @@ -1087,15 +973,12 @@ class Parsedown return $Block; } - protected function blockTableContinue($Line, array $Block) - { - if (isset($Block['interrupted'])) - { + protected function blockTableContinue($Line, array $Block) { + if (isset($Block['interrupted'])) { return; } - if (count($Block['alignments']) === 1 or $Line['text'][0] === '|' or strpos($Line['text'], '|')) - { + if (count($Block['alignments']) === 1 or $Line['text'][0] === '|' or strpos($Line['text'], '|')) { $Elements = array(); $row = $Line['text']; @@ -1107,8 +990,7 @@ class Parsedown $cells = array_slice($matches[0], 0, count($Block['alignments'])); - foreach ($cells as $index => $cell) - { + foreach ($cells as $index => $cell) { $cell = trim($cell); $Element = array( @@ -1120,14 +1002,13 @@ class Parsedown ) ); - if (isset($Block['alignments'][$index])) - { + if (isset($Block['alignments'][$index])) { $Element['attributes'] = array( 'style' => 'text-align: ' . $Block['alignments'][$index] . ';', ); } - $Elements []= $Element; + $Elements [] = $Element; } $Element = array( @@ -1135,7 +1016,7 @@ class Parsedown 'elements' => $Elements, ); - $Block['element']['elements'][1]['elements'] []= $Element; + $Block['element']['elements'][1]['elements'] [] = $Element; return $Block; } @@ -1145,8 +1026,7 @@ class Parsedown # ~ # - protected function paragraph($Line) - { + protected function paragraph($Line) { return array( 'type' => 'Paragraph', 'element' => array( @@ -1160,14 +1040,12 @@ class Parsedown ); } - protected function paragraphContinue($Line, array $Block) - { - if (isset($Block['interrupted'])) - { + protected function paragraphContinue($Line, array $Block) { + if (isset($Block['interrupted'])) { return; } - $Block['element']['handler']['argument'] .= "\n".$Line['text']; + $Block['element']['handler']['argument'] .= "\n" . $Line['text']; return $Block; } @@ -1197,13 +1075,11 @@ class Parsedown # ~ # - public function line($text, $nonNestables = array()) - { + public function line($text, $nonNestables = array()) { return $this->elements($this->lineElements($text, $nonNestables)); } - protected function lineElements($text, $nonNestables = array()) - { + protected function lineElements($text, $nonNestables = array()) { # standardize line breaks $text = str_replace(array("\r\n", "\r"), "\n", $text); @@ -1216,41 +1092,35 @@ class Parsedown # $excerpt is based on the first occurrence of a marker - while ($excerpt = strpbrk($text, $this->inlineMarkerList)) - { + while ($excerpt = strpbrk($text, $this->inlineMarkerList)) { $marker = $excerpt[0]; $markerPosition = strlen($text) - strlen($excerpt); $Excerpt = array('text' => $excerpt, 'context' => $text); - foreach ($this->InlineTypes[$marker] as $inlineType) - { + foreach ($this->InlineTypes[$marker] as $inlineType) { # check to see if the current inline type is nestable in the current context - if (isset($nonNestables[$inlineType])) - { + if (isset($nonNestables[$inlineType])) { continue; } $Inline = $this->{"inline$inlineType"}($Excerpt); - if ( ! isset($Inline)) - { + if (!isset($Inline)) { continue; } # makes sure that the inline belongs to "our" marker - if (isset($Inline['position']) and $Inline['position'] > $markerPosition) - { + if (isset($Inline['position']) and $Inline['position'] > $markerPosition) { continue; } # sets a default inline position - if ( ! isset($Inline['position'])) - { + if (!isset($Inline['position'])) { $Inline['position'] = $markerPosition; } @@ -1259,8 +1129,7 @@ class Parsedown $Inline['element']['nonNestables'] = isset($Inline['element']['nonNestables']) ? array_merge($Inline['element']['nonNestables'], $nonNestables) - : $nonNestables - ; + : $nonNestables; # the text that comes before the inline $unmarkedText = substr($text, 0, $Inline['position']); @@ -1291,10 +1160,8 @@ class Parsedown $InlineText = $this->inlineText($text); $Elements[] = $InlineText['element']; - foreach ($Elements as &$Element) - { - if ( ! isset($Element['autobreak'])) - { + foreach ($Elements as &$Element) { + if (!isset($Element['autobreak'])) { $Element['autobreak'] = false; } } @@ -1306,8 +1173,7 @@ class Parsedown # ~ # - protected function inlineText($text) - { + protected function inlineText($text) { $Inline = array( 'extent' => strlen($text), 'element' => array(), @@ -1325,12 +1191,10 @@ class Parsedown return $Inline; } - protected function inlineCode($Excerpt) - { + protected function inlineCode($Excerpt) { $marker = $Excerpt['text'][0]; - if (preg_match('/^(['.$marker.']++)[ ]*+(.+?)[ ]*+(?') !== false and preg_match("/^<((mailto:)?$commonMarkEmail)>/i", $Excerpt['text'], $matches) - ){ + ) { $url = $matches[1]; - if ( ! isset($matches[2])) - { + if (!isset($matches[2])) { $url = "mailto:$url"; } @@ -1374,25 +1236,18 @@ class Parsedown } } - protected function inlineEmphasis($Excerpt) - { - if ( ! isset($Excerpt['text'][1])) - { + protected function inlineEmphasis($Excerpt) { + if (!isset($Excerpt['text'][1])) { return; } $marker = $Excerpt['text'][0]; - if ($Excerpt['text'][1] === $marker and preg_match($this->StrongRegex[$marker], $Excerpt['text'], $matches)) - { + if ($Excerpt['text'][1] === $marker and preg_match($this->StrongRegex[$marker], $Excerpt['text'], $matches)) { $emphasis = 'strong'; - } - elseif (preg_match($this->EmRegex[$marker], $Excerpt['text'], $matches)) - { + } elseif (preg_match($this->EmRegex[$marker], $Excerpt['text'], $matches)) { $emphasis = 'em'; - } - else - { + } else { return; } @@ -1409,10 +1264,8 @@ class Parsedown ); } - protected function inlineEscapeSequence($Excerpt) - { - if (isset($Excerpt['text'][1]) and in_array($Excerpt['text'][1], $this->specialCharacters)) - { + protected function inlineEscapeSequence($Excerpt) { + if (isset($Excerpt['text'][1]) and in_array($Excerpt['text'][1], $this->specialCharacters)) { return array( 'element' => array('rawHtml' => $Excerpt['text'][1]), 'extent' => 2, @@ -1421,19 +1274,16 @@ class Parsedown } - protected function inlinewebm($Excerpt) - { - if ( ! isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[') - { + protected function inlinewebm($Excerpt) { + if (!isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[') { return; } - $Excerpt['text']= substr($Excerpt['text'], 1); + $Excerpt['text'] = substr($Excerpt['text'], 1); $Link = $this->inlineLink($Excerpt); - if ($Link === null) - { + if ($Link === null) { return; } @@ -1457,20 +1307,16 @@ class Parsedown } - - protected function inlineImage($Excerpt) - { - if ( ! isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[') - { + protected function inlineImage($Excerpt) { + if (!isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[') { return; } - $Excerpt['text']= substr($Excerpt['text'], 1); + $Excerpt['text'] = substr($Excerpt['text'], 1); $Link = $this->inlineLink($Excerpt); - if ($Link === null) - { + if ($Link === null) { return; } @@ -1493,8 +1339,7 @@ class Parsedown return $Inline; } - protected function inlineLink($Excerpt) - { + protected function inlineLink($Excerpt) { $Element = array( 'name' => 'a', 'handler' => array( @@ -1513,46 +1358,35 @@ class Parsedown $remainder = $Excerpt['text']; - if (preg_match('/\[((?:[^][]++|(?R))*+)\]/', $remainder, $matches)) - { + if (preg_match('/\[((?:[^][]++|(?R))*+)\]/', $remainder, $matches)) { $Element['handler']['argument'] = $matches[1]; $extent += strlen($matches[0]); $remainder = substr($remainder, $extent); - } - else - { + } else { return; } - if (preg_match('/^[(]\s*+((?:[^ ()]++|[(][^ )]+[)])++)(?:[ ]+("[^"]*+"|\'[^\']*+\'))?\s*+[)]/', $remainder, $matches)) - { + if (preg_match('/^[(]\s*+((?:[^ ()]++|[(][^ )]+[)])++)(?:[ ]+("[^"]*+"|\'[^\']*+\'))?\s*+[)]/', $remainder, $matches)) { $Element['attributes']['href'] = $matches[1]; - if (isset($matches[2])) - { - $Element['attributes']['title'] = substr($matches[2], 1, - 1); + if (isset($matches[2])) { + $Element['attributes']['title'] = substr($matches[2], 1, -1); } $extent += strlen($matches[0]); - } - else - { - if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches)) - { + } else { + if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches)) { $definition = strlen($matches[1]) ? $matches[1] : $Element['handler']['argument']; $definition = strtolower($definition); $extent += strlen($matches[0]); - } - else - { + } else { $definition = strtolower($Element['handler']['argument']); } - if ( ! isset($this->DefinitionData['Reference'][$definition])) - { + if (!isset($this->DefinitionData['Reference'][$definition])) { return; } @@ -1568,31 +1402,26 @@ class Parsedown ); } - protected function inlineMarkup($Excerpt) - { - if ($this->markupEscaped or $this->safeMode or strpos($Excerpt['text'], '>') === false) - { + protected function inlineMarkup($Excerpt) { + if ($this->markupEscaped or $this->safeMode or strpos($Excerpt['text'], '>') === false) { return; } - if ($Excerpt['text'][1] === '/' and preg_match('/^<\/\w[\w-]*+[ ]*+>/s', $Excerpt['text'], $matches)) - { + if ($Excerpt['text'][1] === '/' and preg_match('/^<\/\w[\w-]*+[ ]*+>/s', $Excerpt['text'], $matches)) { return array( 'element' => array('rawHtml' => $matches[0]), 'extent' => strlen($matches[0]), ); } - if ($Excerpt['text'][1] === '!' and preg_match('/^/s', $Excerpt['text'], $matches)) - { + if ($Excerpt['text'][1] === '!' and preg_match('/^/s', $Excerpt['text'], $matches)) { return array( 'element' => array('rawHtml' => $matches[0]), 'extent' => strlen($matches[0]), ); } - if ($Excerpt['text'][1] !== ' ' and preg_match('/^<\w[\w-]*+(?:[ ]*+'.$this->regexHtmlAttribute.')*+[ ]*+\/?>/s', $Excerpt['text'], $matches)) - { + if ($Excerpt['text'][1] !== ' ' and preg_match('/^<\w[\w-]*+(?:[ ]*+' . $this->regexHtmlAttribute . ')*+[ ]*+\/?>/s', $Excerpt['text'], $matches)) { return array( 'element' => array('rawHtml' => $matches[0]), 'extent' => strlen($matches[0]), @@ -1600,8 +1429,7 @@ class Parsedown } } - protected function inlineSpecialCharacter($Excerpt) - { + protected function inlineSpecialCharacter($Excerpt) { if (substr($Excerpt['text'], 1, 1) !== ' ' and strpos($Excerpt['text'], ';') !== false and preg_match('/^&(#?+[0-9a-zA-Z]++);/', $Excerpt['text'], $matches) ) { @@ -1614,15 +1442,12 @@ class Parsedown return; } - protected function inlineStrikethrough($Excerpt) - { - if ( ! isset($Excerpt['text'][1])) - { + protected function inlineStrikethrough($Excerpt) { + if (!isset($Excerpt['text'][1])) { return; } - if ($Excerpt['text'][1] === '~' and preg_match('/^~~(?=\S)(.+?)(?<=\S)~~/', $Excerpt['text'], $matches)) - { + if ($Excerpt['text'][1] === '~' and preg_match('/^~~(?=\S)(.+?)(?<=\S)~~/', $Excerpt['text'], $matches)) { return array( 'extent' => strlen($matches[0]), 'element' => array( @@ -1637,10 +1462,8 @@ class Parsedown } } - protected function inlineUrl($Excerpt) - { - if ($this->urlsLinked !== true or ! isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/') - { + protected function inlineUrl($Excerpt) { + if ($this->urlsLinked !== true or !isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/') { return; } @@ -1665,10 +1488,8 @@ class Parsedown } } - protected function inlineUrlTag($Excerpt) - { - if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<(\w++:\/{2}[^ >]++)>/i', $Excerpt['text'], $matches)) - { + protected function inlineUrlTag($Excerpt) { + if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<(\w++:\/{2}[^ >]++)>/i', $Excerpt['text'], $matches)) { $url = $matches[1]; return array( @@ -1686,8 +1507,7 @@ class Parsedown # ~ - protected function unmarkedText($text) - { + protected function unmarkedText($text) { $Inline = $this->inlineText($text); return $this->element($Inline['element']); } @@ -1696,24 +1516,18 @@ class Parsedown # Handlers # - protected function handle(array $Element) - { - if (isset($Element['handler'])) - { - if (!isset($Element['nonNestables'])) - { + protected function handle(array $Element) { + if (isset($Element['handler'])) { + if (!isset($Element['nonNestables'])) { $Element['nonNestables'] = array(); } - if (is_string($Element['handler'])) - { + if (is_string($Element['handler'])) { $function = $Element['handler']; $argument = $Element['text']; unset($Element['text']); $destination = 'rawHtml'; - } - else - { + } else { $function = $Element['handler']['function']; $argument = $Element['handler']['argument']; $destination = $Element['handler']['destination']; @@ -1721,8 +1535,7 @@ class Parsedown $Element[$destination] = $this->{$function}($argument, $Element['nonNestables']); - if ($destination === 'handler') - { + if ($destination === 'handler') { $Element = $this->handle($Element); } @@ -1732,40 +1545,30 @@ class Parsedown return $Element; } - protected function handleElementRecursive(array $Element) - { + protected function handleElementRecursive(array $Element) { return $this->elementApplyRecursive(array($this, 'handle'), $Element); } - protected function handleElementsRecursive(array $Elements) - { + protected function handleElementsRecursive(array $Elements) { return $this->elementsApplyRecursive(array($this, 'handle'), $Elements); } - protected function elementApplyRecursive($closure, array $Element) - { + protected function elementApplyRecursive($closure, array $Element) { $Element = call_user_func($closure, $Element); - if (isset($Element['elements'])) - { + if (isset($Element['elements'])) { $Element['elements'] = $this->elementsApplyRecursive($closure, $Element['elements']); - } - elseif (isset($Element['element'])) - { + } elseif (isset($Element['element'])) { $Element['element'] = $this->elementApplyRecursive($closure, $Element['element']); } return $Element; } - protected function elementApplyRecursiveDepthFirst($closure, array $Element) - { - if (isset($Element['elements'])) - { + protected function elementApplyRecursiveDepthFirst($closure, array $Element) { + if (isset($Element['elements'])) { $Element['elements'] = $this->elementsApplyRecursiveDepthFirst($closure, $Element['elements']); - } - elseif (isset($Element['element'])) - { + } elseif (isset($Element['element'])) { $Element['element'] = $this->elementsApplyRecursiveDepthFirst($closure, $Element['element']); } @@ -1774,30 +1577,24 @@ class Parsedown return $Element; } - protected function elementsApplyRecursive($closure, array $Elements) - { - foreach ($Elements as &$Element) - { + protected function elementsApplyRecursive($closure, array $Elements) { + foreach ($Elements as &$Element) { $Element = $this->elementApplyRecursive($closure, $Element); } return $Elements; } - protected function elementsApplyRecursiveDepthFirst($closure, array $Elements) - { - foreach ($Elements as &$Element) - { + protected function elementsApplyRecursiveDepthFirst($closure, array $Elements) { + foreach ($Elements as &$Element) { $Element = $this->elementApplyRecursiveDepthFirst($closure, $Element); } return $Elements; } - protected function element(array $Element) - { - if ($this->safeMode) - { + protected function element(array $Element) { + if ($this->safeMode) { $Element = $this->sanitiseElement($Element); } @@ -1808,34 +1605,28 @@ class Parsedown $markup = ''; - if ($hasName) - { + if ($hasName) { $markup .= '<' . $Element['name']; - if (isset($Element['attributes'])) - { - foreach ($Element['attributes'] as $name => $value) - { - if ($value === null) - { + if (isset($Element['attributes'])) { + foreach ($Element['attributes'] as $name => $value) { + if ($value === null) { continue; } - $markup .= " $name=\"".self::escape($value).'"'; + $markup .= " $name=\"" . self::escape($value) . '"'; } } } $permitRawHtml = false; - if (isset($Element['text'])) - { + if (isset($Element['text'])) { $text = $Element['text']; } // very strongly consider an alternative if you're writing an // extension - elseif (isset($Element['rawHtml'])) - { + elseif (isset($Element['rawHtml'])) { $text = $Element['rawHtml']; $allowRawHtmlInSafeMode = isset($Element['allowRawHtmlInSafeMode']) && $Element['allowRawHtmlInSafeMode']; @@ -1844,50 +1635,36 @@ class Parsedown $hasContent = isset($text) || isset($Element['element']) || isset($Element['elements']); - if ($hasContent) - { + if ($hasContent) { $markup .= $hasName ? '>' : ''; - if (isset($Element['elements'])) - { + if (isset($Element['elements'])) { $markup .= $this->elements($Element['elements']); - } - elseif (isset($Element['element'])) - { + } elseif (isset($Element['element'])) { $markup .= $this->element($Element['element']); - } - else - { - if (!$permitRawHtml) - { + } else { + if (!$permitRawHtml) { $markup .= self::escape($text, true); - } - else - { + } else { $markup .= $text; } } $markup .= $hasName ? '' : ''; - } - elseif ($hasName) - { + } elseif ($hasName) { $markup .= ' />'; } return $markup; } - protected function elements(array $Elements) - { + protected function elements(array $Elements) { $markup = ''; $autoBreak = true; - foreach ($Elements as $Element) - { - if (empty($Element)) - { + foreach ($Elements as $Element) { + if (empty($Element)) { continue; } @@ -1908,11 +1685,10 @@ class Parsedown # ~ - protected function li($lines) - { + protected function li($lines) { $Elements = $this->linesElements($lines); - if ( ! in_array('', $lines) + if (!in_array('', $lines) and isset($Elements[0]) and isset($Elements[0]['name']) and $Elements[0]['name'] === 'p' ) { @@ -1930,20 +1706,17 @@ class Parsedown * Replace occurrences $regexp with $Elements in $text. Return an array of * elements representing the replacement. */ - protected static function pregReplaceElements($regexp, $Elements, $text) - { + protected static function pregReplaceElements($regexp, $Elements, $text) { $newElements = array(); - while (preg_match($regexp, $text, $matches, PREG_OFFSET_CAPTURE)) - { + while (preg_match($regexp, $text, $matches, PREG_OFFSET_CAPTURE)) { $offset = $matches[0][1]; $before = substr($text, 0, $offset); $after = substr($text, $offset + strlen($matches[0][0])); $newElements[] = array('text' => $before); - foreach ($Elements as $Element) - { + foreach ($Elements as $Element) { $newElements[] = $Element; } @@ -1959,44 +1732,35 @@ class Parsedown # Deprecated Methods # - function parse($text) - { + function parse($text) { $markup = $this->text($text); return $markup; } - protected function sanitiseElement(array $Element) - { + protected function sanitiseElement(array $Element) { static $goodAttribute = '/^[a-zA-Z0-9][a-zA-Z0-9-_]*+$/'; - static $safeUrlNameToAtt = array( - 'a' => 'href', + static $safeUrlNameToAtt = array( + 'a' => 'href', 'img' => 'src', ); - if ( ! isset($Element['name'])) - { + if (!isset($Element['name'])) { unset($Element['attributes']); return $Element; } - if (isset($safeUrlNameToAtt[$Element['name']])) - { + if (isset($safeUrlNameToAtt[$Element['name']])) { $Element = $this->filterUnsafeUrlInAttribute($Element, $safeUrlNameToAtt[$Element['name']]); } - if ( ! empty($Element['attributes'])) - { - foreach ($Element['attributes'] as $att => $val) - { + if (!empty($Element['attributes'])) { + foreach ($Element['attributes'] as $att => $val) { # filter out badly parsed attribute - if ( ! preg_match($goodAttribute, $att)) - { + if (!preg_match($goodAttribute, $att)) { unset($Element['attributes'][$att]); - } - # dump onevent attribute - elseif (self::striAtStart($att, 'on')) - { + } # dump onevent attribute + elseif (self::striAtStart($att, 'on')) { unset($Element['attributes'][$att]); } } @@ -2005,12 +1769,9 @@ class Parsedown return $Element; } - protected function filterUnsafeUrlInAttribute(array $Element, $attribute) - { - foreach ($this->safeLinksWhitelist as $scheme) - { - if (self::striAtStart($Element['attributes'][$attribute], $scheme)) - { + protected function filterUnsafeUrlInAttribute(array $Element, $attribute) { + foreach ($this->safeLinksWhitelist as $scheme) { + if (self::striAtStart($Element['attributes'][$attribute], $scheme)) { return $Element; } } @@ -2024,29 +1785,22 @@ class Parsedown # Static Methods # - protected static function escape($text, $allowQuotes = false) - { + protected static function escape($text, $allowQuotes = false) { return htmlspecialchars($text, $allowQuotes ? ENT_NOQUOTES : ENT_QUOTES, 'UTF-8'); } - protected static function striAtStart($string, $needle) - { + protected static function striAtStart($string, $needle) { $len = strlen($needle); - if ($len > strlen($string)) - { + if ($len > strlen($string)) { return false; - } - else - { + } else { return strtolower(substr($string, 0, $len)) === strtolower($needle); } } - static function instance($name = 'default') - { - if (isset(self::$instances[$name])) - { + static function instance($name = 'default') { + if (isset(self::$instances[$name])) { return self::$instances[$name]; } @@ -2082,7 +1836,7 @@ class Parsedown '_' => '/^_((?:\\\\_|[^_]|__[^_]*__)+?)_(?!_)\b/us', ); - protected $regexHtmlAttribute = '[a-zA-Z_:][\w:.-]*+(?:\s*+=\s*+(?:[^"\'=<`\s]+|"[^"]*+"|\'[^\']*+\'))?+'; + protected $regexHtmlAttribute = '[a-zA-Z_:][\w:.-]*+(?:\s*+=\s*+(?:[^"\'=<`\s]+|"[^"]*+"|\'[^\']*+\'))?+'; protected $voidElements = array( 'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source', @@ -2091,12 +1845,12 @@ class Parsedown protected $textLevelElements = array( 'a', 'br', 'bdo', 'abbr', 'blink', 'nextid', 'acronym', 'basefont', 'b', 'em', 'big', 'cite', 'small', 'spacer', 'listing', - 'i', 'rp', 'del', 'code', 'strike', 'marquee', - 'q', 'rt', 'ins', 'font', 'strong', + 'i', 'rp', 'del', 'code', 'strike', 'marquee', + 'q', 'rt', 'ins', 'font', 'strong', 's', 'tt', 'kbd', 'mark', 'u', 'xm', 'sub', 'nobr', - 'sup', 'ruby', - 'var', 'span', - 'wbr', 'time', + 'sup', 'ruby', + 'var', 'span', + 'wbr', 'time', ); } \ No newline at end of file diff --git a/includes/Parsedown/ParsedownExtra.php b/includes/Parsedown/ParsedownExtra.php index 8cdb5d2..c46e199 100644 --- a/includes/Parsedown/ParsedownExtra.php +++ b/includes/Parsedown/ParsedownExtra.php @@ -13,23 +13,20 @@ # # -class ParsedownExtra extends Parsedown -{ +class ParsedownExtra extends Parsedown { # ~ const version = '0.8.0'; # ~ - function __construct() - { - if (version_compare(parent::version, '1.7.1') < 0) - { + function __construct() { + if (version_compare(parent::version, '1.7.1') < 0) { throw new Exception('ParsedownExtra requires a later version of Parsedown'); } - $this->BlockTypes[':'] []= 'DefinitionList'; - $this->BlockTypes['*'] []= 'Abbreviation'; + $this->BlockTypes[':'] [] = 'DefinitionList'; + $this->BlockTypes['*'] [] = 'Abbreviation'; # identify footnote definitions before reference definitions array_unshift($this->BlockTypes['['], 'Footnote'); @@ -41,8 +38,7 @@ class ParsedownExtra extends Parsedown # # ~ - function text($text) - { + function text($text) { $Elements = $this->textElements($text); # convert to markup @@ -57,8 +53,7 @@ class ParsedownExtra extends Parsedown # add footnotes - if (isset($this->DefinitionData['Footnote'])) - { + if (isset($this->DefinitionData['Footnote'])) { $Element = $this->buildFootnoteElement(); $markup .= "\n" . $this->element($Element); @@ -74,10 +69,8 @@ class ParsedownExtra extends Parsedown # # Abbreviation - protected function blockAbbreviation($Line) - { - if (preg_match('/^\*\[(.+?)\]:[ ]*(.+?)[ ]*$/', $Line['text'], $matches)) - { + protected function blockAbbreviation($Line) { + if (preg_match('/^\*\[(.+?)\]:[ ]*(.+?)[ ]*$/', $Line['text'], $matches)) { $this->DefinitionData['Abbreviation'][$matches[1]] = $matches[2]; $Block = array( @@ -91,10 +84,8 @@ class ParsedownExtra extends Parsedown # # Footnote - protected function blockFootnote($Line) - { - if (preg_match('/^\[\^(.+?)\]:[ ]?(.*)$/', $Line['text'], $matches)) - { + protected function blockFootnote($Line) { + if (preg_match('/^\[\^(.+?)\]:[ ]?(.*)$/', $Line['text'], $matches)) { $Block = array( 'label' => $matches[1], 'text' => $matches[2], @@ -105,32 +96,25 @@ class ParsedownExtra extends Parsedown } } - protected function blockFootnoteContinue($Line, $Block) - { - if ($Line['text'][0] === '[' and preg_match('/^\[\^(.+?)\]:/', $Line['text'])) - { + protected function blockFootnoteContinue($Line, $Block) { + if ($Line['text'][0] === '[' and preg_match('/^\[\^(.+?)\]:/', $Line['text'])) { return; } - if (isset($Block['interrupted'])) - { - if ($Line['indent'] >= 4) - { + if (isset($Block['interrupted'])) { + if ($Line['indent'] >= 4) { $Block['text'] .= "\n\n" . $Line['text']; return $Block; } - } - else - { + } else { $Block['text'] .= "\n" . $Line['text']; return $Block; } } - protected function blockFootnoteComplete($Block) - { + protected function blockFootnoteComplete($Block) { $this->DefinitionData['Footnote'][$Block['label']] = array( 'text' => $Block['text'], 'count' => null, @@ -143,10 +127,8 @@ class ParsedownExtra extends Parsedown # # Definition List - protected function blockDefinitionList($Line, $Block) - { - if ( ! isset($Block) or $Block['type'] !== 'Paragraph') - { + protected function blockDefinitionList($Line, $Block) { + if (!isset($Block) or $Block['type'] !== 'Paragraph') { return; } @@ -157,9 +139,8 @@ class ParsedownExtra extends Parsedown $terms = explode("\n", $Block['element']['handler']['argument']); - foreach ($terms as $term) - { - $Element['elements'] []= array( + foreach ($terms as $term) { + $Element['elements'] [] = array( 'name' => 'dt', 'handler' => array( 'function' => 'lineElements', @@ -176,23 +157,17 @@ class ParsedownExtra extends Parsedown return $Block; } - protected function blockDefinitionListContinue($Line, array $Block) - { - if ($Line['text'][0] === ':') - { + protected function blockDefinitionListContinue($Line, array $Block) { + if ($Line['text'][0] === ':') { $Block = $this->addDdElement($Line, $Block); return $Block; - } - else - { - if (isset($Block['interrupted']) and $Line['indent'] === 0) - { + } else { + if (isset($Block['interrupted']) and $Line['indent'] === 0) { return; } - if (isset($Block['interrupted'])) - { + if (isset($Block['interrupted'])) { $Block['dd']['handler']['function'] = 'textElements'; $Block['dd']['handler']['argument'] .= "\n\n"; @@ -212,12 +187,10 @@ class ParsedownExtra extends Parsedown # # Header - protected function blockHeader($Line) - { + protected function blockHeader($Line) { $Block = parent::blockHeader($Line); - if ($Block !== null && preg_match('/[ #]*{('.$this->regexAttribute.'+)}[ ]*$/', $Block['element']['handler']['argument'], $matches, PREG_OFFSET_CAPTURE)) - { + if ($Block !== null && preg_match('/[ #]*{(' . $this->regexAttribute . '+)}[ ]*$/', $Block['element']['handler']['argument'], $matches, PREG_OFFSET_CAPTURE)) { $attributeString = $matches[1][0]; $Block['element']['attributes'] = $this->parseAttributeData($attributeString); @@ -231,19 +204,15 @@ class ParsedownExtra extends Parsedown # # Markup - protected function blockMarkup($Line) - { - if ($this->markupEscaped or $this->safeMode) - { + protected function blockMarkup($Line) { + if ($this->markupEscaped or $this->safeMode) { return; } - if (preg_match('/^<(\w[\w-]*)(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*(\/)?>/', $Line['text'], $matches)) - { + if (preg_match('/^<(\w[\w-]*)(?:[ ]*' . $this->regexHtmlAttribute . ')*[ ]*(\/)?>/', $Line['text'], $matches)) { $element = strtolower($matches[1]); - if (in_array($element, $this->textLevelElements)) - { + if (in_array($element, $this->textLevelElements)) { return; } @@ -259,22 +228,16 @@ class ParsedownExtra extends Parsedown $length = strlen($matches[0]); $remainder = substr($Line['text'], $length); - if (trim($remainder) === '') - { - if (isset($matches[2]) or in_array($matches[1], $this->voidElements)) - { + if (trim($remainder) === '') { + if (isset($matches[2]) or in_array($matches[1], $this->voidElements)) { $Block['closed'] = true; $Block['void'] = true; } - } - else - { - if (isset($matches[2]) or in_array($matches[1], $this->voidElements)) - { + } else { + if (isset($matches[2]) or in_array($matches[1], $this->voidElements)) { return; } - if (preg_match('/<\/'.$matches[1].'>[ ]*$/i', $remainder)) - { + if (preg_match('/<\/' . $matches[1] . '>[ ]*$/i', $remainder)) { $Block['closed'] = true; } } @@ -283,45 +246,37 @@ class ParsedownExtra extends Parsedown } } - protected function blockMarkupContinue($Line, array $Block) - { - if (isset($Block['closed'])) - { + protected function blockMarkupContinue($Line, array $Block) { + if (isset($Block['closed'])) { return; } - if (preg_match('/^<'.$Block['name'].'(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*>/i', $Line['text'])) # open + if (preg_match('/^<' . $Block['name'] . '(?:[ ]*' . $this->regexHtmlAttribute . ')*[ ]*>/i', $Line['text'])) # open { - $Block['depth'] ++; + $Block['depth']++; } - if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'], $matches)) # close + if (preg_match('/(.*?)<\/' . $Block['name'] . '>[ ]*$/i', $Line['text'], $matches)) # close { - if ($Block['depth'] > 0) - { - $Block['depth'] --; - } - else - { + if ($Block['depth'] > 0) { + $Block['depth']--; + } else { $Block['closed'] = true; } } - if (isset($Block['interrupted'])) - { + if (isset($Block['interrupted'])) { $Block['element']['rawHtml'] .= "\n"; unset($Block['interrupted']); } - $Block['element']['rawHtml'] .= "\n".$Line['body']; + $Block['element']['rawHtml'] .= "\n" . $Line['body']; return $Block; } - protected function blockMarkupComplete($Block) - { - if ( ! isset($Block['void'])) - { + protected function blockMarkupComplete($Block) { + if (!isset($Block['void'])) { $Block['element']['rawHtml'] = $this->processTag($Block['element']['rawHtml']); } @@ -331,12 +286,10 @@ class ParsedownExtra extends Parsedown # # Setext - protected function blockSetextHeader($Line, array $Block = null) - { + protected function blockSetextHeader($Line, array $Block = null) { $Block = parent::blockSetextHeader($Line, $Block); - if ($Block !== null && preg_match('/[ ]*{('.$this->regexAttribute.'+)}[ ]*$/', $Block['element']['handler']['argument'], $matches, PREG_OFFSET_CAPTURE)) - { + if ($Block !== null && preg_match('/[ ]*{(' . $this->regexAttribute . '+)}[ ]*$/', $Block['element']['handler']['argument'], $matches, PREG_OFFSET_CAPTURE)) { $attributeString = $matches[1][0]; $Block['element']['attributes'] = $this->parseAttributeData($attributeString); @@ -354,30 +307,26 @@ class ParsedownExtra extends Parsedown # # Footnote Marker - protected function inlineFootnoteMarker($Excerpt) - { - if (preg_match('/^\[\^(.+?)\]/', $Excerpt['text'], $matches)) - { + protected function inlineFootnoteMarker($Excerpt) { + if (preg_match('/^\[\^(.+?)\]/', $Excerpt['text'], $matches)) { $name = $matches[1]; - if ( ! isset($this->DefinitionData['Footnote'][$name])) - { + if (!isset($this->DefinitionData['Footnote'][$name])) { return; } - $this->DefinitionData['Footnote'][$name]['count'] ++; + $this->DefinitionData['Footnote'][$name]['count']++; - if ( ! isset($this->DefinitionData['Footnote'][$name]['number'])) - { - $this->DefinitionData['Footnote'][$name]['number'] = ++ $this->footnoteCount; # » & + if (!isset($this->DefinitionData['Footnote'][$name]['number'])) { + $this->DefinitionData['Footnote'][$name]['number'] = ++$this->footnoteCount; # » & } $Element = array( 'name' => 'sup', - 'attributes' => array('id' => 'fnref'.$this->DefinitionData['Footnote'][$name]['count'].':'.$name), + 'attributes' => array('id' => 'fnref' . $this->DefinitionData['Footnote'][$name]['count'] . ':' . $name), 'element' => array( 'name' => 'a', - 'attributes' => array('href' => '#fn:'.$name, 'class' => 'footnote-ref'), + 'attributes' => array('href' => '#fn:' . $name, 'class' => 'footnote-ref'), 'text' => $this->DefinitionData['Footnote'][$name]['number'], ), ); @@ -394,14 +343,12 @@ class ParsedownExtra extends Parsedown # # Link - protected function inlineLink($Excerpt) - { + protected function inlineLink($Excerpt) { $Link = parent::inlineLink($Excerpt); $remainder = $Link !== null ? substr($Excerpt['text'], $Link['extent']) : ''; - if (preg_match('/^[ ]*{('.$this->regexAttribute.'+)}/', $remainder, $matches)) - { + if (preg_match('/^[ ]*{(' . $this->regexAttribute . '+)}/', $remainder, $matches)) { $Link['element']['attributes'] += $this->parseAttributeData($matches[1]); $Link['extent'] += strlen($matches[0]); @@ -417,12 +364,10 @@ class ParsedownExtra extends Parsedown private $currentAbreviation; private $currentMeaning; - protected function insertAbreviation(array $Element) - { - if (isset($Element['text'])) - { + protected function insertAbreviation(array $Element) { + if (isset($Element['text'])) { $Element['elements'] = self::pregReplaceElements( - '/\b'.preg_quote($this->currentAbreviation, '/').'\b/', + '/\b' . preg_quote($this->currentAbreviation, '/') . '\b/', array( array( 'name' => 'abbr', @@ -441,14 +386,11 @@ class ParsedownExtra extends Parsedown return $Element; } - protected function inlineText($text) - { + protected function inlineText($text) { $Inline = parent::inlineText($text); - if (isset($this->DefinitionData['Abbreviation'])) - { - foreach ($this->DefinitionData['Abbreviation'] as $abbreviation => $meaning) - { + if (isset($this->DefinitionData['Abbreviation'])) { + foreach ($this->DefinitionData['Abbreviation'] as $abbreviation => $meaning) { $this->currentAbreviation = $abbreviation; $this->currentMeaning = $meaning; @@ -466,8 +408,7 @@ class ParsedownExtra extends Parsedown # Util Methods # - protected function addDdElement(array $Line, array $Block) - { + protected function addDdElement(array $Line, array $Block) { $text = substr($Line['text'], 1); $text = trim($text); @@ -482,20 +423,18 @@ class ParsedownExtra extends Parsedown ), ); - if (isset($Block['interrupted'])) - { + if (isset($Block['interrupted'])) { $Block['dd']['handler']['function'] = 'textElements'; unset($Block['interrupted']); } - $Block['element']['elements'] []= & $Block['dd']; + $Block['element']['elements'] [] = &$Block['dd']; return $Block; } - protected function buildFootnoteElement() - { + protected function buildFootnoteElement() { $Element = array( 'name' => 'div', 'attributes' => array('class' => 'footnotes'), @@ -510,10 +449,8 @@ class ParsedownExtra extends Parsedown uasort($this->DefinitionData['Footnote'], 'self::sortFootnotes'); - foreach ($this->DefinitionData['Footnote'] as $definitionId => $DefinitionData) - { - if ( ! isset($DefinitionData['number'])) - { + foreach ($this->DefinitionData['Footnote'] as $definitionId => $DefinitionData) { + if (!isset($DefinitionData['number'])) { continue; } @@ -525,8 +462,7 @@ class ParsedownExtra extends Parsedown $backLinkElements = array(); - foreach ($numbers as $number) - { + foreach ($numbers as $number) { $backLinkElements[] = array('text' => ' '); $backLinkElements[] = array( 'name' => 'a', @@ -543,10 +479,9 @@ class ParsedownExtra extends Parsedown unset($backLinkElements[0]); - $n = count($textElements) -1; + $n = count($textElements) - 1; - if ($textElements[$n]['name'] === 'p') - { + if ($textElements[$n]['name'] === 'p') { $backLinkElements = array_merge( array( array( @@ -566,18 +501,16 @@ class ParsedownExtra extends Parsedown $backLinkElements ), ); - } - else - { + } else { $textElements[] = array( 'name' => 'p', 'elements' => $backLinkElements ); } - $Element['elements'][1]['elements'] []= array( + $Element['elements'][1]['elements'] [] = array( 'name' => 'li', - 'attributes' => array('id' => 'fn:'.$definitionId), + 'attributes' => array('id' => 'fn:' . $definitionId), 'elements' => array_merge( $textElements ), @@ -589,26 +522,21 @@ class ParsedownExtra extends Parsedown # ~ - protected function parseAttributeData($attributeString) - { + protected function parseAttributeData($attributeString) { $Data = array(); - $attributes = preg_split('/[ ]+/', $attributeString, - 1, PREG_SPLIT_NO_EMPTY); + $attributes = preg_split('/[ ]+/', $attributeString, -1, PREG_SPLIT_NO_EMPTY); - foreach ($attributes as $attribute) - { - if ($attribute[0] === '#') - { + foreach ($attributes as $attribute) { + if ($attribute[0] === '#') { $Data['id'] = substr($attribute, 1); - } - else # "." + } else # "." { - $classes []= substr($attribute, 1); + $classes [] = substr($attribute, 1); } } - if (isset($classes)) - { + if (isset($classes)) { $Data['class'] = implode(' ', $classes); } @@ -634,29 +562,21 @@ class ParsedownExtra extends Parsedown $elementText = ''; - if ($DOMDocument->documentElement->getAttribute('markdown') === '1') - { - foreach ($DOMDocument->documentElement->childNodes as $Node) - { + if ($DOMDocument->documentElement->getAttribute('markdown') === '1') { + foreach ($DOMDocument->documentElement->childNodes as $Node) { $elementText .= $DOMDocument->saveHTML($Node); } $DOMDocument->documentElement->removeAttribute('markdown'); - $elementText = "\n".$this->text($elementText)."\n"; - } - else - { - foreach ($DOMDocument->documentElement->childNodes as $Node) - { + $elementText = "\n" . $this->text($elementText) . "\n"; + } else { + foreach ($DOMDocument->documentElement->childNodes as $Node) { $nodeMarkup = $DOMDocument->saveHTML($Node); - if ($Node instanceof DOMElement and ! in_array($Node->nodeName, $this->textLevelElements)) - { + if ($Node instanceof DOMElement and !in_array($Node->nodeName, $this->textLevelElements)) { $elementText .= $this->processTag($nodeMarkup); - } - else - { + } else { $elementText .= $nodeMarkup; } } diff --git a/includes/Parsedown/SecureParsedown.php b/includes/Parsedown/SecureParsedown.php index 1a71139..c6ff026 100644 --- a/includes/Parsedown/SecureParsedown.php +++ b/includes/Parsedown/SecureParsedown.php @@ -2,13 +2,11 @@ namespace Aidantwoods\SecureParsedown; -class SecureParsedown extends \Parsedown -{ +class SecureParsedown extends \Parsedown { const version = '1.0.1'; - function setSafeMode($safeMode) - { - $this->safeMode = (bool) $safeMode; + function setSafeMode($safeMode) { + $this->safeMode = (bool)$safeMode; return $this; } @@ -32,39 +30,7 @@ class SecureParsedown extends \Parsedown 'steam:', ); - protected function blockCodeComplete($Block) - { - $text = $Block['element']['text']['text']; - - $Block['element']['text']['text'] = $text; - - return $Block; - } - - protected function blockComment($Line) - { - if ($this->markupEscaped or $this->safeMode) - { - return; - } - - if (isset($Line['text'][3]) and $Line['text'][3] === '-' and $Line['text'][2] === '-' and $Line['text'][1] === '!') - { - $Block = array( - 'markup' => $Line['body'], - ); - - if (preg_match('/-->$/', $Line['text'])) - { - $Block['closed'] = true; - } - - return $Block; - } - } - - protected function blockFencedCodeComplete($Block) - { + protected function blockCodeComplete($Block) { $text = $Block['element']['text']['text']; $Block['element']['text']['text'] = $text; @@ -72,19 +38,41 @@ class SecureParsedown extends \Parsedown return $Block; } - protected function blockMarkup($Line) - { - if ($this->markupEscaped or $this->safeMode) - { + protected function blockComment($Line) { + if ($this->markupEscaped or $this->safeMode) { return; } - if (preg_match('/^<(\w*)(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*(\/)?>/', $Line['text'], $matches)) - { + if (isset($Line['text'][3]) and $Line['text'][3] === '-' and $Line['text'][2] === '-' and $Line['text'][1] === '!') { + $Block = array( + 'markup' => $Line['body'], + ); + + if (preg_match('/-->$/', $Line['text'])) { + $Block['closed'] = true; + } + + return $Block; + } + } + + protected function blockFencedCodeComplete($Block) { + $text = $Block['element']['text']['text']; + + $Block['element']['text']['text'] = $text; + + return $Block; + } + + protected function blockMarkup($Line) { + if ($this->markupEscaped or $this->safeMode) { + return; + } + + if (preg_match('/^<(\w*)(?:[ ]*' . $this->regexHtmlAttribute . ')*[ ]*(\/)?>/', $Line['text'], $matches)) { $element = strtolower($matches[1]); - if (in_array($element, $this->textLevelElements)) - { + if (in_array($element, $this->textLevelElements)) { return; } @@ -98,24 +86,18 @@ class SecureParsedown extends \Parsedown $remainder = substr($Line['text'], $length); - if (trim($remainder) === '') - { - if (isset($matches[2]) or in_array($matches[1], $this->voidElements)) - { + if (trim($remainder) === '') { + if (isset($matches[2]) or in_array($matches[1], $this->voidElements)) { $Block['closed'] = true; $Block['void'] = true; } - } - else - { - if (isset($matches[2]) or in_array($matches[1], $this->voidElements)) - { + } else { + if (isset($matches[2]) or in_array($matches[1], $this->voidElements)) { return; } - if (preg_match('/<\/'.$matches[1].'>[ ]*$/i', $remainder)) - { + if (preg_match('/<\/' . $matches[1] . '>[ ]*$/i', $remainder)) { $Block['closed'] = true; } } @@ -124,12 +106,10 @@ class SecureParsedown extends \Parsedown } } - protected function inlineCode($Excerpt) - { + protected function inlineCode($Excerpt) { $marker = $Excerpt['text'][0]; - if (preg_match('/^('.$marker.'+)[ ]*(.+?)[ ]*(? 'a', 'handler' => 'line', @@ -159,46 +138,35 @@ class SecureParsedown extends \Parsedown $remainder = $Excerpt['text']; - if (preg_match('/\[((?:[^][]++|(?R))*+)\]/', $remainder, $matches)) - { + if (preg_match('/\[((?:[^][]++|(?R))*+)\]/', $remainder, $matches)) { $Element['text'] = $matches[1]; $extent += strlen($matches[0]); $remainder = substr($remainder, $extent); - } - else - { + } else { return; } - if (preg_match('/^[(]\s*+((?:[^ ()]++|[(][^ )]+[)])++)(?:[ ]+("[^"]*"|\'[^\']*\'))?\s*[)]/', $remainder, $matches)) - { + if (preg_match('/^[(]\s*+((?:[^ ()]++|[(][^ )]+[)])++)(?:[ ]+("[^"]*"|\'[^\']*\'))?\s*[)]/', $remainder, $matches)) { $Element['attributes']['href'] = $matches[1]; - if (isset($matches[2])) - { - $Element['attributes']['title'] = substr($matches[2], 1, - 1); + if (isset($matches[2])) { + $Element['attributes']['title'] = substr($matches[2], 1, -1); } $extent += strlen($matches[0]); - } - else - { - if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches)) - { + } else { + if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches)) { $definition = strlen($matches[1]) ? $matches[1] : $Element['text']; $definition = strtolower($definition); $extent += strlen($matches[0]); - } - else - { + } else { $definition = strtolower($Element['text']); } - if ( ! isset($this->DefinitionData['Reference'][$definition])) - { + if (!isset($this->DefinitionData['Reference'][$definition])) { return; } @@ -214,31 +182,26 @@ class SecureParsedown extends \Parsedown ); } - protected function inlineMarkup($Excerpt) - { - if ($this->markupEscaped or $this->safeMode or strpos($Excerpt['text'], '>') === false) - { + protected function inlineMarkup($Excerpt) { + if ($this->markupEscaped or $this->safeMode or strpos($Excerpt['text'], '>') === false) { return; } - if ($Excerpt['text'][1] === '/' and preg_match('/^<\/\w*[ ]*>/s', $Excerpt['text'], $matches)) - { + if ($Excerpt['text'][1] === '/' and preg_match('/^<\/\w*[ ]*>/s', $Excerpt['text'], $matches)) { return array( 'markup' => $matches[0], 'extent' => strlen($matches[0]), ); } - if ($Excerpt['text'][1] === '!' and preg_match('/^/s', $Excerpt['text'], $matches)) - { + if ($Excerpt['text'][1] === '!' and preg_match('/^/s', $Excerpt['text'], $matches)) { return array( 'markup' => $matches[0], 'extent' => strlen($matches[0]), ); } - if ($Excerpt['text'][1] !== ' ' and preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $Excerpt['text'], $matches)) - { + if ($Excerpt['text'][1] !== ' ' and preg_match('/^<\w*(?:[ ]*' . $this->regexHtmlAttribute . ')*[ ]*\/?>/s', $Excerpt['text'], $matches)) { return array( 'markup' => $matches[0], 'extent' => strlen($matches[0]), @@ -246,15 +209,12 @@ class SecureParsedown extends \Parsedown } } - protected function inlineUrl($Excerpt) - { - if ($this->urlsLinked !== true or ! isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/') - { + protected function inlineUrl($Excerpt) { + if ($this->urlsLinked !== true or !isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/') { return; } - if (preg_match('/\bhttps?:[\/]{2}[^\s<]+\b\/*/ui', $Excerpt['context'], $matches, PREG_OFFSET_CAPTURE)) - { + if (preg_match('/\bhttps?:[\/]{2}[^\s<]+\b\/*/ui', $Excerpt['context'], $matches, PREG_OFFSET_CAPTURE)) { $url = $matches[0][0]; $Inline = array( @@ -273,10 +233,8 @@ class SecureParsedown extends \Parsedown } } - protected function inlineUrlTag($Excerpt) - { - if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<(\w+:\/{2}[^ >]+)>/i', $Excerpt['text'], $matches)) - { + protected function inlineUrlTag($Excerpt) { + if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<(\w+:\/{2}[^ >]+)>/i', $Excerpt['text'], $matches)) { $url = $matches[1]; return array( @@ -292,76 +250,58 @@ class SecureParsedown extends \Parsedown } } - protected function element(array $Element) - { - if ($this->safeMode) - { + protected function element(array $Element) { + if ($this->safeMode) { $Element = $this->sanitiseElement($Element); } - $markup = '<'.$Element['name']; + $markup = '<' . $Element['name']; - if (isset($Element['attributes'])) - { - foreach ($Element['attributes'] as $name => $value) - { - if ($value === null) - { + if (isset($Element['attributes'])) { + foreach ($Element['attributes'] as $name => $value) { + if ($value === null) { continue; } - $markup .= ' '.$name.'="'.self::escape($value).'"'; + $markup .= ' ' . $name . '="' . self::escape($value) . '"'; } } - if (isset($Element['text'])) - { + if (isset($Element['text'])) { $markup .= '>'; - if (isset($Element['handler'])) - { + if (isset($Element['handler'])) { $markup .= $this->{$Element['handler']}($Element['text']); - } - else - { + } else { $markup .= self::escape($Element['text'], true); } - $markup .= ''; - } - else - { + $markup .= ''; + } else { $markup .= ' />'; } return $markup; } - protected function sanitiseElement(array $Element) - { + protected function sanitiseElement(array $Element) { static $goodAttribute = '/^[a-zA-Z0-9][a-zA-Z0-9-_]*+$/'; - static $safeUrlNameToAtt = array( - 'a' => 'href', + static $safeUrlNameToAtt = array( + 'a' => 'href', 'img' => 'src', ); - if (isset($safeUrlNameToAtt[$Element['name']])) - { + if (isset($safeUrlNameToAtt[$Element['name']])) { $Element = $this->filterUnsafeUrlInAttribute($Element, $safeUrlNameToAtt[$Element['name']]); } - if ( ! empty($Element['attributes'])) - { - foreach ($Element['attributes'] as $att => $val) - { + if (!empty($Element['attributes'])) { + foreach ($Element['attributes'] as $att => $val) { # filter out badly parsed attribute - if ( ! preg_match($goodAttribute, $att)) - { + if (!preg_match($goodAttribute, $att)) { unset($Element['attributes'][$att]); - } - # dump onevent attribute - elseif (self::striAtStart($att, 'on')) - { + } # dump onevent attribute + elseif (self::striAtStart($att, 'on')) { unset($Element['attributes'][$att]); } } @@ -370,12 +310,9 @@ class SecureParsedown extends \Parsedown return $Element; } - protected function filterUnsafeUrlInAttribute(array $Element, $attribute) - { - foreach ($this->safeLinksWhitelist as $scheme) - { - if (self::striAtStart($Element['attributes'][$attribute], $scheme)) - { + protected function filterUnsafeUrlInAttribute(array $Element, $attribute) { + foreach ($this->safeLinksWhitelist as $scheme) { + if (self::striAtStart($Element['attributes'][$attribute], $scheme)) { return $Element; } } @@ -385,21 +322,16 @@ class SecureParsedown extends \Parsedown return $Element; } - protected static function escape($text, $allowQuotes = false) - { + protected static function escape($text, $allowQuotes = false) { return htmlspecialchars($text, $allowQuotes ? ENT_NOQUOTES : ENT_QUOTES, 'UTF-8'); } - protected static function striAtStart($string, $needle) - { + protected static function striAtStart($string, $needle) { $len = strlen($needle); - if ($len > strlen($string)) - { + if ($len > strlen($string)) { return false; - } - else - { + } else { return strtolower(substr($string, 0, $len)) === strtolower($needle); } } diff --git a/includes/captcha.php b/includes/captcha.php index 41b2db0..f5037f7 100644 --- a/includes/captcha.php +++ b/includes/captcha.php @@ -1,10 +1,9 @@ '', @@ -62,13 +61,13 @@ function captcha($color, $mode, $mul, $allowed) 'shadow_offset_y' => 1 ); } - + // Overwrite defaults with custom config values if (is_array($config)) { foreach ($config as $key => $value) $captcha_config[$key] = $value; } - + // Restrict certain values if ($captcha_config['min_length'] < 1) $captcha_config['min_length'] = 1; @@ -82,39 +81,38 @@ function captcha($color, $mode, $mul, $allowed) $captcha_config['min_font_size'] = 10; if ($captcha_config['max_font_size'] < $captcha_config['min_font_size']) $captcha_config['max_font_size'] = $captcha_config['min_font_size']; - + // Use milliseconds instead of seconds srand(microtime() * 100); - + // Generate CAPTCHA code if not set by user if (empty($captcha_config['code'])) { $captcha_config['code'] = ''; - $length = rand($captcha_config['min_length'], $captcha_config['max_length']); + $length = rand($captcha_config['min_length'], $captcha_config['max_length']); while (strlen($captcha_config['code']) < $length) { $captcha_config['code'] .= substr($captcha_config['characters'], rand() % (strlen($captcha_config['characters'])), 1); } } - + // Generate HTML for image src $image_src = substr(__FILE__, strlen(realpath($_SERVER['DOCUMENT_ROOT']))) . '?_CAPTCHA&t=' . urlencode(microtime()); $image_src = '/' . ltrim(preg_replace('/\\\\/', '/', $image_src), '/'); - + $_SESSION['_CAPTCHA']['config'] = serialize($captcha_config); - + return array( 'code' => $captcha_config['code'], 'image_src' => $image_src ); - + } if (!function_exists('hex2rgb')) { - function hex2rgb($hex_str, $return_string = false, $separator = ',') - { - $hex_str = preg_replace("/[^0-9A-Fa-f]/", '', $hex_str); // Gets a proper hex string + function hex2rgb($hex_str, $return_string = false, $separator = ',') { + $hex_str = preg_replace("/[^0-9A-Fa-f]/", '', $hex_str); // Gets a proper hex string $rgb_array = array(); if (strlen($hex_str) == 6) { - $color_val = hexdec($hex_str); + $color_val = hexdec($hex_str); $rgb_array['r'] = 0xFF & ($color_val >> 0x10); $rgb_array['g'] = 0xFF & ($color_val >> 0x8); $rgb_array['b'] = 0xFF & $color_val; @@ -131,61 +129,61 @@ if (!function_exists('hex2rgb')) { // Draw the image if (isset($_GET['_CAPTCHA'])) { - + session_start(); - + $captcha_config = unserialize($_SESSION['_CAPTCHA']['config']); if (!$captcha_config) exit(); - + // Use milliseconds instead of seconds srand(microtime() * 100); - + // Pick random background, get info, and start captcha $background = $captcha_config['backgrounds'][rand(0, count($captcha_config['backgrounds']) - 1)]; list($bg_width, $bg_height, $bg_type, $bg_attr) = getimagesize($background); - + $captcha = imagecreatefrompng($background); - + $color = hex2rgb($captcha_config['color']); $color = imagecolorallocate($captcha, $color['r'], $color['g'], $color['b']); - + // Determine text angle $angle = rand($captcha_config['angle_min'], $captcha_config['angle_max']) * (rand(0, 1) == 1 ? -1 : 1); - + // Select font randomly $font = $captcha_config['fonts'][rand(0, count($captcha_config['fonts']) - 1)]; - + // Verify font file exists if (!file_exists($font)) throw new Exception('Font file not found: ' . $font); - + // Set the font size - $font_size = rand($captcha_config['min_font_size'], $captcha_config['max_font_size']); + $font_size = rand($captcha_config['min_font_size'], $captcha_config['max_font_size']); $text_box_size = imagettfbbox($font_size, $angle, $font, $captcha_config['code']); - + // Determine text position - $box_width = abs($text_box_size[6] - $text_box_size[2]); - $box_height = abs($text_box_size[5] - $text_box_size[1]); + $box_width = abs($text_box_size[6] - $text_box_size[2]); + $box_height = abs($text_box_size[5] - $text_box_size[1]); $text_pos_x_min = 0; $text_pos_x_max = ($bg_width) - ($box_width); - $text_pos_x = rand($text_pos_x_min, $text_pos_x_max); + $text_pos_x = rand($text_pos_x_min, $text_pos_x_max); $text_pos_y_min = $box_height; $text_pos_y_max = ($bg_height) - ($box_height / 2); - $text_pos_y = rand($text_pos_y_min, $text_pos_y_max); - + $text_pos_y = rand($text_pos_y_min, $text_pos_y_max); + // Draw shadow if ($captcha_config['shadow']) { $shadow_color = hex2rgb($captcha_config['shadow_color']); $shadow_color = imagecolorallocate($captcha, $shadow_color['r'], $shadow_color['g'], $shadow_color['b']); imagettftext($captcha, $font_size, $angle, $text_pos_x + $captcha_config['shadow_offset_x'], $text_pos_y + $captcha_config['shadow_offset_y'], $shadow_color, $font, $captcha_config['code']); } - + // Draw text imagettftext($captcha, $font_size, $angle, $text_pos_x, $text_pos_y, $color, $font, $captcha_config['code']); - + // Output image header("Content-type: image/png"); imagepng($captcha); - + } \ No newline at end of file diff --git a/includes/common.php b/includes/common.php index 35e5c68..c9c40ae 100644 --- a/includes/common.php +++ b/includes/common.php @@ -19,23 +19,25 @@ function getSitePermissions(PDO $conn) : array { return $conn->query('SELECT * FROM site_permissions LIMIT 1')->fetch(); } -function getSiteAds(PDO $conn) : array | bool { +function getSiteAds(PDO $conn) : array|bool { return $conn->query('SELECT text_ads, ads_1, ads_2 FROM ads LIMIT 1')->fetch(); } function getSiteTotalPastes(PDO $conn) : int { return intval($conn->query('SELECT COUNT(*) FROM pastes')->fetch(PDO::FETCH_NUM)[0]); } + function getSiteTotalviews(PDO $conn) : int { return intval($conn->query('SELECT tpage FROM page_view ORDER BY id DESC LIMIT 1')->fetch(PDO::FETCH_NUM)[0]); } + function getSiteTotal_unique_views(PDO $conn) : int { return intval($conn->query('SELECT tvisit FROM page_view ORDER BY id DESC LIMIT 1')->fetch(PDO::FETCH_NUM)[0]); } function updatePageViews(PDO $conn) : void { $ip = $_SERVER['REMOTE_ADDR']; - $date = date('jS F Y'); + $date = date('jS F Y'); $data_ip = file_get_contents('tmp/temp.tdata'); $last_page_view = $conn->query('SELECT * FROM page_view ORDER BY id DESC LIMIT 1')->fetch(); @@ -49,7 +51,7 @@ function updatePageViews(PDO $conn) : void { $statement = $conn->prepare("UPDATE page_view SET tpage = ? WHERE id = ?"); $statement->execute([$last_tpage, $last_page_view['id']]); } else { - $last_tpage = intval($last_page_view['tpage']) + 1; + $last_tpage = intval($last_page_view['tpage']) + 1; $last_tvisit = intval($last_page_view['tvisit']) + 1; // Update both tpage and tvisit. @@ -81,17 +83,17 @@ $conn = new PDO( // Setup site info $row = getSiteInfo($conn); -$title = Trim($row['title']); -$des = Trim($row['des']); -$baseurl = Trim($row['baseurl']); -$keyword = Trim($row['keyword']); -$site_name = Trim($row['site_name']); -$email = Trim($row['email']); -$twit = Trim($row['twit']); -$face = Trim($row['face']); -$gplus = Trim($row['gplus']); -$ga = Trim($row['ga']); -$additional_scripts = Trim($row['additional_scripts']); +$title = Trim($row['title']); +$des = Trim($row['des']); +$baseurl = Trim($row['baseurl']); +$keyword = Trim($row['keyword']); +$site_name = Trim($row['site_name']); +$email = Trim($row['email']); +$twit = Trim($row['twit']); +$face = Trim($row['face']); +$gplus = Trim($row['gplus']); +$ga = Trim($row['ga']); +$additional_scripts = Trim($row['additional_scripts']); // Setup theme and language @@ -131,8 +133,8 @@ if (in_array($default_lang, scandir('langs/'))) { } // Check if IP is banned -$ip = $_SERVER['REMOTE_ADDR']; -if ( is_banned($conn, $ip) ) die($lang['banned']); // "You have been banned from ".$site_name; +$ip = $_SERVER['REMOTE_ADDR']; +if (is_banned($conn, $ip)) die($lang['banned']); // "You have been banned from ".$site_name; // Logout if (isset($_GET['logout'])) { @@ -147,4 +149,4 @@ if (isset($_GET['logout'])) { $site_ads = getSiteAds($conn); $total_pastes = getSiteTotalPastes($conn); $total_page_views = getSiteTotalviews($conn); -$total_unique_views= getSiteTotal_unique_views($conn); \ No newline at end of file +$total_unique_views = getSiteTotal_unique_views($conn); \ No newline at end of file diff --git a/includes/functions.php b/includes/functions.php index 9d2c399..4e62ce3 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -12,33 +12,27 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License in GPL.txt for more details. */ - -function timer() -{ + +function timer() { static $start; - if (is_null($start)) - { + if (is_null($start)) { $start = microtime(true); - } - else - { + } else { $diff = round((microtime(true) - $start), 4); $start = null; return $diff; } } - -function getUserFavs($conn, $username) -{ + +function getUserFavs($conn, $username) { $query = $conn->prepare("SELECT pins.f_time, pins.m_fav, pins.f_paste, pastes.id, pastes.title, pastes.now_time, pastes.tagsys FROM pins, pastes WHERE pins.f_paste = pastes.id AND pins.m_fav=?'"); $query->execute([$username]); return $query->fetchAll(); } -function CountPasteFavs($conn, $fav_id) -{ +function CountPasteFavs($conn, $fav_id) { $query = $conn->prepare("SELECT COUNT(f_paste) FROM pins WHERE f_paste=?"); $query->execute([$fav_id]); return $query->fetchAll(); @@ -46,95 +40,101 @@ function CountPasteFavs($conn, $fav_id) function checkFavorite($paste_id, $user_id, $conn) { - $result = $conn->query("SELECT * FROM pins WHERE m_fav = '". $user_id."' AND f_paste = '". $paste_id."'"); - $numrows = $result->num_rows; - if ($numrows == 0) { - echo ""; - } - else { - echo ""; - } - } + $result = $conn->query("SELECT * FROM pins WHERE m_fav = '" . $user_id . "' AND f_paste = '" . $paste_id . "'"); + $numrows = $result->num_rows; + if ($numrows == 0) { + echo ""; + } else { + echo ""; + } +} function getreports($conn, $count = 10) { $query = $conn->prepare('SELECT * FROM user_reports LIMIT ?'); $query->execute([$count]); return $query->fetchAll(); -} - -function sandwitch($str){ - $output = ""; - $arr = explode(",", $str); - foreach ($arr as $word){ - $word = ucfirst($word); - if (stripos($word, 'nsfw') !== false) { - $word = strtoupper($word); - $tagcolor = "tag is-danger"; - } - elseif (stripos($word, 'SAFE') !== false) { - $word = strtoupper($word); - $tagcolor = "tag is-success"; - } - elseif (strstr($word, '/')){ - $tagcolor = "tag is-primary"; - }else{ - $tagcolor = "tag is-info"; - } - $output .= ''.trim($word).''; - } - return $output; } - - function getevent($conn, $event_name, $count) -{ +function sandwitch($str) { + $output = ""; + $arr = explode(",", $str); + foreach ($arr as $word) { + $word = ucfirst($word); + if (stripos($word, 'nsfw') !== false) { + $word = strtoupper($word); + $tagcolor = "tag is-danger"; + } elseif (stripos($word, 'SAFE') !== false) { + $word = strtoupper($word); + $tagcolor = "tag is-success"; + } elseif (strstr($word, '/')) { + $tagcolor = "tag is-primary"; + } else { + $tagcolor = "tag is-info"; + } + $output .= '' . trim($word) . ''; + } + return $output; +} + + +function getevent($conn, $event_name, $count) { $query = $conn->prepare("SELECT id, visible, title, date, now_time, views, member, tagsys FROM pastes WHERE visible='1' AND tagsys LIKE '%?%' ORDER BY RAND () LIMIT 0, ?"); - $query->execute([$event_name,$count]); - return $query->fetchAll(); + $query->execute([$event_name, $count]); + return $query->fetchAll(); } -function linkify($value, $protocols = array('http', 'mail'), array $attributes = array()) - { - // Link attributes - $attr = ''; - foreach ($attributes as $key => $val) { - $attr .= ' ' . $key . '="' . htmlentities($val) . '"'; - } - - $links = array(); - - // Extract existing links and tags - $value = preg_replace_callback('~(.*?|<.*?>)~i', function ($match) use (&$links) { return '<' . array_push($links, $match[1]) . '>'; }, $value); - - // Extract text links for each protocol - foreach ((array)$protocols as $protocol) { - switch ($protocol) { - case 'http': - case 'https': $value = preg_replace_callback('~(?:(https?)://([^\s<]+)|(www\.[^\s<]+?\.[^\s<]+))(?$protocol://$link") . '>'; }, $value); break; - default: $value = preg_replace_callback('~' . preg_quote($protocol, '~') . '://([^\s<]+?)(?$protocol://{$match[1]}") . '>'; }, $value); break; - } - } - - // Insert all link - return preg_replace_callback('/<(\d+)>/', function ($match) use (&$links) { return $links[$match[1] - 1]; }, $value); +function linkify($value, $protocols = array('http', 'mail'), array $attributes = array()) { + // Link attributes + $attr = ''; + foreach ($attributes as $key => $val) { + $attr .= ' ' . $key . '="' . htmlentities($val) . '"'; } + $links = array(); + + // Extract existing links and tags + $value = preg_replace_callback('~(.*?|<.*?>)~i', function ($match) use (&$links) { + return '<' . array_push($links, $match[1]) . '>'; + }, $value); + + // Extract text links for each protocol + foreach ((array)$protocols as $protocol) { + switch ($protocol) { + case 'http': + case 'https': + $value = preg_replace_callback('~(?:(https?)://([^\s<]+)|(www\.[^\s<]+?\.[^\s<]+))(?$protocol://$link") . '>'; + }, $value); + break; + default: + $value = preg_replace_callback('~' . preg_quote($protocol, '~') . '://([^\s<]+?)(?$protocol://{$match[1]}") . '>'; + }, $value); + break; + } + } + + // Insert all link + return preg_replace_callback('/<(\d+)>/', function ($match) use (&$links) { + return $links[$match[1] - 1]; + }, $value); +} -function getRecentreport($conn, $count) -{ +function getRecentreport($conn, $count) { $query = $conn->prepare("SELECT id, m_report, p_report, rep_reason, t_report FROM user_reports ORDER BY id DESC LIMIT 0 , ?"); $query->execute([$count]); return $query->fetchAll(); -} +} -function getUserRecom($conn,$p_member) -{ +function getUserRecom($conn, $p_member) { $query = $conn->prepare("SELECT id, member, title, visible FROM pastes where member= ? AND visible = '0' ORDER BY id DESC @@ -149,61 +149,56 @@ function recentupdate($conn, $count) { $query->execute([$count]); return $query->fetchAll(); } - + //Cannot get this to work. function monthpop($conn, $count) { $p_month = date('F'); $query = $conn->prepare("SELECT s_date, views, title, id, now_time, visible, tagsys, member FROM pastes WHERE s_date LIKE ? AND visible = '0' ORDER BY views + 0 DESC LIMIT 10, ?"); - $query->execute([$p_month,$count]); + $query->execute([$p_month, $count]); return $query->fetchAll(); } - - + + function isValidEmail($email) { - return filter_var($email, FILTER_VALIDATE_EMAIL) + return filter_var($email, FILTER_VALIDATE_EMAIL) && preg_match('/@.+\./', $email); } -function formatBytes($size, $precision = 2) -{ - $base = log($size, 1024); - $suffixes = array('B', 'KB', 'MB', 'GB', 'TB'); - return round(pow(1024, $base - floor($base)), $precision) .' '. $suffixes[floor($base)]; +function formatBytes($size, $precision = 2) { + $base = log($size, 1024); + $suffixes = array('B', 'KB', 'MB', 'GB', 'TB'); + + return round(pow(1024, $base - floor($base)), $precision) . ' ' . $suffixes[floor($base)]; } -function str_conntains($haystack, $needle, $ignoreCase = false) -{ +function str_conntains($haystack, $needle, $ignoreCase = false) { if ($ignoreCase) { $haystack = strtolower($haystack); - $needle = strtolower($needle); + $needle = strtolower($needle); } $needlePos = strpos($haystack, $needle); return ($needlePos === false ? false : ($needlePos + 1)); } -function encrypt($value) -{ - $salt = $sec_key; - $encrypted_string=openssl_encrypt($value,"AES-256-CBC",$salt); - return $encrypted_string; +function encrypt($value) { + $salt = $sec_key; + $encrypted_string = openssl_encrypt($value, "AES-256-CBC", $salt); + return $encrypted_string; } -function decrypt($value) -{ - $salt = $sec_key; - $decrypted_string=openssl_decrypt($value,"AES-256-CBC",$salt); - return $decrypted_string; +function decrypt($value) { + $salt = $sec_key; + $decrypted_string = openssl_decrypt($value, "AES-256-CBC", $salt); + return $decrypted_string; } -function deleteMyPaste($conn, $paste_id) -{ - $query = "DELETE FROM pastes where id='$paste_id'"; +function deleteMyPaste($conn, $paste_id) { + $query = "DELETE FROM pastes where id='$paste_id'"; $result = mysqli_query($conn, $query); } -function getRecent($conn, $count) -{ +function getRecent($conn, $count) { $query = $conn->prepare("SELECT id, visible, title, date, now_time, member, tagsys FROM pastes where visible='0' ORDER BY id DESC @@ -212,16 +207,15 @@ LIMIT ?"); return $query->fetchAll(); } -function getRecentadmin($conn, $count = 5) -{ +function getRecentadmin($conn, $count = 5) { $query = $conn->prepare('SELECT id, ip title, date, now_time, s_date, views, member FROM pastes ORDER BY id DESC LIMIT 0, ?'); $query->execute([$count]); return $query->fetchAll(); -} -function getpopular($conn, $count) -{ -$query = $conn->prepare("SELECT id, visible, title, date, now_time, views, member, tagsys +} + +function getpopular($conn, $count) { + $query = $conn->prepare("SELECT id, visible, title, date, now_time, views, member, tagsys FROM pastes WHERE visible='0' ORDER BY views + 0 DESC LIMIT 0, ?"); @@ -229,8 +223,7 @@ LIMIT 0, ?"); return $query->fetchAll(); } -function getrandom($conn, $count) -{ +function getrandom($conn, $count) { $query = $conn->prepare("SELECT id, visible, title, date, now_time, views, member, tagsys FROM pastes where visible='0' ORDER BY RAND() @@ -239,26 +232,23 @@ LIMIT ?"); return $query->fetchAll(); } -function getUserRecent($conn, $count, $username) -{ -$query = $conn->prepare("SELECT id, member, title, date, now_time +function getUserRecent($conn, $count, $username) { + $query = $conn->prepare("SELECT id, member, title, date, now_time FROM pastes where member=? ORDER BY id DESC LIMIT 0 , ?"); - $query->execute([$username,$count]); + $query->execute([$username, $count]); return $query->fetchAll(); } -function getUserPastes($conn, $username) -{ +function getUserPastes($conn, $username) { $query = $conn->prepare("SELECT id, title, code, views, s_date, now_time, visible, date, tagsys, member FROM pastes where member=? ORDER by id DESC"); $query->execute([$username]); return $query->fetchAll(); } -function jsonView($paste_id, $p_title, $p_conntent, $p_code) -{ +function jsonView($paste_id, $p_title, $p_conntent, $p_code) { $stats = false; if ($p_code) { // Raw @@ -273,10 +263,8 @@ function jsonView($paste_id, $p_title, $p_conntent, $p_code) } - -function getTotalPastes($conn, $username) -{ - $count = 0; +function getTotalPastes($conn, $username) { + $count = 0; $query = $conn->prepare("SELECT member FROM pastes WHERE member=?"); $query->execute([$username]); while ($row = $site_info_rows->fetch()) { @@ -293,11 +281,10 @@ function existingUser(PDO $conn, string $username) : bool { $query = $conn->prepare('SELECT 1 FROM users WHERE username = ?'); $query->execute([$username]); - return (bool) $query->fetch(); + return (bool)$query->fetch(); } -function updateMyView($conn, $paste_id) -{ +function updateMyView($conn, $paste_id) { $query = $conn->prepare("SELECT views, id FROM pastes WHERE id= ?"); $query->execute([$paste_id]); if ($row = $query->fetch()) { @@ -344,13 +331,12 @@ function conTime($secs) { return $val; } -function truncate($input, $maxWords, $maxChars) -{ +function truncate($input, $maxWords, $maxChars) { $words = preg_split('/\s+/', $input); $words = array_slice($words, 0, $maxWords); $words = array_reverse($words); - $chars = 0; + $chars = 0; $truncated = array(); while (count($words) > 0) { @@ -367,15 +353,16 @@ function truncate($input, $maxWords, $maxChars) return $result . ($input == $result ? '' : '[...]'); } -function truncatetag($input, $maxWords, $maxChars) - {$str = $input; - $pattern = '/,/i'; - $words = preg_replace($pattern, ' ', $str); + +function truncatetag($input, $maxWords, $maxChars) { + $str = $input; + $pattern = '/,/i'; + $words = preg_replace($pattern, ' ', $str); $words = preg_split('/\s+/', $input); $words = array_slice($words, 0, $maxWords); $words = array_reverse($words); - $chars = 0; + $chars = 0; $truncated1 = array(); while (count($words) > 0) { @@ -392,8 +379,8 @@ function truncatetag($input, $maxWords, $maxChars) return $result . ($input == $result ? '' : '...'); } -function doDownload($paste_id, $p_title, $p_member, $p_conntent, $p_code) -{ + +function doDownload($paste_id, $p_title, $p_member, $p_conntent, $p_code) { $stats = false; if ($p_code) { // Figure out extensions. @@ -417,8 +404,7 @@ function doDownload($paste_id, $p_title, $p_member, $p_conntent, $p_code) return $stats; } -function rawView($paste_id, $p_title, $p_conntent, $p_code) -{ +function rawView($paste_id, $p_title, $p_conntent, $p_code) { $stats = false; if ($p_code) { // Raw @@ -433,14 +419,13 @@ function rawView($paste_id, $p_title, $p_conntent, $p_code) } - -function embedView( $paste_id, $p_title, $p_conntent, $p_code, $title, $baseurl, $ges_style, $lang ) { +function embedView($paste_id, $p_title, $p_conntent, $p_code, $title, $baseurl, $ges_style, $lang) { $stats = false; - if ( $p_conntent ) { + if ($p_conntent) { // Build the output $output = "
    "; - $output .= ""; - $output .= "$ges_style"; // Dynamic GeSHI Style - $output .= $p_conntent; // Paste conntent - $output .= ""; - $output .= "
    "; + $output .= ""; + $output .= "$ges_style"; // Dynamic GeSHI Style + $output .= $p_conntent; // Paste conntent + $output .= ""; + $output .= "
    "; // Display embed conntent using json_encode since that escapes // characters well enough to satisfy javascript. http://stackoverflow.com/a/169035 - header( 'conntent-type: text/javascript; charset=utf-8;' ); - echo 'document.write(' . json_encode( $output ) . ')'; + header('conntent-type: text/javascript; charset=utf-8;'); + echo 'document.write(' . json_encode($output) . ')'; $stats = true; } else { // 404 - header( 'HTTP/1.1 404 Not Found' ); + header('HTTP/1.1 404 Not Found'); } return $stats; } -function addToSitemap($paste_id, $priority, $changefreq, $mod_rewrite) -{ - $c_date = date('Y-m-d'); +function addToSitemap($paste_id, $priority, $changefreq, $mod_rewrite) { + $c_date = date('Y-m-d'); $site_data = file_get_contents("sitemap.xml"); $site_data = str_replace("", "", $site_data); - // which protocol are we on - $protocol = paste_protocol(); + // which protocol are we on + $protocol = paste_protocol(); if ($mod_rewrite == "1") { $server_name = $protocol . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/" . $paste_id; @@ -517,8 +501,8 @@ function addToSitemap($paste_id, $priority, $changefreq, $mod_rewrite) $server_name = $protocol . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/paste.php?id=" . $paste_id; } - $c_sitemap = -' + $c_sitemap = + ' ' . $server_name . ' ' . $priority . ' ' . $changefreq . ' @@ -526,20 +510,22 @@ function addToSitemap($paste_id, $priority, $changefreq, $mod_rewrite) '; - $full_map = $site_data . $c_sitemap; + $full_map = $site_data . $c_sitemap; file_put_contents("sitemap.xml", $full_map); } + function paste_protocol() { - $protocol = ( isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] == "on" ) ? 'https://' : 'http://'; + $protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? 'https://' : 'http://'; - return $protocol; + return $protocol; } function is_banned($conn, $ip) { - $query = $conn->prepare('SELECT 1 FROM ban_user WHERE ip = ?'); - $query->execute([$ip]); + $query = $conn->prepare('SELECT 1 FROM ban_user WHERE ip = ?'); + $query->execute([$ip]); - return (bool) $query->fetch(); + return (bool)$query->fetch(); } + ?> \ No newline at end of file diff --git a/includes/geshi.php b/includes/geshi.php index 6cc6917..d02d4fa 100644 --- a/includes/geshi.php +++ b/includes/geshi.php @@ -52,7 +52,8 @@ if (!defined('GESHI_ROOT')) { define('GESHI_ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR); } /** The language file directory for GeSHi - @access private */ + * @access private + */ define('GESHI_LANG_ROOT', GESHI_ROOT . 'geshi' . DIRECTORY_SEPARATOR); // Define if GeSHi should be paranoid about security @@ -120,13 +121,13 @@ define('GESHI_START_IMPORTANT', ''); define('GESHI_END_IMPORTANT', ''); /**#@+ - * @access private + * @access private */ // When strict mode applies for a language /** Strict mode never applies (this is the most common) */ define('GESHI_NEVER', 0); /** Strict mode *might* apply, and can be enabled or - disabled by {@link GeSHi->enable_strict_mode()} */ + * disabled by {@link GeSHi->enable_strict_mode()} */ define('GESHI_MAYBE', 1); /** Strict mode always applies */ define('GESHI_ALWAYS', 2); @@ -135,33 +136,33 @@ define('GESHI_ALWAYS', 2); /** The key of the regex array defining what to search for */ define('GESHI_SEARCH', 0); /** The key of the regex array defining what bracket group in a - matched search to use as a replacement */ + * matched search to use as a replacement */ define('GESHI_REPLACE', 1); /** The key of the regex array defining any modifiers to the regular expression */ define('GESHI_MODIFIERS', 2); /** The key of the regex array defining what bracket group in a - matched search to put before the replacement */ + * matched search to put before the replacement */ define('GESHI_BEFORE', 3); /** The key of the regex array defining what bracket group in a - matched search to put after the replacement */ + * matched search to put after the replacement */ define('GESHI_AFTER', 4); /** The key of the regex array defining a custom keyword to use - for this regexp's html tag class */ + * for this regexp's html tag class */ define('GESHI_CLASS', 5); /** Used in language files to mark comments */ define('GESHI_COMMENTS', 0); /** some old PHP / PCRE subpatterns only support up to xxx subpatterns in - regular expressions. Set this to false if your PCRE lib is up to date - @see GeSHi->optimize_regexp_list() - **/ + * regular expressions. Set this to false if your PCRE lib is up to date + * @see GeSHi->optimize_regexp_list() + **/ define('GESHI_MAX_PCRE_SUBPATTERNS', 500); /** it's also important not to generate too long regular expressions - be generous here... but keep in mind, that when reaching this limit we - still have to close open patterns. 12k should do just fine on a 16k limit. - @see GeSHi->optimize_regexp_list() - **/ + * be generous here... but keep in mind, that when reaching this limit we + * still have to close open patterns. 12k should do just fine on a 16k limit. + * @see GeSHi->optimize_regexp_list() + **/ define('GESHI_MAX_PCRE_LENGTH', 12288); //Number format specification @@ -300,16 +301,16 @@ class GeSHi { * @var array */ protected $lexic_permissions = array( - 'KEYWORDS' => array(), - 'COMMENTS' => array('MULTI' => true), - 'REGEXPS' => array(), + 'KEYWORDS' => array(), + 'COMMENTS' => array('MULTI' => true), + 'REGEXPS' => array(), 'ESCAPE_CHAR' => true, - 'BRACKETS' => true, - 'SYMBOLS' => false, - 'STRINGS' => true, - 'NUMBERS' => true, - 'METHODS' => true, - 'SCRIPT' => true + 'BRACKETS' => true, + 'SYMBOLS' => false, + 'STRINGS' => true, + 'NUMBERS' => true, + 'METHODS' => true, + 'SCRIPT' => true ); /** @@ -550,9 +551,9 @@ class GeSHi { /** * Creates a new GeSHi object, with source and language * - * @param string $source The source code to highlight + * @param string $source The source code to highlight * @param string $language The language to highlight the source with - * @param string $path The path to the language file directory. This + * @param string $path The path to the language file directory. This * is deprecated! I've backported the auto path * detection from the 1.1.X dev branch, so now it * should be automatically set correctly. If you have @@ -562,10 +563,10 @@ class GeSHi { * @since 1.0.0 */ public function __construct($source = '', $language = '', $path = '') { - if ( is_string($source) && ($source !== '') ) { + if (is_string($source) && ($source !== '')) { $this->set_source($source); } - if ( is_string($language) && ($language !== '') ) { + if (is_string($language) && ($language !== '')) { $this->set_language($language); } @@ -578,8 +579,7 @@ class GeSHi { * @return string * @since 1.0.8.11 */ - public function get_version() - { + public function get_version() { return GESHI_VERSION; } @@ -638,8 +638,8 @@ class GeSHi { * @note since 1.0.8 this function won't reset language-settings by default anymore! * if you need this set $force_reset = true * - * @param string $language The name of the language to use - * @param bool $force_reset + * @param string $language The name of the language to use + * @param bool $force_reset * @since 1.0.0 */ public function set_language($language, $force_reset = false) { @@ -687,25 +687,25 @@ class GeSHi { * so this method will disappear in 1.2.0. */ public function set_language_path($path) { - if(strpos($path,':')) { + if (strpos($path, ':')) { //Security Fix to prevent external directories using fopen wrappers. - if(DIRECTORY_SEPARATOR == "\\") { - if(!preg_match('#^[a-zA-Z]:#', $path) || false !== strpos($path, ':', 2)) { + if (DIRECTORY_SEPARATOR == "\\") { + if (!preg_match('#^[a-zA-Z]:#', $path) || false !== strpos($path, ':', 2)) { return; } } else { return; } } - if(preg_match('#[^/a-zA-Z0-9_\.\-\\\s:]#', $path)) { + if (preg_match('#[^/a-zA-Z0-9_\.\-\\\s:]#', $path)) { //Security Fix to prevent external directories using fopen wrappers. return; } - if(GESHI_SECURITY_PARANOID && false !== strpos($path, '/.')) { + if (GESHI_SECURITY_PARANOID && false !== strpos($path, '/.')) { //Security Fix to prevent external directories using fopen wrappers. return; } - if(GESHI_SECURITY_PARANOID && false !== strpos($path, '..')) { + if (GESHI_SECURITY_PARANOID && false !== strpos($path, '..')) { //Security Fix to prevent external directories using fopen wrappers. return; } @@ -720,8 +720,7 @@ class GeSHi { * @param boolean $full_names * @return array */ - public function get_supported_languages($full_names=false) - { + public function get_supported_languages($full_names = false) { // return array $back = array(); @@ -729,9 +728,8 @@ class GeSHi { $dir = dir($this->language_path); // foreach entry - while (false !== ($entry = $dir->read())) - { - $full_path = $this->language_path.$entry; + while (false !== ($entry = $dir->read())) { + $full_path = $this->language_path . $entry; // Skip all dirs if (is_dir($full_path)) { @@ -747,15 +745,11 @@ class GeSHi { $langname = $matches[1]; // We want the fullname too? - if ($full_names === true) - { - if (false !== ($fullname = $this->get_language_fullname($langname))) - { + if ($full_names === true) { + if (false !== ($fullname = $this->get_language_fullname($langname))) { $back[$langname] = $fullname; // we go associative } - } - else - { + } else { // just store raw langname $back[] = $langname; } @@ -771,15 +765,14 @@ class GeSHi { * @param string $language short langname (html4strict for example) * @return mixed */ - public function get_language_fullname($language) - { + public function get_language_fullname($language) { //Clean up the language name to prevent malicious code injection $language = preg_replace('#[^a-zA-Z0-9\-_]#', '', $language); $language = strtolower($language); // get fullpath-filename for a langname - $fullpath = $this->language_path.$language.'.php'; + $fullpath = $this->language_path . $language . '.php'; // we need to get contents :S if (false === ($data = file_get_contents($fullpath))) { @@ -828,7 +821,7 @@ class GeSHi { * when this object is parsed. The style should be a * string of valid stylesheet declarations * - * @param string $style The overall style for the outputted code block + * @param string $style The overall style for the outputted code block * @param boolean $preserve_defaults Whether to merge the styles with the current styles or not * @since 1.0.0 */ @@ -885,7 +878,7 @@ class GeSHi { * code will have the same style as the line number! Consult the * GeSHi documentation for more information about this. * - * @param string $style The style to use for actual code + * @param string $style The style to use for actual code * @param boolean $preserve_defaults Whether to merge the current styles with the new styles * @since 1.0.2 */ @@ -900,12 +893,12 @@ class GeSHi { /** * Sets the styles for the line numbers. * - * @param string $style1 The style for the line numbers that are "normal" + * @param string $style1 The style for the line numbers that are "normal" * @param string|boolean $style2 If a string, this is the style of the line * numbers that are "fancy", otherwise if boolean then this * defines whether the normal styles should be merged with the * new normal styles or not - * @param boolean $preserve_defaults If set, is the flag for whether to merge the "fancy" + * @param boolean $preserve_defaults If set, is the flag for whether to merge the "fancy" * styles with the current styles or not * @since 1.0.2 */ @@ -939,7 +932,7 @@ class GeSHi { * are to be fancy. For example, if the value of this parameter is 5 then every * 5th line will be fancy. * - * @param int $flag How line numbers should be displayed + * @param int $flag How line numbers should be displayed * @param int $nth_row Defines which lines are fancy * @since 1.0.0 */ @@ -962,14 +955,14 @@ class GeSHi { * @since 1.0.7.22 */ public function enable_multiline_span($flag) { - $this->allow_multiline_span = (bool) $flag; + $this->allow_multiline_span = (bool)$flag; } /** * Get current setting for multiline spans, see GeSHi->enable_multiline_span(). * - * @see enable_multiline_span * @return bool + * @see enable_multiline_span */ public function get_multiline_span() { return $this->allow_multiline_span; @@ -980,16 +973,16 @@ class GeSHi { * true, then styles are merged with the default styles, with the * user defined styles having priority * - * @param int $key The key of the keyword group to change the styles of - * @param string $style The style to make the keywords + * @param int $key The key of the keyword group to change the styles of + * @param string $style The style to make the keywords * @param boolean $preserve_defaults Whether to merge the new styles with the old or just * to overwrite them * @since 1.0.0 */ public function set_keyword_group_style($key, $style, $preserve_defaults = false) { //Set the style for this keyword group - if('*' == $key) { - foreach($this->language_data['STYLES']['KEYWORDS'] as $_key => $_value) { + if ('*' == $key) { + foreach ($this->language_data['STYLES']['KEYWORDS'] as $_key => $_value) { if (!$preserve_defaults) { $this->language_data['STYLES']['KEYWORDS'][$_key] = $style; } else { @@ -1013,7 +1006,7 @@ class GeSHi { /** * Turns highlighting on/off for a keyword group * - * @param int $key The key of the keyword group to turn on or off + * @param int $key The key of the keyword group to turn on or off * @param boolean $flag Whether to turn highlighting for that group on or off * @since 1.0.0 */ @@ -1026,15 +1019,15 @@ class GeSHi { * true, then styles are merged with the default styles, with the * user defined styles having priority * - * @param int $key The key of the comment group to change the styles of - * @param string $style The style to make the comments + * @param int $key The key of the comment group to change the styles of + * @param string $style The style to make the comments * @param boolean $preserve_defaults Whether to merge the new styles with the old or just * to overwrite them * @since 1.0.0 */ public function set_comments_style($key, $style, $preserve_defaults = false) { - if('*' == $key) { - foreach($this->language_data['STYLES']['COMMENTS'] as $_key => $_value) { + if ('*' == $key) { + foreach ($this->language_data['STYLES']['COMMENTS'] as $_key => $_value) { if (!$preserve_defaults) { $this->language_data['STYLES']['COMMENTS'][$_key] = $style; } else { @@ -1053,7 +1046,7 @@ class GeSHi { /** * Turns highlighting on/off for comment groups * - * @param int $key The key of the comment group to turn on or off + * @param int $key The key of the comment group to turn on or off * @param boolean $flag Whether to turn highlighting for that group on or off * @since 1.0.0 */ @@ -1066,10 +1059,10 @@ class GeSHi { * true, then styles are merged with the default styles, with the * user defined styles having priority * - * @param string $style The style to make the escape characters + * @param string $style The style to make the escape characters * @param boolean $preserve_defaults Whether to merge the new styles with the old or just * to overwrite them - * @param int $group Tells the group of symbols for which style should be set. + * @param int $group Tells the group of symbols for which style should be set. * @since 1.0.0 */ public function set_escape_characters_style($style, $preserve_defaults = false, $group = 0) { @@ -1098,7 +1091,7 @@ class GeSHi { * This method is DEPRECATED: use set_symbols_style instead. * This method will be removed in 1.2.X * - * @param string $style The style to make the brackets + * @param string $style The style to make the brackets * @param boolean $preserve_defaults Whether to merge the new styles with the old or just * to overwrite them * @since 1.0.0 @@ -1131,10 +1124,10 @@ class GeSHi { * true, then styles are merged with the default styles, with the * user defined styles having priority * - * @param string $style The style to make the symbols + * @param string $style The style to make the symbols * @param boolean $preserve_defaults Whether to merge the new styles with the old or just * to overwrite them - * @param int $group Tells the group of symbols for which style should be set. + * @param int $group Tells the group of symbols for which style should be set. * @since 1.0.1 */ public function set_symbols_style($style, $preserve_defaults = false, $group = 0) { @@ -1147,7 +1140,7 @@ class GeSHi { // For backward compatibility if (0 == $group) { - $this->set_brackets_style ($style, $preserve_defaults); + $this->set_brackets_style($style, $preserve_defaults); } } @@ -1162,7 +1155,7 @@ class GeSHi { $this->lexic_permissions['SYMBOLS'] = ($flag) ? true : false; // For backward compatibility - $this->set_brackets_highlighting ($flag); + $this->set_brackets_highlighting($flag); } /** @@ -1170,10 +1163,10 @@ class GeSHi { * true, then styles are merged with the default styles, with the * user defined styles having priority * - * @param string $style The style to make the escape characters + * @param string $style The style to make the escape characters * @param boolean $preserve_defaults Whether to merge the new styles with the old or just * to overwrite them - * @param int $group Tells the group of strings for which style should be set. + * @param int $group Tells the group of strings for which style should be set. * @since 1.0.0 */ public function set_strings_style($style, $preserve_defaults = false, $group = 0) { @@ -1199,10 +1192,10 @@ class GeSHi { * true, then styles are merged with the default styles, with the * user defined styles having priority * - * @param string $style The style to make the script blocks + * @param string $style The style to make the script blocks * @param boolean $preserve_defaults Whether to merge the new styles with the old or just * to overwrite them - * @param int $group Tells the group of script blocks for which style should be set. + * @param int $group Tells the group of script blocks for which style should be set. * @since 1.0.8.4 */ public function set_script_style($style, $preserve_defaults = false, $group = 0) { @@ -1219,10 +1212,10 @@ class GeSHi { * true, then styles are merged with the default styles, with the * user defined styles having priority * - * @param string $style The style to make the numbers + * @param string $style The style to make the numbers * @param boolean $preserve_defaults Whether to merge the new styles with the old or just * to overwrite them - * @param int $group Tells the group of numbers for which style should be set. + * @param int $group Tells the group of numbers for which style should be set. * @since 1.0.0 */ public function set_numbers_style($style, $preserve_defaults = false, $group = 0) { @@ -1250,8 +1243,8 @@ class GeSHi { * true, then styles are merged with the default styles, with the * user defined styles having priority * - * @param int $key The key of the object splitter to change the styles of - * @param string $style The style to make the methods + * @param int $key The key of the object splitter to change the styles of + * @param string $style The style to make the methods * @param boolean $preserve_defaults Whether to merge the new styles with the old or just * to overwrite them * @since 1.0.0 @@ -1279,10 +1272,10 @@ class GeSHi { * true, then styles are merged with the default styles, with the * user defined styles having priority * - * @param string $key The style to make the regular expression matches - * @param boolean $style Whether to merge the new styles with the old or just + * @param string $key The style to make the regular expression matches + * @param boolean $style Whether to merge the new styles with the old or just * to overwrite them - * @param bool $preserve_defaults Whether to merge the new styles with the old or just + * @param bool $preserve_defaults Whether to merge the new styles with the old or just * to overwrite them * @since 1.0.0 */ @@ -1297,7 +1290,7 @@ class GeSHi { /** * Turns highlighting on/off for regexps * - * @param int $key The key of the regular expression group to turn on or off + * @param int $key The key of the regular expression group to turn on or off * @param boolean $flag Whether to turn highlighting for the regular expression group on or off * @since 1.0.0 */ @@ -1308,7 +1301,7 @@ class GeSHi { /** * Sets whether a set of keywords are checked for in a case sensitive manner * - * @param int $key The key of the keyword group to change the case sensitivity of + * @param int $key The key of the keyword group to change the case sensitivity of * @param boolean $case Whether to check in a case sensitive manner or not * @since 1.0.0 */ @@ -1358,7 +1351,7 @@ class GeSHi { * @since 1.0.7.20 */ public function set_use_language_tab_width($use) { - $this->use_language_tab_width = (bool) $use; + $this->use_language_tab_width = (bool)$use; } /** @@ -1408,8 +1401,8 @@ class GeSHi { * The optional flag parameter was added in version 1.0.7.21 and can be used * to enable (true) or disable (false) all highlighting. * - * @since 1.0.0 * @param boolean $flag A flag specifying whether to enable or disable all highlighting + * @since 1.0.0 * @todo Rewrite with array traversal */ public function enable_highlighting($flag = true) { @@ -1433,21 +1426,21 @@ class GeSHi { * name, or the empty string if it couldn't be found * * @param string $extension The extension to get a language name for - * @param array $lookup A lookup array to use instead of the default one - * @since 1.0.5 + * @param array $lookup A lookup array to use instead of the default one + * @return int|string * @todo Re-think about how this method works (maybe make it private and/or make it * a extension->lang lookup?) - * @return int|string + * @since 1.0.5 */ - public static function get_language_name_from_extension( $extension, $lookup = array() ) { + public static function get_language_name_from_extension($extension, $lookup = array()) { $extension = strtolower($extension); - if ( !is_array($lookup) || empty($lookup)) { + if (!is_array($lookup) || empty($lookup)) { $lookup = array( - '6502acme' => array( 'a', 's', 'asm', 'inc' ), - '6502tasm' => array( 'a', 's', 'asm', 'inc' ), - '6502kickass' => array( 'a', 's', 'asm', 'inc' ), - '68000devpac' => array( 'a', 's', 'asm', 'inc' ), + '6502acme' => array('a', 's', 'asm', 'inc'), + '6502tasm' => array('a', 's', 'asm', 'inc'), + '6502kickass' => array('a', 's', 'asm', 'inc'), + '68000devpac' => array('a', 's', 'asm', 'inc'), 'abap' => array('abap'), 'actionscript' => array('as'), 'ada' => array('a', 'ada', 'adb', 'ads'), @@ -1542,7 +1535,7 @@ class GeSHi { * ); * * @param string $file_name The filename to load the source from - * @param array $lookup A lookup array to use instead of the default one + * @param array $lookup A lookup array to use instead of the default one * @todo Complete rethink of this and above method * @since 1.0.5 */ @@ -1558,7 +1551,7 @@ class GeSHi { /** * Adds a keyword to a keyword group for highlighting * - * @param int $key The key of the keyword group to add the keyword to + * @param int $key The key of the keyword group to add the keyword to * @param string $word The word to add to the keyword group * @since 1.0.0 */ @@ -1580,9 +1573,9 @@ class GeSHi { /** * Removes a keyword from a keyword group * - * @param int $key The key of the keyword group to remove the keyword from - * @param string $word The word to remove from the keyword group - * @param bool $recompile Wether to automatically recompile the optimized regexp list or not. + * @param int $key The key of the keyword group to remove the keyword from + * @param string $word The word to remove from the keyword group + * @param bool $recompile Wether to automatically recompile the optimized regexp list or not. * Note: if you set this to false and @see GeSHi->parse_code() was already called once, * for the current language, you have to manually call @see GeSHi->optimize_keyword_group() * or the removed keyword will stay in cache and still be highlighted! On the other hand @@ -1605,16 +1598,16 @@ class GeSHi { /** * Creates a new keyword group * - * @param int $key The key of the keyword group to create - * @param string $styles The styles for the keyword group + * @param int $key The key of the keyword group to create + * @param string $styles The styles for the keyword group * @param boolean $case_sensitive Whether the keyword group is case sensitive ornot - * @param array $words The words to use for the keyword group - * @since 1.0.0 + * @param array $words The words to use for the keyword group * @return bool + * @since 1.0.0 */ public function add_keyword_group($key, $styles, $case_sensitive = true, $words = array()) { - $words = (array) $words; - if (empty($words)) { + $words = (array)$words; + if (empty($words)) { // empty word lists mess up highlighting return false; } @@ -1638,7 +1631,7 @@ class GeSHi { * @param int $key The key of the keyword group to remove * @since 1.0.0 */ - public function remove_keyword_group ($key) { + public function remove_keyword_group($key) { //Remove the keyword group internally unset($this->language_data['KEYWORDS'][$key]); unset($this->lexic_permissions['KEYWORDS'][$key]); @@ -1659,20 +1652,20 @@ class GeSHi { $this->language_data['CACHED_KEYWORD_LISTS'][$key] = $this->optimize_regexp_list($this->language_data['KEYWORDS'][$key]); $space_as_whitespace = false; - if(isset($this->language_data['PARSER_CONTROL'])) { - if(isset($this->language_data['PARSER_CONTROL']['KEYWORDS'])) { - if(isset($this->language_data['PARSER_CONTROL']['KEYWORDS']['SPACE_AS_WHITESPACE'])) { + if (isset($this->language_data['PARSER_CONTROL'])) { + if (isset($this->language_data['PARSER_CONTROL']['KEYWORDS'])) { + if (isset($this->language_data['PARSER_CONTROL']['KEYWORDS']['SPACE_AS_WHITESPACE'])) { $space_as_whitespace = $this->language_data['PARSER_CONTROL']['KEYWORDS']['SPACE_AS_WHITESPACE']; } - if(isset($this->language_data['PARSER_CONTROL']['KEYWORDS'][$key]['SPACE_AS_WHITESPACE'])) { - if(isset($this->language_data['PARSER_CONTROL']['KEYWORDS'][$key]['SPACE_AS_WHITESPACE'])) { + if (isset($this->language_data['PARSER_CONTROL']['KEYWORDS'][$key]['SPACE_AS_WHITESPACE'])) { + if (isset($this->language_data['PARSER_CONTROL']['KEYWORDS'][$key]['SPACE_AS_WHITESPACE'])) { $space_as_whitespace = $this->language_data['PARSER_CONTROL']['KEYWORDS'][$key]['SPACE_AS_WHITESPACE']; } } } } - if($space_as_whitespace) { - foreach($this->language_data['CACHED_KEYWORD_LISTS'][$key] as $rxk => $rxv) { + if ($space_as_whitespace) { + foreach ($this->language_data['CACHED_KEYWORD_LISTS'][$key] as $rxk => $rxv) { $this->language_data['CACHED_KEYWORD_LISTS'][$key][$rxk] = str_replace(" ", "\\s+", $rxv); } @@ -1733,8 +1726,8 @@ class GeSHi { /** * Sets the base URL to be used for keywords * - * @param int $group The key of the keyword group to set the URL for - * @param string $url The URL to set for the group. If {FNAME} is in + * @param int $group The key of the keyword group to set the URL for + * @param string $url The URL to set for the group. If {FNAME} is in * the url somewhere, it is replaced by the keyword * that the URL is being made for * @since 1.0.2 @@ -1746,7 +1739,7 @@ class GeSHi { /** * Sets styles for links in code * - * @param int $type A constant that specifies what state the style is being + * @param int $type A constant that specifies what state the style is being * set for - e.g. :hover or :visited * @param string $styles The styles to use for that state * @since 1.0.2 @@ -1788,7 +1781,7 @@ class GeSHi { * @since 1.0.2 */ public function enable_important_blocks($flag) { - $this->enable_important_blocks = ( $flag ) ? true : false; + $this->enable_important_blocks = ($flag) ? true : false; } /** @@ -1806,7 +1799,7 @@ class GeSHi { * * The extra style parameter was added in 1.0.7.21. * - * @param mixed $lines An array of line numbers to highlight, or just a line + * @param mixed $lines An array of line numbers to highlight, or just a line * number on its own. * @param string $style A string specifying the style to use for this line. * If null is specified, the default style is used. @@ -1891,7 +1884,7 @@ class GeSHi { */ public function set_encoding($encoding) { if ($encoding) { - $this->encoding = strtolower($encoding); + $this->encoding = strtolower($encoding); } } @@ -1902,7 +1895,7 @@ class GeSHi { * @since 1.0.2 */ public function enable_keyword_links($enable = true) { - $this->keyword_links = (bool) $enable; + $this->keyword_links = (bool)$enable; } /** @@ -1915,38 +1908,38 @@ class GeSHi { */ protected function build_style_cache() { //Build the style cache needed to highlight numbers appropriate - if($this->lexic_permissions['NUMBERS']) { + if ($this->lexic_permissions['NUMBERS']) { //First check what way highlighting information for numbers are given - if(!isset($this->language_data['NUMBERS'])) { + if (!isset($this->language_data['NUMBERS'])) { $this->language_data['NUMBERS'] = 0; } - if(is_array($this->language_data['NUMBERS'])) { + if (is_array($this->language_data['NUMBERS'])) { $this->language_data['NUMBERS_CACHE'] = $this->language_data['NUMBERS']; } else { $this->language_data['NUMBERS_CACHE'] = array(); - if(!$this->language_data['NUMBERS']) { + if (!$this->language_data['NUMBERS']) { $this->language_data['NUMBERS'] = GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_FLT_NONSCI; } - for($i = 0, $j = $this->language_data['NUMBERS']; $j > 0; ++$i, $j>>=1) { + for ($i = 0, $j = $this->language_data['NUMBERS']; $j > 0; ++$i, $j >>= 1) { //Rearrange style indices if required ... - if(isset($this->language_data['STYLES']['NUMBERS'][1<<$i])) { + if (isset($this->language_data['STYLES']['NUMBERS'][1 << $i])) { $this->language_data['STYLES']['NUMBERS'][$i] = - $this->language_data['STYLES']['NUMBERS'][1<<$i]; - unset($this->language_data['STYLES']['NUMBERS'][1<<$i]); + $this->language_data['STYLES']['NUMBERS'][1 << $i]; + unset($this->language_data['STYLES']['NUMBERS'][1 << $i]); } //Check if this bit is set for highlighting - if($j&1) { + if ($j & 1) { //So this bit is set ... //Check if it belongs to group 0 or the actual stylegroup - if(isset($this->language_data['STYLES']['NUMBERS'][$i])) { + if (isset($this->language_data['STYLES']['NUMBERS'][$i])) { $this->language_data['NUMBERS_CACHE'][$i] = 1 << $i; } else { - if(!isset($this->language_data['NUMBERS_CACHE'][0])) { + if (!isset($this->language_data['NUMBERS_CACHE'][0])) { $this->language_data['NUMBERS_CACHE'][0] = 0; } $this->language_data['NUMBERS_CACHE'][0] |= 1 << $i; @@ -2030,7 +2023,7 @@ class GeSHi { $this->language_data['CACHED_KEYWORD_LISTS'] = array(); foreach (array_keys($this->language_data['KEYWORDS']) as $key) { if (!isset($this->lexic_permissions['KEYWORDS'][$key]) || - $this->lexic_permissions['KEYWORDS'][$key]) { + $this->lexic_permissions['KEYWORDS'][$key]) { $this->optimize_keyword_group($key); } } @@ -2047,8 +2040,7 @@ class GeSHi { '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">{|>', '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">}|>', ); - } - else { + } else { $this->language_data['CACHE_BRACKET_REPLACE'] = array( '<| class="br0">[|>', '<| class="br0">]|>', @@ -2061,10 +2053,10 @@ class GeSHi { } //Build the parse cache needed to highlight numbers appropriate - if($this->lexic_permissions['NUMBERS']) { + if ($this->lexic_permissions['NUMBERS']) { //Check if the style rearrangements have been processed ... //This also does some preprocessing to check which style groups are useable ... - if(!isset($this->language_data['NUMBERS_CACHE'])) { + if (!isset($this->language_data['NUMBERS_CACHE'])) { $this->build_style_cache(); } @@ -2103,20 +2095,20 @@ class GeSHi { '(? '(?language_data['NUMBERS_RXCACHE'] = array(); - foreach($this->language_data['NUMBERS_CACHE'] as $key => $rxdata) { - if(is_string($rxdata)) { + foreach ($this->language_data['NUMBERS_CACHE'] as $key => $rxdata) { + if (is_string($rxdata)) { $regexp = $rxdata; } else { //This is a bitfield of number flags to highlight: //Build an array, implode them together and make this the actual RX $rxuse = array(); - for($i = 1; $i <= $rxdata; $i<<=1) { - if($rxdata & $i) { + for ($i = 1; $i <= $rxdata; $i <<= 1) { + if ($rxdata & $i) { $rxuse[] = $numbers_format[$i]; } } @@ -2127,7 +2119,7 @@ class GeSHi { "/(?)($regexp)(?!(?:|(?>[^\<]))+>)(?![^<]*>)(?!\|>)(?!\/>)/i"; } - if(!isset($this->language_data['PARSER_CONTROL']['NUMBERS']['PRECHECK_RX'])) { + if (!isset($this->language_data['PARSER_CONTROL']['NUMBERS']['PRECHECK_RX'])) { $this->language_data['PARSER_CONTROL']['NUMBERS']['PRECHECK_RX'] = '#\d#'; } } @@ -2145,7 +2137,7 @@ class GeSHi { * * @since 1.0.0 */ - public function parse_code () { + public function parse_code() { // Start the timer $start_time = microtime(); @@ -2174,10 +2166,10 @@ class GeSHi { } // Initialise various stuff - $length = strlen($code); - $COMMENT_MATCHED = false; - $stuff_to_parse = ''; - $endresult = ''; + $length = strlen($code); + $COMMENT_MATCHED = false; + $stuff_to_parse = ''; + $endresult = ''; // "Important" selections are handled like multiline comments // @todo GET RID OF THIS SHIZ @@ -2198,7 +2190,7 @@ class GeSHi { while ($i < $length) { $next_match_pos = $length + 1; // never true foreach ($delim_copy as $dk => $delimiters) { - if(is_array($delimiters)) { + if (is_array($delimiters)) { foreach ($delimiters as $open => $close) { // make sure the cache is setup properly if (!isset($matches[$dk][$open])) { @@ -2227,7 +2219,7 @@ class GeSHi { if ($matches[$dk][$open]['next_match'] < $next_match_pos) { //So we got a new match, update the close_pos $matches[$dk][$open]['close_pos'] = - strpos($code, $close, $matches[$dk][$open]['next_match']+1); + strpos($code, $close, $matches[$dk][$open]['next_match'] + 1); $next_match_pointer =& $matches[$dk][$open]; $next_match_pos = $matches[$dk][$open]['next_match']; @@ -2241,17 +2233,16 @@ class GeSHi { * - Group 1 is the opener * - Group 2 is the closer */ - if(preg_match($delimiters, $code, $matches_rx, PREG_OFFSET_CAPTURE, $i)) { + if (preg_match($delimiters, $code, $matches_rx, PREG_OFFSET_CAPTURE, $i)) { //We got a match ... - if(isset($matches_rx['start']) && isset($matches_rx['end'])) - { + if (isset($matches_rx['start']) && isset($matches_rx['end'])) { $matches[$dk] = array( 'next_match' => $matches_rx['start'][1], 'dk' => $dk, 'close_strlen' => strlen($matches_rx['end'][0]), 'close_pos' => $matches_rx['end'][1], - ); + ); } else { $matches[$dk] = array( 'next_match' => $matches_rx[1][1], @@ -2259,7 +2250,7 @@ class GeSHi { 'close_strlen' => strlen($matches_rx[2][0]), 'close_pos' => $matches_rx[2][1], - ); + ); } } else { // no match for this delimiter ever @@ -2289,7 +2280,7 @@ class GeSHi { $parts[$k][0] = $next_match_pointer['dk']; //Only combine for non-rx script blocks - if(is_array($delim_copy[$next_match_pointer['dk']])) { + if (is_array($delim_copy[$next_match_pointer['dk']])) { // group adjacent script blocks, e.g. should be one block, not three! $i = $next_match_pos + $next_match_pointer['open_strlen']; while (true) { @@ -2302,7 +2293,7 @@ class GeSHi { break; } if ($code[$i] == $next_match_pointer['open'][0] && ($next_match_pointer['open_strlen'] == 1 || - substr($code, $i, $next_match_pointer['open_strlen']) == $next_match_pointer['open'])) { + substr($code, $i, $next_match_pointer['open_strlen']) == $next_match_pointer['open'])) { // merge adjacent but make sure we don't merge things like foreach ($matches as $submatches) { foreach ($submatches as $match) { @@ -2481,7 +2472,7 @@ class GeSHi { $match_i = false; if (isset($comment_regexp_cache_per_key[$comment_key]) && ($comment_regexp_cache_per_key[$comment_key]['pos'] >= $i || - $comment_regexp_cache_per_key[$comment_key]['pos'] === false)) { + $comment_regexp_cache_per_key[$comment_key]['pos'] === false)) { // we have already matched something if ($comment_regexp_cache_per_key[$comment_key]['pos'] === false) { // this comment is never matched @@ -2555,7 +2546,7 @@ class GeSHi { if (!$this->use_classes) { $string_attributes = ' style="' . $this->language_data['STYLES']['STRINGS'][$string_key] . '"'; } else { - $string_attributes = ' class="st'.$string_key.'"'; + $string_attributes = ' class="st' . $string_key . '"'; } // now handle the string @@ -2563,18 +2554,18 @@ class GeSHi { $start = $i + $char_len; $string_open = true; - if(empty($this->language_data['ESCAPE_REGEXP'])) { + if (empty($this->language_data['ESCAPE_REGEXP'])) { $next_escape_regexp_pos = $length; } do { //Get the regular ending pos ... $close_pos = strpos($part, $char, $start); - if(false === $close_pos) { + if (false === $close_pos) { $close_pos = $length; } - if($this->lexic_permissions['ESCAPE_CHAR']) { + if ($this->lexic_permissions['ESCAPE_CHAR']) { // update escape regexp cache if needed if (isset($this->language_data['ESCAPE_REGEXP']) && $next_escape_regexp_pos < $start) { $next_escape_regexp_pos = $length; @@ -2582,7 +2573,7 @@ class GeSHi { $match_i = false; if (isset($escape_regexp_cache_per_key[$escape_key]) && ($escape_regexp_cache_per_key[$escape_key]['pos'] >= $start || - $escape_regexp_cache_per_key[$escape_key]['pos'] === false)) { + $escape_regexp_cache_per_key[$escape_key]['pos'] === false)) { // we have already matched something if ($escape_regexp_cache_per_key[$escape_key]['pos'] === false) { // this comment is never matched @@ -2613,9 +2604,9 @@ class GeSHi { } //Find the next simple escape position - if('' != $this->language_data['ESCAPE_CHAR']) { + if ('' != $this->language_data['ESCAPE_CHAR']) { $simple_escape = strpos($part, $this->language_data['ESCAPE_CHAR'], $start); - if(false === $simple_escape) { + if (false === $simple_escape) { $simple_escape = $length; } } else { @@ -2626,7 +2617,7 @@ class GeSHi { $simple_escape = $length; } - if($simple_escape < $next_escape_regexp_pos && + if ($simple_escape < $next_escape_regexp_pos && $simple_escape < $length && $simple_escape < $close_pos) { //The nexxt escape sequence is a simple one ... @@ -2655,16 +2646,16 @@ class GeSHi { } elseif (ord($es_char) >= 128) { //This is an non-ASCII char (UTF8 or single byte) //This code tries to work around SF#2037598 ... - if(function_exists('mb_substr')) { - $es_char_m = mb_substr(substr($part, $es_pos+1, 16), 0, 1, $this->encoding); + if (function_exists('mb_substr')) { + $es_char_m = mb_substr(substr($part, $es_pos + 1, 16), 0, 1, $this->encoding); $string .= $es_char_m . ''; } elseif ('utf-8' == $this->encoding) { - if(preg_match("/[\xC2-\xDF][\x80-\xBF]". - "|\xE0[\xA0-\xBF][\x80-\xBF]". - "|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}". - "|\xED[\x80-\x9F][\x80-\xBF]". - "|\xF0[\x90-\xBF][\x80-\xBF]{2}". - "|[\xF1-\xF3][\x80-\xBF]{3}". + if (preg_match("/[\xC2-\xDF][\x80-\xBF]" . + "|\xE0[\xA0-\xBF][\x80-\xBF]" . + "|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}" . + "|\xED[\x80-\x9F][\x80-\xBF]" . + "|\xF0[\x90-\xBF][\x80-\xBF]{2}" . + "|[\xF1-\xF3][\x80-\xBF]{3}" . "|\xF4[\x80-\x8F][\x80-\xBF]{2}/s", $part, $es_char_m, null, $es_pos + 1)) { $es_char_m = $es_char_m[0]; @@ -2709,7 +2700,7 @@ class GeSHi { $start = $close_pos + $char_len; $string_open = false; } - } while($string_open); + } while ($string_open); if ($check_linenumbers) { // Are line numbers used? If, we should end the string before @@ -2753,7 +2744,7 @@ class GeSHi { // check wether this quote is escaped or if it is something like '\\' $escape_char_pos = $close_pos - 1; while ($escape_char_pos > 0 - && $part[$escape_char_pos - 1] == $this->language_data['HARDCHAR']) { + && $part[$escape_char_pos - 1] == $this->language_data['HARDCHAR']) { --$escape_char_pos; } if (($close_pos - $escape_char_pos) & 1) { @@ -2875,7 +2866,7 @@ class GeSHi { $match_i = false; if (isset($comment_multi_cache_per_key[$open]) && ($comment_multi_cache_per_key[$open] >= $i || - $comment_multi_cache_per_key[$open] === false)) { + $comment_multi_cache_per_key[$open] === false)) { // we have already matched something if ($comment_multi_cache_per_key[$open] === false) { // this comment is never matched @@ -2929,7 +2920,7 @@ class GeSHi { $test_str = $this->hsc($open); } - $close_pos = strpos( $part, $close, $i + $open_strlen ); + $close_pos = strpos($part, $close, $i + $open_strlen); if ($close_pos === false) { $close_pos = $length; @@ -2938,7 +2929,7 @@ class GeSHi { // Short-cut through all the multiline code $rest_of_comment = $this->hsc(substr($part, $i + $open_strlen, $close_pos - $i - $open_strlen + $close_strlen)); if (($this->lexic_permissions['COMMENTS']['MULTI'] || - $test_str_match == GESHI_START_IMPORTANT) && + $test_str_match == GESHI_START_IMPORTANT) && $check_linenumbers) { // strreplace to put close span and open span around multiline newlines @@ -2972,7 +2963,7 @@ class GeSHi { $match_i = false; if (isset($comment_single_cache_per_key[$comment_key]) && ($comment_single_cache_per_key[$comment_key] >= $i || - $comment_single_cache_per_key[$comment_key] === false)) { + $comment_single_cache_per_key[$comment_key] === false)) { // we have already matched something if ($comment_single_cache_per_key[$comment_key] === false) { // this comment is never matched @@ -2982,10 +2973,10 @@ class GeSHi { } elseif ( // case sensitive comments ($this->language_data['CASE_SENSITIVE'][GESHI_COMMENTS] && - ($match_i = stripos($part, $comment_mark, $i)) !== false) || + ($match_i = stripos($part, $comment_mark, $i)) !== false) || // non case sensitive (!$this->language_data['CASE_SENSITIVE'][GESHI_COMMENTS] && - (($match_i = strpos($part, $comment_mark, $i)) !== false))) { + (($match_i = strpos($part, $comment_mark, $i)) !== false))) { $comment_single_cache_per_key[$comment_key] = $match_i; } else { $comment_single_cache_per_key[$comment_key] = false; @@ -3008,10 +2999,9 @@ class GeSHi { // This check will find special variables like $# in bash // or compiler directives of Delphi beginning {$ if ((empty($sc_disallowed_before) || ($i == 0) || - (false === strpos($sc_disallowed_before, $part[$i-1]))) && + (false === strpos($sc_disallowed_before, $part[$i - 1]))) && (empty($sc_disallowed_after) || ($length <= $i + $com_len) || - (false === strpos($sc_disallowed_after, $part[$i + $com_len])))) - { + (false === strpos($sc_disallowed_after, $part[$i + $com_len])))) { // this is a valid comment $COMMENT_MATCHED = true; if ($this->lexic_permissions['COMMENTS'][$comment_key]) { @@ -3039,7 +3029,7 @@ class GeSHi { // Take into account that the comment might be the last in the source if (!$oops) { - $test_str .= "\n"; + $test_str .= "\n"; } $i = $close_pos; @@ -3099,7 +3089,7 @@ class GeSHi { * Swaps out spaces and tabs for HTML indentation. Not needed if * the code is in a pre block... * - * @param string $result The source to indent (reference!) + * @param string $result The source to indent (reference!) * @since 1.0.0 */ protected function indent(&$result) { @@ -3144,7 +3134,7 @@ class GeSHi { if (false === $posi) { ++$pos; } else { - $pos -= $posi+2; + $pos -= $posi + 2; } $lines[$key] .= $char; } elseif ("\t" == $char) { @@ -3159,7 +3149,7 @@ class GeSHi { if (($pos & 1) || 1 == $tab_end_width) { $str .= substr($tab_string, 6, $tab_end_width); } else { - $str .= substr($tab_string, 0, $tab_end_width+5); + $str .= substr($tab_string, 0, $tab_end_width + 5); } $lines[$key] .= $str; $pos += $tab_end_width; @@ -3197,7 +3187,7 @@ class GeSHi { /** * Changes the case of a keyword for those languages where a change is asked for * - * @param string $instr The keyword to change the case of + * @param string $instr The keyword to change the case of * @return string The keyword with its case changed * @since 1.0.0 */ @@ -3215,7 +3205,7 @@ class GeSHi { /** * Handles replacements of keywords to include markup and links if requested * - * @param string $match The keyword to add the Markup to + * @param string $match The keyword to add the Markup to * @return string The HTML for the match found * @since 1.0.8 * @@ -3270,7 +3260,7 @@ class GeSHi { } } - return $before . '<|/'. $k .'/>' . $this->change_case($keyword) . '|>' . $after; + return $before . '<|/' . $k . '/>' . $this->change_case($keyword) . '|>' . $after; } /** @@ -3284,7 +3274,7 @@ class GeSHi { */ protected function handle_regexps_callback($matches) { // before: "' style=\"' . call_user_func(\"$func\", '\\1') . '\"\\1|>'", - return ' style="' . call_user_func($this->language_data['STYLES']['REGEXPS'][$this->_rx_key], $matches[1]) . '"'. $matches[1] . '|>'; + return ' style="' . call_user_func($this->language_data['STYLES']['REGEXPS'][$this->_rx_key], $matches[1]) . '"' . $matches[1] . '|>'; } /** @@ -3314,10 +3304,10 @@ class GeSHi { $replace = $matches[0]; } return $before - . '<|!REG3XP' . $this->_hmr_key .'!>' - . str_replace("\n", "|>\n<|!REG3XP" . $this->_hmr_key . '!>', $replace) - . '|>' - . $after; + . '<|!REG3XP' . $this->_hmr_key . '!>' + . str_replace("\n", "|>\n<|!REG3XP" . $this->_hmr_key . '!>', $replace) + . '|>' + . $after; } /** @@ -3325,9 +3315,9 @@ class GeSHi { * stuff like keywords, numbers and methods. * * @param string $stuff_to_parse The string to parse for keyword, numbers etc. - * @since 1.0.0 - * @todo BUGGY! Why? Why not build string and return? * @return string + * @todo BUGGY! Why? Why not build string and return? + * @since 1.0.0 */ protected function parse_non_string_part($stuff_to_parse) { $stuff_to_parse = ' ' . $this->hsc($stuff_to_parse); @@ -3385,7 +3375,7 @@ class GeSHi { //NEW in 1.0.8, the cached regexp list // since we don't want PHP / PCRE to crash due to too large patterns we split them into smaller chunks - for ($set = 0, $set_length = count($this->language_data['CACHED_KEYWORD_LISTS'][$k]); $set < $set_length; ++$set) { + for ($set = 0, $set_length = count($this->language_data['CACHED_KEYWORD_LISTS'][$k]); $set < $set_length; ++$set) { $keywordset =& $this->language_data['CACHED_KEYWORD_LISTS'][$k][$set]; // Might make a more unique string for putting the number in soon // Basically, we don't put the styles in yet because then the styles themselves will @@ -3394,7 +3384,7 @@ class GeSHi { "/$disallowed_before_local({$keywordset})(?!\(?:htm|php|aspx?))$disallowed_after_local/$modifiers", array($this, 'handle_keyword_replace'), $stuff_to_parse - ); + ); } } } @@ -3419,18 +3409,18 @@ class GeSHi { } else { $stuff_to_parse = preg_replace( '/' . $regexp[GESHI_SEARCH] . '/' . $regexp[GESHI_MODIFIERS], - $regexp[GESHI_BEFORE] . '<|!REG3XP'. $key .'!>' . $regexp[GESHI_REPLACE] . '|>' . $regexp[GESHI_AFTER], + $regexp[GESHI_BEFORE] . '<|!REG3XP' . $key . '!>' . $regexp[GESHI_REPLACE] . '|>' . $regexp[GESHI_AFTER], $stuff_to_parse); } } else { if ($this->line_numbers != GESHI_NO_LINE_NUMBERS) { // produce valid HTML when we match multiple lines $this->_hmr_key = $key; - $stuff_to_parse = preg_replace_callback( "/(" . $regexp . ")/", - array($this, 'handle_multiline_regexps'), $stuff_to_parse); + $stuff_to_parse = preg_replace_callback("/(" . $regexp . ")/", + array($this, 'handle_multiline_regexps'), $stuff_to_parse); $this->_hmr_key = ''; } else { - $stuff_to_parse = preg_replace( "/(" . $regexp . ")/", "<|!REG3XP$key!>\\1|>", $stuff_to_parse); + $stuff_to_parse = preg_replace("/(" . $regexp . ")/", "<|!REG3XP$key!>\\1|>", $stuff_to_parse); } } } @@ -3439,11 +3429,11 @@ class GeSHi { // Highlight numbers. As of 1.0.8 we support different types of numbers $numbers_found = false; - if ($this->lexic_permissions['NUMBERS'] && preg_match($this->language_data['PARSER_CONTROL']['NUMBERS']['PRECHECK_RX'], $stuff_to_parse )) { + if ($this->lexic_permissions['NUMBERS'] && preg_match($this->language_data['PARSER_CONTROL']['NUMBERS']['PRECHECK_RX'], $stuff_to_parse)) { $numbers_found = true; //For each of the formats ... - foreach($this->language_data['NUMBERS_RXCACHE'] as $id => $regexp) { + foreach ($this->language_data['NUMBERS_RXCACHE'] as $id => $regexp) { //Check if it should be highlighted ... $stuff_to_parse = preg_replace($regexp, "<|/NUM!$id/>\\1|>", $stuff_to_parse); } @@ -3456,7 +3446,7 @@ class GeSHi { if (!$this->use_classes) { $attributes = ' style="' . (isset($this->language_data['STYLES']['KEYWORDS'][$k]) ? - $this->language_data['STYLES']['KEYWORDS'][$k] : "") . '"'; + $this->language_data['STYLES']['KEYWORDS'][$k] : "") . '"'; } else { $attributes = ' class="kw' . $k . '"'; } @@ -3465,7 +3455,7 @@ class GeSHi { if ($numbers_found) { // Put number styles in - foreach($this->language_data['NUMBERS_RXCACHE'] as $id => $regexp) { + foreach ($this->language_data['NUMBERS_RXCACHE'] as $id => $regexp) { //Commented out for now, as this needs some review ... // if ($numbers_permissions & $id) { //Get the appropriate style ... @@ -3473,7 +3463,7 @@ class GeSHi { if (!$this->use_classes) { $attributes = ' style="' . $this->language_data['STYLES']['NUMBERS'][$id] . '"'; } else { - $attributes = ' class="nu'.$id.'"'; + $attributes = ' class="nu' . $id . '"'; } //Set in the correct styles ... @@ -3520,8 +3510,8 @@ class GeSHi { // be highlighting regardless // if ($this->lexic_permissions['BRACKETS']) { - $stuff_to_parse = str_replace( $this->language_data['CACHE_BRACKET_MATCH'], - $this->language_data['CACHE_BRACKET_REPLACE'], $stuff_to_parse ); + $stuff_to_parse = str_replace($this->language_data['CACHE_BRACKET_MATCH'], + $this->language_data['CACHE_BRACKET_REPLACE'], $stuff_to_parse); } @@ -3536,7 +3526,7 @@ class GeSHi { // already highlighted blocks _must_ include either < or > // so if this conditional applies, we have to skip this match // BenBE: UNLESS the block contains or - if(strpos($symbol_match, '') === false && + if (strpos($symbol_match, '') === false && strpos($symbol_match, '') === false) { continue; } @@ -3612,7 +3602,7 @@ class GeSHi { $attributes = ' class="' . $this->language_data['REGEXPS'][$key][GESHI_CLASS] . '"'; } else { - $attributes = ' class="re' . $key . '"'; + $attributes = ' class="re' . $key . '"'; } } $stuff_to_parse = str_replace("!REG3XP$key!", "$attributes", $stuff_to_parse); @@ -3638,7 +3628,7 @@ class GeSHi { // $stuff_to_parse = str_replace('<|', '', '', $stuff_to_parse ); + $stuff_to_parse = str_replace('|>', '', $stuff_to_parse); return substr($stuff_to_parse, 1); } @@ -3646,7 +3636,7 @@ class GeSHi { * Sets the time taken to parse the code * * @param string $start_time The time when parsing started as returned by @see microtime() - * @param string $end_time The time when parsing ended as returned by @see microtime() + * @param string $end_time The time when parsing ended as returned by @see microtime() * @since 1.0.2 */ protected function set_time($start_time, $end_time) { @@ -3676,10 +3666,10 @@ class GeSHi { // check arguments // comment out if more performance is necessary (in this case the foreach loop will trigger a warning if the argument is not an array) - for ($i = 0; $i < $narrays; $i ++) { + for ($i = 0; $i < $narrays; $i++) { if (!is_array($arrays[$i])) { // also array_merge_recursive returns nothing in this case - trigger_error('Argument #' . ($i+1) . ' is not an array - trying to merge array with scalar! Returning false!', E_USER_WARNING); + trigger_error('Argument #' . ($i + 1) . ' is not an array - trying to merge array with scalar! Returning false!', E_USER_WARNING); return false; } } @@ -3688,7 +3678,7 @@ class GeSHi { $ret = $arrays[0]; // merege $ret with the remaining arrays - for ($i = 1; $i < $narrays; $i ++) { + for ($i = 1; $i < $narrays; $i++) { foreach ($arrays[$i] as $key => $value) { if (is_array($value) && isset($ret[$key])) { // if $ret[$key] is not an array you try to merge an scalar value with an array - the result is not defined (incompatible arrays) @@ -3780,7 +3770,7 @@ class GeSHi { //Fix: Problem where hardescapes weren't handled if no ESCAPE_CHAR was given //You need to set one for HARDESCAPES only in this case. - if(!isset($this->language_data['HARDCHAR'])) { + if (!isset($this->language_data['HARDCHAR'])) { $this->language_data['HARDCHAR'] = $this->language_data['ESCAPE_CHAR']; } @@ -3807,7 +3797,7 @@ class GeSHi { * Takes the parsed code and various options, and creates the HTML * surrounding it to make it look nice. * - * @param string $parsed_code The code already parsed (reference!) + * @param string $parsed_code The code already parsed (reference!) * @since 1.0.0 */ protected function finalise(&$parsed_code) { @@ -3929,18 +3919,18 @@ class GeSHi { if ($this->use_classes) { $attributes = ' class="de1"'; } else { - $attributes = ' style="'. $this->code_style .'"'; + $attributes = ' style="' . $this->code_style . '"'; } if ($this->header_type == GESHI_HEADER_PRE_VALID) { - $parsed_code .= ''; + $parsed_code .= ''; } elseif ($this->header_type == GESHI_HEADER_PRE_TABLE) { if ($this->line_numbers != GESHI_NO_LINE_NUMBERS) { if ($this->use_classes) { $attrs = ' class="ln"'; } else { - $attrs = ' style="'. $this->table_linenumber_style .'"'; + $attrs = ' style="' . $this->table_linenumber_style . '"'; } - $parsed_code .= ''; + $parsed_code .= ''; // get linenumbers // we don't merge it with the for below, since it should be better for // memory consumption this way @@ -3959,7 +3949,7 @@ class GeSHi { // so that styles applied to special lines don't apply to the actual // code on that line $parsed_code .= '' - .''; + . ''; } $close += 2; } @@ -3983,9 +3973,9 @@ class GeSHi { $parsed_code .= "\n"; } } - $parsed_code .= ''; + $parsed_code .= ''; } - $parsed_code .= ''; + $parsed_code .= ''; } // No line numbers, but still need to handle highlighting lines extra. // Have to use divs so the full width of the code is highlighted @@ -4007,7 +3997,7 @@ class GeSHi { // so that styles applied to special lines don't apply to the actual // code on that line $parsed_code .= '' - .''; + . ''; } $close += 2; } @@ -4028,10 +4018,9 @@ class GeSHi { $parsed_code .= $code[$i]; if ($close) { - $parsed_code .= str_repeat('', $close); - $close = 0; - } - elseif ($i + 1 < $n) { + $parsed_code .= str_repeat('', $close); + $close = 0; + } elseif ($i + 1 < $n) { $parsed_code .= "\n"; } unset($code[$i]); @@ -4062,7 +4051,7 @@ class GeSHi { */ $attributes = ' class="' . $this->_genCSSName($this->language); if ($this->overall_class != '') { - $attributes .= " ".$this->_genCSSName($this->overall_class); + $attributes .= " " . $this->_genCSSName($this->overall_class); } $attributes .= '"'; @@ -4118,7 +4107,7 @@ class GeSHi { } } else { if ($this->header_type == GESHI_HEADER_PRE) { - return "$header" . + return "$header" . ($this->force_code_block ? '
    ' : ''); } else { return "$header" . @@ -4163,15 +4152,13 @@ class GeSHi { } return ($this->force_code_block ? '
    ' : '') . "$footer
    "; - } - elseif ($this->header_type == GESHI_HEADER_PRE_TABLE) { + } elseif ($this->header_type == GESHI_HEADER_PRE_TABLE) { if ($this->line_numbers != GESHI_NO_LINE_NUMBERS) { return "$footer"; } return ($this->force_code_block ? '
    ' : '') . "$footer
    "; - } - else { + } else { if ($this->line_numbers != GESHI_NO_LINE_NUMBERS) { return "$footer"; } @@ -4184,7 +4171,7 @@ class GeSHi { * Replaces certain keywords in the header and footer with * certain configuration values * - * @param string $instr The header or footer content to do replacement on + * @param string $instr The header or footer content to do replacement on * @return string The header or footer with replaced keywords * @since 1.0.2 */ @@ -4264,8 +4251,8 @@ class GeSHi { * @copyright Copyright 2007, {@link http://wikkawiki.org/CreditsPage * Wikka Development Team} * - * @param string $string string to be converted - * @param integer $quote_style + * @param string $string string to be converted + * @param integer $quote_style * - ENT_COMPAT: escapes &, <, > and double quote (default) * - ENT_NOQUOTES: escapes only &, < and > * - ENT_QUOTES: escapes &, <, >, double and single quotes @@ -4288,7 +4275,7 @@ class GeSHi { //was not to be processed as an entity. ';' => '', // Force ; to be processed as entity '|' => '' // Force | to be processed as entity - ); // ENT_COMPAT set + ); // ENT_COMPAT set switch ($quote_style) { case ENT_NOQUOTES: // don't convert double quotes @@ -4320,7 +4307,7 @@ class GeSHi { * is true, we only return the stylesheet declarations that matter for * this code block instead of the whole thing * - * @param boolean $economy_mode Whether to use economy mode or not + * @param boolean $economy_mode Whether to use economy mode or not * @return string A stylesheet built on the data for the current language * @since 1.0.0 */ @@ -4334,7 +4321,7 @@ class GeSHi { //Check if the style rearrangements have been processed ... //This also does some preprocessing to check which style groups are useable ... - if(!isset($this->language_data['NUMBERS_CACHE'])) { + if (!isset($this->language_data['NUMBERS_CACHE'])) { $this->build_style_cache(); } @@ -4353,19 +4340,19 @@ class GeSHi { // Header of the stylesheet if (!$economy_mode) { - $stylesheet = "/**\n". - " * GeSHi Dynamically Generated Stylesheet\n". - " * --------------------------------------\n". - " * Dynamically generated stylesheet for {$this->language}\n". - " * CSS class: {$this->overall_class}, CSS id: {$this->overall_id}\n". + $stylesheet = "/**\n" . + " * GeSHi Dynamically Generated Stylesheet\n" . + " * --------------------------------------\n" . + " * Dynamically generated stylesheet for {$this->language}\n" . + " * CSS class: {$this->overall_class}, CSS id: {$this->overall_id}\n" . " * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2014 Benny Baumann\n" . - " * (http://qbnz.com/highlighter/ and http://geshi.org/)\n". - " * --------------------------------------\n". + " * (http://qbnz.com/highlighter/ and http://geshi.org/)\n" . + " * --------------------------------------\n" . " */\n"; } else { - $stylesheet = "/**\n". + $stylesheet = "/**\n" . " * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2014 Benny Baumann\n" . - " * (http://qbnz.com/highlighter/ and http://geshi.org/)\n". + " * (http://qbnz.com/highlighter/ and http://geshi.org/)\n" . " */\n"; } @@ -4437,17 +4424,17 @@ class GeSHi { // note: empty styles are meaningless foreach ($this->language_data['STYLES']['KEYWORDS'] as $group => $styles) { if ($styles != '' && (!$economy_mode || - (isset($this->lexic_permissions['KEYWORDS'][$group]) && - $this->lexic_permissions['KEYWORDS'][$group]))) { + (isset($this->lexic_permissions['KEYWORDS'][$group]) && + $this->lexic_permissions['KEYWORDS'][$group]))) { $stylesheet .= "$selector.kw$group {{$styles}}\n"; } } foreach ($this->language_data['STYLES']['COMMENTS'] as $group => $styles) { if ($styles != '' && (!$economy_mode || - (isset($this->lexic_permissions['COMMENTS'][$group]) && - $this->lexic_permissions['COMMENTS'][$group]) || - (!empty($this->language_data['COMMENT_REGEXP']) && - !empty($this->language_data['COMMENT_REGEXP'][$group])))) { + (isset($this->lexic_permissions['COMMENTS'][$group]) && + $this->lexic_permissions['COMMENTS'][$group]) || + (!empty($this->language_data['COMMENT_REGEXP']) && + !empty($this->language_data['COMMENT_REGEXP'][$group])))) { $stylesheet .= "$selector.co$group {{$styles}}\n"; } } @@ -4500,8 +4487,8 @@ class GeSHi { } foreach ($this->language_data['STYLES']['REGEXPS'] as $group => $styles) { if ($styles != '' && (!$economy_mode || - (isset($this->lexic_permissions['REGEXPS'][$group]) && - $this->lexic_permissions['REGEXPS'][$group]))) { + (isset($this->lexic_permissions['REGEXPS'][$group]) && + $this->lexic_permissions['REGEXPS'][$group]))) { if (is_array($this->language_data['REGEXPS'][$group]) && array_key_exists(GESHI_CLASS, $this->language_data['REGEXPS'][$group])) { $stylesheet .= "$selector."; @@ -4513,7 +4500,7 @@ class GeSHi { } } // Styles for lines being highlighted extra - if (!$economy_mode || (count($this->highlight_extra_lines)!=count($this->highlight_extra_lines_styles))) { + if (!$economy_mode || (count($this->highlight_extra_lines) != count($this->highlight_extra_lines_styles))) { $stylesheet .= "{$selector}.ln-xtra, {$selector}li.ln-xtra, {$selector}div.ln-xtra {{$this->highlight_extra_lines_style}}\n"; } $stylesheet .= "{$selector}span.xtra { display:block; }\n"; @@ -4542,19 +4529,19 @@ class GeSHi { } /** - * this functions creates an optimized regular expression list - * of an array of strings. - * - * Example: - * $list = array('faa', 'foo', 'foobar'); - * => string 'f(aa|oo(bar)?)' - * - * @param array $list array of (unquoted) strings - * @param string $regexp_delimiter your regular expression delimiter, @see preg_quote() - * @return string for regular expression - * @author Milian Wolff - * @since 1.0.8 - */ + * this functions creates an optimized regular expression list + * of an array of strings. + * + * Example: + * $list = array('faa', 'foo', 'foobar'); + * => string 'f(aa|oo(bar)?)' + * + * @param array $list array of (unquoted) strings + * @param string $regexp_delimiter your regular expression delimiter, @see preg_quote() + * @return string for regular expression + * @author Milian Wolff + * @since 1.0.8 + */ protected function optimize_regexp_list($list, $regexp_delimiter = '/') { $regex_chars = array('.', '\\', '+', '-', '*', '?', '[', '^', ']', '$', '(', ')', '{', '}', '=', '!', '<', '>', '|', ':', $regexp_delimiter); @@ -4577,7 +4564,7 @@ class GeSHi { $cur_len = 0; } $level = 0; - $entry = preg_quote((string) $list[$i], $regexp_delimiter); + $entry = preg_quote((string)$list[$i], $regexp_delimiter); $pointer = &$tokens; // properly assign the new entry to the correct position in the token array // possibly generate smaller common denominator keys @@ -4590,7 +4577,7 @@ class GeSHi { } $char = 0; while (isset($entry[$char]) && isset($prev_keys[$level][$char]) - && $entry[$char] == $prev_keys[$level][$char]) { + && $entry[$char] == $prev_keys[$level][$char]) { ++$char; } if ($char > 0) { @@ -4655,8 +4642,8 @@ class GeSHi { // make sure the last tokens get converted as well $new_entry = $this->_optimize_regexp_list_tokens_to_string($tokens); if (GESHI_MAX_PCRE_SUBPATTERNS && $num_subpatterns + substr_count($new_entry, '(?:') > GESHI_MAX_PCRE_SUBPATTERNS) { - if ( !empty($regexp_list[$list_key]) ) { - ++$list_key; + if (!empty($regexp_list[$list_key])) { + ++$list_key; } $regexp_list[$list_key] = $new_entry; } else { @@ -4669,15 +4656,15 @@ class GeSHi { } /** - * this function creates the appropriate regexp string of an token array - * you should not call this function directly, @see $this->optimize_regexp_list(). - * - * @param array $tokens array of tokens - * @param bool $recursed to know wether we recursed or not - * @return string - * @author Milian Wolff - * @since 1.0.8 - */ + * this function creates the appropriate regexp string of an token array + * you should not call this function directly, @param array $tokens array of tokens + * @param bool $recursed to know wether we recursed or not + * @return string + * @see $this->optimize_regexp_list(). + * + * @author Milian Wolff + * @since 1.0.8 + */ protected function _optimize_regexp_list_tokens_to_string(&$tokens, $recursed = false) { $list = ''; foreach ($tokens as $token => $sub_tokens) { @@ -4703,7 +4690,7 @@ class GeSHi { $list = preg_replace('#\(\?\:(.)\)\?#', '\1?', $list); // (?:a|b|c|d|...)? => [abcd...]? // TODO: a|bb|c => [ac]|bb - $list = preg_replace_callback('#\(\?\:((?:.\|)+.)\)#', function($matches) { + $list = preg_replace_callback('#\(\?\:((?:.\|)+.)\)#', function ($matches) { return "[" . str_replace("|", "", $matches[1]) . "]"; }, $list); } @@ -4717,11 +4704,11 @@ if (!function_exists('geshi_highlight')) { /** * Easy way to highlight stuff. Behaves just like highlight_string * - * @param string $string The code to highlight + * @param string $string The code to highlight * @param string $language The language to highlight the code in - * @param string $path The path to the language files. You can leave this blank if you need + * @param string $path The path to the language files. You can leave this blank if you need * as from version 1.0.7 the path should be automatically detected - * @param boolean $return Whether to return the result or to echo + * @param boolean $return Whether to return the result or to echo * @return string The code highlighted (if $return is true) * @since 1.0.2 */ diff --git a/includes/geshi/green.php b/includes/geshi/green.php index 7dc43b2..35efb41 100644 --- a/includes/geshi/green.php +++ b/includes/geshi/green.php @@ -27,7 +27,7 @@ $language_data = array( 'COMMENT_SINGLE' => array( 1 => '>', 2 => '>' - ), + ), 'COMMENT_MULTI' => array(), 'COMMENT_REGEXP' => array(), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, @@ -40,26 +40,26 @@ $language_data = array( 'KEYWORDS' => array( 1 => array( '' - ) - ), + ) + ), 'CASE_SENSITIVE' => array( 1 => false - ), + ), 'SYMBOLS' => array( 0 => array( '' - ) - ), + ) + ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #0000FF; font-weight: bold;' - ), + ), 'COMMENTS' => array( 1 => 'font-style: normal; color: #789922; line-height: 1.2;', 2 => 'font-style: normal color: #789922; line-height: 1.2;', 1 => 'font-style: normal; color: #789922; line-height: 1.2;', 'MULTI' => 'font-style: normal; color: #666666; line-height: 1.2;' - ), + ), 'ESCAPE_CHAR' => array(), 'BRACKETS' => array(), 'STRINGS' => array(), @@ -67,7 +67,7 @@ $language_data = array( 'SYMBOLS' => array(), 'REGEXPS' => array(), 'SCRIPT' => array() - ), + ), 'URLS' => array(), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array(), diff --git a/includes/geshi/html5.php b/includes/geshi/html5.php index 04fb820..f368149 100644 --- a/includes/geshi/html5.php +++ b/includes/geshi/html5.php @@ -49,7 +49,7 @@ * ************************************************************************************/ -$language_data = array ( +$language_data = array( 'LANG_NAME' => 'HTML5', 'COMMENT_SINGLE' => array(), 'COMMENT_MULTI' => array(), @@ -99,7 +99,7 @@ $language_data = array ( 'var', 'video', 'wbr', - ), + ), 3 => array( 'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis', 'autocomplete', 'autofocus', 'background', 'bgcolor', 'border', @@ -120,76 +120,71 @@ $language_data = array ( 'usemap', 'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace', 'width' - ) - ), + ) + ), 'SYMBOLS' => array( '/', '=' - ), + ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false, 2 => false, 3 => false, - ), + ), 'STYLES' => array( 'KEYWORDS' => array( 2 => 'color: #000000; font-weight: bold;', 3 => 'color: #000066;' - ), - 'COMMENTS' => array( - ), + ), + 'COMMENTS' => array(), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;' - ), + ), 'BRACKETS' => array( 0 => 'color: #66cc66;' - ), + ), 'STRINGS' => array( 0 => 'color: #ff0000;' - ), + ), 'NUMBERS' => array( 0 => 'color: #cc66cc;' - ), - 'METHODS' => array( - ), + ), + 'METHODS' => array(), 'SYMBOLS' => array( 0 => 'color: #66cc66;' - ), + ), 'SCRIPT' => array( -2 => 'color: #404040;', // CDATA -1 => 'color: #808080; font-style: italic;', // comments 0 => 'color: #00bbdd;', 1 => 'color: #ddbb00;', 2 => 'color: #009900;' - ), - 'REGEXPS' => array( - ) ), + 'REGEXPS' => array() + ), 'URLS' => array( 2 => 'http://december.com/html/4/element/{FNAMEL}.html', 3 => '' - ), + ), 'OOLANG' => false, - 'OBJECT_SPLITTERS' => array( - ), - 'REGEXPS' => array( - ), + 'OBJECT_SPLITTERS' => array(), + 'REGEXPS' => array(), 'STRICT_MODE_APPLIES' => GESHI_ALWAYS, 'SCRIPT_DELIMITERS' => array( -2 => array( ' ']]>' - ), + ), -1 => array( '' - ), + ), 0 => array( ' '>' - ), + ), 1 => array( '&' => ';' - ), + ), 2 => array( '<' => '>' - ) + ) ), 'HIGHLIGHT_STRICT_BLOCK' => array( -2 => false, @@ -197,7 +192,7 @@ $language_data = array ( 0 => false, 1 => false, 2 => true - ), + ), 'TAB_WIDTH' => 4, 'PARSER_CONTROL' => array( 'KEYWORDS' => array( diff --git a/includes/geshi/java.php b/includes/geshi/java.php index b7323cd..671199b 100644 --- a/includes/geshi/java.php +++ b/includes/geshi/java.php @@ -51,7 +51,7 @@ * ************************************************************************************/ -$language_data = array ( +$language_data = array( 'LANG_NAME' => 'Java', 'COMMENT_SINGLE' => array(1 => '//'), 'COMMENT_MULTI' => array('/*' => '*/'), @@ -60,24 +60,24 @@ $language_data = array ( 2 => '/(?:(?<=import[\\n\\s])|(?<=package[\\n\\s]))[\\n\\s]*([a-zA-Z0-9_]+\\.)*([a-zA-Z0-9_]+|\*)(?=[\n\s;])/i', // javadoc comments 3 => '#/\*\*(?![\*\/]).*\*/#sU' - ), + ), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array("'", '"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS' => array( 1 => array( 'for', 'foreach', 'if', 'else', 'while', 'do', - 'switch', 'case', 'return', 'public', + 'switch', 'case', 'return', 'public', 'private', 'protected', 'extends', 'break', 'class', 'new', 'try', 'catch', 'throws', 'finally', 'implements', 'interface', 'throw', 'final', 'native', 'synchronized', 'this', 'abstract', 'transient', 'instanceof', 'assert', 'continue', 'default', 'enum', 'package', 'static', 'strictfp', 'super', 'volatile', 'const', 'goto', 'import' - ), + ), 2 => array( 'null', 'false', 'true' - ), + ), 3 => array( 'AbstractAction', 'AbstractBorder', 'AbstractButton', 'AbstractCellEditor', 'AbstractCollection', @@ -904,77 +904,72 @@ $language_data = array ( '_BindingIteratorImplBase', '_BindingIteratorStub', '_IDLTypeStub', '_NamingContextImplBase', '_NamingContextStub', '_PolicyStub', '_Remote_Stub' - ), + ), 4 => array( 'void', 'double', 'int', 'boolean', 'byte', 'short', 'long', 'char', 'float' - ) - ), + ) + ), 'SYMBOLS' => array( '(', ')', '[', ']', '{', '}', '+', '-', '*', '/', '%', '!', '&', '|', '^', '<', '>', '=', '?', ':', ';', - ), + ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false, 1 => false, 2 => false, 3 => true, 4 => true - ), + ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #000000; font-weight: bold;', 2 => 'color: #000066; font-weight: bold;', 3 => 'color: #003399;', 4 => 'color: #000066; font-weight: bold;' - ), + ), 'COMMENTS' => array( 1 => 'color: #666666; font-style: italic;', 2 => 'color: #006699;', 3 => 'color: #008000; font-style: italic; font-weight: bold;', 'MULTI' => 'color: #666666; font-style: italic;' - ), + ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;' - ), + ), 'BRACKETS' => array( 0 => 'color: #009900;' - ), + ), 'STRINGS' => array( 0 => 'color: #0000ff;' - ), + ), 'NUMBERS' => array( 0 => 'color: #cc66cc;' - ), + ), 'METHODS' => array( 1 => 'color: #006633;', 2 => 'color: #006633;' - ), + ), 'SYMBOLS' => array( 0 => 'color: #339933;' - ), - 'SCRIPT' => array( - ), - 'REGEXPS' => array( - ) ), + 'SCRIPT' => array(), + 'REGEXPS' => array() + ), 'URLS' => array( 1 => '', 2 => '', 3 => 'http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+{FNAMEL}', 4 => '' - ), + ), 'OOLANG' => true, 'OBJECT_SPLITTERS' => array( 1 => '.' - ), - 'REGEXPS' => array( - ), + ), + 'REGEXPS' => array(), 'STRICT_MODE_APPLIES' => GESHI_NEVER, - 'SCRIPT_DELIMITERS' => array( - ), - 'HIGHLIGHT_STRICT_BLOCK' => array( - ) + 'SCRIPT_DELIMITERS' => array(), + 'HIGHLIGHT_STRICT_BLOCK' => array() ); diff --git a/includes/geshi/javascript.php b/includes/geshi/javascript.php index 439b7a9..26de5d5 100644 --- a/includes/geshi/javascript.php +++ b/includes/geshi/javascript.php @@ -43,59 +43,59 @@ * ************************************************************************************/ -$language_data = array ( +$language_data = array( 'LANG_NAME' => 'Javascript', 'COMMENT_SINGLE' => array(1 => '//'), 'COMMENT_MULTI' => array('/*' => '*/'), 'COMMENT_REGEXP' => array( //Regular Expressions 2 => "/(?<=[\\s^])(s|tr|y)\\/(?!\*)(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])+(? GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array("'", '"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS' => array( 1 => array( //reserved/keywords; also some non-reserved keywords - 'break','case','catch','const','continue', - 'default','delete','do', + 'break', 'case', 'catch', 'const', 'continue', + 'default', 'delete', 'do', 'else', - 'finally','for','function', - 'get','goto', - 'if','in','instanceof', + 'finally', 'for', 'function', + 'get', 'goto', + 'if', 'in', 'instanceof', 'new', 'prototype', 'return', - 'set','static','switch', - 'this','throw','try','typeof', - 'var','void' - ), + 'set', 'static', 'switch', + 'this', 'throw', 'try', 'typeof', + 'var', 'void' + ), 2 => array( //reserved/non-keywords; metaconstants - 'false','null','true','undefined','NaN','Infinity' - ), + 'false', 'null', 'true', 'undefined', 'NaN', 'Infinity' + ), 3 => array( //magic properties/functions - '__proto__','__defineGetter__','__defineSetter__','hasOwnProperty','hasProperty' - ), + '__proto__', '__defineGetter__', '__defineSetter__', 'hasOwnProperty', 'hasProperty' + ), 4 => array( //type constructors 'Object', 'Function', 'Date', 'Math', 'String', 'Number', 'Boolean', 'Array' - ), + ), 5 => array( //reserved, but invalid in language - 'abstract','boolean','byte','char','class','debugger','double','enum','export','extends', - 'final','float','implements','import','int','interface','long','native', - 'short','super','synchronized','throws','transient','volatile' - ), + 'abstract', 'boolean', 'byte', 'char', 'class', 'debugger', 'double', 'enum', 'export', 'extends', + 'final', 'float', 'implements', 'import', 'int', 'interface', 'long', 'native', + 'short', 'super', 'synchronized', 'throws', 'transient', 'volatile' ), + ), 'SYMBOLS' => array( '(', ')', '[', ']', '{', '}', '+', '-', '*', '/', '%', '!', '@', '&', '|', '^', '<', '>', '=', ',', ';', '?', ':' - ), + ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false, 1 => true, @@ -103,46 +103,45 @@ $language_data = array ( 3 => true, 4 => true, 5 => true - ), + ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #000066; font-weight: bold;', 2 => 'color: #003366; font-weight: bold;', 3 => 'color: #000066;', 5 => 'color: #FF0000;' - ), + ), 'COMMENTS' => array( 1 => 'color: #006600; font-style: italic;', 2 => 'color: #009966; font-style: italic;', 'MULTI' => 'color: #006600; font-style: italic;' - ), + ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;' - ), + ), 'BRACKETS' => array( 0 => 'color: #009900;' - ), + ), 'STRINGS' => array( 0 => 'color: #3366CC;' - ), + ), 'NUMBERS' => array( 0 => 'color: #CC0000;' - ), + ), 'METHODS' => array( 1 => 'color: #660066;' - ), + ), 'SYMBOLS' => array( 0 => 'color: #339933;' - ), - 'REGEXPS' => array( - ), + ), + 'REGEXPS' => array(), 'SCRIPT' => array( 0 => '', 1 => '', 2 => '', 3 => '' - ) - ), + ) + ), 'URLS' => array( 1 => '', 2 => '', @@ -153,20 +152,19 @@ $language_data = array ( 'OOLANG' => true, 'OBJECT_SPLITTERS' => array( 1 => '.' - ), - 'REGEXPS' => array( - ), + ), + 'REGEXPS' => array(), 'STRICT_MODE_APPLIES' => GESHI_MAYBE, 'SCRIPT_DELIMITERS' => array( 0 => array( '' - ), + ), 1 => array( '' - ) - ), + ) + ), 'HIGHLIGHT_STRICT_BLOCK' => array( 0 => true, 1 => true - ) + ) ); diff --git a/includes/geshi/markdown.php b/includes/geshi/markdown.php index 1eca917..35d4f46 100644 --- a/includes/geshi/markdown.php +++ b/includes/geshi/markdown.php @@ -15,9 +15,9 @@ require_once 'wp-syntax/geshi/geshi.php'; class MarkdownGeshi_Parser extends MarkdownExtra_Parser { /** * The 'processing instruction' pattern for the code blocks parser. - * Format is defined as : #!language@linenumber. The @linenumber + * Format is defined as : #!language@linenumber. The @linenumber * part is optional. - * + * * Optional parameters are allowed past a semicolon. */ public $shebang = '/^ @@ -28,77 +28,76 @@ class MarkdownGeshi_Parser extends MarkdownExtra_Parser { (?:;\s*(?P.*?)\s*)?\n (?P.*) /sx'; - + function hasShebang($code) { - if(preg_match($this->shebang, $code, $m)) { + if (preg_match($this->shebang, $code, $m)) { return $m; } return false; } function _doCodeBlocks_callback($matches) { - if($m = $this->hasShebang($matches[1])) { + if ($m = $this->hasShebang($matches[1])) { return $this->_doGeshi($m); } else { return parent::_doCodeBlocks_callback($matches); } } - + function _doFencedCodeBlocks_callback($matches) { - if($m = $this->hasShebang($matches[2])) { + if ($m = $this->hasShebang($matches[2])) { return $this->_doGeshi($m); } else { return parent::_doFencedCodeBlocks_callback($matches); } } - + function _doGeshi($shebangMatch) { $language = $shebangMatch['lang']; - $line = (int) (($shebangMatch['linenumber'] > 1) ? $shebangMatch['linenumber'] : 0); + $line = (int)(($shebangMatch['linenumber'] > 1) ? $shebangMatch['linenumber'] : 0); $codeblock = $shebangMatch['code']; - + $highlighter = new GeSHi($this->outdent(trim($codeblock)), $language); $highlighted = $highlighter->parse_code(); - if($line) { + if ($line) { preg_match('!^(\s*]+>)(.*)()!s', $highlighted, $m); $ret = '$0', + '/.+(\n|$)/', + '
  • $0
  • ', $m[2] ); $ret .= ''; - + $ret = $m[1] . $ret . $m[3]; } else { $ret = $highlighted; } - if($shebangMatch['params']) { - $ret = $this->_processGeshiParams($ret, $shebangMatch['params']); + if ($shebangMatch['params']) { + $ret = $this->_processGeshiParams($ret, $shebangMatch['params']); } - + return "\n\n" . $this->hashBlock($ret) . "\n\n"; } - - + + function _processGeshiParams($highlighted, $params) { - foreach(explode(',', $params) as $keyValuePair) { + foreach (explode(',', $params) as $keyValuePair) { @list($key, $value) = array_map('trim', explode('=', $keyValuePair)); - if($key && $value) { - switch($key) { + if ($key && $value) { + switch ($key) { case 'gist': - $highlighted = + $highlighted = sprintf( - '(GIST: %1$d)', + '(GIST: %1$d)', $value ) - . $highlighted - ; + . $highlighted; break; } } diff --git a/includes/geshi/mysql.php b/includes/geshi/mysql.php index ff36cde..ff1bf3a 100644 --- a/includes/geshi/mysql.php +++ b/includes/geshi/mysql.php @@ -44,23 +44,23 @@ * ************************************************************************************/ -$language_data = array ( +$language_data = array( 'LANG_NAME' => 'MySQL', //'COMMENT_SINGLE' => array(1 =>'--', 2 => '#'), // '--' MUST be folowed by whitespace,not necessarily a space 'COMMENT_SINGLE' => array( - 1 =>'-- ', + 1 => '-- ', 2 => '#' - ), + ), 'COMMENT_REGEXP' => array( 1 => "/(?:--\s).*?$/", // double dash followed by any whitespace - ), + ), 'COMMENT_MULTI' => array('/*' => '*/'), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, // @@@ would be nice if this could be defined per group! 'QUOTEMARKS' => array("'", '"', '`'), 'ESCAPE_CHAR' => '\\', // by default only, can be specified 'ESCAPE_REGEXP' => array( 1 => "/[_%]/", // search wildcards - ), + ), 'NUMBERS' => GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_OCT_PREFIX | @@ -72,217 +72,217 @@ $language_data = array ( 1 => array( // Mix: statement keywords and keywords that don't fit in any other // category, or have multiple usage/meanings - 'ACTION','ADD','AFTER','ALGORITHM','ALL','ALTER','ANALYZE','ANY', - 'ASC','AS','BDB','BEGIN','BERKELEYDB','BINARY','BTREE','CALL', - 'CASCADED','CASCADE','CHAIN','CHANGE','CHECK','COLUMNS','COLUMN', - 'COMMENT','COMMIT','COMMITTED','CONSTRAINT','CONTAINS SQL', - 'CONSISTENT','CONVERT','CREATE','CROSS','DATA','DATABASES', - 'DECLARE','DEFINER','DELAYED','DELETE','DESCRIBE','DESC', - 'DETERMINISTIC','DISABLE','DISCARD','DISTINCTROW','DISTINCT','DO', - 'DROP','DUMPFILE','DUPLICATE KEY','ENABLE','ENCLOSED BY','ENGINE', - 'ERRORS','ESCAPED BY','EXISTS','EXPLAIN','EXTENDED','FIELDS', - 'FIRST','FOR EACH ROW','FORCE','FOREIGN KEY','FROM','FULL', - 'FUNCTION','GLOBAL','GRANT','GROUP BY','HANDLER','HASH','HAVING', - 'HELP','HIGH_PRIORITY','IF NOT EXISTS','IGNORE','IMPORT','INDEX', - 'INFILE','INNER','INNODB','INOUT','INTO','INVOKER', - 'ISOLATION LEVEL','JOIN','KEYS','KEY','KILL','LANGUAGE SQL','LAST', - 'LIMIT','LINES','LOAD','LOCAL','LOCK','LOW_PRIORITY', - 'MASTER_SERVER_ID','MATCH','MERGE','MIDDLEINT','MODIFIES SQL DATA', - 'MODIFY','MRG_MYISAM','NATURAL','NEXT','NO SQL','NO','ON', - 'OPTIMIZE','OPTIONALLY','OPTION','ORDER BY','OUTER','OUTFILE','OUT', - 'PARTIAL','PARTITION','PREV','PRIMARY KEY','PRIVILEGES','PROCEDURE', - 'PURGE','QUICK','READS SQL DATA','READ','REFERENCES','RELEASE', - 'RENAME','REORGANIZE','REPEATABLE','REQUIRE','RESTRICT','RETURNS', - 'REVOKE','ROLLBACK','ROUTINE','RTREE','SAVEPOINT','SELECT', - 'SERIALIZABLE','SESSION','SET','SHARE MODE','SHOW','SIMPLE', - 'SNAPSHOT','SOME','SONAME','SQL SECURITY','SQL_BIG_RESULT', - 'SQL_BUFFER_RESULT','SQL_CACHE','SQL_CALC_FOUND_ROWS', - 'SQL_NO_CACHE','SQL_SMALL_RESULT','SSL','START','STARTING BY', - 'STATUS','STRAIGHT_JOIN','STRIPED','TABLESPACE','TABLES','TABLE', - 'TEMPORARY','TEMPTABLE','TERMINATED BY','TO','TRANSACTIONS', - 'TRANSACTION','TRIGGER','TYPES','TYPE','UNCOMMITTED','UNDEFINED', - 'UNION','UNLOCK_TABLES','UPDATE','USAGE','USE','USER_RESOURCES', - 'USING','VALUES','VALUE','VIEW','WARNINGS','WHERE','WITH ROLLUP', - 'WITH','WORK','WRITE', - ), + 'ACTION', 'ADD', 'AFTER', 'ALGORITHM', 'ALL', 'ALTER', 'ANALYZE', 'ANY', + 'ASC', 'AS', 'BDB', 'BEGIN', 'BERKELEYDB', 'BINARY', 'BTREE', 'CALL', + 'CASCADED', 'CASCADE', 'CHAIN', 'CHANGE', 'CHECK', 'COLUMNS', 'COLUMN', + 'COMMENT', 'COMMIT', 'COMMITTED', 'CONSTRAINT', 'CONTAINS SQL', + 'CONSISTENT', 'CONVERT', 'CREATE', 'CROSS', 'DATA', 'DATABASES', + 'DECLARE', 'DEFINER', 'DELAYED', 'DELETE', 'DESCRIBE', 'DESC', + 'DETERMINISTIC', 'DISABLE', 'DISCARD', 'DISTINCTROW', 'DISTINCT', 'DO', + 'DROP', 'DUMPFILE', 'DUPLICATE KEY', 'ENABLE', 'ENCLOSED BY', 'ENGINE', + 'ERRORS', 'ESCAPED BY', 'EXISTS', 'EXPLAIN', 'EXTENDED', 'FIELDS', + 'FIRST', 'FOR EACH ROW', 'FORCE', 'FOREIGN KEY', 'FROM', 'FULL', + 'FUNCTION', 'GLOBAL', 'GRANT', 'GROUP BY', 'HANDLER', 'HASH', 'HAVING', + 'HELP', 'HIGH_PRIORITY', 'IF NOT EXISTS', 'IGNORE', 'IMPORT', 'INDEX', + 'INFILE', 'INNER', 'INNODB', 'INOUT', 'INTO', 'INVOKER', + 'ISOLATION LEVEL', 'JOIN', 'KEYS', 'KEY', 'KILL', 'LANGUAGE SQL', 'LAST', + 'LIMIT', 'LINES', 'LOAD', 'LOCAL', 'LOCK', 'LOW_PRIORITY', + 'MASTER_SERVER_ID', 'MATCH', 'MERGE', 'MIDDLEINT', 'MODIFIES SQL DATA', + 'MODIFY', 'MRG_MYISAM', 'NATURAL', 'NEXT', 'NO SQL', 'NO', 'ON', + 'OPTIMIZE', 'OPTIONALLY', 'OPTION', 'ORDER BY', 'OUTER', 'OUTFILE', 'OUT', + 'PARTIAL', 'PARTITION', 'PREV', 'PRIMARY KEY', 'PRIVILEGES', 'PROCEDURE', + 'PURGE', 'QUICK', 'READS SQL DATA', 'READ', 'REFERENCES', 'RELEASE', + 'RENAME', 'REORGANIZE', 'REPEATABLE', 'REQUIRE', 'RESTRICT', 'RETURNS', + 'REVOKE', 'ROLLBACK', 'ROUTINE', 'RTREE', 'SAVEPOINT', 'SELECT', + 'SERIALIZABLE', 'SESSION', 'SET', 'SHARE MODE', 'SHOW', 'SIMPLE', + 'SNAPSHOT', 'SOME', 'SONAME', 'SQL SECURITY', 'SQL_BIG_RESULT', + 'SQL_BUFFER_RESULT', 'SQL_CACHE', 'SQL_CALC_FOUND_ROWS', + 'SQL_NO_CACHE', 'SQL_SMALL_RESULT', 'SSL', 'START', 'STARTING BY', + 'STATUS', 'STRAIGHT_JOIN', 'STRIPED', 'TABLESPACE', 'TABLES', 'TABLE', + 'TEMPORARY', 'TEMPTABLE', 'TERMINATED BY', 'TO', 'TRANSACTIONS', + 'TRANSACTION', 'TRIGGER', 'TYPES', 'TYPE', 'UNCOMMITTED', 'UNDEFINED', + 'UNION', 'UNLOCK_TABLES', 'UPDATE', 'USAGE', 'USE', 'USER_RESOURCES', + 'USING', 'VALUES', 'VALUE', 'VIEW', 'WARNINGS', 'WHERE', 'WITH ROLLUP', + 'WITH', 'WORK', 'WRITE', + ), 2 => array( //No ( must follow // Mix: statement keywords distinguished from functions by the same name "CURRENT_USER", "DATABASE", "IN", "INSERT", "DEFAULT", "REPLACE", "SCHEMA", "TRUNCATE" - ), + ), 3 => array( // Values (Constants) - 'FALSE','NULL','TRUE', - ), + 'FALSE', 'NULL', 'TRUE', + ), 4 => array( // Column Data Types - 'BIGINT','BIT','BLOB','BOOLEAN','BOOL','CHARACTER VARYING', - 'CHAR VARYING','DATETIME','DECIMAL','DEC','DOUBLE PRECISION', - 'DOUBLE','ENUM','FIXED','FLOAT','GEOMETRYCOLLECTION','GEOMETRY', - 'INTEGER','INT','LINESTRING','LONGBLOB','LONGTEXT','MEDIUMBLOB', - 'MEDIUMINT','MEDIUMTEXT','MULTIPOINT','MULTILINESTRING', - 'MULTIPOLYGON','NATIONAL CHARACTER','NATIONAL CHARACTER VARYING', - 'NATIONAL CHAR VARYING','NATIONAL VARCHAR','NCHAR VARCHAR','NCHAR', - 'NUMERIC','POINT','POLYGON','REAL','SERIAL', - 'SMALLINT','TEXT','TIMESTAMP','TINYBLOB','TINYINT', - 'TINYTEXT','VARBINARY','VARCHARACTER','VARCHAR', - ), + 'BIGINT', 'BIT', 'BLOB', 'BOOLEAN', 'BOOL', 'CHARACTER VARYING', + 'CHAR VARYING', 'DATETIME', 'DECIMAL', 'DEC', 'DOUBLE PRECISION', + 'DOUBLE', 'ENUM', 'FIXED', 'FLOAT', 'GEOMETRYCOLLECTION', 'GEOMETRY', + 'INTEGER', 'INT', 'LINESTRING', 'LONGBLOB', 'LONGTEXT', 'MEDIUMBLOB', + 'MEDIUMINT', 'MEDIUMTEXT', 'MULTIPOINT', 'MULTILINESTRING', + 'MULTIPOLYGON', 'NATIONAL CHARACTER', 'NATIONAL CHARACTER VARYING', + 'NATIONAL CHAR VARYING', 'NATIONAL VARCHAR', 'NCHAR VARCHAR', 'NCHAR', + 'NUMERIC', 'POINT', 'POLYGON', 'REAL', 'SERIAL', + 'SMALLINT', 'TEXT', 'TIMESTAMP', 'TINYBLOB', 'TINYINT', + 'TINYTEXT', 'VARBINARY', 'VARCHARACTER', 'VARCHAR', + ), 5 => array( //No ( must follow // Column data types distinguished from functions by the same name "CHAR", "DATE", "TIME" - ), + ), 6 => array( // Table, Column & Index Attributes - 'AUTO_INCREMENT','AVG_ROW_LENGTH','BOTH','CHECKSUM','CONNECTION', - 'DATA DIRECTORY','DEFAULT NULL','DELAY_KEY_WRITE','FULLTEXT', - 'INDEX DIRECTORY','INSERT_METHOD','LEADING','MAX_ROWS','MIN_ROWS', - 'NOT NULL','PACK_KEYS','ROW_FORMAT','SERIAL DEFAULT VALUE','SIGNED', - 'SPATIAL','TRAILING','UNIQUE','UNSIGNED','ZEROFILL' - ), + 'AUTO_INCREMENT', 'AVG_ROW_LENGTH', 'BOTH', 'CHECKSUM', 'CONNECTION', + 'DATA DIRECTORY', 'DEFAULT NULL', 'DELAY_KEY_WRITE', 'FULLTEXT', + 'INDEX DIRECTORY', 'INSERT_METHOD', 'LEADING', 'MAX_ROWS', 'MIN_ROWS', + 'NOT NULL', 'PACK_KEYS', 'ROW_FORMAT', 'SERIAL DEFAULT VALUE', 'SIGNED', + 'SPATIAL', 'TRAILING', 'UNIQUE', 'UNSIGNED', 'ZEROFILL' + ), 7 => array( //No ( must follow // Column attribute distinguished from function by the same name "CHARSET" - ), + ), 8 => array( // Date and Time Unit Specifiers - 'DAY_HOUR','DAY_MICROSECOND','DAY_MINUTE','DAY_SECOND', - 'HOUR_MICROSECOND','HOUR_MINUTE','HOUR_SECOND', - 'MINUTE_MICROSECOND','MINUTE_SECOND', - 'SECOND_MICROSECOND','YEAR_MONTH' - ), + 'DAY_HOUR', 'DAY_MICROSECOND', 'DAY_MINUTE', 'DAY_SECOND', + 'HOUR_MICROSECOND', 'HOUR_MINUTE', 'HOUR_SECOND', + 'MINUTE_MICROSECOND', 'MINUTE_SECOND', + 'SECOND_MICROSECOND', 'YEAR_MONTH' + ), 9 => array( //No ( must follow // Date-time unit specifiers distinguished from functions by the same name "DAY", "HOUR", "MICROSECOND", "MINUTE", "MONTH", "QUARTER", "SECOND", "WEEK", "YEAR" - ), + ), 10 => array( // Operators (see also Symbols) - 'AND','BETWEEN','CHARACTER SET','COLLATE','DIV','IS NOT NULL', - 'IS NOT','IS NULL','IS','LIKE','NOT','OFFSET','OR','REGEXP','RLIKE', - 'SOUNDS LIKE','XOR' - ), + 'AND', 'BETWEEN', 'CHARACTER SET', 'COLLATE', 'DIV', 'IS NOT NULL', + 'IS NOT', 'IS NULL', 'IS', 'LIKE', 'NOT', 'OFFSET', 'OR', 'REGEXP', 'RLIKE', + 'SOUNDS LIKE', 'XOR' + ), 11 => array( //No ( must follow // Operator distinghuished from function by the same name "INTERVAL" - ), + ), 12 => array( // Control Flow (functions) - 'CASE','ELSE','END','IFNULL','IF','NULLIF','THEN','WHEN', - ), + 'CASE', 'ELSE', 'END', 'IFNULL', 'IF', 'NULLIF', 'THEN', 'WHEN', + ), 13 => array( // String Functions - 'ASCII','BIN','BIT_LENGTH','CHAR_LENGTH','CHARACTER_LENGTH', - 'CONCAT_WS','CONCAT','ELT','EXPORT_SET','FIELD', - 'FIND_IN_SET','FORMAT','HEX','INSTR','LCASE','LEFT','LENGTH', - 'LOAD_FILE','LOCATE','LOWER','LPAD','LTRIM','MAKE_SET','MID', - 'OCTET_LENGTH','ORD','POSITION','QUOTE','REPEAT','REVERSE', - 'RIGHT','RPAD','RTRIM','SOUNDEX','SPACE','STRCMP','SUBSTRING_INDEX', - 'SUBSTRING','TRIM','UCASE','UNHEX','UPPER', - ), + 'ASCII', 'BIN', 'BIT_LENGTH', 'CHAR_LENGTH', 'CHARACTER_LENGTH', + 'CONCAT_WS', 'CONCAT', 'ELT', 'EXPORT_SET', 'FIELD', + 'FIND_IN_SET', 'FORMAT', 'HEX', 'INSTR', 'LCASE', 'LEFT', 'LENGTH', + 'LOAD_FILE', 'LOCATE', 'LOWER', 'LPAD', 'LTRIM', 'MAKE_SET', 'MID', + 'OCTET_LENGTH', 'ORD', 'POSITION', 'QUOTE', 'REPEAT', 'REVERSE', + 'RIGHT', 'RPAD', 'RTRIM', 'SOUNDEX', 'SPACE', 'STRCMP', 'SUBSTRING_INDEX', + 'SUBSTRING', 'TRIM', 'UCASE', 'UNHEX', 'UPPER', + ), 14 => array( //A ( must follow // String functions distinguished from other keywords by the same name "INSERT", "REPLACE", "CHAR" - ), + ), 15 => array( // Numeric Functions - 'ABS','ACOS','ASIN','ATAN2','ATAN','CEILING','CEIL', - 'CONV','COS','COT','CRC32','DEGREES','EXP','FLOOR','LN','LOG10', - 'LOG2','LOG','MOD','OCT','PI','POWER','POW','RADIANS','RAND', - 'ROUND','SIGN','SIN','SQRT','TAN', - ), + 'ABS', 'ACOS', 'ASIN', 'ATAN2', 'ATAN', 'CEILING', 'CEIL', + 'CONV', 'COS', 'COT', 'CRC32', 'DEGREES', 'EXP', 'FLOOR', 'LN', 'LOG10', + 'LOG2', 'LOG', 'MOD', 'OCT', 'PI', 'POWER', 'POW', 'RADIANS', 'RAND', + 'ROUND', 'SIGN', 'SIN', 'SQRT', 'TAN', + ), 16 => array( //A ( must follow // Numeric function distinguished from other keyword by the same name "TRUNCATE" - ), + ), 17 => array( // Date and Time Functions - 'ADDDATE','ADDTIME','CONVERT_TZ','CURDATE','CURRENT_DATE', - 'CURRENT_TIME','CURRENT_TIMESTAMP','CURTIME','DATE_ADD', - 'DATE_FORMAT','DATE_SUB','DATEDIFF','DAYNAME','DAYOFMONTH', - 'DAYOFWEEK','DAYOFYEAR','EXTRACT','FROM_DAYS','FROM_UNIXTIME', - 'GET_FORMAT','LAST_DAY','LOCALTIME','LOCALTIMESTAMP','MAKEDATE', - 'MAKETIME','MONTHNAME','NOW','PERIOD_ADD', - 'PERIOD_DIFF','SEC_TO_TIME','STR_TO_DATE','SUBDATE','SUBTIME', - 'SYSDATE','TIME_FORMAT','TIME_TO_SEC', - 'TIMESTAMPADD','TIMESTAMPDIFF','TO_DAYS', - 'UNIX_TIMESTAMP','UTC_DATE','UTC_TIME','UTC_TIMESTAMP','WEEKDAY', - 'WEEKOFYEAR','YEARWEEK', - ), + 'ADDDATE', 'ADDTIME', 'CONVERT_TZ', 'CURDATE', 'CURRENT_DATE', + 'CURRENT_TIME', 'CURRENT_TIMESTAMP', 'CURTIME', 'DATE_ADD', + 'DATE_FORMAT', 'DATE_SUB', 'DATEDIFF', 'DAYNAME', 'DAYOFMONTH', + 'DAYOFWEEK', 'DAYOFYEAR', 'EXTRACT', 'FROM_DAYS', 'FROM_UNIXTIME', + 'GET_FORMAT', 'LAST_DAY', 'LOCALTIME', 'LOCALTIMESTAMP', 'MAKEDATE', + 'MAKETIME', 'MONTHNAME', 'NOW', 'PERIOD_ADD', + 'PERIOD_DIFF', 'SEC_TO_TIME', 'STR_TO_DATE', 'SUBDATE', 'SUBTIME', + 'SYSDATE', 'TIME_FORMAT', 'TIME_TO_SEC', + 'TIMESTAMPADD', 'TIMESTAMPDIFF', 'TO_DAYS', + 'UNIX_TIMESTAMP', 'UTC_DATE', 'UTC_TIME', 'UTC_TIMESTAMP', 'WEEKDAY', + 'WEEKOFYEAR', 'YEARWEEK', + ), 18 => array( //A ( must follow // Date-time functions distinguished from other keywords by the same name "DATE", "DAY", "HOUR", "MICROSECOND", "MINUTE", "MONTH", "QUARTER", "SECOND", "TIME", "WEEK", "YEAR" - ), + ), 19 => array( // Comparison Functions - 'COALESCE','GREATEST','ISNULL','LEAST', - ), + 'COALESCE', 'GREATEST', 'ISNULL', 'LEAST', + ), 20 => array( //A ( must follow // Comparison functions distinguished from other keywords by the same name "IN", "INTERVAL" - ), + ), 21 => array( // Encryption and Compression Functions - 'AES_DECRYPT','AES_ENCRYPT','COMPRESS','DECODE','DES_DECRYPT', - 'DES_ENCRYPT','ENCODE','ENCRYPT','MD5','OLD_PASSWORD','PASSWORD', - 'SHA1','SHA','UNCOMPRESS','UNCOMPRESSED_LENGTH', - ), + 'AES_DECRYPT', 'AES_ENCRYPT', 'COMPRESS', 'DECODE', 'DES_DECRYPT', + 'DES_ENCRYPT', 'ENCODE', 'ENCRYPT', 'MD5', 'OLD_PASSWORD', 'PASSWORD', + 'SHA1', 'SHA', 'UNCOMPRESS', 'UNCOMPRESSED_LENGTH', + ), 22 => array( // GROUP BY (aggregate) Functions - 'AVG','BIT_AND','BIT_OR','BIT_XOR','COUNT','GROUP_CONCAT', - 'MAX','MIN','STDDEV_POP','STDDEV_SAMP','STDDEV','STD','SUM', - 'VAR_POP','VAR_SAMP','VARIANCE', - ), + 'AVG', 'BIT_AND', 'BIT_OR', 'BIT_XOR', 'COUNT', 'GROUP_CONCAT', + 'MAX', 'MIN', 'STDDEV_POP', 'STDDEV_SAMP', 'STDDEV', 'STD', 'SUM', + 'VAR_POP', 'VAR_SAMP', 'VARIANCE', + ), 23 => array( // Information Functions - 'BENCHMARK','COERCIBILITY','COLLATION','CONNECTION_ID', - 'FOUND_ROWS','LAST_INSERT_ID','ROW_COUNT', - 'SESSION_USER','SYSTEM_USER','USER','VERSION', - ), + 'BENCHMARK', 'COERCIBILITY', 'COLLATION', 'CONNECTION_ID', + 'FOUND_ROWS', 'LAST_INSERT_ID', 'ROW_COUNT', + 'SESSION_USER', 'SYSTEM_USER', 'USER', 'VERSION', + ), 24 => array( //A ( must follow // Information functions distinguished from other keywords by the same name "CURRENT_USER", "DATABASE", "SCHEMA", "CHARSET" - ), + ), 25 => array( // Miscellaneous Functions - 'ExtractValue','BIT_COUNT','GET_LOCK','INET_ATON','INET_NTOA', - 'IS_FREE_LOCK','IS_USED_LOCK','MASTER_POS_WAIT','NAME_CONST', - 'RELEASE_LOCK','SLEEP','UpdateXML','UUID', - ), + 'ExtractValue', 'BIT_COUNT', 'GET_LOCK', 'INET_ATON', 'INET_NTOA', + 'IS_FREE_LOCK', 'IS_USED_LOCK', 'MASTER_POS_WAIT', 'NAME_CONST', + 'RELEASE_LOCK', 'SLEEP', 'UpdateXML', 'UUID', + ), 26 => array( //A ( must follow // Miscellaneous function distinguished from other keyword by the same name "DEFAULT" - ), + ), 27 => array( // Geometry Functions - 'Area','AsBinary','AsText','AsWKB','AsWKT','Boundary','Buffer', - 'Centroid','Contains','ConvexHull','Crosses', - 'Difference','Dimension','Disjoint','Distance', - 'EndPoint','Envelope','Equals','ExteriorRing', - 'GLength','GeomCollFromText','GeomCollFromWKB','GeomFromText', - 'GeomFromWKB','GeometryCollectionFromText', - 'GeometryCollectionFromWKB','GeometryFromText','GeometryFromWKB', - 'GeometryN','GeometryType', - 'InteriorRingN','Intersection','Intersects','IsClosed','IsEmpty', - 'IsRing','IsSimple', - 'LineFromText','LineFromWKB','LineStringFromText', + 'Area', 'AsBinary', 'AsText', 'AsWKB', 'AsWKT', 'Boundary', 'Buffer', + 'Centroid', 'Contains', 'ConvexHull', 'Crosses', + 'Difference', 'Dimension', 'Disjoint', 'Distance', + 'EndPoint', 'Envelope', 'Equals', 'ExteriorRing', + 'GLength', 'GeomCollFromText', 'GeomCollFromWKB', 'GeomFromText', + 'GeomFromWKB', 'GeometryCollectionFromText', + 'GeometryCollectionFromWKB', 'GeometryFromText', 'GeometryFromWKB', + 'GeometryN', 'GeometryType', + 'InteriorRingN', 'Intersection', 'Intersects', 'IsClosed', 'IsEmpty', + 'IsRing', 'IsSimple', + 'LineFromText', 'LineFromWKB', 'LineStringFromText', 'LineStringFromWKB', - 'MBRContains','MBRDisjoint','MBREqual','MBRIntersects', - 'MBROverlaps','MBRTouches','MBRWithin','MLineFromText', - 'MLineFromWKB','MPointFromText','MPointFromWKB','MPolyFromText', - 'MPolyFromWKB','MultiLineStringFromText','MultiLineStringFromWKB', - 'MultiPointFromText','MultiPointFromWKB','MultiPolygonFromText', + 'MBRContains', 'MBRDisjoint', 'MBREqual', 'MBRIntersects', + 'MBROverlaps', 'MBRTouches', 'MBRWithin', 'MLineFromText', + 'MLineFromWKB', 'MPointFromText', 'MPointFromWKB', 'MPolyFromText', + 'MPolyFromWKB', 'MultiLineStringFromText', 'MultiLineStringFromWKB', + 'MultiPointFromText', 'MultiPointFromWKB', 'MultiPolygonFromText', 'MultiPolygonFromWKB', - 'NumGeometries','NumInteriorRings','NumPoints', + 'NumGeometries', 'NumInteriorRings', 'NumPoints', 'Overlaps', - 'PointFromText','PointFromWKB','PointN','PointOnSurface', - 'PolyFromText','PolyFromWKB','PolygonFromText','PolygonFromWKB', - 'Related','SRID','StartPoint','SymDifference', + 'PointFromText', 'PointFromWKB', 'PointN', 'PointOnSurface', + 'PolyFromText', 'PolyFromWKB', 'PolygonFromText', 'PolygonFromWKB', + 'Related', 'SRID', 'StartPoint', 'SymDifference', 'Touches', 'Union', 'Within', 'X', 'Y', - ), ), + ), 'SYMBOLS' => array( 1 => array( /* Operators */ @@ -291,13 +291,13 @@ $language_data = array ( '=', '<=>', '>=', '>', '<=', '<', '<>', '!=', // comparison operators '|', '&', '^', '~', '<<', '>>', // bitwise operators '-', '+', '*', '/', '%', // numerical operators - ), + ), 2 => array( /* Other syntactical symbols */ '(', ')', ',', ';', - ), ), + ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false, 1 => false, @@ -327,7 +327,7 @@ $language_data = array ( 25 => false, 26 => false, 27 => false, - ), + ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #990099; font-weight: bold;', // mix @@ -359,36 +359,33 @@ $language_data = array ( 25 => 'color: #000099;', // miscellaneous functions 26 => 'color: #000099;', // miscellaneous functions 27 => 'color: #00CC00;', // geometry functions - ), + ), 'COMMENTS' => array( 'MULTI' => 'color: #808000; font-style: italic;', 1 => 'color: #808080; font-style: italic;', 2 => 'color: #808080; font-style: italic;' - ), + ), 'ESCAPE_CHAR' => array( 0 => 'color: #004000; font-weight: bold;', 1 => 'color: #008080; font-weight: bold;' // search wildcards - ), + ), 'BRACKETS' => array( 0 => 'color: #FF00FF;' - ), + ), 'STRINGS' => array( 0 => 'color: #008000;' - ), + ), 'NUMBERS' => array( 0 => 'color: #008080;' - ), - 'METHODS' => array( - ), + ), + 'METHODS' => array(), 'SYMBOLS' => array( 1 => 'color: #CC0099;', // operators 2 => 'color: #000033;', // syntax - ), - 'SCRIPT' => array( - ), - 'REGEXPS' => array( - ) ), + 'SCRIPT' => array(), + 'REGEXPS' => array() + ), 'URLS' => array( 1 => 'http://search.oracle.com/search/search?group=MySQL&q={FNAME}', 2 => 'http://search.oracle.com/search/search?group=MySQL&q={FNAME}', @@ -419,54 +416,50 @@ $language_data = array ( 25 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/func-op-summary-ref.html', 26 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/func-op-summary-ref.html', 27 => 'http://dev.mysql.com/doc/refman/%35%2E%31/en/analysing-spatial-information.html', - ), + ), 'OOLANG' => false, - 'OBJECT_SPLITTERS' => array( - ), - 'REGEXPS' => array( - ), + 'OBJECT_SPLITTERS' => array(), + 'REGEXPS' => array(), 'STRICT_MODE_APPLIES' => GESHI_NEVER, - 'SCRIPT_DELIMITERS' => array( - ), - 'HIGHLIGHT_STRICT_BLOCK' => array( - ), + 'SCRIPT_DELIMITERS' => array(), + 'HIGHLIGHT_STRICT_BLOCK' => array(), 'TAB_WIDTH' => 4, 'PARSER_CONTROL' => array( 'KEYWORDS' => array( 2 => array( 'DISALLOWED_AFTER' => '(?![\(\w])' - ), + ), 5 => array( 'DISALLOWED_AFTER' => '(?![\(\w])' - ), + ), 7 => array( 'DISALLOWED_AFTER' => '(?![\(\w])' - ), + ), 9 => array( 'DISALLOWED_AFTER' => '(?![\(\w])' - ), + ), 11 => array( 'DISALLOWED_AFTER' => '(?![\(\w])' - ), + ), 14 => array( 'DISALLOWED_AFTER' => '(?=\()' - ), + ), 16 => array( 'DISALLOWED_AFTER' => '(?=\()' - ), + ), 18 => array( 'DISALLOWED_AFTER' => '(?=\()' - ), + ), 20 => array( 'DISALLOWED_AFTER' => '(?=\()' - ), + ), 24 => array( 'DISALLOWED_AFTER' => '(?=\()' - ), + ), 26 => array( 'DISALLOWED_AFTER' => '(?=\()' - ) ) ) + ) ); diff --git a/includes/geshi/pastedown.php b/includes/geshi/pastedown.php index eaaf1eb..d218fa1 100644 --- a/includes/geshi/pastedown.php +++ b/includes/geshi/pastedown.php @@ -15,9 +15,9 @@ require_once 'wp-syntax/geshi/geshi.php'; class MarkdownGeshi_Parser extends MarkdownExtra_Parser { /** * The 'processing instruction' pattern for the code blocks parser. - * Format is defined as : #!language@linenumber. The @linenumber + * Format is defined as : #!language@linenumber. The @linenumber * part is optional. - * + * * Optional parameters are allowed past a semicolon. */ public $shebang = '/^ @@ -28,77 +28,76 @@ class MarkdownGeshi_Parser extends MarkdownExtra_Parser { (?:;\s*(?P.*?)\s*)?\n (?P.*) /sx'; - + function hasShebang($code) { - if(preg_match($this->shebang, $code, $m)) { + if (preg_match($this->shebang, $code, $m)) { return $m; } return false; } function _doCodeBlocks_callback($matches) { - if($m = $this->hasShebang($matches[1])) { + if ($m = $this->hasShebang($matches[1])) { return $this->_doGeshi($m); } else { return parent::_doCodeBlocks_callback($matches); } } - + function _doFencedCodeBlocks_callback($matches) { - if($m = $this->hasShebang($matches[2])) { + if ($m = $this->hasShebang($matches[2])) { return $this->_doGeshi($m); } else { return parent::_doFencedCodeBlocks_callback($matches); } } - + function _doGeshi($shebangMatch) { $language = $shebangMatch['lang']; - $line = (int) (($shebangMatch['linenumber'] > 1) ? $shebangMatch['linenumber'] : 0); + $line = (int)(($shebangMatch['linenumber'] > 1) ? $shebangMatch['linenumber'] : 0); $codeblock = $shebangMatch['code']; - + $highlighter = new GeSHi($this->outdent(trim($codeblock)), $language); $highlighted = $highlighter->parse_code(); - if($line) { + if ($line) { preg_match('!^(\s*]+>)(.*)()!s', $highlighted, $m); $ret = '$0', + '/.+(\n|$)/', + '
  • $0
  • ', $m[2] ); $ret .= ''; - + $ret = $m[1] . $ret . $m[3]; } else { $ret = $highlighted; } - if($shebangMatch['params']) { - $ret = $this->_processGeshiParams($ret, $shebangMatch['params']); + if ($shebangMatch['params']) { + $ret = $this->_processGeshiParams($ret, $shebangMatch['params']); } - + return "\n\n" . $this->hashBlock($ret) . "\n\n"; } - - + + function _processGeshiParams($highlighted, $params) { - foreach(explode(',', $params) as $keyValuePair) { + foreach (explode(',', $params) as $keyValuePair) { @list($key, $value) = array_map('trim', explode('=', $keyValuePair)); - if($key && $value) { - switch($key) { + if ($key && $value) { + switch ($key) { case 'gist': - $highlighted = + $highlighted = sprintf( - '(GIST: %1$d)', + '(GIST: %1$d)', $value ) - . $highlighted - ; + . $highlighted; break; } } diff --git a/includes/geshi/pastedown_old.php b/includes/geshi/pastedown_old.php index f78a4f0..f604d2f 100644 --- a/includes/geshi/pastedown_old.php +++ b/includes/geshi/pastedown_old.php @@ -42,29 +42,29 @@ $language_data = array( 'COMMENT_SINGLE' => array( 1 => '>', 2 => '<', - 3 => '**', - 4 => '###', - 5 => '##', - 6 => '@', - 7 => '++', - - ), + 3 => '**', + 4 => '###', + 5 => '##', + 6 => '@', + 7 => '++', + + ), 'COMMENT_MULTI' => array( '_' => '_' - ), + ), 'COMMENT_REGEXP' => array( 1 => '' - ), + ), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array( 1 => '', 2 => '' - ), + ), 'ESCAPE_CHAR' => '', 'ESCAPE_REGEXP' => array( 1 => '', 2 => '' - ), + ), 'HARDQUOTE' => array(), 'HARDESCAPE' => array(), 'HARDCHAR' => '', @@ -74,50 +74,50 @@ $language_data = array( 'KEYWORDS' => array( 1 => array( '' - ) - ), + ) + ), 'CASE_SENSITIVE' => array( 1 => false - ), + ), 'SYMBOLS' => array( 0 => array( '>' - ) - ), + ) + ), 'STYLES' => array( 'KEYWORDS' => array( 1 => '' - ), + ), 'COMMENTS' => array( 1 => 'font-style: normal; color: #789922;', 2 => 'font-weight: normal; color: #991111;', 3 => 'font-weight: bold; color: #000;', - 4 => 'font-size: 25px; font-weight: bold; color: #000;', - 5 => 'font-size: 35px; font-weight: bold; color: #000;', - 6 => 'color: #440088;', - 7 => 'border: 3px dotted #000;', + 4 => 'font-size: 25px; font-weight: bold; color: #000;', + 5 => 'font-size: 35px; font-weight: bold; color: #000;', + 6 => 'color: #440088;', + 7 => 'border: 3px dotted #000;', 'MULTI' => 'text-decoration: underline;color: #000;' - ), + ), 'ESCAPE_CHAR' => array( 1 => '', 2 => '' - ), + ), 'BRACKETS' => array(), 'STRINGS' => array( 1 => '', 2 => '' - ), + ), 'NUMBERS' => array(), 'METHODS' => array(), 'SYMBOLS' => array( 0 => 'font-style: italic; color: #789922;' - ), + ), 'REGEXPS' => array(), 'SCRIPT' => array() - ), + ), 'URLS' => array( 1 => '' - ), + ), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array(), 'REGEXPS' => array(), diff --git a/includes/geshi/php.php b/includes/geshi/php.php index fa50ee8..5f8d734 100644 --- a/includes/geshi/php.php +++ b/includes/geshi/php.php @@ -61,7 +61,7 @@ $language_data = array( 4 => '#/\*\*(?![\*\/]).*\*/#sU', // Advanced # handling 2 => "/#.*?(?:(?=\?\>)|^)/smi" - ), + ), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array('"'), 'ESCAPE_CHAR' => '', @@ -78,7 +78,7 @@ $language_data = array( 5 => "#\$[a-z0-9_]+(?:\[[a-z0-9_]+\]|->[a-z0-9_]+)?|(?:\{\$|\$\{)[a-z0-9_]+(?:\[('?)[a-z0-9_]*\\1\]|->[a-z0-9_]+)*\}|\{\$(?R)\}#i", //Format String support in ""-Strings 6 => "#%(?:%|(?:\d+\\\\\\\$)?\\+?(?:\x20|0|'.)?-?(?:\d+|\\*)?(?:\.\d+)?[bcdefFosuxX])#" - ), + ), 'HARDQUOTE' => array("'", "'"), 'HARDESCAPE' => array("'", "\\"), 'HARDCHAR' => "\\", @@ -87,882 +87,882 @@ $language_data = array( GESHI_NUMBER_FLT_SCI_ZERO, 'KEYWORDS' => array( 1 => array( - 'as','break','case','continue','default','do','else','elseif', - 'endfor','endforeach','endif','endswitch','endwhile','for', - 'foreach','if','include','include_once','require','require_once', - 'return','switch','throw','while', 'yield', + 'as', 'break', 'case', 'continue', 'default', 'do', 'else', 'elseif', + 'endfor', 'endforeach', 'endif', 'endswitch', 'endwhile', 'for', + 'foreach', 'if', 'include', 'include_once', 'require', 'require_once', + 'return', 'switch', 'throw', 'while', 'yield', - 'echo','print' - ), + 'echo', 'print' + ), 2 => array( - '&new','</script>','<?php','<script language', - 'abstract','class','const','declare','extends','function','global', - 'implements', 'interface','namespace','new','private','protected', - 'public','self','trait','use','var' - ), + '&new', '</script>', '<?php', '<script language', + 'abstract', 'class', 'const', 'declare', 'extends', 'function', 'global', + 'implements', 'interface', 'namespace', 'new', 'private', 'protected', + 'public', 'self', 'trait', 'use', 'var' + ), 3 => array( - 'abs','acos','acosh','addcslashes','addslashes','aggregate', - 'aggregate_methods','aggregate_methods_by_list', - 'aggregate_methods_by_regexp','aggregate_properties', - 'aggregate_properties_by_list','aggregate_properties_by_regexp', - 'aggregation_info','apache_child_terminate','apache_get_modules', - 'apache_get_version','apache_getenv','apache_lookup_uri', - 'apache_note','apache_request_headers','apache_response_headers', - 'apache_setenv','array','array_change_key_case','array_chunk', - 'array_combine','array_count_values','array_diff', - 'array_diff_assoc','array_diff_key','array_diff_uassoc', - 'array_diff_ukey','array_fill','array_fill_keys','array_filter', - 'array_flip','array_intersect','array_intersect_assoc', - 'array_intersect_key','array_intersect_uassoc', - 'array_intersect_ukey','array_key_exists','array_keys','array_map', - 'array_merge','array_merge_recursive','array_multisort','array_pad', - 'array_pop','array_product','array_push','array_rand', - 'array_reduce','array_reverse','array_search','array_shift', - 'array_slice','array_splice','array_sum','array_udiff', - 'array_udiff_assoc','array_udiff_uassoc','array_uintersect', - 'array_uintersect_assoc','array_uintersect_uassoc','array_unique', - 'array_unshift','array_values','array_walk','array_walk_recursive', - 'arsort','asin','asinh','asort','assert','assert_options','atan', - 'atan2','atanh','base_convert','base64_decode','base64_encode', - 'basename','bcadd','bccomp','bcdiv','bcmod','bcmul', - 'bcompiler_load','bcompiler_load_exe','bcompiler_parse_class', - 'bcompiler_read','bcompiler_write_class','bcompiler_write_constant', - 'bcompiler_write_exe_footer','bcompiler_write_file', - 'bcompiler_write_footer','bcompiler_write_function', - 'bcompiler_write_functions_from_file','bcompiler_write_header', - 'bcompiler_write_included_filename','bcpow','bcpowmod','bcscale', - 'bcsqrt','bcsub','bin2hex','bindec','bindtextdomain', - 'bind_textdomain_codeset','bitset_empty','bitset_equal', - 'bitset_excl','bitset_fill','bitset_from_array','bitset_from_hash', - 'bitset_from_string','bitset_in','bitset_incl', - 'bitset_intersection','bitset_invert','bitset_is_empty', - 'bitset_subset','bitset_to_array','bitset_to_hash', - 'bitset_to_string','bitset_union','blenc_encrypt','bzclose', - 'bzcompress','bzdecompress','bzerrno','bzerror','bzerrstr', - 'bzflush','bzopen','bzread','bzwrite','cal_days_in_month', - 'cal_from_jd','cal_info','cal_to_jd','call_user_func', - 'call_user_func_array','call_user_method','call_user_method_array', - 'ceil','chdir','checkdate','checkdnsrr','chgrp','chmod','chop', - 'chown','chr','chunk_split','class_exists','class_implements', - 'class_parents','classkit_aggregate_methods', - 'classkit_doc_comments','classkit_import','classkit_method_add', - 'classkit_method_copy','classkit_method_redefine', - 'classkit_method_remove','classkit_method_rename','clearstatcache', - 'closedir','closelog','com_create_guid','com_event_sink', - 'com_get_active_object','com_load_typelib','com_message_pump', - 'com_print_typeinfo','compact','confirm_phpdoc_compiled', - 'connection_aborted','connection_status','constant', - 'convert_cyr_string','convert_uudecode','convert_uuencode','copy', - 'cos','cosh','count','count_chars','cpdf_add_annotation', - 'cpdf_add_outline','cpdf_arc','cpdf_begin_text','cpdf_circle', - 'cpdf_clip','cpdf_close','cpdf_closepath', - 'cpdf_closepath_fill_stroke','cpdf_closepath_stroke', - 'cpdf_continue_text','cpdf_curveto','cpdf_end_text','cpdf_fill', - 'cpdf_fill_stroke','cpdf_finalize','cpdf_finalize_page', - 'cpdf_global_set_document_limits','cpdf_import_jpeg','cpdf_lineto', - 'cpdf_moveto','cpdf_newpath','cpdf_open','cpdf_output_buffer', - 'cpdf_page_init','cpdf_rect','cpdf_restore','cpdf_rlineto', - 'cpdf_rmoveto','cpdf_rotate','cpdf_rotate_text','cpdf_save', - 'cpdf_save_to_file','cpdf_scale','cpdf_set_action_url', - 'cpdf_set_char_spacing','cpdf_set_creator','cpdf_set_current_page', - 'cpdf_set_font','cpdf_set_font_directories', - 'cpdf_set_font_map_file','cpdf_set_horiz_scaling', - 'cpdf_set_keywords','cpdf_set_leading','cpdf_set_page_animation', - 'cpdf_set_subject','cpdf_set_text_matrix','cpdf_set_text_pos', - 'cpdf_set_text_rendering','cpdf_set_text_rise','cpdf_set_title', - 'cpdf_set_viewer_preferences','cpdf_set_word_spacing', - 'cpdf_setdash','cpdf_setflat','cpdf_setgray','cpdf_setgray_fill', - 'cpdf_setgray_stroke','cpdf_setlinecap','cpdf_setlinejoin', - 'cpdf_setlinewidth','cpdf_setmiterlimit','cpdf_setrgbcolor', - 'cpdf_setrgbcolor_fill','cpdf_setrgbcolor_stroke','cpdf_show', - 'cpdf_show_xy','cpdf_stringwidth','cpdf_stroke','cpdf_text', - 'cpdf_translate','crack_check','crack_closedict', - 'crack_getlastmessage','crack_opendict','crc32','create_function', - 'crypt','ctype_alnum','ctype_alpha','ctype_cntrl','ctype_digit', - 'ctype_graph','ctype_lower','ctype_print','ctype_punct', - 'ctype_space','ctype_upper','ctype_xdigit','curl_close', - 'curl_copy_handle','curl_errno','curl_error','curl_exec', - 'curl_getinfo','curl_init','curl_multi_add_handle', - 'curl_multi_close','curl_multi_exec','curl_multi_getcontent', - 'curl_multi_info_read','curl_multi_init','curl_multi_remove_handle', - 'curl_multi_select','curl_setopt','curl_setopt_array', - 'curl_version','current','cvsclient_connect','cvsclient_log', - 'cvsclient_login','cvsclient_retrieve','date','date_create', - 'date_date_set','date_default_timezone_get', - 'date_default_timezone_set','date_format','date_isodate_set', - 'date_modify','date_offset_get','date_parse','date_sun_info', - 'date_sunrise','date_sunset','date_time_set','date_timezone_get', - 'date_timezone_set','db_id_list','dba_close','dba_delete', - 'dba_exists','dba_fetch','dba_firstkey','dba_handlers','dba_insert', - 'dba_key_split','dba_list','dba_nextkey','dba_open','dba_optimize', - 'dba_popen','dba_replace','dba_sync','dbase_add_record', - 'dbase_close','dbase_create','dbase_delete_record', - 'dbase_get_header_info','dbase_get_record', - 'dbase_get_record_with_names','dbase_numfields','dbase_numrecords', - 'dbase_open','dbase_pack','dbase_replace_record', - 'dbg_get_all_contexts','dbg_get_all_module_names', - 'dbg_get_all_source_lines','dbg_get_context_name', - 'dbg_get_module_name','dbg_get_profiler_results', - 'dbg_get_source_context','dblist','dbmclose','dbmdelete', - 'dbmexists','dbmfetch','dbmfirstkey','dbminsert','dbmnextkey', - 'dbmopen','dbmreplace','dbx_close','dbx_compare','dbx_connect', - 'dbx_error','dbx_escape_string','dbx_fetch_row','dbx_query', - 'dbx_sort','dcgettext','dcngettext','deaggregate','debug_backtrace', - 'debug_zval_dump','debugbreak','decbin','dechex','decoct','define', - 'defined','define_syslog_variables','deg2rad','dgettext','die', - 'dio_close','dio_open','dio_read','dio_seek','dio_stat','dio_write', - 'dir','dirname','disk_free_space','disk_total_space', - 'diskfreespace','dl','dngettext','docblock_token_name', - 'docblock_tokenize','dom_import_simplexml','domxml_add_root', - 'domxml_attributes','domxml_children','domxml_doc_add_root', - 'domxml_doc_document_element','domxml_doc_get_element_by_id', - 'domxml_doc_get_elements_by_tagname','domxml_doc_get_root', - 'domxml_doc_set_root','domxml_doc_validate','domxml_doc_xinclude', - 'domxml_dump_mem','domxml_dump_mem_file','domxml_dump_node', - 'domxml_dumpmem','domxml_elem_get_attribute', - 'domxml_elem_set_attribute','domxml_get_attribute','domxml_getattr', - 'domxml_html_dump_mem','domxml_new_child','domxml_new_doc', - 'domxml_new_xmldoc','domxml_node','domxml_node_add_namespace', - 'domxml_node_attributes','domxml_node_children', - 'domxml_node_get_content','domxml_node_has_attributes', - 'domxml_node_new_child','domxml_node_set_content', - 'domxml_node_set_namespace','domxml_node_unlink_node', - 'domxml_open_file','domxml_open_mem','domxml_parser', - 'domxml_parser_add_chunk','domxml_parser_cdata_section', - 'domxml_parser_characters','domxml_parser_comment', - 'domxml_parser_end','domxml_parser_end_document', - 'domxml_parser_end_element','domxml_parser_entity_reference', - 'domxml_parser_get_document','domxml_parser_namespace_decl', + 'abs', 'acos', 'acosh', 'addcslashes', 'addslashes', 'aggregate', + 'aggregate_methods', 'aggregate_methods_by_list', + 'aggregate_methods_by_regexp', 'aggregate_properties', + 'aggregate_properties_by_list', 'aggregate_properties_by_regexp', + 'aggregation_info', 'apache_child_terminate', 'apache_get_modules', + 'apache_get_version', 'apache_getenv', 'apache_lookup_uri', + 'apache_note', 'apache_request_headers', 'apache_response_headers', + 'apache_setenv', 'array', 'array_change_key_case', 'array_chunk', + 'array_combine', 'array_count_values', 'array_diff', + 'array_diff_assoc', 'array_diff_key', 'array_diff_uassoc', + 'array_diff_ukey', 'array_fill', 'array_fill_keys', 'array_filter', + 'array_flip', 'array_intersect', 'array_intersect_assoc', + 'array_intersect_key', 'array_intersect_uassoc', + 'array_intersect_ukey', 'array_key_exists', 'array_keys', 'array_map', + 'array_merge', 'array_merge_recursive', 'array_multisort', 'array_pad', + 'array_pop', 'array_product', 'array_push', 'array_rand', + 'array_reduce', 'array_reverse', 'array_search', 'array_shift', + 'array_slice', 'array_splice', 'array_sum', 'array_udiff', + 'array_udiff_assoc', 'array_udiff_uassoc', 'array_uintersect', + 'array_uintersect_assoc', 'array_uintersect_uassoc', 'array_unique', + 'array_unshift', 'array_values', 'array_walk', 'array_walk_recursive', + 'arsort', 'asin', 'asinh', 'asort', 'assert', 'assert_options', 'atan', + 'atan2', 'atanh', 'base_convert', 'base64_decode', 'base64_encode', + 'basename', 'bcadd', 'bccomp', 'bcdiv', 'bcmod', 'bcmul', + 'bcompiler_load', 'bcompiler_load_exe', 'bcompiler_parse_class', + 'bcompiler_read', 'bcompiler_write_class', 'bcompiler_write_constant', + 'bcompiler_write_exe_footer', 'bcompiler_write_file', + 'bcompiler_write_footer', 'bcompiler_write_function', + 'bcompiler_write_functions_from_file', 'bcompiler_write_header', + 'bcompiler_write_included_filename', 'bcpow', 'bcpowmod', 'bcscale', + 'bcsqrt', 'bcsub', 'bin2hex', 'bindec', 'bindtextdomain', + 'bind_textdomain_codeset', 'bitset_empty', 'bitset_equal', + 'bitset_excl', 'bitset_fill', 'bitset_from_array', 'bitset_from_hash', + 'bitset_from_string', 'bitset_in', 'bitset_incl', + 'bitset_intersection', 'bitset_invert', 'bitset_is_empty', + 'bitset_subset', 'bitset_to_array', 'bitset_to_hash', + 'bitset_to_string', 'bitset_union', 'blenc_encrypt', 'bzclose', + 'bzcompress', 'bzdecompress', 'bzerrno', 'bzerror', 'bzerrstr', + 'bzflush', 'bzopen', 'bzread', 'bzwrite', 'cal_days_in_month', + 'cal_from_jd', 'cal_info', 'cal_to_jd', 'call_user_func', + 'call_user_func_array', 'call_user_method', 'call_user_method_array', + 'ceil', 'chdir', 'checkdate', 'checkdnsrr', 'chgrp', 'chmod', 'chop', + 'chown', 'chr', 'chunk_split', 'class_exists', 'class_implements', + 'class_parents', 'classkit_aggregate_methods', + 'classkit_doc_comments', 'classkit_import', 'classkit_method_add', + 'classkit_method_copy', 'classkit_method_redefine', + 'classkit_method_remove', 'classkit_method_rename', 'clearstatcache', + 'closedir', 'closelog', 'com_create_guid', 'com_event_sink', + 'com_get_active_object', 'com_load_typelib', 'com_message_pump', + 'com_print_typeinfo', 'compact', 'confirm_phpdoc_compiled', + 'connection_aborted', 'connection_status', 'constant', + 'convert_cyr_string', 'convert_uudecode', 'convert_uuencode', 'copy', + 'cos', 'cosh', 'count', 'count_chars', 'cpdf_add_annotation', + 'cpdf_add_outline', 'cpdf_arc', 'cpdf_begin_text', 'cpdf_circle', + 'cpdf_clip', 'cpdf_close', 'cpdf_closepath', + 'cpdf_closepath_fill_stroke', 'cpdf_closepath_stroke', + 'cpdf_continue_text', 'cpdf_curveto', 'cpdf_end_text', 'cpdf_fill', + 'cpdf_fill_stroke', 'cpdf_finalize', 'cpdf_finalize_page', + 'cpdf_global_set_document_limits', 'cpdf_import_jpeg', 'cpdf_lineto', + 'cpdf_moveto', 'cpdf_newpath', 'cpdf_open', 'cpdf_output_buffer', + 'cpdf_page_init', 'cpdf_rect', 'cpdf_restore', 'cpdf_rlineto', + 'cpdf_rmoveto', 'cpdf_rotate', 'cpdf_rotate_text', 'cpdf_save', + 'cpdf_save_to_file', 'cpdf_scale', 'cpdf_set_action_url', + 'cpdf_set_char_spacing', 'cpdf_set_creator', 'cpdf_set_current_page', + 'cpdf_set_font', 'cpdf_set_font_directories', + 'cpdf_set_font_map_file', 'cpdf_set_horiz_scaling', + 'cpdf_set_keywords', 'cpdf_set_leading', 'cpdf_set_page_animation', + 'cpdf_set_subject', 'cpdf_set_text_matrix', 'cpdf_set_text_pos', + 'cpdf_set_text_rendering', 'cpdf_set_text_rise', 'cpdf_set_title', + 'cpdf_set_viewer_preferences', 'cpdf_set_word_spacing', + 'cpdf_setdash', 'cpdf_setflat', 'cpdf_setgray', 'cpdf_setgray_fill', + 'cpdf_setgray_stroke', 'cpdf_setlinecap', 'cpdf_setlinejoin', + 'cpdf_setlinewidth', 'cpdf_setmiterlimit', 'cpdf_setrgbcolor', + 'cpdf_setrgbcolor_fill', 'cpdf_setrgbcolor_stroke', 'cpdf_show', + 'cpdf_show_xy', 'cpdf_stringwidth', 'cpdf_stroke', 'cpdf_text', + 'cpdf_translate', 'crack_check', 'crack_closedict', + 'crack_getlastmessage', 'crack_opendict', 'crc32', 'create_function', + 'crypt', 'ctype_alnum', 'ctype_alpha', 'ctype_cntrl', 'ctype_digit', + 'ctype_graph', 'ctype_lower', 'ctype_print', 'ctype_punct', + 'ctype_space', 'ctype_upper', 'ctype_xdigit', 'curl_close', + 'curl_copy_handle', 'curl_errno', 'curl_error', 'curl_exec', + 'curl_getinfo', 'curl_init', 'curl_multi_add_handle', + 'curl_multi_close', 'curl_multi_exec', 'curl_multi_getcontent', + 'curl_multi_info_read', 'curl_multi_init', 'curl_multi_remove_handle', + 'curl_multi_select', 'curl_setopt', 'curl_setopt_array', + 'curl_version', 'current', 'cvsclient_connect', 'cvsclient_log', + 'cvsclient_login', 'cvsclient_retrieve', 'date', 'date_create', + 'date_date_set', 'date_default_timezone_get', + 'date_default_timezone_set', 'date_format', 'date_isodate_set', + 'date_modify', 'date_offset_get', 'date_parse', 'date_sun_info', + 'date_sunrise', 'date_sunset', 'date_time_set', 'date_timezone_get', + 'date_timezone_set', 'db_id_list', 'dba_close', 'dba_delete', + 'dba_exists', 'dba_fetch', 'dba_firstkey', 'dba_handlers', 'dba_insert', + 'dba_key_split', 'dba_list', 'dba_nextkey', 'dba_open', 'dba_optimize', + 'dba_popen', 'dba_replace', 'dba_sync', 'dbase_add_record', + 'dbase_close', 'dbase_create', 'dbase_delete_record', + 'dbase_get_header_info', 'dbase_get_record', + 'dbase_get_record_with_names', 'dbase_numfields', 'dbase_numrecords', + 'dbase_open', 'dbase_pack', 'dbase_replace_record', + 'dbg_get_all_contexts', 'dbg_get_all_module_names', + 'dbg_get_all_source_lines', 'dbg_get_context_name', + 'dbg_get_module_name', 'dbg_get_profiler_results', + 'dbg_get_source_context', 'dblist', 'dbmclose', 'dbmdelete', + 'dbmexists', 'dbmfetch', 'dbmfirstkey', 'dbminsert', 'dbmnextkey', + 'dbmopen', 'dbmreplace', 'dbx_close', 'dbx_compare', 'dbx_connect', + 'dbx_error', 'dbx_escape_string', 'dbx_fetch_row', 'dbx_query', + 'dbx_sort', 'dcgettext', 'dcngettext', 'deaggregate', 'debug_backtrace', + 'debug_zval_dump', 'debugbreak', 'decbin', 'dechex', 'decoct', 'define', + 'defined', 'define_syslog_variables', 'deg2rad', 'dgettext', 'die', + 'dio_close', 'dio_open', 'dio_read', 'dio_seek', 'dio_stat', 'dio_write', + 'dir', 'dirname', 'disk_free_space', 'disk_total_space', + 'diskfreespace', 'dl', 'dngettext', 'docblock_token_name', + 'docblock_tokenize', 'dom_import_simplexml', 'domxml_add_root', + 'domxml_attributes', 'domxml_children', 'domxml_doc_add_root', + 'domxml_doc_document_element', 'domxml_doc_get_element_by_id', + 'domxml_doc_get_elements_by_tagname', 'domxml_doc_get_root', + 'domxml_doc_set_root', 'domxml_doc_validate', 'domxml_doc_xinclude', + 'domxml_dump_mem', 'domxml_dump_mem_file', 'domxml_dump_node', + 'domxml_dumpmem', 'domxml_elem_get_attribute', + 'domxml_elem_set_attribute', 'domxml_get_attribute', 'domxml_getattr', + 'domxml_html_dump_mem', 'domxml_new_child', 'domxml_new_doc', + 'domxml_new_xmldoc', 'domxml_node', 'domxml_node_add_namespace', + 'domxml_node_attributes', 'domxml_node_children', + 'domxml_node_get_content', 'domxml_node_has_attributes', + 'domxml_node_new_child', 'domxml_node_set_content', + 'domxml_node_set_namespace', 'domxml_node_unlink_node', + 'domxml_open_file', 'domxml_open_mem', 'domxml_parser', + 'domxml_parser_add_chunk', 'domxml_parser_cdata_section', + 'domxml_parser_characters', 'domxml_parser_comment', + 'domxml_parser_end', 'domxml_parser_end_document', + 'domxml_parser_end_element', 'domxml_parser_entity_reference', + 'domxml_parser_get_document', 'domxml_parser_namespace_decl', 'domxml_parser_processing_instruction', - 'domxml_parser_start_document','domxml_parser_start_element', - 'domxml_root','domxml_set_attribute','domxml_setattr', - 'domxml_substitute_entities_default','domxml_unlink_node', - 'domxml_version','domxml_xmltree','doubleval','each','easter_date', - 'easter_days','empty','end','ereg','ereg_replace','eregi', - 'eregi_replace','error_get_last','error_log','error_reporting', - 'escapeshellarg','escapeshellcmd','eval','event_deschedule', - 'event_dispatch','event_free','event_handle_signal', - 'event_have_events','event_init','event_new','event_pending', - 'event_priority_set','event_schedule','event_set','event_timeout', - 'exec','exif_imagetype','exif_read_data','exif_tagname', - 'exif_thumbnail','exit','exp','explode','expm1','extension_loaded', - 'extract','ezmlm_hash','fbird_add_user','fbird_affected_rows', - 'fbird_backup','fbird_blob_add','fbird_blob_cancel', - 'fbird_blob_close','fbird_blob_create','fbird_blob_echo', - 'fbird_blob_get','fbird_blob_import','fbird_blob_info', - 'fbird_blob_open','fbird_close','fbird_commit','fbird_commit_ret', - 'fbird_connect','fbird_db_info','fbird_delete_user','fbird_drop_db', - 'fbird_errcode','fbird_errmsg','fbird_execute','fbird_fetch_assoc', - 'fbird_fetch_object','fbird_fetch_row','fbird_field_info', - 'fbird_free_event_handler','fbird_free_query','fbird_free_result', - 'fbird_gen_id','fbird_maintain_db','fbird_modify_user', - 'fbird_name_result','fbird_num_fields','fbird_num_params', - 'fbird_param_info','fbird_pconnect','fbird_prepare','fbird_query', - 'fbird_restore','fbird_rollback','fbird_rollback_ret', - 'fbird_server_info','fbird_service_attach','fbird_service_detach', - 'fbird_set_event_handler','fbird_trans','fbird_wait_event','fclose', - 'fdf_add_doc_javascript','fdf_add_template','fdf_close', - 'fdf_create','fdf_enum_values','fdf_errno','fdf_error','fdf_get_ap', - 'fdf_get_attachment','fdf_get_encoding','fdf_get_file', - 'fdf_get_flags','fdf_get_opt','fdf_get_status','fdf_get_value', - 'fdf_get_version','fdf_header','fdf_next_field_name','fdf_open', - 'fdf_open_string','fdf_remove_item','fdf_save','fdf_save_string', - 'fdf_set_ap','fdf_set_encoding','fdf_set_file','fdf_set_flags', - 'fdf_set_javascript_action','fdf_set_on_import_javascript', - 'fdf_set_opt','fdf_set_status','fdf_set_submit_form_action', - 'fdf_set_target_frame','fdf_set_value','fdf_set_version','feof', - 'fflush','fgetc','fgetcsv','fgets','fgetss','file','file_exists', - 'file_get_contents','file_put_contents','fileatime','filectime', - 'filegroup','fileinode','filemtime','fileowner','fileperms', - 'filepro','filepro_fieldcount','filepro_fieldname', - 'filepro_fieldtype','filepro_fieldwidth','filepro_retrieve', - 'filepro_rowcount','filesize','filetype','filter_has_var', - 'filter_id','filter_input','filter_input_array','filter_list', - 'filter_var','filter_var_array','finfo_buffer','finfo_close', - 'finfo_file','finfo_open','finfo_set_flags','floatval','flock', - 'floor','flush','fmod','fnmatch','fopen','fpassthru','fprintf', - 'fputcsv','fputs','fread','frenchtojd','fribidi_charset_info', - 'fribidi_get_charsets','fribidi_log2vis','fscanf','fseek', - 'fsockopen','fstat','ftell','ftok','ftp_alloc','ftp_cdup', - 'ftp_chdir','ftp_chmod','ftp_close','ftp_connect','ftp_delete', - 'ftp_exec','ftp_fget','ftp_fput','ftp_get','ftp_get_option', - 'ftp_login','ftp_mdtm','ftp_mkdir','ftp_nb_continue','ftp_nb_fget', - 'ftp_nb_fput','ftp_nb_get','ftp_nb_put','ftp_nlist','ftp_pasv', - 'ftp_put','ftp_pwd','ftp_quit','ftp_raw','ftp_rawlist','ftp_rename', - 'ftp_rmdir','ftp_set_option','ftp_site','ftp_size', - 'ftp_ssl_connect','ftp_systype','ftruncate','function_exists', - 'func_get_arg','func_get_args','func_num_args','fwrite','gd_info', - 'getallheaders','getcwd','getdate','getenv','gethostbyaddr', - 'gethostbyname','gethostbynamel','getimagesize','getlastmod', - 'getmxrr','getmygid','getmyinode','getmypid','getmyuid','getopt', - 'getprotobyname','getprotobynumber','getrandmax','getrusage', - 'getservbyname','getservbyport','gettext','gettimeofday','gettype', - 'get_browser','get_cfg_var','get_class','get_class_methods', - 'get_class_vars','get_current_user','get_declared_classes', - 'get_defined_constants','get_defined_functions','get_defined_vars', - 'get_extension_funcs','get_headers','get_html_translation_table', - 'get_included_files','get_include_path','get_loaded_extensions', - 'get_magic_quotes_gpc','get_magic_quotes_runtime','get_meta_tags', - 'get_object_vars','get_parent_class','get_required_files', - 'get_resource_type','glob','gmdate','gmmktime','gmp_abs','gmp_add', - 'gmp_and','gmp_clrbit','gmp_cmp','gmp_com','gmp_div','gmp_div_q', - 'gmp_div_qr','gmp_div_r','gmp_divexact','gmp_fact','gmp_gcd', - 'gmp_gcdext','gmp_hamdist','gmp_init','gmp_intval','gmp_invert', - 'gmp_jacobi','gmp_legendre','gmp_mod','gmp_mul','gmp_neg', - 'gmp_nextprime','gmp_or','gmp_perfect_square','gmp_popcount', - 'gmp_pow','gmp_powm','gmp_prob_prime','gmp_random','gmp_scan0', - 'gmp_scan1','gmp_setbit','gmp_sign','gmp_sqrt','gmp_sqrtrem', - 'gmp_strval','gmp_sub','gmp_xor','gmstrftime','gopher_parsedir', - 'gregoriantojd','gzclose','gzcompress','gzdeflate','gzencode', - 'gzeof','gzfile','gzgetc','gzgets','gzgetss','gzinflate','gzopen', - 'gzpassthru','gzputs','gzread','gzrewind','gzseek','gztell', - 'gzuncompress','gzwrite','hash','hash_algos','hash_file', - 'hash_final','hash_hmac','hash_hmac_file','hash_init','hash_update', - 'hash_update_file','hash_update_stream','header','headers_list', - 'headers_sent','hebrev','hebrevc','hexdec','highlight_file', - 'highlight_string','html_doc','html_doc_file','html_entity_decode', - 'htmlentities','htmlspecialchars','htmlspecialchars_decode', - 'http_build_cookie','http_build_query','http_build_str', - 'http_build_url','http_cache_etag','http_cache_last_modified', - 'http_chunked_decode','http_date','http_deflate','http_get', - 'http_get_request_body','http_get_request_body_stream', - 'http_get_request_headers','http_head','http_inflate', - 'http_match_etag','http_match_modified','http_match_request_header', - 'http_negotiate_charset','http_negotiate_content_type', - 'http_negotiate_language','http_parse_cookie','http_parse_headers', - 'http_parse_message','http_parse_params', - 'http_persistent_handles_clean','http_persistent_handles_count', - 'http_persistent_handles_ident','http_post_data','http_post_fields', - 'http_put_data','http_put_file','http_put_stream','http_redirect', - 'http_request','http_request_body_encode', - 'http_request_method_exists','http_request_method_name', - 'http_request_method_register','http_request_method_unregister', - 'http_send_content_disposition','http_send_content_type', - 'http_send_data','http_send_file','http_send_last_modified', - 'http_send_status','http_send_stream','http_support', - 'http_throttle','hypot','i18n_convert','i18n_discover_encoding', - 'i18n_http_input','i18n_http_output','i18n_internal_encoding', - 'i18n_ja_jp_hantozen','i18n_mime_header_decode', - 'i18n_mime_header_encode','ibase_add_user','ibase_affected_rows', - 'ibase_backup','ibase_blob_add','ibase_blob_cancel', - 'ibase_blob_close','ibase_blob_create','ibase_blob_echo', - 'ibase_blob_get','ibase_blob_import','ibase_blob_info', - 'ibase_blob_open','ibase_close','ibase_commit','ibase_commit_ret', - 'ibase_connect','ibase_db_info','ibase_delete_user','ibase_drop_db', - 'ibase_errcode','ibase_errmsg','ibase_execute','ibase_fetch_assoc', - 'ibase_fetch_object','ibase_fetch_row','ibase_field_info', - 'ibase_free_event_handler','ibase_free_query','ibase_free_result', - 'ibase_gen_id','ibase_maintain_db','ibase_modify_user', - 'ibase_name_result','ibase_num_fields','ibase_num_params', - 'ibase_param_info','ibase_pconnect','ibase_prepare','ibase_query', - 'ibase_restore','ibase_rollback','ibase_rollback_ret', - 'ibase_server_info','ibase_service_attach','ibase_service_detach', - 'ibase_set_event_handler','ibase_trans','ibase_wait_event','iconv', - 'iconv_get_encoding','iconv_mime_decode', - 'iconv_mime_decode_headers','iconv_mime_encode', - 'iconv_set_encoding','iconv_strlen','iconv_strpos','iconv_strrpos', - 'iconv_substr','id3_get_frame_long_name','id3_get_frame_short_name', - 'id3_get_genre_id','id3_get_genre_list','id3_get_genre_name', - 'id3_get_tag','id3_get_version','id3_remove_tag','id3_set_tag', - 'idate','ignore_user_abort','image_type_to_extension', - 'image_type_to_mime_type','image2wbmp','imagealphablending', - 'imageantialias','imagearc','imagechar','imagecharup', - 'imagecolorallocate','imagecolorallocatealpha','imagecolorat', - 'imagecolorclosest','imagecolorclosestalpha','imagecolordeallocate', - 'imagecolorexact','imagecolorexactalpha','imagecolormatch', - 'imagecolorresolve','imagecolorresolvealpha','imagecolorset', - 'imagecolorsforindex','imagecolorstotal','imagecolortransparent', - 'imageconvolution','imagecopy','imagecopymerge', - 'imagecopymergegray','imagecopyresampled','imagecopyresized', - 'imagecreate','imagecreatefromgd','imagecreatefromgd2', - 'imagecreatefromgd2part','imagecreatefromgif','imagecreatefromjpeg', - 'imagecreatefrompng','imagecreatefromstring','imagecreatefromwbmp', - 'imagecreatefromxbm','imagecreatetruecolor','imagedashedline', - 'imagedestroy','imageellipse','imagefill','imagefilledarc', - 'imagefilledellipse','imagefilledpolygon','imagefilledrectangle', - 'imagefilltoborder','imagefilter','imagefontheight', - 'imagefontwidth','imageftbbox','imagefttext','imagegammacorrect', - 'imagegd','imagegd2','imagegif','imagegrabscreen','imagegrabwindow', - 'imageinterlace','imageistruecolor','imagejpeg','imagelayereffect', - 'imageline','imageloadfont','imagepalettecopy','imagepng', - 'imagepolygon','imagepsbbox','imagepsencodefont', - 'imagepsextendfont','imagepsfreefont','imagepsloadfont', - 'imagepsslantfont','imagepstext','imagerectangle','imagerotate', - 'imagesavealpha','imagesetbrush','imagesetpixel','imagesetstyle', - 'imagesetthickness','imagesettile','imagestring','imagestringup', - 'imagesx','imagesy','imagetruecolortopalette','imagettfbbox', - 'imagettftext','imagetypes','imagewbmp','imagexbm','imap_8bit', - 'imap_alerts','imap_append','imap_base64','imap_binary','imap_body', - 'imap_bodystruct','imap_check','imap_clearflag_full','imap_close', - 'imap_create','imap_createmailbox','imap_delete', - 'imap_deletemailbox','imap_errors','imap_expunge', - 'imap_fetch_overview','imap_fetchbody','imap_fetchheader', - 'imap_fetchstructure','imap_fetchtext','imap_get_quota', - 'imap_get_quotaroot','imap_getacl','imap_getmailboxes', - 'imap_getsubscribed','imap_header','imap_headerinfo','imap_headers', - 'imap_last_error','imap_list','imap_listmailbox', - 'imap_listsubscribed','imap_lsub','imap_mail','imap_mail_compose', - 'imap_mail_copy','imap_mail_move','imap_mailboxmsginfo', - 'imap_mime_header_decode','imap_msgno','imap_num_msg', - 'imap_num_recent','imap_open','imap_ping','imap_qprint', - 'imap_rename','imap_renamemailbox','imap_reopen', - 'imap_rfc822_parse_adrlist','imap_rfc822_parse_headers', - 'imap_rfc822_write_address','imap_savebody','imap_scan', - 'imap_scanmailbox','imap_search','imap_set_quota','imap_setacl', - 'imap_setflag_full','imap_sort','imap_status','imap_subscribe', - 'imap_thread','imap_timeout','imap_uid','imap_undelete', - 'imap_unsubscribe','imap_utf7_decode','imap_utf7_encode', - 'imap_utf8','implode','import_request_variables','in_array', - 'ini_alter','ini_get','ini_get_all','ini_restore','ini_set', - 'intval','ip2long','iptcembed','iptcparse','isset','is_a', - 'is_array','is_bool','is_callable','is_dir','is_double', - 'is_executable','is_file','is_finite','is_float','is_infinite', - 'is_int','is_integer','is_link','is_long','is_nan','is_null', - 'is_numeric','is_object','is_readable','is_real','is_resource', - 'is_scalar','is_soap_fault','is_string','is_subclass_of', - 'is_uploaded_file','is_writable','is_writeable','iterator_apply', - 'iterator_count','iterator_to_array','java_last_exception_clear', - 'java_last_exception_get','jddayofweek','jdmonthname','jdtofrench', - 'jdtogregorian','jdtojewish','jdtojulian','jdtounix','jewishtojd', - 'join','jpeg2wbmp','json_decode','json_encode','juliantojd','key', - 'key_exists','krsort','ksort','lcg_value','ldap_add','ldap_bind', - 'ldap_close','ldap_compare','ldap_connect','ldap_count_entries', - 'ldap_delete','ldap_dn2ufn','ldap_err2str','ldap_errno', - 'ldap_error','ldap_explode_dn','ldap_first_attribute', - 'ldap_first_entry','ldap_first_reference','ldap_free_result', - 'ldap_get_attributes','ldap_get_dn','ldap_get_entries', - 'ldap_get_option','ldap_get_values','ldap_get_values_len', - 'ldap_list','ldap_mod_add','ldap_mod_del','ldap_mod_replace', - 'ldap_modify','ldap_next_attribute','ldap_next_entry', - 'ldap_next_reference','ldap_parse_reference','ldap_parse_result', - 'ldap_read','ldap_rename','ldap_search','ldap_set_option', - 'ldap_sort','ldap_start_tls','ldap_unbind','levenshtein', - 'libxml_clear_errors','libxml_get_errors','libxml_get_last_error', - 'libxml_set_streams_context','libxml_use_internal_errors','link', - 'linkinfo','list','localeconv','localtime','log','log1p','log10', - 'long2ip','lstat','ltrim','lzf_compress','lzf_decompress', - 'lzf_optimized_for','magic_quotes_runtime','mail','max','mbereg', - 'mberegi','mberegi_replace','mbereg_match','mbereg_replace', - 'mbereg_search','mbereg_search_getpos','mbereg_search_getregs', - 'mbereg_search_init','mbereg_search_pos','mbereg_search_regs', - 'mbereg_search_setpos','mbregex_encoding','mbsplit','mbstrcut', - 'mbstrlen','mbstrpos','mbstrrpos','mbsubstr','mb_check_encoding', - 'mb_convert_case','mb_convert_encoding','mb_convert_kana', - 'mb_convert_variables','mb_decode_mimeheader', - 'mb_decode_numericentity','mb_detect_encoding','mb_detect_order', - 'mb_encode_mimeheader','mb_encode_numericentity','mb_ereg', - 'mb_eregi','mb_eregi_replace','mb_ereg_match','mb_ereg_replace', - 'mb_ereg_search','mb_ereg_search_getpos','mb_ereg_search_getregs', - 'mb_ereg_search_init','mb_ereg_search_pos','mb_ereg_search_regs', - 'mb_ereg_search_setpos','mb_get_info','mb_http_input', - 'mb_http_output','mb_internal_encoding','mb_language', - 'mb_list_encodings','mb_output_handler','mb_parse_str', - 'mb_preferred_mime_name','mb_regex_encoding','mb_regex_set_options', - 'mb_send_mail','mb_split','mb_strcut','mb_strimwidth','mb_stripos', - 'mb_stristr','mb_strlen','mb_strpos','mb_strrchr','mb_strrichr', - 'mb_strripos','mb_strrpos','mb_strstr','mb_strtolower', - 'mb_strtoupper','mb_strwidth','mb_substitute_character','mb_substr', - 'mb_substr_count','mcrypt_cbc','mcrypt_cfb','mcrypt_create_iv', - 'mcrypt_decrypt','mcrypt_ecb','mcrypt_enc_get_algorithms_name', - 'mcrypt_enc_get_block_size','mcrypt_enc_get_iv_size', - 'mcrypt_enc_get_key_size','mcrypt_enc_get_modes_name', + 'domxml_parser_start_document', 'domxml_parser_start_element', + 'domxml_root', 'domxml_set_attribute', 'domxml_setattr', + 'domxml_substitute_entities_default', 'domxml_unlink_node', + 'domxml_version', 'domxml_xmltree', 'doubleval', 'each', 'easter_date', + 'easter_days', 'empty', 'end', 'ereg', 'ereg_replace', 'eregi', + 'eregi_replace', 'error_get_last', 'error_log', 'error_reporting', + 'escapeshellarg', 'escapeshellcmd', 'eval', 'event_deschedule', + 'event_dispatch', 'event_free', 'event_handle_signal', + 'event_have_events', 'event_init', 'event_new', 'event_pending', + 'event_priority_set', 'event_schedule', 'event_set', 'event_timeout', + 'exec', 'exif_imagetype', 'exif_read_data', 'exif_tagname', + 'exif_thumbnail', 'exit', 'exp', 'explode', 'expm1', 'extension_loaded', + 'extract', 'ezmlm_hash', 'fbird_add_user', 'fbird_affected_rows', + 'fbird_backup', 'fbird_blob_add', 'fbird_blob_cancel', + 'fbird_blob_close', 'fbird_blob_create', 'fbird_blob_echo', + 'fbird_blob_get', 'fbird_blob_import', 'fbird_blob_info', + 'fbird_blob_open', 'fbird_close', 'fbird_commit', 'fbird_commit_ret', + 'fbird_connect', 'fbird_db_info', 'fbird_delete_user', 'fbird_drop_db', + 'fbird_errcode', 'fbird_errmsg', 'fbird_execute', 'fbird_fetch_assoc', + 'fbird_fetch_object', 'fbird_fetch_row', 'fbird_field_info', + 'fbird_free_event_handler', 'fbird_free_query', 'fbird_free_result', + 'fbird_gen_id', 'fbird_maintain_db', 'fbird_modify_user', + 'fbird_name_result', 'fbird_num_fields', 'fbird_num_params', + 'fbird_param_info', 'fbird_pconnect', 'fbird_prepare', 'fbird_query', + 'fbird_restore', 'fbird_rollback', 'fbird_rollback_ret', + 'fbird_server_info', 'fbird_service_attach', 'fbird_service_detach', + 'fbird_set_event_handler', 'fbird_trans', 'fbird_wait_event', 'fclose', + 'fdf_add_doc_javascript', 'fdf_add_template', 'fdf_close', + 'fdf_create', 'fdf_enum_values', 'fdf_errno', 'fdf_error', 'fdf_get_ap', + 'fdf_get_attachment', 'fdf_get_encoding', 'fdf_get_file', + 'fdf_get_flags', 'fdf_get_opt', 'fdf_get_status', 'fdf_get_value', + 'fdf_get_version', 'fdf_header', 'fdf_next_field_name', 'fdf_open', + 'fdf_open_string', 'fdf_remove_item', 'fdf_save', 'fdf_save_string', + 'fdf_set_ap', 'fdf_set_encoding', 'fdf_set_file', 'fdf_set_flags', + 'fdf_set_javascript_action', 'fdf_set_on_import_javascript', + 'fdf_set_opt', 'fdf_set_status', 'fdf_set_submit_form_action', + 'fdf_set_target_frame', 'fdf_set_value', 'fdf_set_version', 'feof', + 'fflush', 'fgetc', 'fgetcsv', 'fgets', 'fgetss', 'file', 'file_exists', + 'file_get_contents', 'file_put_contents', 'fileatime', 'filectime', + 'filegroup', 'fileinode', 'filemtime', 'fileowner', 'fileperms', + 'filepro', 'filepro_fieldcount', 'filepro_fieldname', + 'filepro_fieldtype', 'filepro_fieldwidth', 'filepro_retrieve', + 'filepro_rowcount', 'filesize', 'filetype', 'filter_has_var', + 'filter_id', 'filter_input', 'filter_input_array', 'filter_list', + 'filter_var', 'filter_var_array', 'finfo_buffer', 'finfo_close', + 'finfo_file', 'finfo_open', 'finfo_set_flags', 'floatval', 'flock', + 'floor', 'flush', 'fmod', 'fnmatch', 'fopen', 'fpassthru', 'fprintf', + 'fputcsv', 'fputs', 'fread', 'frenchtojd', 'fribidi_charset_info', + 'fribidi_get_charsets', 'fribidi_log2vis', 'fscanf', 'fseek', + 'fsockopen', 'fstat', 'ftell', 'ftok', 'ftp_alloc', 'ftp_cdup', + 'ftp_chdir', 'ftp_chmod', 'ftp_close', 'ftp_connect', 'ftp_delete', + 'ftp_exec', 'ftp_fget', 'ftp_fput', 'ftp_get', 'ftp_get_option', + 'ftp_login', 'ftp_mdtm', 'ftp_mkdir', 'ftp_nb_continue', 'ftp_nb_fget', + 'ftp_nb_fput', 'ftp_nb_get', 'ftp_nb_put', 'ftp_nlist', 'ftp_pasv', + 'ftp_put', 'ftp_pwd', 'ftp_quit', 'ftp_raw', 'ftp_rawlist', 'ftp_rename', + 'ftp_rmdir', 'ftp_set_option', 'ftp_site', 'ftp_size', + 'ftp_ssl_connect', 'ftp_systype', 'ftruncate', 'function_exists', + 'func_get_arg', 'func_get_args', 'func_num_args', 'fwrite', 'gd_info', + 'getallheaders', 'getcwd', 'getdate', 'getenv', 'gethostbyaddr', + 'gethostbyname', 'gethostbynamel', 'getimagesize', 'getlastmod', + 'getmxrr', 'getmygid', 'getmyinode', 'getmypid', 'getmyuid', 'getopt', + 'getprotobyname', 'getprotobynumber', 'getrandmax', 'getrusage', + 'getservbyname', 'getservbyport', 'gettext', 'gettimeofday', 'gettype', + 'get_browser', 'get_cfg_var', 'get_class', 'get_class_methods', + 'get_class_vars', 'get_current_user', 'get_declared_classes', + 'get_defined_constants', 'get_defined_functions', 'get_defined_vars', + 'get_extension_funcs', 'get_headers', 'get_html_translation_table', + 'get_included_files', 'get_include_path', 'get_loaded_extensions', + 'get_magic_quotes_gpc', 'get_magic_quotes_runtime', 'get_meta_tags', + 'get_object_vars', 'get_parent_class', 'get_required_files', + 'get_resource_type', 'glob', 'gmdate', 'gmmktime', 'gmp_abs', 'gmp_add', + 'gmp_and', 'gmp_clrbit', 'gmp_cmp', 'gmp_com', 'gmp_div', 'gmp_div_q', + 'gmp_div_qr', 'gmp_div_r', 'gmp_divexact', 'gmp_fact', 'gmp_gcd', + 'gmp_gcdext', 'gmp_hamdist', 'gmp_init', 'gmp_intval', 'gmp_invert', + 'gmp_jacobi', 'gmp_legendre', 'gmp_mod', 'gmp_mul', 'gmp_neg', + 'gmp_nextprime', 'gmp_or', 'gmp_perfect_square', 'gmp_popcount', + 'gmp_pow', 'gmp_powm', 'gmp_prob_prime', 'gmp_random', 'gmp_scan0', + 'gmp_scan1', 'gmp_setbit', 'gmp_sign', 'gmp_sqrt', 'gmp_sqrtrem', + 'gmp_strval', 'gmp_sub', 'gmp_xor', 'gmstrftime', 'gopher_parsedir', + 'gregoriantojd', 'gzclose', 'gzcompress', 'gzdeflate', 'gzencode', + 'gzeof', 'gzfile', 'gzgetc', 'gzgets', 'gzgetss', 'gzinflate', 'gzopen', + 'gzpassthru', 'gzputs', 'gzread', 'gzrewind', 'gzseek', 'gztell', + 'gzuncompress', 'gzwrite', 'hash', 'hash_algos', 'hash_file', + 'hash_final', 'hash_hmac', 'hash_hmac_file', 'hash_init', 'hash_update', + 'hash_update_file', 'hash_update_stream', 'header', 'headers_list', + 'headers_sent', 'hebrev', 'hebrevc', 'hexdec', 'highlight_file', + 'highlight_string', 'html_doc', 'html_doc_file', 'html_entity_decode', + 'htmlentities', 'htmlspecialchars', 'htmlspecialchars_decode', + 'http_build_cookie', 'http_build_query', 'http_build_str', + 'http_build_url', 'http_cache_etag', 'http_cache_last_modified', + 'http_chunked_decode', 'http_date', 'http_deflate', 'http_get', + 'http_get_request_body', 'http_get_request_body_stream', + 'http_get_request_headers', 'http_head', 'http_inflate', + 'http_match_etag', 'http_match_modified', 'http_match_request_header', + 'http_negotiate_charset', 'http_negotiate_content_type', + 'http_negotiate_language', 'http_parse_cookie', 'http_parse_headers', + 'http_parse_message', 'http_parse_params', + 'http_persistent_handles_clean', 'http_persistent_handles_count', + 'http_persistent_handles_ident', 'http_post_data', 'http_post_fields', + 'http_put_data', 'http_put_file', 'http_put_stream', 'http_redirect', + 'http_request', 'http_request_body_encode', + 'http_request_method_exists', 'http_request_method_name', + 'http_request_method_register', 'http_request_method_unregister', + 'http_send_content_disposition', 'http_send_content_type', + 'http_send_data', 'http_send_file', 'http_send_last_modified', + 'http_send_status', 'http_send_stream', 'http_support', + 'http_throttle', 'hypot', 'i18n_convert', 'i18n_discover_encoding', + 'i18n_http_input', 'i18n_http_output', 'i18n_internal_encoding', + 'i18n_ja_jp_hantozen', 'i18n_mime_header_decode', + 'i18n_mime_header_encode', 'ibase_add_user', 'ibase_affected_rows', + 'ibase_backup', 'ibase_blob_add', 'ibase_blob_cancel', + 'ibase_blob_close', 'ibase_blob_create', 'ibase_blob_echo', + 'ibase_blob_get', 'ibase_blob_import', 'ibase_blob_info', + 'ibase_blob_open', 'ibase_close', 'ibase_commit', 'ibase_commit_ret', + 'ibase_connect', 'ibase_db_info', 'ibase_delete_user', 'ibase_drop_db', + 'ibase_errcode', 'ibase_errmsg', 'ibase_execute', 'ibase_fetch_assoc', + 'ibase_fetch_object', 'ibase_fetch_row', 'ibase_field_info', + 'ibase_free_event_handler', 'ibase_free_query', 'ibase_free_result', + 'ibase_gen_id', 'ibase_maintain_db', 'ibase_modify_user', + 'ibase_name_result', 'ibase_num_fields', 'ibase_num_params', + 'ibase_param_info', 'ibase_pconnect', 'ibase_prepare', 'ibase_query', + 'ibase_restore', 'ibase_rollback', 'ibase_rollback_ret', + 'ibase_server_info', 'ibase_service_attach', 'ibase_service_detach', + 'ibase_set_event_handler', 'ibase_trans', 'ibase_wait_event', 'iconv', + 'iconv_get_encoding', 'iconv_mime_decode', + 'iconv_mime_decode_headers', 'iconv_mime_encode', + 'iconv_set_encoding', 'iconv_strlen', 'iconv_strpos', 'iconv_strrpos', + 'iconv_substr', 'id3_get_frame_long_name', 'id3_get_frame_short_name', + 'id3_get_genre_id', 'id3_get_genre_list', 'id3_get_genre_name', + 'id3_get_tag', 'id3_get_version', 'id3_remove_tag', 'id3_set_tag', + 'idate', 'ignore_user_abort', 'image_type_to_extension', + 'image_type_to_mime_type', 'image2wbmp', 'imagealphablending', + 'imageantialias', 'imagearc', 'imagechar', 'imagecharup', + 'imagecolorallocate', 'imagecolorallocatealpha', 'imagecolorat', + 'imagecolorclosest', 'imagecolorclosestalpha', 'imagecolordeallocate', + 'imagecolorexact', 'imagecolorexactalpha', 'imagecolormatch', + 'imagecolorresolve', 'imagecolorresolvealpha', 'imagecolorset', + 'imagecolorsforindex', 'imagecolorstotal', 'imagecolortransparent', + 'imageconvolution', 'imagecopy', 'imagecopymerge', + 'imagecopymergegray', 'imagecopyresampled', 'imagecopyresized', + 'imagecreate', 'imagecreatefromgd', 'imagecreatefromgd2', + 'imagecreatefromgd2part', 'imagecreatefromgif', 'imagecreatefromjpeg', + 'imagecreatefrompng', 'imagecreatefromstring', 'imagecreatefromwbmp', + 'imagecreatefromxbm', 'imagecreatetruecolor', 'imagedashedline', + 'imagedestroy', 'imageellipse', 'imagefill', 'imagefilledarc', + 'imagefilledellipse', 'imagefilledpolygon', 'imagefilledrectangle', + 'imagefilltoborder', 'imagefilter', 'imagefontheight', + 'imagefontwidth', 'imageftbbox', 'imagefttext', 'imagegammacorrect', + 'imagegd', 'imagegd2', 'imagegif', 'imagegrabscreen', 'imagegrabwindow', + 'imageinterlace', 'imageistruecolor', 'imagejpeg', 'imagelayereffect', + 'imageline', 'imageloadfont', 'imagepalettecopy', 'imagepng', + 'imagepolygon', 'imagepsbbox', 'imagepsencodefont', + 'imagepsextendfont', 'imagepsfreefont', 'imagepsloadfont', + 'imagepsslantfont', 'imagepstext', 'imagerectangle', 'imagerotate', + 'imagesavealpha', 'imagesetbrush', 'imagesetpixel', 'imagesetstyle', + 'imagesetthickness', 'imagesettile', 'imagestring', 'imagestringup', + 'imagesx', 'imagesy', 'imagetruecolortopalette', 'imagettfbbox', + 'imagettftext', 'imagetypes', 'imagewbmp', 'imagexbm', 'imap_8bit', + 'imap_alerts', 'imap_append', 'imap_base64', 'imap_binary', 'imap_body', + 'imap_bodystruct', 'imap_check', 'imap_clearflag_full', 'imap_close', + 'imap_create', 'imap_createmailbox', 'imap_delete', + 'imap_deletemailbox', 'imap_errors', 'imap_expunge', + 'imap_fetch_overview', 'imap_fetchbody', 'imap_fetchheader', + 'imap_fetchstructure', 'imap_fetchtext', 'imap_get_quota', + 'imap_get_quotaroot', 'imap_getacl', 'imap_getmailboxes', + 'imap_getsubscribed', 'imap_header', 'imap_headerinfo', 'imap_headers', + 'imap_last_error', 'imap_list', 'imap_listmailbox', + 'imap_listsubscribed', 'imap_lsub', 'imap_mail', 'imap_mail_compose', + 'imap_mail_copy', 'imap_mail_move', 'imap_mailboxmsginfo', + 'imap_mime_header_decode', 'imap_msgno', 'imap_num_msg', + 'imap_num_recent', 'imap_open', 'imap_ping', 'imap_qprint', + 'imap_rename', 'imap_renamemailbox', 'imap_reopen', + 'imap_rfc822_parse_adrlist', 'imap_rfc822_parse_headers', + 'imap_rfc822_write_address', 'imap_savebody', 'imap_scan', + 'imap_scanmailbox', 'imap_search', 'imap_set_quota', 'imap_setacl', + 'imap_setflag_full', 'imap_sort', 'imap_status', 'imap_subscribe', + 'imap_thread', 'imap_timeout', 'imap_uid', 'imap_undelete', + 'imap_unsubscribe', 'imap_utf7_decode', 'imap_utf7_encode', + 'imap_utf8', 'implode', 'import_request_variables', 'in_array', + 'ini_alter', 'ini_get', 'ini_get_all', 'ini_restore', 'ini_set', + 'intval', 'ip2long', 'iptcembed', 'iptcparse', 'isset', 'is_a', + 'is_array', 'is_bool', 'is_callable', 'is_dir', 'is_double', + 'is_executable', 'is_file', 'is_finite', 'is_float', 'is_infinite', + 'is_int', 'is_integer', 'is_link', 'is_long', 'is_nan', 'is_null', + 'is_numeric', 'is_object', 'is_readable', 'is_real', 'is_resource', + 'is_scalar', 'is_soap_fault', 'is_string', 'is_subclass_of', + 'is_uploaded_file', 'is_writable', 'is_writeable', 'iterator_apply', + 'iterator_count', 'iterator_to_array', 'java_last_exception_clear', + 'java_last_exception_get', 'jddayofweek', 'jdmonthname', 'jdtofrench', + 'jdtogregorian', 'jdtojewish', 'jdtojulian', 'jdtounix', 'jewishtojd', + 'join', 'jpeg2wbmp', 'json_decode', 'json_encode', 'juliantojd', 'key', + 'key_exists', 'krsort', 'ksort', 'lcg_value', 'ldap_add', 'ldap_bind', + 'ldap_close', 'ldap_compare', 'ldap_connect', 'ldap_count_entries', + 'ldap_delete', 'ldap_dn2ufn', 'ldap_err2str', 'ldap_errno', + 'ldap_error', 'ldap_explode_dn', 'ldap_first_attribute', + 'ldap_first_entry', 'ldap_first_reference', 'ldap_free_result', + 'ldap_get_attributes', 'ldap_get_dn', 'ldap_get_entries', + 'ldap_get_option', 'ldap_get_values', 'ldap_get_values_len', + 'ldap_list', 'ldap_mod_add', 'ldap_mod_del', 'ldap_mod_replace', + 'ldap_modify', 'ldap_next_attribute', 'ldap_next_entry', + 'ldap_next_reference', 'ldap_parse_reference', 'ldap_parse_result', + 'ldap_read', 'ldap_rename', 'ldap_search', 'ldap_set_option', + 'ldap_sort', 'ldap_start_tls', 'ldap_unbind', 'levenshtein', + 'libxml_clear_errors', 'libxml_get_errors', 'libxml_get_last_error', + 'libxml_set_streams_context', 'libxml_use_internal_errors', 'link', + 'linkinfo', 'list', 'localeconv', 'localtime', 'log', 'log1p', 'log10', + 'long2ip', 'lstat', 'ltrim', 'lzf_compress', 'lzf_decompress', + 'lzf_optimized_for', 'magic_quotes_runtime', 'mail', 'max', 'mbereg', + 'mberegi', 'mberegi_replace', 'mbereg_match', 'mbereg_replace', + 'mbereg_search', 'mbereg_search_getpos', 'mbereg_search_getregs', + 'mbereg_search_init', 'mbereg_search_pos', 'mbereg_search_regs', + 'mbereg_search_setpos', 'mbregex_encoding', 'mbsplit', 'mbstrcut', + 'mbstrlen', 'mbstrpos', 'mbstrrpos', 'mbsubstr', 'mb_check_encoding', + 'mb_convert_case', 'mb_convert_encoding', 'mb_convert_kana', + 'mb_convert_variables', 'mb_decode_mimeheader', + 'mb_decode_numericentity', 'mb_detect_encoding', 'mb_detect_order', + 'mb_encode_mimeheader', 'mb_encode_numericentity', 'mb_ereg', + 'mb_eregi', 'mb_eregi_replace', 'mb_ereg_match', 'mb_ereg_replace', + 'mb_ereg_search', 'mb_ereg_search_getpos', 'mb_ereg_search_getregs', + 'mb_ereg_search_init', 'mb_ereg_search_pos', 'mb_ereg_search_regs', + 'mb_ereg_search_setpos', 'mb_get_info', 'mb_http_input', + 'mb_http_output', 'mb_internal_encoding', 'mb_language', + 'mb_list_encodings', 'mb_output_handler', 'mb_parse_str', + 'mb_preferred_mime_name', 'mb_regex_encoding', 'mb_regex_set_options', + 'mb_send_mail', 'mb_split', 'mb_strcut', 'mb_strimwidth', 'mb_stripos', + 'mb_stristr', 'mb_strlen', 'mb_strpos', 'mb_strrchr', 'mb_strrichr', + 'mb_strripos', 'mb_strrpos', 'mb_strstr', 'mb_strtolower', + 'mb_strtoupper', 'mb_strwidth', 'mb_substitute_character', 'mb_substr', + 'mb_substr_count', 'mcrypt_cbc', 'mcrypt_cfb', 'mcrypt_create_iv', + 'mcrypt_decrypt', 'mcrypt_ecb', 'mcrypt_enc_get_algorithms_name', + 'mcrypt_enc_get_block_size', 'mcrypt_enc_get_iv_size', + 'mcrypt_enc_get_key_size', 'mcrypt_enc_get_modes_name', 'mcrypt_enc_get_supported_key_sizes', 'mcrypt_enc_is_block_algorithm', - 'mcrypt_enc_is_block_algorithm_mode','mcrypt_enc_is_block_mode', - 'mcrypt_enc_self_test','mcrypt_encrypt','mcrypt_generic', - 'mcrypt_generic_deinit','mcrypt_generic_end','mcrypt_generic_init', - 'mcrypt_get_block_size','mcrypt_get_cipher_name', - 'mcrypt_get_iv_size','mcrypt_get_key_size','mcrypt_list_algorithms', - 'mcrypt_list_modes','mcrypt_module_close', + 'mcrypt_enc_is_block_algorithm_mode', 'mcrypt_enc_is_block_mode', + 'mcrypt_enc_self_test', 'mcrypt_encrypt', 'mcrypt_generic', + 'mcrypt_generic_deinit', 'mcrypt_generic_end', 'mcrypt_generic_init', + 'mcrypt_get_block_size', 'mcrypt_get_cipher_name', + 'mcrypt_get_iv_size', 'mcrypt_get_key_size', 'mcrypt_list_algorithms', + 'mcrypt_list_modes', 'mcrypt_module_close', 'mcrypt_module_get_algo_block_size', 'mcrypt_module_get_algo_key_size', 'mcrypt_module_get_supported_key_sizes', 'mcrypt_module_is_block_algorithm', 'mcrypt_module_is_block_algorithm_mode', - 'mcrypt_module_is_block_mode','mcrypt_module_open', - 'mcrypt_module_self_test','mcrypt_ofb','md5','md5_file', - 'mdecrypt_generic','memcache_add','memcache_add_server', - 'memcache_close','memcache_connect','memcache_debug', - 'memcache_decrement','memcache_delete','memcache_flush', - 'memcache_get','memcache_get_extended_stats', - 'memcache_get_server_status','memcache_get_stats', - 'memcache_get_version','memcache_increment','memcache_pconnect', - 'memcache_replace','memcache_set','memcache_set_compress_threshold', - 'memcache_set_server_params','memory_get_peak_usage', - 'memory_get_usage','metaphone','mhash','mhash_count', - 'mhash_get_block_size','mhash_get_hash_name','mhash_keygen_s2k', - 'method_exists','microtime','mime_content_type','min', - 'ming_keypress','ming_setcubicthreshold','ming_setscale', - 'ming_useconstants','ming_useswfversion','mkdir','mktime', - 'money_format','move_uploaded_file','msql','msql_affected_rows', - 'msql_close','msql_connect','msql_create_db','msql_createdb', - 'msql_data_seek','msql_db_query','msql_dbname','msql_drop_db', - 'msql_dropdb','msql_error','msql_fetch_array','msql_fetch_field', - 'msql_fetch_object','msql_fetch_row','msql_field_flags', - 'msql_field_len','msql_field_name','msql_field_seek', - 'msql_field_table','msql_field_type','msql_fieldflags', - 'msql_fieldlen','msql_fieldname','msql_fieldtable','msql_fieldtype', - 'msql_free_result','msql_freeresult','msql_list_dbs', - 'msql_list_fields','msql_list_tables','msql_listdbs', - 'msql_listfields','msql_listtables','msql_num_fields', - 'msql_num_rows','msql_numfields','msql_numrows','msql_pconnect', - 'msql_query','msql_regcase','msql_result','msql_select_db', - 'msql_selectdb','msql_tablename','mssql_bind','mssql_close', - 'mssql_connect','mssql_data_seek','mssql_execute', - 'mssql_fetch_array','mssql_fetch_assoc','mssql_fetch_batch', - 'mssql_fetch_field','mssql_fetch_object','mssql_fetch_row', - 'mssql_field_length','mssql_field_name','mssql_field_seek', - 'mssql_field_type','mssql_free_result','mssql_free_statement', - 'mssql_get_last_message','mssql_guid_string','mssql_init', - 'mssql_min_error_severity','mssql_min_message_severity', - 'mssql_next_result','mssql_num_fields','mssql_num_rows', - 'mssql_pconnect','mssql_query','mssql_result','mssql_rows_affected', - 'mssql_select_db','mt_getrandmax','mt_rand','mt_srand','mysql', - 'mysql_affected_rows','mysql_client_encoding','mysql_close', - 'mysql_connect','mysql_createdb','mysql_create_db', - 'mysql_data_seek','mysql_dbname','mysql_db_name','mysql_db_query', - 'mysql_dropdb','mysql_drop_db','mysql_errno','mysql_error', - 'mysql_escape_string','mysql_fetch_array','mysql_fetch_assoc', - 'mysql_fetch_field','mysql_fetch_lengths','mysql_fetch_object', - 'mysql_fetch_row','mysql_fieldflags','mysql_fieldlen', - 'mysql_fieldname','mysql_fieldtable','mysql_fieldtype', - 'mysql_field_flags','mysql_field_len','mysql_field_name', - 'mysql_field_seek','mysql_field_table','mysql_field_type', - 'mysql_freeresult','mysql_free_result','mysql_get_client_info', - 'mysql_get_host_info','mysql_get_proto_info', - 'mysql_get_server_info','mysql_info','mysql_insert_id', - 'mysql_listdbs','mysql_listfields','mysql_listtables', - 'mysql_list_dbs','mysql_list_fields','mysql_list_processes', - 'mysql_list_tables','mysql_numfields','mysql_numrows', - 'mysql_num_fields','mysql_num_rows','mysql_pconnect','mysql_ping', - 'mysql_query','mysql_real_escape_string','mysql_result', - 'mysql_selectdb','mysql_select_db','mysql_set_charset','mysql_stat', - 'mysql_tablename','mysql_table_name','mysql_thread_id', - 'mysql_unbuffered_query','mysqli_affected_rows','mysqli_autocommit', - 'mysqli_bind_param','mysqli_bind_result','mysqli_change_user', - 'mysqli_character_set_name','mysqli_client_encoding','mysqli_close', - 'mysqli_commit','mysqli_connect','mysqli_connect_errno', - 'mysqli_connect_error','mysqli_data_seek','mysqli_debug', - 'mysqli_disable_reads_from_master','mysqli_disable_rpl_parse', - 'mysqli_dump_debug_info','mysqli_embedded_server_end', - 'mysqli_embedded_server_start','mysqli_enable_reads_from_master', - 'mysqli_enable_rpl_parse','mysqli_errno','mysqli_error', - 'mysqli_escape_string','mysqli_execute','mysqli_fetch', - 'mysqli_fetch_array','mysqli_fetch_assoc','mysqli_fetch_field', - 'mysqli_fetch_field_direct','mysqli_fetch_fields', - 'mysqli_fetch_lengths','mysqli_fetch_object','mysqli_fetch_row', - 'mysqli_field_count','mysqli_field_seek','mysqli_field_tell', - 'mysqli_free_result','mysqli_get_charset','mysqli_get_client_info', - 'mysqli_get_client_version','mysqli_get_host_info', - 'mysqli_get_metadata','mysqli_get_proto_info', - 'mysqli_get_server_info','mysqli_get_server_version', - 'mysqli_get_warnings','mysqli_info','mysqli_init', - 'mysqli_insert_id','mysqli_kill','mysqli_master_query', - 'mysqli_more_results','mysqli_multi_query','mysqli_next_result', - 'mysqli_num_fields','mysqli_num_rows','mysqli_options', - 'mysqli_param_count','mysqli_ping','mysqli_prepare','mysqli_query', - 'mysqli_real_connect','mysqli_real_escape_string', - 'mysqli_real_query','mysqli_report','mysqli_rollback', - 'mysqli_rpl_parse_enabled','mysqli_rpl_probe', - 'mysqli_rpl_query_type','mysqli_select_db','mysqli_send_long_data', - 'mysqli_send_query','mysqli_set_charset', - 'mysqli_set_local_infile_default','mysqli_set_local_infile_handler', - 'mysqli_set_opt','mysqli_slave_query','mysqli_sqlstate', - 'mysqli_ssl_set','mysqli_stat','mysqli_stmt_affected_rows', - 'mysqli_stmt_attr_get','mysqli_stmt_attr_set', - 'mysqli_stmt_bind_param','mysqli_stmt_bind_result', - 'mysqli_stmt_close','mysqli_stmt_data_seek','mysqli_stmt_errno', - 'mysqli_stmt_error','mysqli_stmt_execute','mysqli_stmt_fetch', - 'mysqli_stmt_field_count','mysqli_stmt_free_result', - 'mysqli_stmt_get_warnings','mysqli_stmt_init', - 'mysqli_stmt_insert_id','mysqli_stmt_num_rows', - 'mysqli_stmt_param_count','mysqli_stmt_prepare','mysqli_stmt_reset', - 'mysqli_stmt_result_metadata','mysqli_stmt_send_long_data', - 'mysqli_stmt_sqlstate','mysqli_stmt_store_result', - 'mysqli_store_result','mysqli_thread_id','mysqli_thread_safe', - 'mysqli_use_result','mysqli_warning_count','natcasesort','natsort', - 'new_xmldoc','next','ngettext','nl2br','nl_langinfo', - 'ntuser_getdomaincontroller','ntuser_getusergroups', - 'ntuser_getuserinfo','ntuser_getuserlist','number_format', - 'ob_clean','ob_deflatehandler','ob_end_clean','ob_end_flush', - 'ob_etaghandler','ob_flush','ob_get_clean','ob_get_contents', - 'ob_get_flush','ob_get_length','ob_get_level','ob_get_status', - 'ob_gzhandler','ob_iconv_handler','ob_implicit_flush', - 'ob_inflatehandler','ob_list_handlers','ob_start','ob_tidyhandler', - 'octdec','odbc_autocommit','odbc_binmode','odbc_close', - 'odbc_close_all','odbc_columnprivileges','odbc_columns', - 'odbc_commit','odbc_connect','odbc_cursor','odbc_data_source', - 'odbc_do','odbc_error','odbc_errormsg','odbc_exec','odbc_execute', - 'odbc_fetch_array','odbc_fetch_into','odbc_fetch_object', - 'odbc_fetch_row','odbc_field_len','odbc_field_name', - 'odbc_field_num','odbc_field_precision','odbc_field_scale', - 'odbc_field_type','odbc_foreignkeys','odbc_free_result', - 'odbc_gettypeinfo','odbc_longreadlen','odbc_next_result', - 'odbc_num_fields','odbc_num_rows','odbc_pconnect','odbc_prepare', - 'odbc_primarykeys','odbc_procedurecolumns','odbc_procedures', - 'odbc_result','odbc_result_all','odbc_rollback','odbc_setoption', - 'odbc_specialcolumns','odbc_statistics','odbc_tableprivileges', - 'odbc_tables','opendir','openlog','openssl_csr_export', - 'openssl_csr_export_to_file','openssl_csr_get_public_key', - 'openssl_csr_get_subject','openssl_csr_new','openssl_csr_sign', - 'openssl_error_string','openssl_free_key','openssl_get_privatekey', - 'openssl_get_publickey','openssl_open','openssl_pkcs12_export', - 'openssl_pkcs12_export_to_file','openssl_pkcs12_read', - 'openssl_pkcs7_decrypt','openssl_pkcs7_encrypt', - 'openssl_pkcs7_sign','openssl_pkcs7_verify','openssl_pkey_export', - 'openssl_pkey_export_to_file','openssl_pkey_free', - 'openssl_pkey_get_details','openssl_pkey_get_private', - 'openssl_pkey_get_public','openssl_pkey_new', - 'openssl_private_decrypt','openssl_private_encrypt', - 'openssl_public_decrypt','openssl_public_encrypt','openssl_seal', - 'openssl_sign','openssl_verify','openssl_x509_checkpurpose', - 'openssl_x509_check_private_key','openssl_x509_export', - 'openssl_x509_export_to_file','openssl_x509_free', - 'openssl_x509_parse','openssl_x509_read','ord', - 'output_add_rewrite_var','output_reset_rewrite_vars','overload', - 'outputdebugstring','pack','parse_ini_file','parse_str','parse_url', - 'parsekit_compile_file','parsekit_compile_string', - 'parsekit_func_arginfo','parsekit_opcode_flags', - 'parsekit_opcode_name','passthru','pathinfo','pclose', - 'pdf_add_bookmark','pdf_add_launchlink','pdf_add_locallink', - 'pdf_add_nameddest','pdf_add_note','pdf_add_pdflink', - 'pdf_add_thumbnail','pdf_add_weblink','pdf_arc','pdf_arcn', - 'pdf_attach_file','pdf_begin_font','pdf_begin_glyph', - 'pdf_begin_page','pdf_begin_pattern','pdf_begin_template', - 'pdf_circle','pdf_clip','pdf_close','pdf_close_image', - 'pdf_close_pdi','pdf_close_pdi_page','pdf_closepath', - 'pdf_closepath_fill_stroke','pdf_closepath_stroke','pdf_concat', - 'pdf_continue_text','pdf_create_gstate','pdf_create_pvf', - 'pdf_curveto','pdf_delete','pdf_delete_pvf','pdf_encoding_set_char', - 'pdf_end_font','pdf_end_glyph','pdf_end_page','pdf_end_pattern', - 'pdf_end_template','pdf_endpath','pdf_fill','pdf_fill_imageblock', - 'pdf_fill_pdfblock','pdf_fill_stroke','pdf_fill_textblock', - 'pdf_findfont','pdf_fit_image','pdf_fit_pdi_page', - 'pdf_fit_textline','pdf_get_apiname','pdf_get_buffer', - 'pdf_get_errmsg','pdf_get_errnum','pdf_get_parameter', - 'pdf_get_pdi_parameter','pdf_get_pdi_value','pdf_get_value', - 'pdf_initgraphics','pdf_lineto','pdf_load_font', - 'pdf_load_iccprofile','pdf_load_image','pdf_makespotcolor', - 'pdf_moveto','pdf_new','pdf_open_ccitt','pdf_open_file', - 'pdf_open_image','pdf_open_image_file','pdf_open_pdi', - 'pdf_open_pdi_page','pdf_place_image','pdf_place_pdi_page', - 'pdf_process_pdi','pdf_rect','pdf_restore','pdf_rotate','pdf_save', - 'pdf_scale','pdf_set_border_color','pdf_set_border_dash', - 'pdf_set_border_style','pdf_set_gstate','pdf_set_info', - 'pdf_set_parameter','pdf_set_text_pos','pdf_set_value', - 'pdf_setcolor','pdf_setdash','pdf_setdashpattern','pdf_setflat', - 'pdf_setfont','pdf_setlinecap','pdf_setlinejoin','pdf_setlinewidth', - 'pdf_setmatrix','pdf_setmiterlimit','pdf_setpolydash','pdf_shading', - 'pdf_shading_pattern','pdf_shfill','pdf_show','pdf_show_boxed', - 'pdf_show_xy','pdf_skew','pdf_stringwidth','pdf_stroke', - 'pdf_translate','pdo_drivers','pfsockopen','pg_affected_rows', - 'pg_cancel_query','pg_clientencoding','pg_client_encoding', - 'pg_close','pg_cmdtuples','pg_connect','pg_connection_busy', - 'pg_connection_reset','pg_connection_status','pg_convert', - 'pg_copy_from','pg_copy_to','pg_dbname','pg_delete','pg_end_copy', - 'pg_errormessage','pg_escape_bytea','pg_escape_string','pg_exec', - 'pg_execute','pg_fetch_all','pg_fetch_all_columns','pg_fetch_array', - 'pg_fetch_assoc','pg_fetch_object','pg_fetch_result','pg_fetch_row', - 'pg_fieldisnull','pg_fieldname','pg_fieldnum','pg_fieldprtlen', - 'pg_fieldsize','pg_fieldtype','pg_field_is_null','pg_field_name', - 'pg_field_num','pg_field_prtlen','pg_field_size','pg_field_table', - 'pg_field_type','pg_field_type_oid','pg_free_result', - 'pg_freeresult','pg_get_notify','pg_get_pid','pg_get_result', - 'pg_getlastoid','pg_host','pg_insert','pg_last_error', - 'pg_last_notice','pg_last_oid','pg_loclose','pg_locreate', - 'pg_loexport','pg_loimport','pg_loopen','pg_loread','pg_loreadall', - 'pg_lounlink','pg_lowrite','pg_lo_close','pg_lo_create', - 'pg_lo_export','pg_lo_import','pg_lo_open','pg_lo_read', - 'pg_lo_read_all','pg_lo_seek','pg_lo_tell','pg_lo_unlink', - 'pg_lo_write','pg_meta_data','pg_numfields','pg_numrows', - 'pg_num_fields','pg_num_rows','pg_options','pg_parameter_status', - 'pg_pconnect','pg_ping','pg_port','pg_prepare','pg_put_line', - 'pg_query','pg_query_params','pg_result','pg_result_error', - 'pg_result_error_field','pg_result_seek','pg_result_status', - 'pg_select','pg_send_execute','pg_send_prepare','pg_send_query', - 'pg_send_query_params','pg_set_client_encoding', - 'pg_set_error_verbosity','pg_setclientencoding','pg_trace', - 'pg_transaction_status','pg_tty','pg_unescape_bytea','pg_untrace', - 'pg_update','pg_version','php_egg_logo_guid','php_ini_loaded_file', - 'php_ini_scanned_files','php_logo_guid','php_real_logo_guid', - 'php_sapi_name','php_strip_whitespace','php_uname','phpcredits', - 'phpdoc_xml_from_string','phpinfo','phpversion','pi','png2wbmp', - 'pop3_close','pop3_delete_message','pop3_get_account_size', - 'pop3_get_message','pop3_get_message_count', - 'pop3_get_message_header','pop3_get_message_ids', - 'pop3_get_message_size','pop3_get_message_sizes','pop3_open', - 'pop3_undelete','popen','pos','posix_ctermid','posix_errno', - 'posix_getcwd','posix_getegid','posix_geteuid','posix_getgid', - 'posix_getgrgid','posix_getgrnam','posix_getgroups', - 'posix_getlogin','posix_getpgid','posix_getpgrp','posix_getpid', - 'posix_getppid','posix_getpwnam','posix_getpwuid','posix_getrlimit', - 'posix_getsid','posix_getuid','posix_get_last_error','posix_isatty', - 'posix_kill','posix_mkfifo','posix_setegid','posix_seteuid', - 'posix_setgid','posix_setpgid','posix_setsid','posix_setuid', - 'posix_strerror','posix_times','posix_ttyname','posix_uname','pow', - 'preg_grep','preg_last_error','preg_match','preg_match_all', - 'preg_quote','preg_replace','preg_replace_callback','preg_split', - 'prev','print_r','printf','proc_close','proc_get_status', - 'proc_open','proc_terminate','putenv','quoted_printable_decode', - 'quotemeta','rad2deg','radius_acct_open','radius_add_server', - 'radius_auth_open','radius_close','radius_config', - 'radius_create_request','radius_cvt_addr','radius_cvt_int', - 'radius_cvt_string','radius_demangle','radius_demangle_mppe_key', - 'radius_get_attr','radius_get_vendor_attr','radius_put_addr', - 'radius_put_attr','radius_put_int','radius_put_string', - 'radius_put_vendor_addr','radius_put_vendor_attr', - 'radius_put_vendor_int','radius_put_vendor_string', - 'radius_request_authenticator','radius_send_request', - 'radius_server_secret','radius_strerror','rand','range', - 'rawurldecode','rawurlencode','read_exif_data','readdir','readfile', - 'readgzfile','readlink','realpath','reg_close_key','reg_create_key', - 'reg_enum_key','reg_enum_value','reg_get_value','reg_open_key', - 'reg_set_value','register_shutdown_function', - 'register_tick_function','rename','res_close','res_get','res_list', - 'res_list_type','res_open','res_set','reset', - 'restore_error_handler','restore_include_path','rewind','rewinddir', - 'rmdir','round','rsort','rtrim','runkit_class_adopt', - 'runkit_class_emancipate','runkit_constant_add', - 'runkit_constant_redefine','runkit_constant_remove', - 'runkit_default_property_add','runkit_function_add', - 'runkit_function_copy','runkit_function_redefine', - 'runkit_function_remove','runkit_function_rename','runkit_import', - 'runkit_lint','runkit_lint_file','runkit_method_add', - 'runkit_method_copy','runkit_method_redefine', - 'runkit_method_remove','runkit_method_rename','runkit_object_id', - 'runkit_return_value_used','runkit_sandbox_output_handler', - 'runkit_superglobals','runkit_zval_inspect','scandir','sem_acquire', - 'sem_get','sem_release','sem_remove','serialize', - 'session_cache_expire','session_cache_limiter','session_commit', - 'session_decode','session_destroy','session_encode', - 'session_get_cookie_params','session_id','session_is_registered', - 'session_module_name','session_name','session_regenerate_id', - 'session_register','session_save_path','session_set_cookie_params', - 'session_set_save_handler','session_start','session_unregister', - 'session_unset','session_write_close','set_content', - 'set_error_handler','set_file_buffer','set_include_path', - 'set_magic_quotes_runtime','set_socket_blocking','set_time_limit', - 'setcookie','setlocale','setrawcookie','settype','sha1','sha1_file', - 'shell_exec','shmop_close','shmop_delete','shmop_open','shmop_read', - 'shmop_size','shmop_write','shm_attach','shm_detach','shm_get_var', - 'shm_put_var','shm_remove','shm_remove_var','show_source','shuffle', - 'similar_text','simplexml_import_dom','simplexml_load_file', - 'simplexml_load_string','sin','sinh','sizeof','sleep','smtp_close', - 'smtp_cmd_data','smtp_cmd_mail','smtp_cmd_rcpt','smtp_connect', - 'snmp_get_quick_print','snmp_get_valueretrieval','snmp_read_mib', - 'snmp_set_quick_print','snmp_set_valueretrieval','snmp2_get', - 'snmp2_getnext','snmp2_real_walk','snmp2_set','snmp2_walk', - 'snmp3_get','snmp3_getnext','snmp3_real_walk','snmp3_set', - 'snmp3_walk','snmpget','snmpgetnext','snmprealwalk','snmpset', - 'snmpwalk','snmpwalkoid','socket_accept','socket_bind', - 'socket_clear_error','socket_close','socket_connect', - 'socket_create','socket_create_listen','socket_create_pair', - 'socket_getopt','socket_getpeername','socket_getsockname', - 'socket_get_option','socket_get_status','socket_iovec_add', - 'socket_iovec_alloc','socket_iovec_delete','socket_iovec_fetch', - 'socket_iovec_free','socket_iovec_set','socket_last_error', - 'socket_listen','socket_read','socket_readv','socket_recv', - 'socket_recvfrom','socket_recvmsg','socket_select','socket_send', - 'socket_sendmsg','socket_sendto','socket_setopt','socket_set_block', - 'socket_set_blocking','socket_set_nonblock','socket_set_option', - 'socket_set_timeout','socket_shutdown','socket_strerror', - 'socket_write','socket_writev','sort','soundex','spl_autoload', - 'spl_autoload_call','spl_autoload_extensions', - 'spl_autoload_functions','spl_autoload_register', - 'spl_autoload_unregister','spl_classes','spl_object_hash','split', - 'spliti','sprintf','sql_regcase','sqlite_array_query', - 'sqlite_busy_timeout','sqlite_changes','sqlite_close', - 'sqlite_column','sqlite_create_aggregate','sqlite_create_function', - 'sqlite_current','sqlite_error_string','sqlite_escape_string', - 'sqlite_exec','sqlite_factory','sqlite_fetch_all', - 'sqlite_fetch_array','sqlite_fetch_column_types', - 'sqlite_fetch_object','sqlite_fetch_single','sqlite_fetch_string', - 'sqlite_field_name','sqlite_has_more','sqlite_has_prev', - 'sqlite_last_error','sqlite_last_insert_rowid','sqlite_libencoding', - 'sqlite_libversion','sqlite_next','sqlite_num_fields', - 'sqlite_num_rows','sqlite_open','sqlite_popen','sqlite_prev', - 'sqlite_query','sqlite_rewind','sqlite_seek','sqlite_single_query', - 'sqlite_udf_decode_binary','sqlite_udf_encode_binary', - 'sqlite_unbuffered_query','sqlite_valid','sqrt','srand','sscanf', - 'ssh2_auth_hostbased_file','ssh2_auth_none','ssh2_auth_password', - 'ssh2_auth_pubkey_file','ssh2_connect','ssh2_exec', - 'ssh2_fetch_stream','ssh2_fingerprint','ssh2_forward_accept', - 'ssh2_forward_listen','ssh2_methods_negotiated','ssh2_poll', - 'ssh2_publickey_add','ssh2_publickey_init','ssh2_publickey_list', - 'ssh2_publickey_remove','ssh2_scp_recv','ssh2_scp_send','ssh2_sftp', - 'ssh2_sftp_lstat','ssh2_sftp_mkdir','ssh2_sftp_readlink', - 'ssh2_sftp_realpath','ssh2_sftp_rename','ssh2_sftp_rmdir', - 'ssh2_sftp_stat','ssh2_sftp_symlink','ssh2_sftp_unlink', - 'ssh2_shell','ssh2_tunnel','stat','stats_absolute_deviation', - 'stats_cdf_beta','stats_cdf_binomial','stats_cdf_cauchy', - 'stats_cdf_chisquare','stats_cdf_exponential','stats_cdf_f', - 'stats_cdf_gamma','stats_cdf_laplace','stats_cdf_logistic', - 'stats_cdf_negative_binomial','stats_cdf_noncentral_chisquare', - 'stats_cdf_noncentral_f','stats_cdf_noncentral_t', - 'stats_cdf_normal','stats_cdf_poisson','stats_cdf_t', - 'stats_cdf_uniform','stats_cdf_weibull','stats_covariance', - 'stats_dens_beta','stats_dens_cauchy','stats_dens_chisquare', - 'stats_dens_exponential','stats_dens_f','stats_dens_gamma', - 'stats_dens_laplace','stats_dens_logistic','stats_dens_normal', - 'stats_dens_pmf_binomial','stats_dens_pmf_hypergeometric', - 'stats_dens_pmf_negative_binomial','stats_dens_pmf_poisson', - 'stats_dens_t','stats_dens_uniform','stats_dens_weibull', - 'stats_harmonic_mean','stats_kurtosis','stats_rand_gen_beta', - 'stats_rand_gen_chisquare','stats_rand_gen_exponential', - 'stats_rand_gen_f','stats_rand_gen_funiform','stats_rand_gen_gamma', - 'stats_rand_gen_ipoisson','stats_rand_gen_iuniform', - 'stats_rand_gen_noncenral_f','stats_rand_gen_noncentral_chisquare', - 'stats_rand_gen_noncentral_t','stats_rand_gen_normal', - 'stats_rand_gen_t','stats_rand_getsd','stats_rand_ibinomial', - 'stats_rand_ibinomial_negative','stats_rand_ignlgi', - 'stats_rand_phrase_to_seeds','stats_rand_ranf','stats_rand_setall', - 'stats_skew','stats_standard_deviation','stats_stat_binomial_coef', - 'stats_stat_correlation','stats_stat_factorial', - 'stats_stat_independent_t','stats_stat_innerproduct', - 'stats_stat_paired_t','stats_stat_percentile','stats_stat_powersum', - 'stats_variance','strcasecmp','strchr','strcmp','strcoll','strcspn', - 'stream_bucket_append','stream_bucket_make_writeable', - 'stream_bucket_new','stream_bucket_prepend','stream_context_create', - 'stream_context_get_default','stream_context_get_options', - 'stream_context_set_default','stream_context_set_option', - 'stream_context_set_params','stream_copy_to_stream', - 'stream_encoding','stream_filter_append','stream_filter_prepend', - 'stream_filter_register','stream_filter_remove', - 'stream_get_contents','stream_get_filters','stream_get_line', - 'stream_get_meta_data','stream_get_transports', - 'stream_get_wrappers','stream_is_local', - 'stream_notification_callback','stream_register_wrapper', - 'stream_resolve_include_path','stream_select','stream_set_blocking', - 'stream_set_timeout','stream_set_write_buffer', - 'stream_socket_accept','stream_socket_client', - 'stream_socket_enable_crypto','stream_socket_get_name', - 'stream_socket_pair','stream_socket_recvfrom', - 'stream_socket_sendto','stream_socket_server', - 'stream_socket_shutdown','stream_supports_lock', - 'stream_wrapper_register','stream_wrapper_restore', - 'stream_wrapper_unregister','strftime','stripcslashes','stripos', - 'stripslashes','strip_tags','stristr','strlen','strnatcasecmp', - 'strnatcmp','strpbrk','strncasecmp','strncmp','strpos','strrchr', - 'strrev','strripos','strrpos','strspn','strstr','strtok', - 'strtolower','strtotime','strtoupper','strtr','strval', - 'str_ireplace','str_pad','str_repeat','str_replace','str_rot13', - 'str_split','str_shuffle','str_word_count','substr', - 'substr_compare','substr_count','substr_replace','svn_add', - 'svn_auth_get_parameter','svn_auth_set_parameter','svn_cat', - 'svn_checkout','svn_cleanup','svn_client_version','svn_commit', - 'svn_diff','svn_export','svn_fs_abort_txn','svn_fs_apply_text', - 'svn_fs_begin_txn2','svn_fs_change_node_prop','svn_fs_check_path', - 'svn_fs_contents_changed','svn_fs_copy','svn_fs_delete', - 'svn_fs_dir_entries','svn_fs_file_contents','svn_fs_file_length', - 'svn_fs_is_dir','svn_fs_is_file','svn_fs_make_dir', - 'svn_fs_make_file','svn_fs_node_created_rev','svn_fs_node_prop', - 'svn_fs_props_changed','svn_fs_revision_prop', - 'svn_fs_revision_root','svn_fs_txn_root','svn_fs_youngest_rev', - 'svn_import','svn_info','svn_log','svn_ls','svn_repos_create', - 'svn_repos_fs','svn_repos_fs_begin_txn_for_commit', - 'svn_repos_fs_commit_txn','svn_repos_hotcopy','svn_repos_open', - 'svn_repos_recover','svn_status','svn_update','symlink', - 'sys_get_temp_dir','syslog','system','tan','tanh','tempnam', - 'textdomain','thread_get','thread_include','thread_lock', - 'thread_lock_try','thread_mutex_destroy','thread_mutex_init', - 'thread_set','thread_start','thread_unlock','tidy_access_count', - 'tidy_clean_repair','tidy_config_count','tidy_diagnose', - 'tidy_error_count','tidy_get_body','tidy_get_config', - 'tidy_get_error_buffer','tidy_get_head','tidy_get_html', - 'tidy_get_html_ver','tidy_get_output','tidy_get_release', - 'tidy_get_root','tidy_get_status','tidy_getopt','tidy_is_xhtml', - 'tidy_is_xml','tidy_parse_file','tidy_parse_string', - 'tidy_repair_file','tidy_repair_string','tidy_warning_count','time', - 'timezone_abbreviations_list','timezone_identifiers_list', - 'timezone_name_from_abbr','timezone_name_get','timezone_offset_get', - 'timezone_open','timezone_transitions_get','tmpfile', - 'token_get_all','token_name','touch','trigger_error', - 'transliterate','transliterate_filters_get','trim','uasort', - 'ucfirst','ucwords','uksort','umask','uniqid','unixtojd','unlink', - 'unpack','unregister_tick_function','unserialize','unset', - 'urldecode','urlencode','user_error','use_soap_error_handler', - 'usleep','usort','utf8_decode','utf8_encode','var_dump', - 'var_export','variant_abs','variant_add','variant_and', - 'variant_cast','variant_cat','variant_cmp', - 'variant_date_from_timestamp','variant_date_to_timestamp', - 'variant_div','variant_eqv','variant_fix','variant_get_type', - 'variant_idiv','variant_imp','variant_int','variant_mod', - 'variant_mul','variant_neg','variant_not','variant_or', - 'variant_pow','variant_round','variant_set','variant_set_type', - 'variant_sub','variant_xor','version_compare','virtual','vfprintf', - 'vprintf','vsprintf','wddx_add_vars','wddx_deserialize', - 'wddx_packet_end','wddx_packet_start','wddx_serialize_value', - 'wddx_serialize_vars','win_beep','win_browse_file', - 'win_browse_folder','win_create_link','win_message_box', - 'win_play_wav','win_shell_execute','win32_create_service', - 'win32_delete_service','win32_get_last_control_message', - 'win32_ps_list_procs','win32_ps_stat_mem','win32_ps_stat_proc', - 'win32_query_service_status','win32_scheduler_delete_task', - 'win32_scheduler_enum_tasks','win32_scheduler_get_task_info', - 'win32_scheduler_run','win32_scheduler_set_task_info', - 'win32_set_service_status','win32_start_service', - 'win32_start_service_ctrl_dispatcher','win32_stop_service', - 'wordwrap','xml_error_string','xml_get_current_byte_index', - 'xml_get_current_column_number','xml_get_current_line_number', - 'xml_get_error_code','xml_parse','xml_parser_create', - 'xml_parser_create_ns','xml_parser_free','xml_parser_get_option', - 'xml_parser_set_option','xml_parse_into_struct', - 'xml_set_character_data_handler','xml_set_default_handler', - 'xml_set_element_handler','xml_set_end_namespace_decl_handler', + 'mcrypt_module_is_block_mode', 'mcrypt_module_open', + 'mcrypt_module_self_test', 'mcrypt_ofb', 'md5', 'md5_file', + 'mdecrypt_generic', 'memcache_add', 'memcache_add_server', + 'memcache_close', 'memcache_connect', 'memcache_debug', + 'memcache_decrement', 'memcache_delete', 'memcache_flush', + 'memcache_get', 'memcache_get_extended_stats', + 'memcache_get_server_status', 'memcache_get_stats', + 'memcache_get_version', 'memcache_increment', 'memcache_pconnect', + 'memcache_replace', 'memcache_set', 'memcache_set_compress_threshold', + 'memcache_set_server_params', 'memory_get_peak_usage', + 'memory_get_usage', 'metaphone', 'mhash', 'mhash_count', + 'mhash_get_block_size', 'mhash_get_hash_name', 'mhash_keygen_s2k', + 'method_exists', 'microtime', 'mime_content_type', 'min', + 'ming_keypress', 'ming_setcubicthreshold', 'ming_setscale', + 'ming_useconstants', 'ming_useswfversion', 'mkdir', 'mktime', + 'money_format', 'move_uploaded_file', 'msql', 'msql_affected_rows', + 'msql_close', 'msql_connect', 'msql_create_db', 'msql_createdb', + 'msql_data_seek', 'msql_db_query', 'msql_dbname', 'msql_drop_db', + 'msql_dropdb', 'msql_error', 'msql_fetch_array', 'msql_fetch_field', + 'msql_fetch_object', 'msql_fetch_row', 'msql_field_flags', + 'msql_field_len', 'msql_field_name', 'msql_field_seek', + 'msql_field_table', 'msql_field_type', 'msql_fieldflags', + 'msql_fieldlen', 'msql_fieldname', 'msql_fieldtable', 'msql_fieldtype', + 'msql_free_result', 'msql_freeresult', 'msql_list_dbs', + 'msql_list_fields', 'msql_list_tables', 'msql_listdbs', + 'msql_listfields', 'msql_listtables', 'msql_num_fields', + 'msql_num_rows', 'msql_numfields', 'msql_numrows', 'msql_pconnect', + 'msql_query', 'msql_regcase', 'msql_result', 'msql_select_db', + 'msql_selectdb', 'msql_tablename', 'mssql_bind', 'mssql_close', + 'mssql_connect', 'mssql_data_seek', 'mssql_execute', + 'mssql_fetch_array', 'mssql_fetch_assoc', 'mssql_fetch_batch', + 'mssql_fetch_field', 'mssql_fetch_object', 'mssql_fetch_row', + 'mssql_field_length', 'mssql_field_name', 'mssql_field_seek', + 'mssql_field_type', 'mssql_free_result', 'mssql_free_statement', + 'mssql_get_last_message', 'mssql_guid_string', 'mssql_init', + 'mssql_min_error_severity', 'mssql_min_message_severity', + 'mssql_next_result', 'mssql_num_fields', 'mssql_num_rows', + 'mssql_pconnect', 'mssql_query', 'mssql_result', 'mssql_rows_affected', + 'mssql_select_db', 'mt_getrandmax', 'mt_rand', 'mt_srand', 'mysql', + 'mysql_affected_rows', 'mysql_client_encoding', 'mysql_close', + 'mysql_connect', 'mysql_createdb', 'mysql_create_db', + 'mysql_data_seek', 'mysql_dbname', 'mysql_db_name', 'mysql_db_query', + 'mysql_dropdb', 'mysql_drop_db', 'mysql_errno', 'mysql_error', + 'mysql_escape_string', 'mysql_fetch_array', 'mysql_fetch_assoc', + 'mysql_fetch_field', 'mysql_fetch_lengths', 'mysql_fetch_object', + 'mysql_fetch_row', 'mysql_fieldflags', 'mysql_fieldlen', + 'mysql_fieldname', 'mysql_fieldtable', 'mysql_fieldtype', + 'mysql_field_flags', 'mysql_field_len', 'mysql_field_name', + 'mysql_field_seek', 'mysql_field_table', 'mysql_field_type', + 'mysql_freeresult', 'mysql_free_result', 'mysql_get_client_info', + 'mysql_get_host_info', 'mysql_get_proto_info', + 'mysql_get_server_info', 'mysql_info', 'mysql_insert_id', + 'mysql_listdbs', 'mysql_listfields', 'mysql_listtables', + 'mysql_list_dbs', 'mysql_list_fields', 'mysql_list_processes', + 'mysql_list_tables', 'mysql_numfields', 'mysql_numrows', + 'mysql_num_fields', 'mysql_num_rows', 'mysql_pconnect', 'mysql_ping', + 'mysql_query', 'mysql_real_escape_string', 'mysql_result', + 'mysql_selectdb', 'mysql_select_db', 'mysql_set_charset', 'mysql_stat', + 'mysql_tablename', 'mysql_table_name', 'mysql_thread_id', + 'mysql_unbuffered_query', 'mysqli_affected_rows', 'mysqli_autocommit', + 'mysqli_bind_param', 'mysqli_bind_result', 'mysqli_change_user', + 'mysqli_character_set_name', 'mysqli_client_encoding', 'mysqli_close', + 'mysqli_commit', 'mysqli_connect', 'mysqli_connect_errno', + 'mysqli_connect_error', 'mysqli_data_seek', 'mysqli_debug', + 'mysqli_disable_reads_from_master', 'mysqli_disable_rpl_parse', + 'mysqli_dump_debug_info', 'mysqli_embedded_server_end', + 'mysqli_embedded_server_start', 'mysqli_enable_reads_from_master', + 'mysqli_enable_rpl_parse', 'mysqli_errno', 'mysqli_error', + 'mysqli_escape_string', 'mysqli_execute', 'mysqli_fetch', + 'mysqli_fetch_array', 'mysqli_fetch_assoc', 'mysqli_fetch_field', + 'mysqli_fetch_field_direct', 'mysqli_fetch_fields', + 'mysqli_fetch_lengths', 'mysqli_fetch_object', 'mysqli_fetch_row', + 'mysqli_field_count', 'mysqli_field_seek', 'mysqli_field_tell', + 'mysqli_free_result', 'mysqli_get_charset', 'mysqli_get_client_info', + 'mysqli_get_client_version', 'mysqli_get_host_info', + 'mysqli_get_metadata', 'mysqli_get_proto_info', + 'mysqli_get_server_info', 'mysqli_get_server_version', + 'mysqli_get_warnings', 'mysqli_info', 'mysqli_init', + 'mysqli_insert_id', 'mysqli_kill', 'mysqli_master_query', + 'mysqli_more_results', 'mysqli_multi_query', 'mysqli_next_result', + 'mysqli_num_fields', 'mysqli_num_rows', 'mysqli_options', + 'mysqli_param_count', 'mysqli_ping', 'mysqli_prepare', 'mysqli_query', + 'mysqli_real_connect', 'mysqli_real_escape_string', + 'mysqli_real_query', 'mysqli_report', 'mysqli_rollback', + 'mysqli_rpl_parse_enabled', 'mysqli_rpl_probe', + 'mysqli_rpl_query_type', 'mysqli_select_db', 'mysqli_send_long_data', + 'mysqli_send_query', 'mysqli_set_charset', + 'mysqli_set_local_infile_default', 'mysqli_set_local_infile_handler', + 'mysqli_set_opt', 'mysqli_slave_query', 'mysqli_sqlstate', + 'mysqli_ssl_set', 'mysqli_stat', 'mysqli_stmt_affected_rows', + 'mysqli_stmt_attr_get', 'mysqli_stmt_attr_set', + 'mysqli_stmt_bind_param', 'mysqli_stmt_bind_result', + 'mysqli_stmt_close', 'mysqli_stmt_data_seek', 'mysqli_stmt_errno', + 'mysqli_stmt_error', 'mysqli_stmt_execute', 'mysqli_stmt_fetch', + 'mysqli_stmt_field_count', 'mysqli_stmt_free_result', + 'mysqli_stmt_get_warnings', 'mysqli_stmt_init', + 'mysqli_stmt_insert_id', 'mysqli_stmt_num_rows', + 'mysqli_stmt_param_count', 'mysqli_stmt_prepare', 'mysqli_stmt_reset', + 'mysqli_stmt_result_metadata', 'mysqli_stmt_send_long_data', + 'mysqli_stmt_sqlstate', 'mysqli_stmt_store_result', + 'mysqli_store_result', 'mysqli_thread_id', 'mysqli_thread_safe', + 'mysqli_use_result', 'mysqli_warning_count', 'natcasesort', 'natsort', + 'new_xmldoc', 'next', 'ngettext', 'nl2br', 'nl_langinfo', + 'ntuser_getdomaincontroller', 'ntuser_getusergroups', + 'ntuser_getuserinfo', 'ntuser_getuserlist', 'number_format', + 'ob_clean', 'ob_deflatehandler', 'ob_end_clean', 'ob_end_flush', + 'ob_etaghandler', 'ob_flush', 'ob_get_clean', 'ob_get_contents', + 'ob_get_flush', 'ob_get_length', 'ob_get_level', 'ob_get_status', + 'ob_gzhandler', 'ob_iconv_handler', 'ob_implicit_flush', + 'ob_inflatehandler', 'ob_list_handlers', 'ob_start', 'ob_tidyhandler', + 'octdec', 'odbc_autocommit', 'odbc_binmode', 'odbc_close', + 'odbc_close_all', 'odbc_columnprivileges', 'odbc_columns', + 'odbc_commit', 'odbc_connect', 'odbc_cursor', 'odbc_data_source', + 'odbc_do', 'odbc_error', 'odbc_errormsg', 'odbc_exec', 'odbc_execute', + 'odbc_fetch_array', 'odbc_fetch_into', 'odbc_fetch_object', + 'odbc_fetch_row', 'odbc_field_len', 'odbc_field_name', + 'odbc_field_num', 'odbc_field_precision', 'odbc_field_scale', + 'odbc_field_type', 'odbc_foreignkeys', 'odbc_free_result', + 'odbc_gettypeinfo', 'odbc_longreadlen', 'odbc_next_result', + 'odbc_num_fields', 'odbc_num_rows', 'odbc_pconnect', 'odbc_prepare', + 'odbc_primarykeys', 'odbc_procedurecolumns', 'odbc_procedures', + 'odbc_result', 'odbc_result_all', 'odbc_rollback', 'odbc_setoption', + 'odbc_specialcolumns', 'odbc_statistics', 'odbc_tableprivileges', + 'odbc_tables', 'opendir', 'openlog', 'openssl_csr_export', + 'openssl_csr_export_to_file', 'openssl_csr_get_public_key', + 'openssl_csr_get_subject', 'openssl_csr_new', 'openssl_csr_sign', + 'openssl_error_string', 'openssl_free_key', 'openssl_get_privatekey', + 'openssl_get_publickey', 'openssl_open', 'openssl_pkcs12_export', + 'openssl_pkcs12_export_to_file', 'openssl_pkcs12_read', + 'openssl_pkcs7_decrypt', 'openssl_pkcs7_encrypt', + 'openssl_pkcs7_sign', 'openssl_pkcs7_verify', 'openssl_pkey_export', + 'openssl_pkey_export_to_file', 'openssl_pkey_free', + 'openssl_pkey_get_details', 'openssl_pkey_get_private', + 'openssl_pkey_get_public', 'openssl_pkey_new', + 'openssl_private_decrypt', 'openssl_private_encrypt', + 'openssl_public_decrypt', 'openssl_public_encrypt', 'openssl_seal', + 'openssl_sign', 'openssl_verify', 'openssl_x509_checkpurpose', + 'openssl_x509_check_private_key', 'openssl_x509_export', + 'openssl_x509_export_to_file', 'openssl_x509_free', + 'openssl_x509_parse', 'openssl_x509_read', 'ord', + 'output_add_rewrite_var', 'output_reset_rewrite_vars', 'overload', + 'outputdebugstring', 'pack', 'parse_ini_file', 'parse_str', 'parse_url', + 'parsekit_compile_file', 'parsekit_compile_string', + 'parsekit_func_arginfo', 'parsekit_opcode_flags', + 'parsekit_opcode_name', 'passthru', 'pathinfo', 'pclose', + 'pdf_add_bookmark', 'pdf_add_launchlink', 'pdf_add_locallink', + 'pdf_add_nameddest', 'pdf_add_note', 'pdf_add_pdflink', + 'pdf_add_thumbnail', 'pdf_add_weblink', 'pdf_arc', 'pdf_arcn', + 'pdf_attach_file', 'pdf_begin_font', 'pdf_begin_glyph', + 'pdf_begin_page', 'pdf_begin_pattern', 'pdf_begin_template', + 'pdf_circle', 'pdf_clip', 'pdf_close', 'pdf_close_image', + 'pdf_close_pdi', 'pdf_close_pdi_page', 'pdf_closepath', + 'pdf_closepath_fill_stroke', 'pdf_closepath_stroke', 'pdf_concat', + 'pdf_continue_text', 'pdf_create_gstate', 'pdf_create_pvf', + 'pdf_curveto', 'pdf_delete', 'pdf_delete_pvf', 'pdf_encoding_set_char', + 'pdf_end_font', 'pdf_end_glyph', 'pdf_end_page', 'pdf_end_pattern', + 'pdf_end_template', 'pdf_endpath', 'pdf_fill', 'pdf_fill_imageblock', + 'pdf_fill_pdfblock', 'pdf_fill_stroke', 'pdf_fill_textblock', + 'pdf_findfont', 'pdf_fit_image', 'pdf_fit_pdi_page', + 'pdf_fit_textline', 'pdf_get_apiname', 'pdf_get_buffer', + 'pdf_get_errmsg', 'pdf_get_errnum', 'pdf_get_parameter', + 'pdf_get_pdi_parameter', 'pdf_get_pdi_value', 'pdf_get_value', + 'pdf_initgraphics', 'pdf_lineto', 'pdf_load_font', + 'pdf_load_iccprofile', 'pdf_load_image', 'pdf_makespotcolor', + 'pdf_moveto', 'pdf_new', 'pdf_open_ccitt', 'pdf_open_file', + 'pdf_open_image', 'pdf_open_image_file', 'pdf_open_pdi', + 'pdf_open_pdi_page', 'pdf_place_image', 'pdf_place_pdi_page', + 'pdf_process_pdi', 'pdf_rect', 'pdf_restore', 'pdf_rotate', 'pdf_save', + 'pdf_scale', 'pdf_set_border_color', 'pdf_set_border_dash', + 'pdf_set_border_style', 'pdf_set_gstate', 'pdf_set_info', + 'pdf_set_parameter', 'pdf_set_text_pos', 'pdf_set_value', + 'pdf_setcolor', 'pdf_setdash', 'pdf_setdashpattern', 'pdf_setflat', + 'pdf_setfont', 'pdf_setlinecap', 'pdf_setlinejoin', 'pdf_setlinewidth', + 'pdf_setmatrix', 'pdf_setmiterlimit', 'pdf_setpolydash', 'pdf_shading', + 'pdf_shading_pattern', 'pdf_shfill', 'pdf_show', 'pdf_show_boxed', + 'pdf_show_xy', 'pdf_skew', 'pdf_stringwidth', 'pdf_stroke', + 'pdf_translate', 'pdo_drivers', 'pfsockopen', 'pg_affected_rows', + 'pg_cancel_query', 'pg_clientencoding', 'pg_client_encoding', + 'pg_close', 'pg_cmdtuples', 'pg_connect', 'pg_connection_busy', + 'pg_connection_reset', 'pg_connection_status', 'pg_convert', + 'pg_copy_from', 'pg_copy_to', 'pg_dbname', 'pg_delete', 'pg_end_copy', + 'pg_errormessage', 'pg_escape_bytea', 'pg_escape_string', 'pg_exec', + 'pg_execute', 'pg_fetch_all', 'pg_fetch_all_columns', 'pg_fetch_array', + 'pg_fetch_assoc', 'pg_fetch_object', 'pg_fetch_result', 'pg_fetch_row', + 'pg_fieldisnull', 'pg_fieldname', 'pg_fieldnum', 'pg_fieldprtlen', + 'pg_fieldsize', 'pg_fieldtype', 'pg_field_is_null', 'pg_field_name', + 'pg_field_num', 'pg_field_prtlen', 'pg_field_size', 'pg_field_table', + 'pg_field_type', 'pg_field_type_oid', 'pg_free_result', + 'pg_freeresult', 'pg_get_notify', 'pg_get_pid', 'pg_get_result', + 'pg_getlastoid', 'pg_host', 'pg_insert', 'pg_last_error', + 'pg_last_notice', 'pg_last_oid', 'pg_loclose', 'pg_locreate', + 'pg_loexport', 'pg_loimport', 'pg_loopen', 'pg_loread', 'pg_loreadall', + 'pg_lounlink', 'pg_lowrite', 'pg_lo_close', 'pg_lo_create', + 'pg_lo_export', 'pg_lo_import', 'pg_lo_open', 'pg_lo_read', + 'pg_lo_read_all', 'pg_lo_seek', 'pg_lo_tell', 'pg_lo_unlink', + 'pg_lo_write', 'pg_meta_data', 'pg_numfields', 'pg_numrows', + 'pg_num_fields', 'pg_num_rows', 'pg_options', 'pg_parameter_status', + 'pg_pconnect', 'pg_ping', 'pg_port', 'pg_prepare', 'pg_put_line', + 'pg_query', 'pg_query_params', 'pg_result', 'pg_result_error', + 'pg_result_error_field', 'pg_result_seek', 'pg_result_status', + 'pg_select', 'pg_send_execute', 'pg_send_prepare', 'pg_send_query', + 'pg_send_query_params', 'pg_set_client_encoding', + 'pg_set_error_verbosity', 'pg_setclientencoding', 'pg_trace', + 'pg_transaction_status', 'pg_tty', 'pg_unescape_bytea', 'pg_untrace', + 'pg_update', 'pg_version', 'php_egg_logo_guid', 'php_ini_loaded_file', + 'php_ini_scanned_files', 'php_logo_guid', 'php_real_logo_guid', + 'php_sapi_name', 'php_strip_whitespace', 'php_uname', 'phpcredits', + 'phpdoc_xml_from_string', 'phpinfo', 'phpversion', 'pi', 'png2wbmp', + 'pop3_close', 'pop3_delete_message', 'pop3_get_account_size', + 'pop3_get_message', 'pop3_get_message_count', + 'pop3_get_message_header', 'pop3_get_message_ids', + 'pop3_get_message_size', 'pop3_get_message_sizes', 'pop3_open', + 'pop3_undelete', 'popen', 'pos', 'posix_ctermid', 'posix_errno', + 'posix_getcwd', 'posix_getegid', 'posix_geteuid', 'posix_getgid', + 'posix_getgrgid', 'posix_getgrnam', 'posix_getgroups', + 'posix_getlogin', 'posix_getpgid', 'posix_getpgrp', 'posix_getpid', + 'posix_getppid', 'posix_getpwnam', 'posix_getpwuid', 'posix_getrlimit', + 'posix_getsid', 'posix_getuid', 'posix_get_last_error', 'posix_isatty', + 'posix_kill', 'posix_mkfifo', 'posix_setegid', 'posix_seteuid', + 'posix_setgid', 'posix_setpgid', 'posix_setsid', 'posix_setuid', + 'posix_strerror', 'posix_times', 'posix_ttyname', 'posix_uname', 'pow', + 'preg_grep', 'preg_last_error', 'preg_match', 'preg_match_all', + 'preg_quote', 'preg_replace', 'preg_replace_callback', 'preg_split', + 'prev', 'print_r', 'printf', 'proc_close', 'proc_get_status', + 'proc_open', 'proc_terminate', 'putenv', 'quoted_printable_decode', + 'quotemeta', 'rad2deg', 'radius_acct_open', 'radius_add_server', + 'radius_auth_open', 'radius_close', 'radius_config', + 'radius_create_request', 'radius_cvt_addr', 'radius_cvt_int', + 'radius_cvt_string', 'radius_demangle', 'radius_demangle_mppe_key', + 'radius_get_attr', 'radius_get_vendor_attr', 'radius_put_addr', + 'radius_put_attr', 'radius_put_int', 'radius_put_string', + 'radius_put_vendor_addr', 'radius_put_vendor_attr', + 'radius_put_vendor_int', 'radius_put_vendor_string', + 'radius_request_authenticator', 'radius_send_request', + 'radius_server_secret', 'radius_strerror', 'rand', 'range', + 'rawurldecode', 'rawurlencode', 'read_exif_data', 'readdir', 'readfile', + 'readgzfile', 'readlink', 'realpath', 'reg_close_key', 'reg_create_key', + 'reg_enum_key', 'reg_enum_value', 'reg_get_value', 'reg_open_key', + 'reg_set_value', 'register_shutdown_function', + 'register_tick_function', 'rename', 'res_close', 'res_get', 'res_list', + 'res_list_type', 'res_open', 'res_set', 'reset', + 'restore_error_handler', 'restore_include_path', 'rewind', 'rewinddir', + 'rmdir', 'round', 'rsort', 'rtrim', 'runkit_class_adopt', + 'runkit_class_emancipate', 'runkit_constant_add', + 'runkit_constant_redefine', 'runkit_constant_remove', + 'runkit_default_property_add', 'runkit_function_add', + 'runkit_function_copy', 'runkit_function_redefine', + 'runkit_function_remove', 'runkit_function_rename', 'runkit_import', + 'runkit_lint', 'runkit_lint_file', 'runkit_method_add', + 'runkit_method_copy', 'runkit_method_redefine', + 'runkit_method_remove', 'runkit_method_rename', 'runkit_object_id', + 'runkit_return_value_used', 'runkit_sandbox_output_handler', + 'runkit_superglobals', 'runkit_zval_inspect', 'scandir', 'sem_acquire', + 'sem_get', 'sem_release', 'sem_remove', 'serialize', + 'session_cache_expire', 'session_cache_limiter', 'session_commit', + 'session_decode', 'session_destroy', 'session_encode', + 'session_get_cookie_params', 'session_id', 'session_is_registered', + 'session_module_name', 'session_name', 'session_regenerate_id', + 'session_register', 'session_save_path', 'session_set_cookie_params', + 'session_set_save_handler', 'session_start', 'session_unregister', + 'session_unset', 'session_write_close', 'set_content', + 'set_error_handler', 'set_file_buffer', 'set_include_path', + 'set_magic_quotes_runtime', 'set_socket_blocking', 'set_time_limit', + 'setcookie', 'setlocale', 'setrawcookie', 'settype', 'sha1', 'sha1_file', + 'shell_exec', 'shmop_close', 'shmop_delete', 'shmop_open', 'shmop_read', + 'shmop_size', 'shmop_write', 'shm_attach', 'shm_detach', 'shm_get_var', + 'shm_put_var', 'shm_remove', 'shm_remove_var', 'show_source', 'shuffle', + 'similar_text', 'simplexml_import_dom', 'simplexml_load_file', + 'simplexml_load_string', 'sin', 'sinh', 'sizeof', 'sleep', 'smtp_close', + 'smtp_cmd_data', 'smtp_cmd_mail', 'smtp_cmd_rcpt', 'smtp_connect', + 'snmp_get_quick_print', 'snmp_get_valueretrieval', 'snmp_read_mib', + 'snmp_set_quick_print', 'snmp_set_valueretrieval', 'snmp2_get', + 'snmp2_getnext', 'snmp2_real_walk', 'snmp2_set', 'snmp2_walk', + 'snmp3_get', 'snmp3_getnext', 'snmp3_real_walk', 'snmp3_set', + 'snmp3_walk', 'snmpget', 'snmpgetnext', 'snmprealwalk', 'snmpset', + 'snmpwalk', 'snmpwalkoid', 'socket_accept', 'socket_bind', + 'socket_clear_error', 'socket_close', 'socket_connect', + 'socket_create', 'socket_create_listen', 'socket_create_pair', + 'socket_getopt', 'socket_getpeername', 'socket_getsockname', + 'socket_get_option', 'socket_get_status', 'socket_iovec_add', + 'socket_iovec_alloc', 'socket_iovec_delete', 'socket_iovec_fetch', + 'socket_iovec_free', 'socket_iovec_set', 'socket_last_error', + 'socket_listen', 'socket_read', 'socket_readv', 'socket_recv', + 'socket_recvfrom', 'socket_recvmsg', 'socket_select', 'socket_send', + 'socket_sendmsg', 'socket_sendto', 'socket_setopt', 'socket_set_block', + 'socket_set_blocking', 'socket_set_nonblock', 'socket_set_option', + 'socket_set_timeout', 'socket_shutdown', 'socket_strerror', + 'socket_write', 'socket_writev', 'sort', 'soundex', 'spl_autoload', + 'spl_autoload_call', 'spl_autoload_extensions', + 'spl_autoload_functions', 'spl_autoload_register', + 'spl_autoload_unregister', 'spl_classes', 'spl_object_hash', 'split', + 'spliti', 'sprintf', 'sql_regcase', 'sqlite_array_query', + 'sqlite_busy_timeout', 'sqlite_changes', 'sqlite_close', + 'sqlite_column', 'sqlite_create_aggregate', 'sqlite_create_function', + 'sqlite_current', 'sqlite_error_string', 'sqlite_escape_string', + 'sqlite_exec', 'sqlite_factory', 'sqlite_fetch_all', + 'sqlite_fetch_array', 'sqlite_fetch_column_types', + 'sqlite_fetch_object', 'sqlite_fetch_single', 'sqlite_fetch_string', + 'sqlite_field_name', 'sqlite_has_more', 'sqlite_has_prev', + 'sqlite_last_error', 'sqlite_last_insert_rowid', 'sqlite_libencoding', + 'sqlite_libversion', 'sqlite_next', 'sqlite_num_fields', + 'sqlite_num_rows', 'sqlite_open', 'sqlite_popen', 'sqlite_prev', + 'sqlite_query', 'sqlite_rewind', 'sqlite_seek', 'sqlite_single_query', + 'sqlite_udf_decode_binary', 'sqlite_udf_encode_binary', + 'sqlite_unbuffered_query', 'sqlite_valid', 'sqrt', 'srand', 'sscanf', + 'ssh2_auth_hostbased_file', 'ssh2_auth_none', 'ssh2_auth_password', + 'ssh2_auth_pubkey_file', 'ssh2_connect', 'ssh2_exec', + 'ssh2_fetch_stream', 'ssh2_fingerprint', 'ssh2_forward_accept', + 'ssh2_forward_listen', 'ssh2_methods_negotiated', 'ssh2_poll', + 'ssh2_publickey_add', 'ssh2_publickey_init', 'ssh2_publickey_list', + 'ssh2_publickey_remove', 'ssh2_scp_recv', 'ssh2_scp_send', 'ssh2_sftp', + 'ssh2_sftp_lstat', 'ssh2_sftp_mkdir', 'ssh2_sftp_readlink', + 'ssh2_sftp_realpath', 'ssh2_sftp_rename', 'ssh2_sftp_rmdir', + 'ssh2_sftp_stat', 'ssh2_sftp_symlink', 'ssh2_sftp_unlink', + 'ssh2_shell', 'ssh2_tunnel', 'stat', 'stats_absolute_deviation', + 'stats_cdf_beta', 'stats_cdf_binomial', 'stats_cdf_cauchy', + 'stats_cdf_chisquare', 'stats_cdf_exponential', 'stats_cdf_f', + 'stats_cdf_gamma', 'stats_cdf_laplace', 'stats_cdf_logistic', + 'stats_cdf_negative_binomial', 'stats_cdf_noncentral_chisquare', + 'stats_cdf_noncentral_f', 'stats_cdf_noncentral_t', + 'stats_cdf_normal', 'stats_cdf_poisson', 'stats_cdf_t', + 'stats_cdf_uniform', 'stats_cdf_weibull', 'stats_covariance', + 'stats_dens_beta', 'stats_dens_cauchy', 'stats_dens_chisquare', + 'stats_dens_exponential', 'stats_dens_f', 'stats_dens_gamma', + 'stats_dens_laplace', 'stats_dens_logistic', 'stats_dens_normal', + 'stats_dens_pmf_binomial', 'stats_dens_pmf_hypergeometric', + 'stats_dens_pmf_negative_binomial', 'stats_dens_pmf_poisson', + 'stats_dens_t', 'stats_dens_uniform', 'stats_dens_weibull', + 'stats_harmonic_mean', 'stats_kurtosis', 'stats_rand_gen_beta', + 'stats_rand_gen_chisquare', 'stats_rand_gen_exponential', + 'stats_rand_gen_f', 'stats_rand_gen_funiform', 'stats_rand_gen_gamma', + 'stats_rand_gen_ipoisson', 'stats_rand_gen_iuniform', + 'stats_rand_gen_noncenral_f', 'stats_rand_gen_noncentral_chisquare', + 'stats_rand_gen_noncentral_t', 'stats_rand_gen_normal', + 'stats_rand_gen_t', 'stats_rand_getsd', 'stats_rand_ibinomial', + 'stats_rand_ibinomial_negative', 'stats_rand_ignlgi', + 'stats_rand_phrase_to_seeds', 'stats_rand_ranf', 'stats_rand_setall', + 'stats_skew', 'stats_standard_deviation', 'stats_stat_binomial_coef', + 'stats_stat_correlation', 'stats_stat_factorial', + 'stats_stat_independent_t', 'stats_stat_innerproduct', + 'stats_stat_paired_t', 'stats_stat_percentile', 'stats_stat_powersum', + 'stats_variance', 'strcasecmp', 'strchr', 'strcmp', 'strcoll', 'strcspn', + 'stream_bucket_append', 'stream_bucket_make_writeable', + 'stream_bucket_new', 'stream_bucket_prepend', 'stream_context_create', + 'stream_context_get_default', 'stream_context_get_options', + 'stream_context_set_default', 'stream_context_set_option', + 'stream_context_set_params', 'stream_copy_to_stream', + 'stream_encoding', 'stream_filter_append', 'stream_filter_prepend', + 'stream_filter_register', 'stream_filter_remove', + 'stream_get_contents', 'stream_get_filters', 'stream_get_line', + 'stream_get_meta_data', 'stream_get_transports', + 'stream_get_wrappers', 'stream_is_local', + 'stream_notification_callback', 'stream_register_wrapper', + 'stream_resolve_include_path', 'stream_select', 'stream_set_blocking', + 'stream_set_timeout', 'stream_set_write_buffer', + 'stream_socket_accept', 'stream_socket_client', + 'stream_socket_enable_crypto', 'stream_socket_get_name', + 'stream_socket_pair', 'stream_socket_recvfrom', + 'stream_socket_sendto', 'stream_socket_server', + 'stream_socket_shutdown', 'stream_supports_lock', + 'stream_wrapper_register', 'stream_wrapper_restore', + 'stream_wrapper_unregister', 'strftime', 'stripcslashes', 'stripos', + 'stripslashes', 'strip_tags', 'stristr', 'strlen', 'strnatcasecmp', + 'strnatcmp', 'strpbrk', 'strncasecmp', 'strncmp', 'strpos', 'strrchr', + 'strrev', 'strripos', 'strrpos', 'strspn', 'strstr', 'strtok', + 'strtolower', 'strtotime', 'strtoupper', 'strtr', 'strval', + 'str_ireplace', 'str_pad', 'str_repeat', 'str_replace', 'str_rot13', + 'str_split', 'str_shuffle', 'str_word_count', 'substr', + 'substr_compare', 'substr_count', 'substr_replace', 'svn_add', + 'svn_auth_get_parameter', 'svn_auth_set_parameter', 'svn_cat', + 'svn_checkout', 'svn_cleanup', 'svn_client_version', 'svn_commit', + 'svn_diff', 'svn_export', 'svn_fs_abort_txn', 'svn_fs_apply_text', + 'svn_fs_begin_txn2', 'svn_fs_change_node_prop', 'svn_fs_check_path', + 'svn_fs_contents_changed', 'svn_fs_copy', 'svn_fs_delete', + 'svn_fs_dir_entries', 'svn_fs_file_contents', 'svn_fs_file_length', + 'svn_fs_is_dir', 'svn_fs_is_file', 'svn_fs_make_dir', + 'svn_fs_make_file', 'svn_fs_node_created_rev', 'svn_fs_node_prop', + 'svn_fs_props_changed', 'svn_fs_revision_prop', + 'svn_fs_revision_root', 'svn_fs_txn_root', 'svn_fs_youngest_rev', + 'svn_import', 'svn_info', 'svn_log', 'svn_ls', 'svn_repos_create', + 'svn_repos_fs', 'svn_repos_fs_begin_txn_for_commit', + 'svn_repos_fs_commit_txn', 'svn_repos_hotcopy', 'svn_repos_open', + 'svn_repos_recover', 'svn_status', 'svn_update', 'symlink', + 'sys_get_temp_dir', 'syslog', 'system', 'tan', 'tanh', 'tempnam', + 'textdomain', 'thread_get', 'thread_include', 'thread_lock', + 'thread_lock_try', 'thread_mutex_destroy', 'thread_mutex_init', + 'thread_set', 'thread_start', 'thread_unlock', 'tidy_access_count', + 'tidy_clean_repair', 'tidy_config_count', 'tidy_diagnose', + 'tidy_error_count', 'tidy_get_body', 'tidy_get_config', + 'tidy_get_error_buffer', 'tidy_get_head', 'tidy_get_html', + 'tidy_get_html_ver', 'tidy_get_output', 'tidy_get_release', + 'tidy_get_root', 'tidy_get_status', 'tidy_getopt', 'tidy_is_xhtml', + 'tidy_is_xml', 'tidy_parse_file', 'tidy_parse_string', + 'tidy_repair_file', 'tidy_repair_string', 'tidy_warning_count', 'time', + 'timezone_abbreviations_list', 'timezone_identifiers_list', + 'timezone_name_from_abbr', 'timezone_name_get', 'timezone_offset_get', + 'timezone_open', 'timezone_transitions_get', 'tmpfile', + 'token_get_all', 'token_name', 'touch', 'trigger_error', + 'transliterate', 'transliterate_filters_get', 'trim', 'uasort', + 'ucfirst', 'ucwords', 'uksort', 'umask', 'uniqid', 'unixtojd', 'unlink', + 'unpack', 'unregister_tick_function', 'unserialize', 'unset', + 'urldecode', 'urlencode', 'user_error', 'use_soap_error_handler', + 'usleep', 'usort', 'utf8_decode', 'utf8_encode', 'var_dump', + 'var_export', 'variant_abs', 'variant_add', 'variant_and', + 'variant_cast', 'variant_cat', 'variant_cmp', + 'variant_date_from_timestamp', 'variant_date_to_timestamp', + 'variant_div', 'variant_eqv', 'variant_fix', 'variant_get_type', + 'variant_idiv', 'variant_imp', 'variant_int', 'variant_mod', + 'variant_mul', 'variant_neg', 'variant_not', 'variant_or', + 'variant_pow', 'variant_round', 'variant_set', 'variant_set_type', + 'variant_sub', 'variant_xor', 'version_compare', 'virtual', 'vfprintf', + 'vprintf', 'vsprintf', 'wddx_add_vars', 'wddx_deserialize', + 'wddx_packet_end', 'wddx_packet_start', 'wddx_serialize_value', + 'wddx_serialize_vars', 'win_beep', 'win_browse_file', + 'win_browse_folder', 'win_create_link', 'win_message_box', + 'win_play_wav', 'win_shell_execute', 'win32_create_service', + 'win32_delete_service', 'win32_get_last_control_message', + 'win32_ps_list_procs', 'win32_ps_stat_mem', 'win32_ps_stat_proc', + 'win32_query_service_status', 'win32_scheduler_delete_task', + 'win32_scheduler_enum_tasks', 'win32_scheduler_get_task_info', + 'win32_scheduler_run', 'win32_scheduler_set_task_info', + 'win32_set_service_status', 'win32_start_service', + 'win32_start_service_ctrl_dispatcher', 'win32_stop_service', + 'wordwrap', 'xml_error_string', 'xml_get_current_byte_index', + 'xml_get_current_column_number', 'xml_get_current_line_number', + 'xml_get_error_code', 'xml_parse', 'xml_parser_create', + 'xml_parser_create_ns', 'xml_parser_free', 'xml_parser_get_option', + 'xml_parser_set_option', 'xml_parse_into_struct', + 'xml_set_character_data_handler', 'xml_set_default_handler', + 'xml_set_element_handler', 'xml_set_end_namespace_decl_handler', 'xml_set_external_entity_ref_handler', - 'xml_set_notation_decl_handler','xml_set_object', + 'xml_set_notation_decl_handler', 'xml_set_object', 'xml_set_processing_instruction_handler', 'xml_set_start_namespace_decl_handler', - 'xml_set_unparsed_entity_decl_handler','xmldoc','xmldocfile', - 'xmlrpc_decode','xmlrpc_decode_request','xmlrpc_encode', - 'xmlrpc_encode_request','xmlrpc_get_type','xmlrpc_is_fault', + 'xml_set_unparsed_entity_decl_handler', 'xmldoc', 'xmldocfile', + 'xmlrpc_decode', 'xmlrpc_decode_request', 'xmlrpc_encode', + 'xmlrpc_encode_request', 'xmlrpc_get_type', 'xmlrpc_is_fault', 'xmlrpc_parse_method_descriptions', - 'xmlrpc_server_add_introspection_data','xmlrpc_server_call_method', - 'xmlrpc_server_create','xmlrpc_server_destroy', + 'xmlrpc_server_add_introspection_data', 'xmlrpc_server_call_method', + 'xmlrpc_server_create', 'xmlrpc_server_destroy', 'xmlrpc_server_register_introspection_callback', - 'xmlrpc_server_register_method','xmlrpc_set_type','xmltree', - 'xmlwriter_end_attribute','xmlwriter_end_cdata', - 'xmlwriter_end_comment','xmlwriter_end_document', - 'xmlwriter_end_dtd','xmlwriter_end_dtd_attlist', - 'xmlwriter_end_dtd_element','xmlwriter_end_dtd_entity', - 'xmlwriter_end_element','xmlwriter_end_pi','xmlwriter_flush', - 'xmlwriter_full_end_element','xmlwriter_open_memory', - 'xmlwriter_open_uri','xmlwriter_output_memory', - 'xmlwriter_set_indent','xmlwriter_set_indent_string', - 'xmlwriter_start_attribute','xmlwriter_start_attribute_ns', - 'xmlwriter_start_cdata','xmlwriter_start_comment', - 'xmlwriter_start_document','xmlwriter_start_dtd', - 'xmlwriter_start_dtd_attlist','xmlwriter_start_dtd_element', - 'xmlwriter_start_dtd_entity','xmlwriter_start_element', - 'xmlwriter_start_element_ns','xmlwriter_start_pi','xmlwriter_text', - 'xmlwriter_write_attribute','xmlwriter_write_attribute_ns', - 'xmlwriter_write_cdata','xmlwriter_write_comment', - 'xmlwriter_write_dtd','xmlwriter_write_dtd_attlist', - 'xmlwriter_write_dtd_element','xmlwriter_write_dtd_entity', - 'xmlwriter_write_element','xmlwriter_write_element_ns', - 'xmlwriter_write_pi','xmlwriter_write_raw','xpath_eval', - 'xpath_eval_expression','xpath_new_context','xpath_register_ns', - 'xpath_register_ns_auto','xptr_eval','xptr_new_context','yp_all', - 'yp_cat','yp_errno','yp_err_string','yp_first', - 'yp_get_default_domain','yp_master','yp_match','yp_next','yp_order', - 'zend_current_obfuscation_level','zend_get_cfg_var','zend_get_id', - 'zend_loader_current_file','zend_loader_enabled', - 'zend_loader_file_encoded','zend_loader_file_licensed', - 'zend_loader_install_license','zend_loader_version', - 'zend_logo_guid','zend_match_hostmasks','zend_obfuscate_class_name', - 'zend_obfuscate_function_name','zend_optimizer_version', - 'zend_runtime_obfuscate','zend_version','zip_close', - 'zip_entry_close','zip_entry_compressedsize', - 'zip_entry_compressionmethod','zip_entry_filesize','zip_entry_name', - 'zip_entry_open','zip_entry_read','zip_open','zip_read', + 'xmlrpc_server_register_method', 'xmlrpc_set_type', 'xmltree', + 'xmlwriter_end_attribute', 'xmlwriter_end_cdata', + 'xmlwriter_end_comment', 'xmlwriter_end_document', + 'xmlwriter_end_dtd', 'xmlwriter_end_dtd_attlist', + 'xmlwriter_end_dtd_element', 'xmlwriter_end_dtd_entity', + 'xmlwriter_end_element', 'xmlwriter_end_pi', 'xmlwriter_flush', + 'xmlwriter_full_end_element', 'xmlwriter_open_memory', + 'xmlwriter_open_uri', 'xmlwriter_output_memory', + 'xmlwriter_set_indent', 'xmlwriter_set_indent_string', + 'xmlwriter_start_attribute', 'xmlwriter_start_attribute_ns', + 'xmlwriter_start_cdata', 'xmlwriter_start_comment', + 'xmlwriter_start_document', 'xmlwriter_start_dtd', + 'xmlwriter_start_dtd_attlist', 'xmlwriter_start_dtd_element', + 'xmlwriter_start_dtd_entity', 'xmlwriter_start_element', + 'xmlwriter_start_element_ns', 'xmlwriter_start_pi', 'xmlwriter_text', + 'xmlwriter_write_attribute', 'xmlwriter_write_attribute_ns', + 'xmlwriter_write_cdata', 'xmlwriter_write_comment', + 'xmlwriter_write_dtd', 'xmlwriter_write_dtd_attlist', + 'xmlwriter_write_dtd_element', 'xmlwriter_write_dtd_entity', + 'xmlwriter_write_element', 'xmlwriter_write_element_ns', + 'xmlwriter_write_pi', 'xmlwriter_write_raw', 'xpath_eval', + 'xpath_eval_expression', 'xpath_new_context', 'xpath_register_ns', + 'xpath_register_ns_auto', 'xptr_eval', 'xptr_new_context', 'yp_all', + 'yp_cat', 'yp_errno', 'yp_err_string', 'yp_first', + 'yp_get_default_domain', 'yp_master', 'yp_match', 'yp_next', 'yp_order', + 'zend_current_obfuscation_level', 'zend_get_cfg_var', 'zend_get_id', + 'zend_loader_current_file', 'zend_loader_enabled', + 'zend_loader_file_encoded', 'zend_loader_file_licensed', + 'zend_loader_install_license', 'zend_loader_version', + 'zend_logo_guid', 'zend_match_hostmasks', 'zend_obfuscate_class_name', + 'zend_obfuscate_function_name', 'zend_optimizer_version', + 'zend_runtime_obfuscate', 'zend_version', 'zip_close', + 'zip_entry_close', 'zip_entry_compressedsize', + 'zip_entry_compressionmethod', 'zip_entry_filesize', 'zip_entry_name', + 'zip_entry_open', 'zip_entry_read', 'zip_open', 'zip_read', 'zlib_get_coding_type' - ), + ), 4 => array( 'DEFAULT_INCLUDE_PATH', 'DIRECTORY_SEPARATOR', 'E_ALL', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_CORE_ERROR', 'E_CORE_WARNING', 'E_ERROR', 'E_NOTICE', 'E_PARSE', 'E_STRICT', 'E_USER_ERROR', 'E_USER_NOTICE', 'E_USER_WARNING', 'E_WARNING', - 'ENT_COMPAT','ENT_QUOTES','ENT_NOQUOTES', + 'ENT_COMPAT', 'ENT_QUOTES', 'ENT_NOQUOTES', 'false', 'null', 'PEAR_EXTENSION_DIR', 'PEAR_INSTALL_DIR', 'PHP_BINDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_DATADIR', 'PHP_EXTENSION_DIR', 'PHP_LIBDIR', @@ -971,41 +971,41 @@ $language_data = array( 'PHP_OUTPUT_HANDLER_START', 'PHP_SYSCONFDIR', 'PHP_VERSION', 'true', '__CLASS__', '__FILE__', '__FUNCTION__', '__LINE__', '__METHOD__' - ) - ), + ) + ), 'SYMBOLS' => array( 1 => array( - '<'.'%', '<'.'%=', '%'.'>', '<'.'?', '<'.'?=', '?'.'>' - ), + '<' . '%', '<' . '%=', '%' . '>', '<' . '?', '<' . '?=', '?' . '>' + ), 0 => array( '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '|', '/', '<', '>', '=', '-', '+', '*', '.', ':', ',', ';' - ) - ), + ) + ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false, 1 => false, 2 => false, 3 => false, 4 => false - ), + ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #b1b100;', 2 => 'color: #000000; font-weight: bold;', 3 => 'color: #990000;', 4 => 'color: #009900; font-weight: bold;' - ), + ), 'COMMENTS' => array( 1 => 'color: #666666; font-style: italic;', 2 => 'color: #666666; font-style: italic;', 3 => 'color: #0000cc; font-style: italic;', 4 => 'color: #009933; font-style: italic;', 'MULTI' => 'color: #666666; font-style: italic;' - ), + ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;', 1 => 'color: #000099; font-weight: bold;', @@ -1015,31 +1015,31 @@ $language_data = array( 5 => 'color: #006699; font-weight: bold; font-style: italic;', 6 => 'color: #009933; font-weight: bold;', 'HARD' => 'color: #000099; font-weight: bold;' - ), + ), 'BRACKETS' => array( 0 => 'color: #009900;' - ), + ), 'STRINGS' => array( 0 => 'color: #0000ff;', 'HARD' => 'color: #0000ff;' - ), + ), 'NUMBERS' => array( 0 => 'color: #cc66cc;', GESHI_NUMBER_OCT_PREFIX => 'color: #208080;', GESHI_NUMBER_HEX_PREFIX => 'color: #208080;', GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;', - ), + ), 'METHODS' => array( 1 => 'color: #004000;', 2 => 'color: #004000;' - ), + ), 'SYMBOLS' => array( 0 => 'color: #339933;', 1 => 'color: #000000; font-weight: bold;' - ), + ), 'REGEXPS' => array( 0 => 'color: #000088;' - ), + ), 'SCRIPT' => array( 0 => '', 1 => '', @@ -1047,62 +1047,62 @@ $language_data = array( 3 => '', 4 => '', 5 => '' - ) - ), + ) + ), 'URLS' => array( 1 => '', 2 => '', 3 => 'http://www.php.net/{FNAMEL}', 4 => '' - ), + ), 'OOLANG' => true, 'OBJECT_SPLITTERS' => array( 1 => '->', 2 => '::' - ), + ), 'REGEXPS' => array( //Variables 0 => "[\\$]+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*" - ), + ), 'STRICT_MODE_APPLIES' => GESHI_MAYBE, 'SCRIPT_DELIMITERS' => array( 0 => array( - '<'.'?php' => '?'.'>' - ), + '<' . '?php' => '?' . '>' + ), 1 => array( - '<'.'?' => '?'.'>' - ), + '<' . '?' => '?' . '>' + ), 2 => array( - '<'.'%' => '%'.'>' - ), + '<' . '%' => '%' . '>' + ), 3 => array( '' - ), - 4 => "/(?P<\\?(?>php\b)?)(?:". - "(?>[^\"'?\\/<]+)|". - "\\?(?!>)|". - "(?>'(?>[^'\\\\]|\\\\'|\\\\\\\|\\\\)*')|". - "(?>\"(?>[^\"\\\\]|\\\\\"|\\\\\\\\|\\\\)*\")|". - "(?>\\/\\*(?>[^\\*]|(?!\\*\\/)\\*)*\\*\\/)|". - "\\/\\/(?>.*?(?:\\?>|$))|". - "#(?>.*?(?:\\?>|$))|". - "\\/(?=[^*\\/])|". - "<(?!<<)|". - "<<<(?P\w+)\s.*?\s\k". - ")*?(?P\\?>|\Z)/sm", - 5 => "/(?P<%)(?:". - "(?>[^\"'%\\/<]+)|". - "%(?!>)|". - "(?>'(?>[^'\\\\]|\\\\'|\\\\\\\|\\\\)*')|". - "(?>\"(?>[^\\\"\\\\]|\\\\\"|\\\\\\\\|\\\\)*\")|". - "(?>\\/\\*(?>[^\\*]|(?!\\*\\/)\\*)*\\*\\/)|". - "\\/\\/(?>.*?(?:%>|$))|". - "#(?>.*?(?:%>|$))|". - "\\/(?=[^*\\/])|". - "<(?!<<)|". - "<<<(?P\w+)\s.*?\s\k". - ")*?(?P%>|\Z)/sm", ), + 4 => "/(?P<\\?(?>php\b)?)(?:" . + "(?>[^\"'?\\/<]+)|" . + "\\?(?!>)|" . + "(?>'(?>[^'\\\\]|\\\\'|\\\\\\\|\\\\)*')|" . + "(?>\"(?>[^\"\\\\]|\\\\\"|\\\\\\\\|\\\\)*\")|" . + "(?>\\/\\*(?>[^\\*]|(?!\\*\\/)\\*)*\\*\\/)|" . + "\\/\\/(?>.*?(?:\\?>|$))|" . + "#(?>.*?(?:\\?>|$))|" . + "\\/(?=[^*\\/])|" . + "<(?!<<)|" . + "<<<(?P\w+)\s.*?\s\k" . + ")*?(?P\\?>|\Z)/sm", + 5 => "/(?P<%)(?:" . + "(?>[^\"'%\\/<]+)|" . + "%(?!>)|" . + "(?>'(?>[^'\\\\]|\\\\'|\\\\\\\|\\\\)*')|" . + "(?>\"(?>[^\\\"\\\\]|\\\\\"|\\\\\\\\|\\\\)*\")|" . + "(?>\\/\\*(?>[^\\*]|(?!\\*\\/)\\*)*\\*\\/)|" . + "\\/\\/(?>.*?(?:%>|$))|" . + "#(?>.*?(?:%>|$))|" . + "\\/(?=[^*\\/])|" . + "<(?!<<)|" . + "<<<(?P\w+)\s.*?\s\k" . + ")*?(?P%>|\Z)/sm", + ), 'HIGHLIGHT_STRICT_BLOCK' => array( 0 => true, 1 => true, @@ -1110,6 +1110,6 @@ $language_data = array( 3 => true, 4 => true, 5 => true - ), + ), 'TAB_WIDTH' => 4 ); diff --git a/includes/geshi/prose.php b/includes/geshi/prose.php index dbb97a3..f98be25 100644 --- a/includes/geshi/prose.php +++ b/includes/geshi/prose.php @@ -43,7 +43,7 @@ * ************************************************************************************/ -$language_data = array ( +$language_data = array( 'LANG_NAME' => 'Text', 'COMMENT_SINGLE' => array(), 'COMMENT_MULTI' => array(), @@ -54,7 +54,7 @@ $language_data = array ( 'SYMBOLS' => array(), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false - ), + ), 'STYLES' => array( 'KEYWORDS' => array(), 'COMMENTS' => array(), @@ -66,7 +66,7 @@ $language_data = array ( 'SYMBOLS' => array(), 'SCRIPT' => array(), 'REGEXPS' => array() - ), + ), 'URLS' => array(), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array(), @@ -77,6 +77,6 @@ $language_data = array ( 'PARSER_CONTROL' => array( 'ENABLE_FLAGS' => array( 'ALL' => GESHI_NEVER - ) ) + ) ); diff --git a/includes/geshi/python.php b/includes/geshi/python.php index 2c52484..5ecf062 100644 --- a/includes/geshi/python.php +++ b/includes/geshi/python.php @@ -43,7 +43,7 @@ * ************************************************************************************/ -$language_data = array ( +$language_data = array( 'LANG_NAME' => 'Python', 'COMMENT_SINGLE' => array(1 => '#'), 'COMMENT_MULTI' => array(), @@ -66,7 +66,7 @@ $language_data = array ( 'and', 'del', 'for', 'is', 'raise', 'assert', 'elif', 'from', 'lambda', 'return', 'break', 'else', 'global', 'not', 'try', 'class', 'except', 'if', 'or', 'while', 'continue', 'exec', 'import', 'pass', 'yield', 'def', 'finally', 'in', 'print', 'with', 'as', 'nonlocal' - ), + ), /* ** Set 2: builtins @@ -97,7 +97,7 @@ $language_data = array ( 'self', // other 'any', 'all' - ), + ), /* ** Set 3: standard library @@ -136,7 +136,7 @@ $language_data = array ( 'xmllib', 'xmlrpclib', 'zipfile', 'zipimport', 'zlib', // Python 3.0 'bytes', 'bytearray' - ), + ), /* ** Set 4: special methods @@ -166,77 +166,72 @@ $language_data = array ( '__len__', '__getitem__', '__setitem__', '__delitem__', '__iter__', '__contains__', '__getslice__', '__setslice__', '__delslice__', // Numeric types: http://python.org/doc/current/ref/numeric-types.html - '__abs__','__add__','__and__','__coerce__','__div__','__divmod__','__float__', - '__hex__','__iadd__','__isub__','__imod__','__idiv__','__ipow__','__iand__', - '__ior__','__ixor__', '__ilshift__','__irshift__','__invert__','__int__', - '__long__','__lshift__', - '__mod__','__mul__','__neg__','__oct__','__or__','__pos__','__pow__', - '__radd__','__rdiv__','__rdivmod__','__rmod__','__rpow__','__rlshift__','__rrshift__', - '__rshift__','__rsub__','__rmul__','__rand__','__rxor__','__ror__', - '__sub__','__xor__' - ) - ), + '__abs__', '__add__', '__and__', '__coerce__', '__div__', '__divmod__', '__float__', + '__hex__', '__iadd__', '__isub__', '__imod__', '__idiv__', '__ipow__', '__iand__', + '__ior__', '__ixor__', '__ilshift__', '__irshift__', '__invert__', '__int__', + '__long__', '__lshift__', + '__mod__', '__mul__', '__neg__', '__oct__', '__or__', '__pos__', '__pow__', + '__radd__', '__rdiv__', '__rdivmod__', '__rmod__', '__rpow__', '__rlshift__', '__rrshift__', + '__rshift__', '__rsub__', '__rmul__', '__rand__', '__rxor__', '__ror__', + '__sub__', '__xor__' + ) + ), 'SYMBOLS' => array( '<', '>', '=', '!', '<=', '>=', //·comparison·operators '~', '@', //·unary·operators ';', ',' //·statement·separator - ), + ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false, 1 => true, 2 => true, 3 => true, 4 => true - ), + ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #ff7700;font-weight:bold;', // Reserved 2 => 'color: #008000;', // Built-ins + self 3 => 'color: #dc143c;', // Standard lib 4 => 'color: #0000cd;' // Special methods - ), + ), 'COMMENTS' => array( 1 => 'color: #808080; font-style: italic;', 'MULTI' => 'color: #808080; font-style: italic;' - ), + ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;' - ), + ), 'BRACKETS' => array( 0 => 'color: black;' - ), + ), 'STRINGS' => array( 0 => 'color: #483d8b;' - ), + ), 'NUMBERS' => array( 0 => 'color: #ff4500;' - ), + ), 'METHODS' => array( 1 => 'color: black;' - ), + ), 'SYMBOLS' => array( 0 => 'color: #66cc66;' - ), - 'REGEXPS' => array( - ), - 'SCRIPT' => array( - ) ), + 'REGEXPS' => array(), + 'SCRIPT' => array() + ), 'URLS' => array( 1 => '', 2 => '', 3 => '', 4 => '' - ), + ), 'OOLANG' => true, 'OBJECT_SPLITTERS' => array( 1 => '.' - ), - 'REGEXPS' => array( - ), + ), + 'REGEXPS' => array(), 'STRICT_MODE_APPLIES' => GESHI_NEVER, - 'SCRIPT_DELIMITERS' => array( - ), - 'HIGHLIGHT_STRICT_BLOCK' => array( - ) + 'SCRIPT_DELIMITERS' => array(), + 'HIGHLIGHT_STRICT_BLOCK' => array() ); diff --git a/includes/geshi/text.php b/includes/geshi/text.php index dbb97a3..f98be25 100644 --- a/includes/geshi/text.php +++ b/includes/geshi/text.php @@ -43,7 +43,7 @@ * ************************************************************************************/ -$language_data = array ( +$language_data = array( 'LANG_NAME' => 'Text', 'COMMENT_SINGLE' => array(), 'COMMENT_MULTI' => array(), @@ -54,7 +54,7 @@ $language_data = array ( 'SYMBOLS' => array(), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false - ), + ), 'STYLES' => array( 'KEYWORDS' => array(), 'COMMENTS' => array(), @@ -66,7 +66,7 @@ $language_data = array ( 'SYMBOLS' => array(), 'SCRIPT' => array(), 'REGEXPS' => array() - ), + ), 'URLS' => array(), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array(), @@ -77,6 +77,6 @@ $language_data = array ( 'PARSER_CONTROL' => array( 'ENABLE_FLAGS' => array( 'ALL' => GESHI_NEVER - ) ) + ) ); diff --git a/includes/password.php b/includes/password.php index f1be384..260ae1d 100644 --- a/includes/password.php +++ b/includes/password.php @@ -12,7 +12,7 @@ namespace { if (!defined('PASSWORD_BCRYPT')) { /** * PHPUnit Process isolation caches constants, but not function declarations. - * So we need to check if the constants are defined separately from + * So we need to check if the constants are defined separately from * the functions to enable supporting process isolation in userland * code. */ @@ -27,8 +27,8 @@ namespace { * Hash the password using the specified algorithm * * @param string $password The password to hash - * @param int $algo The algorithm to use (Defined by PASSWORD_* constants) - * @param array $options The options for the algorithm to use + * @param int $algo The algorithm to use (Defined by PASSWORD_* constants) + * @param array $options The options for the algorithm to use * * @return string|false The hashed password, or false on error. */ @@ -38,7 +38,7 @@ namespace { return null; } if (is_null($password) || is_int($password)) { - $password = (string) $password; + $password = (string)$password; } if (!is_string($password)) { trigger_error("password_hash(): Password must be a string", E_USER_WARNING); @@ -53,7 +53,7 @@ namespace { case PASSWORD_BCRYPT: $cost = PASSWORD_BCRYPT_DEFAULT_COST; if (isset($options['cost'])) { - $cost = (int) $options['cost']; + $cost = (int)$options['cost']; if ($cost < 4 || $cost > 31) { trigger_error(sprintf("password_hash(): Invalid bcrypt cost parameter specified: %d", $cost), E_USER_WARNING); return null; @@ -79,11 +79,11 @@ namespace { case 'integer': case 'double': case 'string': - $salt = (string) $options['salt']; + $salt = (string)$options['salt']; break; case 'object': if (method_exists($options['salt'], '__tostring')) { - $salt = (string) $options['salt']; + $salt = (string)$options['salt']; break; } case 'array': @@ -169,11 +169,11 @@ namespace { * Verify a password against a hash using a timing attack resistant approach * * @param string $password The password to verify - * @param string $hash The hash to verify against + * @param string $hash The hash to verify against * * @return boolean If the password matches the hash */ - function password_verify(string $password, string $hash): bool { + function password_verify(string $password, string $hash) : bool { if (!function_exists('crypt')) { trigger_error("Crypt must be loaded for password_verify to function", E_USER_WARNING); return false; @@ -207,8 +207,8 @@ namespace PasswordCompat\binary { * * @param string $binary_string The input string * - * @internal * @return int The number of bytes + * @internal */ function _strlen($binary_string) { if (function_exists('mb_strlen')) { @@ -220,14 +220,14 @@ namespace PasswordCompat\binary { /** * Get a substring based on byte limits * + * @param string $binary_string The input string + * @param int $start + * @param int $length + * + * @return string The substring + * @internal * @see _strlen() * - * @param string $binary_string The input string - * @param int $start - * @param int $length - * - * @internal - * @return string The substring */ function _substr($binary_string, $start, $length) { if (function_exists('mb_substr')) { @@ -242,7 +242,7 @@ namespace PasswordCompat\binary { * @return boolean the check result */ function check() { - static $pass = NULL; + static $pass = null; if (is_null($pass)) { if (function_exists('crypt')) { diff --git a/index.php b/index.php index 067cccf..5ef1d8e 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,3 @@ - @@ -28,7 +27,7 @@ require_once('includes/captcha.php'); require_once('includes/functions.php'); require_once('includes/password.php'); -function verifyCaptcha() : string | bool { +function verifyCaptcha() : string|bool { global $cap_e; global $mode; global $recaptcha_secretkey; @@ -36,7 +35,7 @@ function verifyCaptcha() : string | bool { if ($cap_e == "on" && !isset($_SESSION['username'])) { if ($mode == "reCAPTCHA") { - $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$recaptcha_secretkey."&response=".$_POST['g-recaptcha-response']); + $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=" . $recaptcha_secretkey . "&response=" . $_POST['g-recaptcha-response']); $response = json_decode($response, true); if ($response["success"] == false) { // reCAPTCHA Errors @@ -48,7 +47,7 @@ function verifyCaptcha() : string | bool { }; } } else { - $scode = strtolower(htmlentities(Trim($_POST['scode']))); + $scode = strtolower(htmlentities(Trim($_POST['scode']))); $cap_code = strtolower($_SESSION['captcha']['code']); if ($cap_code !== $scode) { return $lang['image_wrong']; // Wrong captcha. @@ -80,19 +79,19 @@ function calculatePasteExpiry(string $expiry) { : null; } -function validatePasteFields() : string | null { +function validatePasteFields() : string|null { global $lang; global $pastelimit; if (empty($_POST["paste_data"]) || trim($_POST['paste_data'] === '')) { /* Empty paste input */ return $lang['empty_paste']; - } elseif(!isset($_POST['title'])) { /* No paste title POSTed */ + } elseif (!isset($_POST['title'])) { /* No paste title POSTed */ return $lang['error']; } elseif (empty($_POST["tags"])) { /* No tags provided */ return $lang['notags']; } elseif (strlen($_POST["title"]) > 70) { /* Paste title too long */ return $lang['titlelen']; - } elseif (mb_strlen($_POST["paste_data"], '8bit') > 1024 * 1024 * $pastelimit) { /* Paste size too big */ + } elseif (mb_strlen($_POST["paste_data"], '8bit') > 1024 * 1024 * $pastelimit) { /* Paste size too big */ return $lang['large_paste']; } @@ -103,26 +102,26 @@ function validatePasteFields() : string | null { header('Content-Type: text/html; charset=utf-8'); // Current date & user IP -$date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$date = date('jS F Y'); +$ip = $_SERVER['REMOTE_ADDR']; // Sitemap $site_sitemap_rows = $conn->query('SELECT * FROM sitemap_options LIMIT 1'); if ($row = $site_sitemap_rows->fetch()) { - $priority = $row['priority']; + $priority = $row['priority']; $changefreq = $row['changefreq']; } // Captcha $site_captcha_rows = $conn->query("SELECT * FROM captcha LIMIT 1"); if ($row = $site_captcha_rows->fetch()) { - $color = Trim($row['color']); - $mode = Trim($row['mode']); - $mul = Trim($row['mul']); + $color = Trim($row['color']); + $mode = Trim($row['mode']); + $mul = Trim($row['mul']); $allowed = Trim($row['allowed']); - $cap_e = Trim($row['cap_e']); - $recaptcha_sitekey = Trim($row['recaptcha_sitekey']); - $recaptcha_secretkey = Trim($row['recaptcha_secretkey']); + $cap_e = Trim($row['cap_e']); + $recaptcha_sitekey = Trim($row['recaptcha_sitekey']); + $recaptcha_secretkey = Trim($row['recaptcha_secretkey']); } if ($_SERVER['REQUEST_METHOD'] !== 'POST') { @@ -158,18 +157,18 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { $editing = isset($_POST['edit']); - $p_title = Trim(htmlspecialchars($_POST['title'])); + $p_title = Trim(htmlspecialchars($_POST['title'])); if (empty($p_title)) { $p_title = 'Untitled'; } - $p_content = htmlspecialchars($_POST['paste_data']); - $p_visible = Trim(htmlspecialchars($_POST['visibility'])); - $p_code = Trim(htmlspecialchars($_POST['format'])); - $p_expiry = Trim(htmlspecialchars($_POST['paste_expire_date'])); - $p_tagsys = Trim(htmlspecialchars($_POST['tags'])); - $p_tagsys = rtrim($p_tagsys, ','); + $p_content = htmlspecialchars($_POST['paste_data']); + $p_visible = Trim(htmlspecialchars($_POST['visibility'])); + $p_code = Trim(htmlspecialchars($_POST['format'])); + $p_expiry = Trim(htmlspecialchars($_POST['paste_expire_date'])); + $p_tagsys = Trim(htmlspecialchars($_POST['tags'])); + $p_tagsys = rtrim($p_tagsys, ','); $p_password = $_POST['pass']; if ($p_password == "" || $p_password == null) { $p_password = "NONE"; @@ -195,10 +194,10 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { // Set expiry time $expires = calculatePasteExpiry($p_expiry); - $p_date = date('jS F Y h:i:s A'); - $date = date('jS F Y'); - $now_time = mktime(date("H"), date("i"), date("s"), date("n"), date("j"), date("Y")); - $timeedit = gmmktime(date("H"), date("i"), date("s"), date("n"), date("j"), date("Y")); + $p_date = date('jS F Y h:i:s A'); + $date = date('jS F Y'); + $now_time = mktime(date("H"), date("i"), date("s"), date("n"), date("j"), date("Y")); + $timeedit = gmmktime(date("H"), date("i"), date("s"), date("n"), date("j"), date("Y")); // Edit existing paste or create new? if ($editing) { @@ -221,7 +220,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { "INSERT INTO pastes (title, content, visible, code, expiry, password, encrypt, member, date, ip, now_time, views, s_date, tagsys) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, '0', ?, ?)" ); - $statement->execute([$p_title,$p_content,$p_visible,$p_code,$expires,$p_password,$p_encrypt,$p_member,$p_date,$ip,$now_time,$date,$p_tagsys]); + $statement->execute([$p_title, $p_content, $p_visible, $p_code, $expires, $p_password, $p_encrypt, $p_member, $p_date, $ip, $now_time, $date, $p_tagsys]); $paste_id = intval($conn->lastInsertId()); /* returns the last inserted ID as per the query above */ if ($p_visible == '0') { addToSitemap($paste_id, $priority, $changefreq, $mod_rewrite); diff --git a/langs/bg.php b/langs/bg.php index c238ca5..cd5fc31 100644 --- a/langs/bg.php +++ b/langs/bg.php @@ -4,117 +4,117 @@ * Translated by Plamen Vasilev (Oct, 2017) */ $lang = array(); -$lang['banned'] = "Достъпа ви до " . $site_name . "е ограничен"; -$lang['expired'] = "Документа, който се опитваш да достъпиш е изтекъл."; -$lang['guestwelcome'] = $site_name . " ти позволява да публикуваш текст & код."; +$lang['banned'] = "Достъпа ви до " . $site_name . "е ограничен"; +$lang['expired'] = "Документа, който се опитваш да достъпиш е изтекъл."; +$lang['guestwelcome'] = $site_name . " ти позволява да публикуваш текст & код."; $lang['pleaseregister'] = "

    Влез или се Регистрирай за да публикуваш съдържание. Безплатно е."; $lang['registertoedit'] = "Влез или се Регистрирай за да редактираш или задържиш това съдържание."; -$lang['editpaste'] = "Редактирай"; -$lang['forkpaste'] = "Задръж"; -$lang['guestmsgtitle'] = $site_name . " е място за публикуване на код или текст за по-лесно отстраняване на грешки."; -$lang['guestmsgbody'] = "Влез или се Регистрай за да редактираш, изтриваш или преглеждаш хронология на твоето публикувано съдържание"; -$lang['emptypastebin'] = "Няма публикувано съдържание"; -$lang['siteprivate'] = "Този документ е частен."; -$lang['image_wrong'] = "Wrong captcha."; -$lang['missing-input-response'] = "The reCAPTCHA response parameter is missing. Please verify your PASTE settings."; -$lang['missing-input-secret'] = "The reCAPTCHA secret parameter is missing. Please add it to your PASTE settings."; -$lang['missing-input-response'] = "The reCAPTCHA response parameter is invalid. Please try to complete the reCAPTCHA again."; -$lang['invalid-input-secret'] = "The reCAPTCHA secret parameter is invalid or malformed. Please double check your PASTE settings."; -$lang['empty_paste'] = "Не може да добавите публикацията без съдържание"; -$lang['large_paste'] = "Вашата публикация е прекалено голяма. Максималния размер е " . $pastelimit . "MB"; +$lang['editpaste'] = "Редактирай"; +$lang['forkpaste'] = "Задръж"; +$lang['guestmsgtitle'] = $site_name . " е място за публикуване на код или текст за по-лесно отстраняване на грешки."; +$lang['guestmsgbody'] = "Влез или се Регистрай за да редактираш, изтриваш или преглеждаш хронология на твоето публикувано съдържание"; +$lang['emptypastebin'] = "Няма публикувано съдържание"; +$lang['siteprivate'] = "Този документ е частен."; +$lang['image_wrong'] = "Wrong captcha."; +$lang['missing-input-response'] = "The reCAPTCHA response parameter is missing. Please verify your PASTE settings."; +$lang['missing-input-secret'] = "The reCAPTCHA secret parameter is missing. Please add it to your PASTE settings."; +$lang['missing-input-response'] = "The reCAPTCHA response parameter is invalid. Please try to complete the reCAPTCHA again."; +$lang['invalid-input-secret'] = "The reCAPTCHA secret parameter is invalid or malformed. Please double check your PASTE settings."; +$lang['empty_paste'] = "Не може да добавите публикацията без съдържание"; +$lang['large_paste'] = "Вашата публикация е прекалено голяма. Максималния размер е " . $pastelimit . "MB"; $lang['paste_db_error'] = "Unable to post to database."; -$lang['error'] = "Something went wrong."; -$lang['archive'] = "Pastes Archive"; -$lang['contact'] = "Contact Us"; -$lang['full_name'] = "Your full name is required."; -$lang['email'] = "Your email address is required."; -$lang['email_invalid'] = "Your email address seems to be invalid."; -$lang['message'] = "Your message is required."; +$lang['error'] = "Something went wrong."; +$lang['archive'] = "Pastes Archive"; +$lang['contact'] = "Contact Us"; +$lang['full_name'] = "Your full name is required."; +$lang['email'] = "Your email address is required."; +$lang['email_invalid'] = "Your email address seems to be invalid."; +$lang['message'] = "Your message is required."; $lang['login/register'] = "Вход/Регистрация"; -$lang['rememberme'] = "Keep me signed in."; -$lang['mail_acc_con'] = "$site_name Account Confirmation"; -$lang['mail_suc'] = "На имейла адреса ти е изпратен код за верификация."; -$lang['email_ver'] = "Имейла вече е бил потвърден."; -$lang['email_not'] = "Имейла не е намерен."; -$lang['pass_change'] = "Паролата е променена успешно и е изпратена на имейла ти."; -$lang['notverified'] = "Акаунта не е верифициран."; -$lang['incorrect'] = "Невалидни Потребител/Парола"; -$lang['missingfields'] = "All fields must be filled out."; -$lang['userexists'] = "Това потребителско име вече се използва"; -$lang['emailexists'] = "Този имейл адрес вече съществува в системата"; -$lang['registered'] = "Акаунтът ти беше регистриран успешно"; -$lang['usrinvalid'] = "Your username can only contain letters or numbers."; -$lang['mypastes'] = "My Pastes"; -$lang['pastedeleted'] = "Paste deleted."; -$lang['databaseerror'] = "Unable to post to database."; -$lang['userchanged'] = "Username changed successfully."; -$lang['usernotvalid'] = "Username not vaild."; -$lang['privatepaste'] = "This is a private paste."; -$lang['wrongpassword'] = 'Грешна парола.'; -$lang['pwdprotected'] = 'Съдържание с парола'; -$lang['notfound'] = "Not found"; -$lang['wrongpwd'] = "Въведената парола е грешна. Опитай отново."; -$lang['myprofile'] = "My Profile"; -$lang['profileerror'] = "Unable to update the profile information "; -$lang['profileupdated'] = "Your profile information is updated "; -$lang['oldpasswrong'] = "Your old password is wrong."; -$lang['archives'] = "Pastes Archive"; -$lang['archivestitle'] = "This page contains the most recently created 100 public pastes."; -$lang['pastetitle'] = "Paste Title"; -$lang['pastetime'] = "Paste Time"; -$lang['pastesyntax'] = "Paste Syntax"; -$lang['pasteviews'] = "Paste Views"; -$lang['wentwrong'] = "Something went wrong."; -$lang['versent'] = "A verification email has been sent to your email address."; -$lang['modpaste'] = "Modify Paste"; -$lang['newpaste'] = "New Paste"; -$lang['highlighting'] = "Syntax Highlighting"; -$lang['expiration'] = "Paste Expiration"; -$lang['visibility'] = "Paste Visibility"; -$lang['pwopt'] = "Password (Optional)"; -$lang['encrypt'] = "Encrypt in database"; -$lang['entercode'] = "Enter Code"; -$lang['almostthere'] = "Almost there. One more step to go."; -$lang['username'] = "Username"; -$lang['autogen'] = "Auto generated name"; -$lang['setuser'] = "Set your Username"; -$lang['keepuser'] = "Keep autogenerated name"; -$lang['enterpwd'] = "Enter the password"; -$lang['totalpastes'] = "Total Pastes:"; -$lang['membtype'] = "Membership Type:"; -$lang['email'] = "Email"; -$lang['fullname'] = "Full Name"; -$lang['chgpwd'] = "Change Password"; -$lang['curpwd'] = "Current Password"; -$lang['newpwd'] = "New Password"; -$lang['confpwd'] = "Confirm Password"; -$lang['mypastes'] = "My Pastes"; -$lang['viewpastes'] = "View all my pastes"; -$lang['recentpastes'] = "Recent Pastes"; +$lang['rememberme'] = "Keep me signed in."; +$lang['mail_acc_con'] = "$site_name Account Confirmation"; +$lang['mail_suc'] = "На имейла адреса ти е изпратен код за верификация."; +$lang['email_ver'] = "Имейла вече е бил потвърден."; +$lang['email_not'] = "Имейла не е намерен."; +$lang['pass_change'] = "Паролата е променена успешно и е изпратена на имейла ти."; +$lang['notverified'] = "Акаунта не е верифициран."; +$lang['incorrect'] = "Невалидни Потребител/Парола"; +$lang['missingfields'] = "All fields must be filled out."; +$lang['userexists'] = "Това потребителско име вече се използва"; +$lang['emailexists'] = "Този имейл адрес вече съществува в системата"; +$lang['registered'] = "Акаунтът ти беше регистриран успешно"; +$lang['usrinvalid'] = "Your username can only contain letters or numbers."; +$lang['mypastes'] = "My Pastes"; +$lang['pastedeleted'] = "Paste deleted."; +$lang['databaseerror'] = "Unable to post to database."; +$lang['userchanged'] = "Username changed successfully."; +$lang['usernotvalid'] = "Username not vaild."; +$lang['privatepaste'] = "This is a private paste."; +$lang['wrongpassword'] = 'Грешна парола.'; +$lang['pwdprotected'] = 'Съдържание с парола'; +$lang['notfound'] = "Not found"; +$lang['wrongpwd'] = "Въведената парола е грешна. Опитай отново."; +$lang['myprofile'] = "My Profile"; +$lang['profileerror'] = "Unable to update the profile information "; +$lang['profileupdated'] = "Your profile information is updated "; +$lang['oldpasswrong'] = "Your old password is wrong."; +$lang['archives'] = "Pastes Archive"; +$lang['archivestitle'] = "This page contains the most recently created 100 public pastes."; +$lang['pastetitle'] = "Paste Title"; +$lang['pastetime'] = "Paste Time"; +$lang['pastesyntax'] = "Paste Syntax"; +$lang['pasteviews'] = "Paste Views"; +$lang['wentwrong'] = "Something went wrong."; +$lang['versent'] = "A verification email has been sent to your email address."; +$lang['modpaste'] = "Modify Paste"; +$lang['newpaste'] = "New Paste"; +$lang['highlighting'] = "Syntax Highlighting"; +$lang['expiration'] = "Paste Expiration"; +$lang['visibility'] = "Paste Visibility"; +$lang['pwopt'] = "Password (Optional)"; +$lang['encrypt'] = "Encrypt in database"; +$lang['entercode'] = "Enter Code"; +$lang['almostthere'] = "Almost there. One more step to go."; +$lang['username'] = "Username"; +$lang['autogen'] = "Auto generated name"; +$lang['setuser'] = "Set your Username"; +$lang['keepuser'] = "Keep autogenerated name"; +$lang['enterpwd'] = "Enter the password"; +$lang['totalpastes'] = "Total Pastes:"; +$lang['membtype'] = "Membership Type:"; +$lang['email'] = "Email"; +$lang['fullname'] = "Full Name"; +$lang['chgpwd'] = "Change Password"; +$lang['curpwd'] = "Current Password"; +$lang['newpwd'] = "New Password"; +$lang['confpwd'] = "Confirm Password"; +$lang['mypastes'] = "My Pastes"; +$lang['viewpastes'] = "View all my pastes"; +$lang['recentpastes'] = "Recent Pastes"; $lang['user_public_pastes'] = "'s Pastes"; -$lang['yourpastes'] = "Your Pastes"; -$lang['mypastestitle'] = "All of your pastes, in one place."; -$lang['delete'] = "Delete"; -$lang['highlighted'] = "The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac)"; -$lang['newpaste'] = "New Paste"; -$lang['download'] = "Download"; -$lang['showlineno'] = "Покажи/Скрий номерата на редовете"; -$lang['copyto'] = "Копирай съдържанието в клипборда"; -$lang['rawpaste'] = "Raw Paste"; -$lang['membersince'] = "Joined: "; +$lang['yourpastes'] = "Your Pastes"; +$lang['mypastestitle'] = "All of your pastes, in one place."; +$lang['delete'] = "Delete"; +$lang['highlighted'] = "The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac)"; +$lang['newpaste'] = "New Paste"; +$lang['download'] = "Download"; +$lang['showlineno'] = "Покажи/Скрий номерата на редовете"; +$lang['copyto'] = "Копирай съдържанието в клипборда"; +$lang['rawpaste'] = "Raw Paste"; +$lang['membersince'] = "Joined: "; $lang['delete_error_invalid'] = "Error: Paste not deleted because it does not exist or you do not own the paste."; -$lang['not_logged_in'] = "Грешка: Нужно е да си логнат в системата, за да направиш това."; -$lang['public'] = "Public"; -$lang['unlisted'] = "Unlisted"; -$lang['private'] = "Private"; -$lang['hello'] = "Hello"; +$lang['not_logged_in'] = "Грешка: Нужно е да си логнат в системата, за да направиш това."; +$lang['public'] = "Public"; +$lang['unlisted'] = "Unlisted"; +$lang['private'] = "Private"; +$lang['hello'] = "Hello"; $lang['profile-message'] = "This is your profile page where you can manage your pastes.
    All of your public, private and unlisted pastes will be shown here. You can also delete your pastes from this page. If other users visit your page they will only see pastes you have set public."; -$lang['profile-stats'] = "Some of your statistics:"; +$lang['profile-stats'] = "Some of your statistics:"; $lang['profile-total-pastes'] = "Total Pastes:"; -$lang['profile-total-pub'] = "Total public pastes:"; -$lang['profile-total-unl'] = "Total unlisted pastes:"; -$lang['profile-total-pri'] = "Total private pastes:"; +$lang['profile-total-pub'] = "Total public pastes:"; +$lang['profile-total-unl'] = "Total unlisted pastes:"; +$lang['profile-total-pri'] = "Total private pastes:"; $lang['profile-total-views'] = "Total views of all your pastes:"; $lang['embed-hosted-by'] = "hosted by"; -$lang['view-raw'] = "Покажи в необработен текст"; +$lang['view-raw'] = "Покажи в необработен текст"; ?> diff --git a/langs/br.php b/langs/br.php index 8d1eebf..f209094 100644 --- a/langs/br.php +++ b/langs/br.php @@ -5,117 +5,117 @@ $lang = array(); -$lang['banned'] = "Você foi banido do " . $site_name; -$lang['expired'] = "O paste que você procura não existe mais."; -$lang['guestwelcome'] = $site_name . " é um lugar para guardar e compartilhar seus pastes e codigos."; +$lang['banned'] = "Você foi banido do " . $site_name; +$lang['expired'] = "O paste que você procura não existe mais."; +$lang['guestwelcome'] = $site_name . " é um lugar para guardar e compartilhar seus pastes e codigos."; $lang['pleaseregister'] = "

    Entrar ou Cadastre-se para criar um novo paste."; $lang['registertoedit'] = "Entrre ou Cadastre-se para editar ou duplicar este paste."; -$lang['editpaste'] = "Editar"; -$lang['forkpaste'] = "Duplicar"; -$lang['guestmsgtitle'] = $site_name . ", um lugar para salvar e compartilhar textos e codigos."; -$lang['guestmsgbody'] = "Entrar ou Cadastre-se para editar e acomparnhar os seus pastes."; -$lang['emptypastebin'] = "Este pastebin está vazio"; -$lang['siteprivate'] = "Este é um paste privado."; -$lang['image_wrong'] = "Captha invalido."; -$lang['missing-input-response'] = "O parametro de resposta do reCapcha está faltando. Por favor verifique as configurações do seu paste."; -$lang['missing-input-secret'] = "O parametro de seguredo do reCapcha está faltando. Por favor verifique as configurações do seu paste."; -$lang['missing-input-response'] = "O parametro de resposta do reCapcha é inválido. Por favor tente novamente."; -$lang['invalid-input-secret'] = "O parametro de seguredo do reCapcha está faltando ou é inválido. Please double check your PASTE settings."; -$lang['empty_paste'] = "Você não pode publicar um paste vazio."; -$lang['large_paste'] = "O seu paste é muito grande. O tamanho maximo é: " . $pastelimit . "MB"; +$lang['editpaste'] = "Editar"; +$lang['forkpaste'] = "Duplicar"; +$lang['guestmsgtitle'] = $site_name . ", um lugar para salvar e compartilhar textos e codigos."; +$lang['guestmsgbody'] = "Entrar ou Cadastre-se para editar e acomparnhar os seus pastes."; +$lang['emptypastebin'] = "Este pastebin está vazio"; +$lang['siteprivate'] = "Este é um paste privado."; +$lang['image_wrong'] = "Captha invalido."; +$lang['missing-input-response'] = "O parametro de resposta do reCapcha está faltando. Por favor verifique as configurações do seu paste."; +$lang['missing-input-secret'] = "O parametro de seguredo do reCapcha está faltando. Por favor verifique as configurações do seu paste."; +$lang['missing-input-response'] = "O parametro de resposta do reCapcha é inválido. Por favor tente novamente."; +$lang['invalid-input-secret'] = "O parametro de seguredo do reCapcha está faltando ou é inválido. Please double check your PASTE settings."; +$lang['empty_paste'] = "Você não pode publicar um paste vazio."; +$lang['large_paste'] = "O seu paste é muito grande. O tamanho maximo é: " . $pastelimit . "MB"; $lang['paste_db_error'] = "Não conseguimos eviar seu paste para o banco de dados."; -$lang['error'] = "Algo deu errado."; -$lang['archive'] = "Arquivo de pastes"; -$lang['contact'] = "Entre em contato"; -$lang['full_name'] = "É nescessario inserir o seu nome completo."; -$lang['email'] = "É nescessario inserir o seu email."; -$lang['email_invalid'] = "O seu endereçõ de email não parece ser válido."; -$lang['message'] = "É nescessario inserir uma mensagem válida."; +$lang['error'] = "Algo deu errado."; +$lang['archive'] = "Arquivo de pastes"; +$lang['contact'] = "Entre em contato"; +$lang['full_name'] = "É nescessario inserir o seu nome completo."; +$lang['email'] = "É nescessario inserir o seu email."; +$lang['email_invalid'] = "O seu endereçõ de email não parece ser válido."; +$lang['message'] = "É nescessario inserir uma mensagem válida."; $lang['login/register'] = "Entrar/Cadastro"; -$lang['rememberme'] = "Manter me logado."; -$lang['mail_acc_con'] = "Informações da conta em $site_name"; -$lang['mail_suc'] = "O seu codigo de verificção foi enviado ao email preenchido."; -$lang['email_ver'] = "Email já verificado."; -$lang['email_not'] = "Email não encontrado, já fez o seu cadastro?."; -$lang['pass_change'] = "Senha alterada com sucesso, a enviamos para o seu email."; -$lang['notverified'] = "Conta não verificada."; -$lang['incorrect'] = "Senha ou usuario incorretos"; -$lang['missingfields'] = "Todos os campos devem ser preenchidos."; -$lang['userexists'] = "Nome de usuario já em uso."; -$lang['emailexists'] = "Email já em uso."; -$lang['registered'] = "Conta cadastrada com sucesso."; -$lang['usrinvalid'] = "Seu nome de usuario deve conter apenas letras e numeros."; -$lang['mypastes'] = "Meus pastes"; -$lang['pastedeleted'] = "Paste apagado."; -$lang['databaseerror'] = "Incapaz de enviar para o banco de dados."; -$lang['userchanged'] = "Nome de usuario alterado com sucesso."; -$lang['usernotvalid'] = "Nome de usuario inválido."; -$lang['privatepaste'] = "Este paste é privado."; -$lang['wrongpassword'] = 'Senha incorreta.'; -$lang['pwdprotected'] = 'Testo protegido por senha'; -$lang['notfound'] = "Não encontrado"; -$lang['wrongpwd'] = "Senha inválida, tente novamente."; -$lang['myprofile'] = "Meu perfil"; -$lang['profileerror'] = "Incapaz de atualizar as informações do perfil."; -$lang['profileupdated'] = "Informações do perfil atualizadas."; -$lang['oldpasswrong'] = "Senha antiga incorreta."; -$lang['archives'] = "Arquivo de pastes"; -$lang['archivestitle'] = "Esta pagina contém os 100 pastes mais recentes."; -$lang['pastetitle'] = "Nome do paste"; -$lang['pastetime'] = "Momento de publicação do paste"; -$lang['pastesyntax'] = "Sintaxe do paste"; -$lang['pasteviews'] = "Visualizações do paste"; -$lang['wentwrong'] = "Algo deu errado."; -$lang['versent'] = "Um email de verificação foi enviado ao seu endereço de email."; -$lang['modpaste'] = "Modificar paste"; -$lang['newpaste'] = "Novo paste"; -$lang['highlighting'] = "Destaque de síntaxe"; -$lang['expiration'] = "Expiraçaão do paste"; -$lang['visibility'] = "Visibilidade do paste"; -$lang['pwopt'] = "Senha (Opcional)"; -$lang['encrypt'] = "Encriptar no banco de dados"; -$lang['entercode'] = "Entre o codigo"; -$lang['almostthere'] = "Quase lá, apenas mais um passo."; -$lang['username'] = "Nome de usuario"; -$lang['autogen'] = "Nome Gerado automaticamente"; -$lang['setuser'] = "Defina o seu nome de usuario"; -$lang['keepuser'] = "Manter nome gerado automaticamente"; -$lang['enterpwd'] = "Entre sua senha"; -$lang['totalpastes'] = "Total de pastes:"; -$lang['membtype'] = "Tipo de Membro:"; -$lang['email'] = "Email"; -$lang['fullname'] = "Nome completo"; -$lang['chgpwd'] = "Mudar senha"; -$lang['curpwd'] = "Senha atual"; -$lang['newpwd'] = "Nova senha"; -$lang['confpwd'] = "Confirmar senha"; -$lang['mypastes'] = "Meus pastes"; -$lang['viewpastes'] = "Ver todos os meus pastes"; -$lang['recentpastes'] = "pastes recentes"; +$lang['rememberme'] = "Manter me logado."; +$lang['mail_acc_con'] = "Informações da conta em $site_name"; +$lang['mail_suc'] = "O seu codigo de verificção foi enviado ao email preenchido."; +$lang['email_ver'] = "Email já verificado."; +$lang['email_not'] = "Email não encontrado, já fez o seu cadastro?."; +$lang['pass_change'] = "Senha alterada com sucesso, a enviamos para o seu email."; +$lang['notverified'] = "Conta não verificada."; +$lang['incorrect'] = "Senha ou usuario incorretos"; +$lang['missingfields'] = "Todos os campos devem ser preenchidos."; +$lang['userexists'] = "Nome de usuario já em uso."; +$lang['emailexists'] = "Email já em uso."; +$lang['registered'] = "Conta cadastrada com sucesso."; +$lang['usrinvalid'] = "Seu nome de usuario deve conter apenas letras e numeros."; +$lang['mypastes'] = "Meus pastes"; +$lang['pastedeleted'] = "Paste apagado."; +$lang['databaseerror'] = "Incapaz de enviar para o banco de dados."; +$lang['userchanged'] = "Nome de usuario alterado com sucesso."; +$lang['usernotvalid'] = "Nome de usuario inválido."; +$lang['privatepaste'] = "Este paste é privado."; +$lang['wrongpassword'] = 'Senha incorreta.'; +$lang['pwdprotected'] = 'Testo protegido por senha'; +$lang['notfound'] = "Não encontrado"; +$lang['wrongpwd'] = "Senha inválida, tente novamente."; +$lang['myprofile'] = "Meu perfil"; +$lang['profileerror'] = "Incapaz de atualizar as informações do perfil."; +$lang['profileupdated'] = "Informações do perfil atualizadas."; +$lang['oldpasswrong'] = "Senha antiga incorreta."; +$lang['archives'] = "Arquivo de pastes"; +$lang['archivestitle'] = "Esta pagina contém os 100 pastes mais recentes."; +$lang['pastetitle'] = "Nome do paste"; +$lang['pastetime'] = "Momento de publicação do paste"; +$lang['pastesyntax'] = "Sintaxe do paste"; +$lang['pasteviews'] = "Visualizações do paste"; +$lang['wentwrong'] = "Algo deu errado."; +$lang['versent'] = "Um email de verificação foi enviado ao seu endereço de email."; +$lang['modpaste'] = "Modificar paste"; +$lang['newpaste'] = "Novo paste"; +$lang['highlighting'] = "Destaque de síntaxe"; +$lang['expiration'] = "Expiraçaão do paste"; +$lang['visibility'] = "Visibilidade do paste"; +$lang['pwopt'] = "Senha (Opcional)"; +$lang['encrypt'] = "Encriptar no banco de dados"; +$lang['entercode'] = "Entre o codigo"; +$lang['almostthere'] = "Quase lá, apenas mais um passo."; +$lang['username'] = "Nome de usuario"; +$lang['autogen'] = "Nome Gerado automaticamente"; +$lang['setuser'] = "Defina o seu nome de usuario"; +$lang['keepuser'] = "Manter nome gerado automaticamente"; +$lang['enterpwd'] = "Entre sua senha"; +$lang['totalpastes'] = "Total de pastes:"; +$lang['membtype'] = "Tipo de Membro:"; +$lang['email'] = "Email"; +$lang['fullname'] = "Nome completo"; +$lang['chgpwd'] = "Mudar senha"; +$lang['curpwd'] = "Senha atual"; +$lang['newpwd'] = "Nova senha"; +$lang['confpwd'] = "Confirmar senha"; +$lang['mypastes'] = "Meus pastes"; +$lang['viewpastes'] = "Ver todos os meus pastes"; +$lang['recentpastes'] = "pastes recentes"; $lang['user_public_pastes'] = " publicou:"; -$lang['yourpastes'] = "Seus pastes"; -$lang['mypastestitle'] = "Todos os seus pastes, em um só lugar."; -$lang['delete'] = "Apagar"; -$lang['highlighted'] = "O paste abaixo está selecionado, pressione Ctrl+C Para copiar para a area de transferencia. (⌘+C no mac)"; -$lang['newpaste'] = "Novo paste"; -$lang['download'] = "Baixar"; -$lang['showlineno'] = "Mostrar/Esconder numero da linha"; -$lang['copyto'] = "Copiar paste para a area de transferência"; -$lang['rawpaste'] = "Novo texto bruto"; -$lang['membersince'] = "Se cadastrou em: "; +$lang['yourpastes'] = "Seus pastes"; +$lang['mypastestitle'] = "Todos os seus pastes, em um só lugar."; +$lang['delete'] = "Apagar"; +$lang['highlighted'] = "O paste abaixo está selecionado, pressione Ctrl+C Para copiar para a area de transferencia. (⌘+C no mac)"; +$lang['newpaste'] = "Novo paste"; +$lang['download'] = "Baixar"; +$lang['showlineno'] = "Mostrar/Esconder numero da linha"; +$lang['copyto'] = "Copiar paste para a area de transferência"; +$lang['rawpaste'] = "Novo texto bruto"; +$lang['membersince'] = "Se cadastrou em: "; $lang['delete_error_invalid'] = "Erro: paste não foi apagado por que você não é dono dele ou ele nao existe mais."; -$lang['not_logged_in'] = "Erro: Você deve estar logado para poder fazer isso."; -$lang['public'] = "Publico"; -$lang['unlisted'] = "Não listado"; -$lang['private'] = "Privado"; -$lang['hello'] = "Olá"; +$lang['not_logged_in'] = "Erro: Você deve estar logado para poder fazer isso."; +$lang['public'] = "Publico"; +$lang['unlisted'] = "Não listado"; +$lang['private'] = "Privado"; +$lang['hello'] = "Olá"; $lang['profile-message'] = "Esta é a pagina do seu perfil, onde você pode ver e adminnistrar todos os seus pastes.
    Todos os seus pastes, publicos, privados e não listados serão mostrados aqui. Você também pode deletar os seus pastes nesta pagina. Se outros usuários acessarem esta pagina eles verão apenas seus pastes públicos."; -$lang['profile-stats'] = "Algumas de suas estatísticas:"; +$lang['profile-stats'] = "Algumas de suas estatísticas:"; $lang['profile-total-pastes'] = "Numero de pastes:"; -$lang['profile-total-pub'] = "Numero de pastes públicos:"; -$lang['profile-total-unl'] = "Numero de pastes não listados:"; -$lang['profile-total-pri'] = "Numero de pastes privados:"; +$lang['profile-total-pub'] = "Numero de pastes públicos:"; +$lang['profile-total-unl'] = "Numero de pastes não listados:"; +$lang['profile-total-pri'] = "Numero de pastes privados:"; $lang['profile-total-views'] = "Numero de visualizações nos seus pastes:"; $lang['embed-hosted-by'] = "hospedado por"; -$lang['view-raw'] = "Ver texto bruto"; +$lang['view-raw'] = "Ver texto bruto"; ?> diff --git a/langs/de.php b/langs/de.php index 5328aa1..e99cb02 100644 --- a/langs/de.php +++ b/langs/de.php @@ -6,117 +6,117 @@ $lang = array(); -$lang['banned'] = "Du wurdest von " . $site_name . " gebannt."; -$lang['expired'] = "Dieser Paste ist abgelaufen."; -$lang['guestwelcome'] = $site_name . " erlaubt es dir Text & Code hochzuladen."; +$lang['banned'] = "Du wurdest von " . $site_name . " gebannt."; +$lang['expired'] = "Dieser Paste ist abgelaufen."; +$lang['guestwelcome'] = $site_name . " erlaubt es dir Text & Code hochzuladen."; $lang['pleaseregister'] = "

    Login oder Registrieren um einen neuen Paste hochzuladen. Es ist kostenlos."; $lang['registertoedit'] = "Login oder Registrieren um diesen Paste zu bearbeiten oder zu forken. Es ist kostenlos."; -$lang['editpaste'] = "Bearbeiten"; -$lang['forkpaste'] = "Fork"; -$lang['guestmsgtitle'] = $site_name . " ist f$uuml;r Quelltexte und generellen Debugging Text."; -$lang['guestmsgbody'] = "Login oder Registrieren um zu bearbeiten, löschen, um deine Pastes zu verfolgen und mehr."; -$lang['emptypastebin'] = "Hier sind keine Pasts zum anzeigen."; -$lang['siteprivate'] = "Dieser Pastebin ist privat."; -$lang['image_wrong'] = "Falsches Captcha."; -$lang['missing-input-response'] = "Der reCAPTCHA Response Parameter fehlt. Bitte Überprüfe deine PASTE Einstellungen."; -$lang['missing-input-secret'] = "Der reCAPTCHA Secret Parameter fehlt. Bitte füge ihn zu deinen PASTE Einstellungen hinzu."; -$lang['missing-input-response'] = "Der reCAPTCHA Response Parameter fehlt. Bitte versuche das reCAPTCHA erneut zu vollenden."; -$lang['invalid-input-secret'] = "Der reCAPTCHA Secret Parameter fehlt oder ist falsch. Bitte überprüfe noch mal deine PASTE Einstellungen."; -$lang['empty_paste'] = "Du kannst keinen leeren Paste hochladen."; -$lang['large_paste'] = "Dein Paste ist zu groß. Die maximale Größe beträgt " . $pastelimit . "MB"; +$lang['editpaste'] = "Bearbeiten"; +$lang['forkpaste'] = "Fork"; +$lang['guestmsgtitle'] = $site_name . " ist f$uuml;r Quelltexte und generellen Debugging Text."; +$lang['guestmsgbody'] = "Login oder Registrieren um zu bearbeiten, löschen, um deine Pastes zu verfolgen und mehr."; +$lang['emptypastebin'] = "Hier sind keine Pasts zum anzeigen."; +$lang['siteprivate'] = "Dieser Pastebin ist privat."; +$lang['image_wrong'] = "Falsches Captcha."; +$lang['missing-input-response'] = "Der reCAPTCHA Response Parameter fehlt. Bitte Überprüfe deine PASTE Einstellungen."; +$lang['missing-input-secret'] = "Der reCAPTCHA Secret Parameter fehlt. Bitte füge ihn zu deinen PASTE Einstellungen hinzu."; +$lang['missing-input-response'] = "Der reCAPTCHA Response Parameter fehlt. Bitte versuche das reCAPTCHA erneut zu vollenden."; +$lang['invalid-input-secret'] = "Der reCAPTCHA Secret Parameter fehlt oder ist falsch. Bitte überprüfe noch mal deine PASTE Einstellungen."; +$lang['empty_paste'] = "Du kannst keinen leeren Paste hochladen."; +$lang['large_paste'] = "Dein Paste ist zu groß. Die maximale Größe beträgt " . $pastelimit . "MB"; $lang['paste_db_error'] = "Der Eintrag wurde nicht in die Datenbank geschrieben."; -$lang['error'] = "Etwas ist schief gegangen."; -$lang['archive'] = "Paste Archiv"; -$lang['contact'] = "Kontaktiere uns"; -$lang['full_name'] = "Es wird dein voller Name benötigt."; -$lang['email'] = "Deine eMail-Adresse wird benötigt."; -$lang['email_invalid'] = "Deine eMail-Adresse scheint ungültig zu sein."; -$lang['message'] = "Deine Nachricht wird benötigt."; +$lang['error'] = "Etwas ist schief gegangen."; +$lang['archive'] = "Paste Archiv"; +$lang['contact'] = "Kontaktiere uns"; +$lang['full_name'] = "Es wird dein voller Name benötigt."; +$lang['email'] = "Deine eMail-Adresse wird benötigt."; +$lang['email_invalid'] = "Deine eMail-Adresse scheint ungültig zu sein."; +$lang['message'] = "Deine Nachricht wird benötigt."; $lang['login/register'] = "Login/Registrieren"; -$lang['rememberme'] = "Lass mich eingeloggt."; -$lang['mail_acc_con'] = "$site_name Konto Bestätigung"; -$lang['mail_suc'] = "Der Verifikationscode wurde erfolgreich an deine eMail-Adresse gesendet."; -$lang['email_ver'] = "Diese eMail-Adresse wurde bereits verifiziert."; -$lang['email_not'] = "eMail-Adresse nicht gefunden."; -$lang['pass_change'] = "Passwort erfolgreich geändert und per eMail versendet."; -$lang['notverified'] = "Konto nicht verifiziert."; -$lang['incorrect'] = "Falscher Benutzername/Passwort"; -$lang['missingfields'] = "Alle Felder müssen ausgefüllt sein."; -$lang['userexists'] = "Benutzername existiert bereits."; -$lang['emailexists'] = "eMail-Adresse wurde bereits registriert."; -$lang['registered'] = "Dein Konto wurde erfolgreich registriert."; -$lang['usrinvalid'] = "Dein Benutzername kann nur Buchstaben und Zahlen enthalten."; -$lang['mypastes'] = "Meine Pastes"; -$lang['pastedeleted'] = "Paste gelöscht."; -$lang['databaseerror'] = "Der Eintrag wurde nicht in die Datenbank geschrieben."; -$lang['userchanged'] = "Benutzername erfolgreich geändert."; -$lang['usernotvalid'] = "Benutzername ist nicht gültig."; -$lang['privatepaste'] = "Das ist ein privater Paste."; -$lang['wrongpassword'] = 'Falsches Passwort.'; -$lang['pwdprotected'] = 'Passwortgeschützter Paste'; -$lang['notfound'] = "Nicht gefunden"; -$lang['wrongpwd'] = "Falsches Passwort. Versuche es erneut."; -$lang['myprofile'] = "Mein Profil"; -$lang['profileerror'] = "Kann Profilinformationen nicht aktualisieren "; -$lang['profileupdated'] = "Profilinformationen aktualisiert "; -$lang['oldpasswrong'] = "Dein altes Passwort ist falsch."; -$lang['archives'] = "Paste Archiv"; -$lang['archivestitle'] = "Diese Seite zeigt die 100 zuletzt erstellten, öffentlichen Pastes."; -$lang['pastetitle'] = "Paste Titel"; -$lang['pastetime'] = "Paste Zeit"; -$lang['pastesyntax'] = "Paste Syntax"; -$lang['pasteviews'] = "Paste Ansichten"; -$lang['wentwrong'] = "Etwas ging schief."; -$lang['versent'] = "Eine Bestätigungsmail wurde an deine eMail-Adresse gesendet."; -$lang['modpaste'] = "Paste bearbeiten "; -$lang['newpaste'] = "Neuer Paste"; -$lang['highlighting'] = "Syntax Highlighting"; -$lang['expiration'] = "Paste Ablaufdatum"; -$lang['visibility'] = "Paste Sichtbarkeit"; -$lang['pwopt'] = "Passwort (Optional)"; -$lang['encrypt'] = "Verschlüsselt in Datenbank"; -$lang['entercode'] = "Code eingeben"; -$lang['almostthere'] = "Fast geschafft. Noch ein Schritt."; -$lang['username'] = "Benutzername"; -$lang['autogen'] = "Generierter Name"; -$lang['setuser'] = "Setze deinen Benutzernamen"; -$lang['keepuser'] = "Behalte generierten Namen"; -$lang['enterpwd'] = "Gib das Passwort ein"; -$lang['totalpastes'] = "Total Pastes:"; -$lang['membtype'] = "Art der Mitgliedschaft:"; -$lang['email'] = "Email"; -$lang['fullname'] = "Voller Name"; -$lang['chgpwd'] = "Passwort ändern"; -$lang['curpwd'] = "Aktuelles Passwort"; -$lang['newpwd'] = "Neues Passwort"; -$lang['confpwd'] = "Bestä#tige Passwort"; -$lang['mypastes'] = "Meine Pastes"; -$lang['viewpastes'] = "Zeige alle meine Pastes"; -$lang['recentpastes'] = "Letzte Pastes"; +$lang['rememberme'] = "Lass mich eingeloggt."; +$lang['mail_acc_con'] = "$site_name Konto Bestätigung"; +$lang['mail_suc'] = "Der Verifikationscode wurde erfolgreich an deine eMail-Adresse gesendet."; +$lang['email_ver'] = "Diese eMail-Adresse wurde bereits verifiziert."; +$lang['email_not'] = "eMail-Adresse nicht gefunden."; +$lang['pass_change'] = "Passwort erfolgreich geändert und per eMail versendet."; +$lang['notverified'] = "Konto nicht verifiziert."; +$lang['incorrect'] = "Falscher Benutzername/Passwort"; +$lang['missingfields'] = "Alle Felder müssen ausgefüllt sein."; +$lang['userexists'] = "Benutzername existiert bereits."; +$lang['emailexists'] = "eMail-Adresse wurde bereits registriert."; +$lang['registered'] = "Dein Konto wurde erfolgreich registriert."; +$lang['usrinvalid'] = "Dein Benutzername kann nur Buchstaben und Zahlen enthalten."; +$lang['mypastes'] = "Meine Pastes"; +$lang['pastedeleted'] = "Paste gelöscht."; +$lang['databaseerror'] = "Der Eintrag wurde nicht in die Datenbank geschrieben."; +$lang['userchanged'] = "Benutzername erfolgreich geändert."; +$lang['usernotvalid'] = "Benutzername ist nicht gültig."; +$lang['privatepaste'] = "Das ist ein privater Paste."; +$lang['wrongpassword'] = 'Falsches Passwort.'; +$lang['pwdprotected'] = 'Passwortgeschützter Paste'; +$lang['notfound'] = "Nicht gefunden"; +$lang['wrongpwd'] = "Falsches Passwort. Versuche es erneut."; +$lang['myprofile'] = "Mein Profil"; +$lang['profileerror'] = "Kann Profilinformationen nicht aktualisieren "; +$lang['profileupdated'] = "Profilinformationen aktualisiert "; +$lang['oldpasswrong'] = "Dein altes Passwort ist falsch."; +$lang['archives'] = "Paste Archiv"; +$lang['archivestitle'] = "Diese Seite zeigt die 100 zuletzt erstellten, öffentlichen Pastes."; +$lang['pastetitle'] = "Paste Titel"; +$lang['pastetime'] = "Paste Zeit"; +$lang['pastesyntax'] = "Paste Syntax"; +$lang['pasteviews'] = "Paste Ansichten"; +$lang['wentwrong'] = "Etwas ging schief."; +$lang['versent'] = "Eine Bestätigungsmail wurde an deine eMail-Adresse gesendet."; +$lang['modpaste'] = "Paste bearbeiten "; +$lang['newpaste'] = "Neuer Paste"; +$lang['highlighting'] = "Syntax Highlighting"; +$lang['expiration'] = "Paste Ablaufdatum"; +$lang['visibility'] = "Paste Sichtbarkeit"; +$lang['pwopt'] = "Passwort (Optional)"; +$lang['encrypt'] = "Verschlüsselt in Datenbank"; +$lang['entercode'] = "Code eingeben"; +$lang['almostthere'] = "Fast geschafft. Noch ein Schritt."; +$lang['username'] = "Benutzername"; +$lang['autogen'] = "Generierter Name"; +$lang['setuser'] = "Setze deinen Benutzernamen"; +$lang['keepuser'] = "Behalte generierten Namen"; +$lang['enterpwd'] = "Gib das Passwort ein"; +$lang['totalpastes'] = "Total Pastes:"; +$lang['membtype'] = "Art der Mitgliedschaft:"; +$lang['email'] = "Email"; +$lang['fullname'] = "Voller Name"; +$lang['chgpwd'] = "Passwort ändern"; +$lang['curpwd'] = "Aktuelles Passwort"; +$lang['newpwd'] = "Neues Passwort"; +$lang['confpwd'] = "Bestä#tige Passwort"; +$lang['mypastes'] = "Meine Pastes"; +$lang['viewpastes'] = "Zeige alle meine Pastes"; +$lang['recentpastes'] = "Letzte Pastes"; $lang['user_public_pastes'] = "'s Pastes"; -$lang['yourpastes'] = "Deine Pastes"; -$lang['mypastestitle'] = "Alle deine Pastes, in einem Platz."; -$lang['delete'] = "Löschen"; -$lang['highlighted'] = "Der unten stehende Text ist ausgewählt, drücke Strg+C um ihn zu kopieren. (⌘+C beim Mac)"; -$lang['newpaste'] = "Neuer Paste"; -$lang['download'] = "Download"; -$lang['showlineno'] = "Zeige/Verstecke Zeilennr."; -$lang['copyto'] = "Kopiere Text"; -$lang['rawpaste'] = "Raw Paste"; -$lang['membersince'] = "Beigetreten: "; +$lang['yourpastes'] = "Deine Pastes"; +$lang['mypastestitle'] = "Alle deine Pastes, in einem Platz."; +$lang['delete'] = "Löschen"; +$lang['highlighted'] = "Der unten stehende Text ist ausgewählt, drücke Strg+C um ihn zu kopieren. (⌘+C beim Mac)"; +$lang['newpaste'] = "Neuer Paste"; +$lang['download'] = "Download"; +$lang['showlineno'] = "Zeige/Verstecke Zeilennr."; +$lang['copyto'] = "Kopiere Text"; +$lang['rawpaste'] = "Raw Paste"; +$lang['membersince'] = "Beigetreten: "; $lang['delete_error_invalid'] = "Fehler: Paste wurde nicht gelöscht, da dieser nicht existiert oder du nicht der Eigentümer bist."; -$lang['not_logged_in'] = "Fehler: Du musst eingeloggt sein, um das zu tun."; -$lang['public'] = "Öffentlich"; -$lang['unlisted'] = "Ungelistet"; -$lang['private'] = "Privat"; -$lang['hello'] = "Hallo"; +$lang['not_logged_in'] = "Fehler: Du musst eingeloggt sein, um das zu tun."; +$lang['public'] = "Öffentlich"; +$lang['unlisted'] = "Ungelistet"; +$lang['private'] = "Privat"; +$lang['hello'] = "Hallo"; $lang['profile-message'] = "Dies ist deine Profilseite in der du deine Pasts verwalten kannst.
    All deine öffentlichen, privaten und ungelisteten Pastes werden hier gezeigt. Du kannst sie hier auch löschen. Falls andere Benutzer deine Seite besuchen werden sie nur deine öffentlich gesetzten Pastes sehen können."; -$lang['profile-stats'] = "Ein paar deiner Statistiken:"; +$lang['profile-stats'] = "Ein paar deiner Statistiken:"; $lang['profile-total-pastes'] = "Total Pastes:"; -$lang['profile-total-pub'] = "Total öffentliche Pastes:"; -$lang['profile-total-unl'] = "Total ungelistete Pastes:"; -$lang['profile-total-pri'] = "Total private Pastes:"; +$lang['profile-total-pub'] = "Total öffentliche Pastes:"; +$lang['profile-total-unl'] = "Total ungelistete Pastes:"; +$lang['profile-total-pri'] = "Total private Pastes:"; $lang['profile-total-views'] = "Total Ansichten all deiner Pastes:"; $lang['embed-hosted-by'] = "gehostet von"; -$lang['view-raw'] = "Zeige Raw"; +$lang['view-raw'] = "Zeige Raw"; ?> diff --git a/langs/en.php b/langs/en.php index c9098de..1d791c2 100644 --- a/langs/en.php +++ b/langs/en.php @@ -9,124 +9,124 @@ $lang['notags'] = "Please tag your paste"; $lang['maxnamelimit'] = "Username too long"; $lang['tags'] = "Tags"; $lang['author'] = "Paste Author"; -$lang['updatedgreen'] = "Updated Pastes"; -$lang['popular'] = "Popular pastes"; -$lang['random'] = "Random pastes"; -$lang['monthpopular'] = "This months Popular Pastes"; -$lang['banned'] = "You have been banned from " . $site_name; -$lang['expired'] = "The paste you're looking for has expired."; -$lang['guestwelcome'] = $site_name . " Guest pastes temporary disabled due to spam. Please register or sign in."; +$lang['updatedgreen'] = "Updated Pastes"; +$lang['popular'] = "Popular pastes"; +$lang['random'] = "Random pastes"; +$lang['monthpopular'] = "This months Popular Pastes"; +$lang['banned'] = "You have been banned from " . $site_name; +$lang['expired'] = "The paste you're looking for has expired."; +$lang['guestwelcome'] = $site_name . " Guest pastes temporary disabled due to spam. Please register or sign in."; $lang['pleaseregister'] = "

    Login or Register to submit a new paste. It's free."; $lang['registertoedit'] = "Login or Register to edit or fork this paste. It's free."; -$lang['editpaste'] = "Edit"; -$lang['forkpaste'] = "Fork"; -$lang['guestmsgtitle'] = $site_name . " is for horse greens and general shitposts."; -$lang['guestmsgbody'] = "Login or Register to edit, delete and keep track of your pastes and more."; -$lang['emptypastebin'] = "There are no pastes to show."; -$lang['siteprivate'] = "This pastebin is private."; -$lang['image_wrong'] = "Wrong captcha."; -$lang['missing-input-response'] = "The reCAPTCHA response parameter is missing. Please verify your PASTE settings."; -$lang['missing-input-secret'] = "The reCAPTCHA secret parameter is missing. Please add it to your PASTE settings."; -$lang['missing-input-response'] = "The reCAPTCHA response parameter is invalid. Please try to complete the reCAPTCHA again."; -$lang['invalid-input-secret'] = "The reCAPTCHA secret parameter is invalid or malformed. Please double check your PASTE settings."; -$lang['empty_paste'] = "You cannot post an empty paste."; -$lang['large_paste'] = "Your paste is too large. Max size is " . $pastelimit . "MB"; +$lang['editpaste'] = "Edit"; +$lang['forkpaste'] = "Fork"; +$lang['guestmsgtitle'] = $site_name . " is for horse greens and general shitposts."; +$lang['guestmsgbody'] = "Login or Register to edit, delete and keep track of your pastes and more."; +$lang['emptypastebin'] = "There are no pastes to show."; +$lang['siteprivate'] = "This pastebin is private."; +$lang['image_wrong'] = "Wrong captcha."; +$lang['missing-input-response'] = "The reCAPTCHA response parameter is missing. Please verify your PASTE settings."; +$lang['missing-input-secret'] = "The reCAPTCHA secret parameter is missing. Please add it to your PASTE settings."; +$lang['missing-input-response'] = "The reCAPTCHA response parameter is invalid. Please try to complete the reCAPTCHA again."; +$lang['invalid-input-secret'] = "The reCAPTCHA secret parameter is invalid or malformed. Please double check your PASTE settings."; +$lang['empty_paste'] = "You cannot post an empty paste."; +$lang['large_paste'] = "Your paste is too large. Max size is " . $pastelimit . "MB"; $lang['paste_db_error'] = "Unable to post to database."; -$lang['error'] = "Something went wrong."; -$lang['archive'] = "Pastes Archive"; -$lang['contact'] = "Contact Us"; -$lang['full_name'] = "Account name is required."; -$lang['email'] = "Your email address is required."; -$lang['email_invalid'] = "Your email address seems to be invalid."; -$lang['message'] = "Your message is required."; +$lang['error'] = "Something went wrong."; +$lang['archive'] = "Pastes Archive"; +$lang['contact'] = "Contact Us"; +$lang['full_name'] = "Account name is required."; +$lang['email'] = "Your email address is required."; +$lang['email_invalid'] = "Your email address seems to be invalid."; +$lang['message'] = "Your message is required."; $lang['login/register'] = "Login/Register"; -$lang['rememberme'] = "Keep me signed in."; -$lang['mail_acc_con'] = "$site_name Account Confirmation"; -$lang['mail_suc'] = "Verification code successfully sent to your email address."; -$lang['email_ver'] = "Email already verified."; -$lang['email_not'] = "Email not found."; -$lang['pass_change'] = "Password changed successfully and sent to your email."; -$lang['notverified'] = "Account not verified."; -$lang['incorrect'] = "Incorrect User/Password"; -$lang['missingfields'] = "All fields must be filled out."; -$lang['userexists'] = "Username already taken."; -$lang['emailexists'] = "Email already registered."; -$lang['registered'] = "Your account was successfully registered."; -$lang['usrinvalid'] = "Your username can only contain letters or numbers."; -$lang['mypastes'] = "My Pastes"; -$lang['pastedeleted'] = "Paste deleted."; -$lang['databaseerror'] = "Unable to post to database."; -$lang['userchanged'] = "Username changed successfully."; -$lang['usernotvalid'] = "Username not vaild."; -$lang['privatepaste'] = "This is a private paste."; -$lang['wrongpassword'] = 'Wrong password.'; -$lang['pwdprotected'] = 'Password protected paste'; -$lang['notfound'] = "Not found"; -$lang['wrongpwd'] = "Wrong password. Try again."; -$lang['myprofile'] = "My Profile"; -$lang['profileerror'] = "Unable to update the profile information "; -$lang['profileupdated'] = "Your profile information is updated "; -$lang['oldpasswrong'] = "Your old password is wrong."; -$lang['archives'] = "Pastes Archive"; -$lang['archivestitle'] = "This page contains the most recently created 100 public pastes."; -$lang['pastetitle'] = "Paste Title"; -$lang['pastetime'] = "Paste Time"; -$lang['pastedate'] = "Paste Date"; -$lang['pastesyntax'] = "Paste Syntax"; -$lang['pasteviews'] = "Views"; -$lang['wentwrong'] = "Something went wrong."; -$lang['versent'] = "A verification email has been sent to your email address."; -$lang['modpaste'] = "Modify Paste"; -$lang['newpaste'] = "New Paste"; -$lang['highlighting'] = "Syntax Highlighting"; -$lang['expiration'] = "Paste Expiration"; -$lang['visibility'] = "Paste Visibility"; -$lang['pwopt'] = "Password (Optional)"; -$lang['encrypt'] = "Encrypt in database"; -$lang['entercode'] = "Enter Code"; -$lang['almostthere'] = "Almost there. One more step to go."; -$lang['username'] = "Username"; -$lang['autogen'] = "Auto generated name"; -$lang['setuser'] = "Set your Username"; -$lang['keepuser'] = "Keep autogenerated name"; -$lang['enterpwd'] = "Enter the password"; -$lang['totalpastes'] = "Total Pastes:"; -$lang['membtype'] = "Membership Type:"; -$lang['email'] = "Email"; -$lang['fullname'] = "Full Name"; -$lang['chgpwd'] = "Change Password"; -$lang['curpwd'] = "Current Password"; -$lang['newpwd'] = "New Password"; -$lang['confpwd'] = "Confirm Password"; -$lang['mypastes'] = "My Pastes"; -$lang['viewpastes'] = "View all my pastes"; -$lang['recentpastes'] = "Recent Pastes"; +$lang['rememberme'] = "Keep me signed in."; +$lang['mail_acc_con'] = "$site_name Account Confirmation"; +$lang['mail_suc'] = "Verification code successfully sent to your email address."; +$lang['email_ver'] = "Email already verified."; +$lang['email_not'] = "Email not found."; +$lang['pass_change'] = "Password changed successfully and sent to your email."; +$lang['notverified'] = "Account not verified."; +$lang['incorrect'] = "Incorrect User/Password"; +$lang['missingfields'] = "All fields must be filled out."; +$lang['userexists'] = "Username already taken."; +$lang['emailexists'] = "Email already registered."; +$lang['registered'] = "Your account was successfully registered."; +$lang['usrinvalid'] = "Your username can only contain letters or numbers."; +$lang['mypastes'] = "My Pastes"; +$lang['pastedeleted'] = "Paste deleted."; +$lang['databaseerror'] = "Unable to post to database."; +$lang['userchanged'] = "Username changed successfully."; +$lang['usernotvalid'] = "Username not vaild."; +$lang['privatepaste'] = "This is a private paste."; +$lang['wrongpassword'] = 'Wrong password.'; +$lang['pwdprotected'] = 'Password protected paste'; +$lang['notfound'] = "Not found"; +$lang['wrongpwd'] = "Wrong password. Try again."; +$lang['myprofile'] = "My Profile"; +$lang['profileerror'] = "Unable to update the profile information "; +$lang['profileupdated'] = "Your profile information is updated "; +$lang['oldpasswrong'] = "Your old password is wrong."; +$lang['archives'] = "Pastes Archive"; +$lang['archivestitle'] = "This page contains the most recently created 100 public pastes."; +$lang['pastetitle'] = "Paste Title"; +$lang['pastetime'] = "Paste Time"; +$lang['pastedate'] = "Paste Date"; +$lang['pastesyntax'] = "Paste Syntax"; +$lang['pasteviews'] = "Views"; +$lang['wentwrong'] = "Something went wrong."; +$lang['versent'] = "A verification email has been sent to your email address."; +$lang['modpaste'] = "Modify Paste"; +$lang['newpaste'] = "New Paste"; +$lang['highlighting'] = "Syntax Highlighting"; +$lang['expiration'] = "Paste Expiration"; +$lang['visibility'] = "Paste Visibility"; +$lang['pwopt'] = "Password (Optional)"; +$lang['encrypt'] = "Encrypt in database"; +$lang['entercode'] = "Enter Code"; +$lang['almostthere'] = "Almost there. One more step to go."; +$lang['username'] = "Username"; +$lang['autogen'] = "Auto generated name"; +$lang['setuser'] = "Set your Username"; +$lang['keepuser'] = "Keep autogenerated name"; +$lang['enterpwd'] = "Enter the password"; +$lang['totalpastes'] = "Total Pastes:"; +$lang['membtype'] = "Membership Type:"; +$lang['email'] = "Email"; +$lang['fullname'] = "Full Name"; +$lang['chgpwd'] = "Change Password"; +$lang['curpwd'] = "Current Password"; +$lang['newpwd'] = "New Password"; +$lang['confpwd'] = "Confirm Password"; +$lang['mypastes'] = "My Pastes"; +$lang['viewpastes'] = "View all my pastes"; +$lang['recentpastes'] = "Recent Pastes"; $lang['user_public_pastes'] = "'s Pastes"; -$lang['yourpastes'] = "Your Pastes"; -$lang['mypastestitle'] = "All of your pastes, in one place."; -$lang['delete'] = "Delete"; -$lang['highlighted'] = "The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac)"; -$lang['newpaste'] = "New Paste"; -$lang['download'] = "Download"; -$lang['showlineno'] = "Show/Hide line no."; -$lang['copyto'] = "Copy text to clipboard"; -$lang['rawpaste'] = "Raw Paste"; -$lang['membersince'] = "Joined: "; +$lang['yourpastes'] = "Your Pastes"; +$lang['mypastestitle'] = "All of your pastes, in one place."; +$lang['delete'] = "Delete"; +$lang['highlighted'] = "The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac)"; +$lang['newpaste'] = "New Paste"; +$lang['download'] = "Download"; +$lang['showlineno'] = "Show/Hide line no."; +$lang['copyto'] = "Copy text to clipboard"; +$lang['rawpaste'] = "Raw Paste"; +$lang['membersince'] = "Joined: "; $lang['delete_error_invalid'] = "Error: Paste not deleted because it does not exist or you do not own the paste."; -$lang['not_logged_in'] = "Error: You must be logged in to do that."; -$lang['public'] = "Public"; -$lang['unlisted'] = "Unlisted"; -$lang['private'] = "Private"; -$lang['hello'] = "Hello"; +$lang['not_logged_in'] = "Error: You must be logged in to do that."; +$lang['public'] = "Public"; +$lang['unlisted'] = "Unlisted"; +$lang['private'] = "Private"; +$lang['hello'] = "Hello"; $lang['profile-message'] = "This is your profile page where you can manage your pastes.
    All of your public, private and unlisted pastes will be shown here. You can also delete your pastes from this page. If other users visit your page they will only see pastes you have set public."; -$lang['profile-stats'] = "Some of your statistics:"; +$lang['profile-stats'] = "Some of your statistics:"; $lang['profile-total-pastes'] = "Total Pastes:"; -$lang['profile-total-pub'] = "Total public pastes:"; -$lang['profile-total-unl'] = "Total unlisted pastes:"; -$lang['profile-total-pri'] = "Total private pastes:"; +$lang['profile-total-pub'] = "Total public pastes:"; +$lang['profile-total-unl'] = "Total unlisted pastes:"; +$lang['profile-total-pri'] = "Total private pastes:"; $lang['profile-total-views'] = "Total views of all your pastes:"; $lang['pastfavs-total'] = "Total Favorites of your pastes:"; $lang['yourfavs-total'] = "Total Favorites by you:"; $lang['embed-hosted-by'] = "hosted by"; -$lang['view-raw'] = "View Raw"; +$lang['view-raw'] = "View Raw"; ?> diff --git a/langs/es.php b/langs/es.php index 864a5c2..4716520 100644 --- a/langs/es.php +++ b/langs/es.php @@ -4,110 +4,110 @@ * Author: S. Jorge */ $lang = array(); -$lang['banned'] = "Estas barneado en " . $site_name; -$lang['expired'] = "El pegado que estás buscando ha caducado."; -$lang['guestwelcome'] = $site_name . " te permite enviar texto & código."; +$lang['banned'] = "Estas barneado en " . $site_name; +$lang['expired'] = "El pegado que estás buscando ha caducado."; +$lang['guestwelcome'] = $site_name . " te permite enviar texto & código."; $lang['pleaseregister'] = "

    Iniciar sesión o Registrarse para enviar un pegado. Es gratis."; $lang['registertoedit'] = "Iniciar sesión o Registrarse para editar o bifurcar este pegado. Es gratis."; -$lang['editpaste'] = "Editar"; -$lang['forkpaste'] = "Bifurcar"; -$lang['guestmsgtitle'] = $site_name . " es para el código fuente y el texto de depuración general."; -$lang['guestmsgbody'] = "Iniciar sesión o Registrarse para editar, eliminar y mantener un seguimiento de sus pegados y mucho más."; -$lang['emptypastebin'] = "No hay pegado para mostrar."; -$lang['siteprivate'] = "Este pegado es privado"; -$lang['image_wrong'] = "Captcha incorrecto."; -$lang['missing-input-response'] = "Falta el parámetro de respuesta reCAPTCHA. Verifique la configuración de PASTE."; -$lang['missing-input-secret'] = "Falta el parámetro secreto reCAPTCHA. Añádala a su configuración de PASTE."; -$lang['missing-input-response'] = "El parámetro de respuesta reCAPTCHA no es válido. Por favor, intenta completar el reCAPTCHA de nuevo."; -$lang['invalid-input-secret'] = "El parámetro secreto reCAPTCHA no es válido o está mal formado. Por favor revise su configuración de PASTE."; -$lang['empty_paste'] = "No puede publicar un pegado vacío."; -$lang['large_paste'] = "El pegado es demasiado grande. El tamaño máximo es " . $pastelimit . "MB"; +$lang['editpaste'] = "Editar"; +$lang['forkpaste'] = "Bifurcar"; +$lang['guestmsgtitle'] = $site_name . " es para el código fuente y el texto de depuración general."; +$lang['guestmsgbody'] = "Iniciar sesión o Registrarse para editar, eliminar y mantener un seguimiento de sus pegados y mucho más."; +$lang['emptypastebin'] = "No hay pegado para mostrar."; +$lang['siteprivate'] = "Este pegado es privado"; +$lang['image_wrong'] = "Captcha incorrecto."; +$lang['missing-input-response'] = "Falta el parámetro de respuesta reCAPTCHA. Verifique la configuración de PASTE."; +$lang['missing-input-secret'] = "Falta el parámetro secreto reCAPTCHA. Añádala a su configuración de PASTE."; +$lang['missing-input-response'] = "El parámetro de respuesta reCAPTCHA no es válido. Por favor, intenta completar el reCAPTCHA de nuevo."; +$lang['invalid-input-secret'] = "El parámetro secreto reCAPTCHA no es válido o está mal formado. Por favor revise su configuración de PASTE."; +$lang['empty_paste'] = "No puede publicar un pegado vacío."; +$lang['large_paste'] = "El pegado es demasiado grande. El tamaño máximo es " . $pastelimit . "MB"; $lang['paste_db_error'] = "No se puede publicar en la base de datos."; -$lang['error'] = "Algo salió mal."; -$lang['archive'] = "Archivo de pegado"; -$lang['contact'] = "Contactenos"; -$lang['full_name'] = "Su nombre completo es obligatorio."; -$lang['email'] = "Se requiere tu dirección de correo electrónico."; -$lang['email_invalid'] = "Su dirección de correo electrónico parece no ser válida."; -$lang['message'] = "Su mensaje es obligatorio."; +$lang['error'] = "Algo salió mal."; +$lang['archive'] = "Archivo de pegado"; +$lang['contact'] = "Contactenos"; +$lang['full_name'] = "Su nombre completo es obligatorio."; +$lang['email'] = "Se requiere tu dirección de correo electrónico."; +$lang['email_invalid'] = "Su dirección de correo electrónico parece no ser válida."; +$lang['message'] = "Su mensaje es obligatorio."; $lang['login/register'] = "Iniciar sesión/Registro"; -$lang['rememberme'] = "Manténgame conectado."; -$lang['mail_acc_con'] = "$site_name Cuenta confirmada"; -$lang['mail_suc'] = "El código de verificación se envió correctamente a su dirección de correo electrónico."; -$lang['email_ver'] = "Correo electrónico ya verificado."; -$lang['email_not'] = "Correo electrónico no encontrado."; -$lang['pass_change'] = "La contraseña se ha cambiado correctamente y se ha enviado a tu correo electrónico."; -$lang['notverified'] = "Cuenta no verificada."; -$lang['incorrect'] = "Incorrecto usuario/contraseña"; -$lang['missingfields'] = "Todos los campos deben ser llenados."; -$lang['userexists'] = "Nombre de usuario ya tomado."; -$lang['emailexists'] = "Correo electrónico ya registrado."; -$lang ['registered'] = "Tu cuenta se ha registrado correctamente."; -$lang ['usrinvalid'] = "Tu nombre de usuario solo puede contener letras o números."; -$lang ['mypastes'] = "Mis pegados"; -$lang ['pastedeleted'] = "Pegado borrado."; +$lang['rememberme'] = "Manténgame conectado."; +$lang['mail_acc_con'] = "$site_name Cuenta confirmada"; +$lang['mail_suc'] = "El código de verificación se envió correctamente a su dirección de correo electrónico."; +$lang['email_ver'] = "Correo electrónico ya verificado."; +$lang['email_not'] = "Correo electrónico no encontrado."; +$lang['pass_change'] = "La contraseña se ha cambiado correctamente y se ha enviado a tu correo electrónico."; +$lang['notverified'] = "Cuenta no verificada."; +$lang['incorrect'] = "Incorrecto usuario/contraseña"; +$lang['missingfields'] = "Todos los campos deben ser llenados."; +$lang['userexists'] = "Nombre de usuario ya tomado."; +$lang['emailexists'] = "Correo electrónico ya registrado."; +$lang ['registered'] = "Tu cuenta se ha registrado correctamente."; +$lang ['usrinvalid'] = "Tu nombre de usuario solo puede contener letras o números."; +$lang ['mypastes'] = "Mis pegados"; +$lang ['pastedeleted'] = "Pegado borrado."; $lang ['databaseerror'] = "No se puede publicar en la base de datos."; -$lang ['userchanged'] = "El nombre de usuario ha cambiado correctamente."; -$lang ['usernotvalid'] = "Nombre de usuario no válido."; -$lang ['privatepaste'] = "Este es un pegado privada."; +$lang ['userchanged'] = "El nombre de usuario ha cambiado correctamente."; +$lang ['usernotvalid'] = "Nombre de usuario no válido."; +$lang ['privatepaste'] = "Este es un pegado privada."; $lang ['wrongpassword'] = "Contraseña incorrecta."; -$lang ['pwdprotected'] = "Pegar con contraseña protegida"; -$lang ['notfound'] = "No encontrado"; -$lang ['wrongpwd'] = "Contraseña incorrecta. Vuelva a intentarlo."; -$lang ['myprofile'] = "Mi perfil"; -$lang ['profileerror'] = "No se puede actualizar la información del perfil"; -$lang ['profileupdated']= "Se ha actualizado la información de tu perfil"; -$lang ['oldpasswrong'] = "Su contraseña antigua es incorrecta."; -$lang ['archives'] = "Archivos de pegado"; +$lang ['pwdprotected'] = "Pegar con contraseña protegida"; +$lang ['notfound'] = "No encontrado"; +$lang ['wrongpwd'] = "Contraseña incorrecta. Vuelva a intentarlo."; +$lang ['myprofile'] = "Mi perfil"; +$lang ['profileerror'] = "No se puede actualizar la información del perfil"; +$lang ['profileupdated'] = "Se ha actualizado la información de tu perfil"; +$lang ['oldpasswrong'] = "Su contraseña antigua es incorrecta."; +$lang ['archives'] = "Archivos de pegado"; $lang ['archivestitle'] = "Esta página contiene los 100 pegados publicados más recientemente."; -$lang ['pastetitle'] = "Pegar título"; -$lang ['pastetime'] = "Tiempo de pegado"; -$lang ['pastesyntax'] = "Pegar Sintaxis"; -$lang ['pasteviews'] = "Pegar vistas"; -$lang ['wentwrong'] = "Algo salió mal."; -$lang ['versent'] = "Se ha enviado un correo electrónico de verificación a su dirección de correo electrónico."; -$lang ['modpaste'] = "Modificar Pegado"; -$lang ['newpaste'] = "Nueva Pega"; -$lang ['highlighting'] = "Resaltado de sintaxis"; -$lang ['expiration'] = "Pegar Expiración"; -$lang ['visibility'] = "Pegar Visibilidad"; -$lang ['pwopt'] = "Contraseña (Opcional)"; -$lang ['encrypt'] = "Cifrar en la base de datos"; -$lang ['entercode'] = "Introducir código"; -$lang ['almostthere'] = "Casi allí, un paso más."; -$lang ['username'] = "Nombre de usuario"; -$lang ['autogen'] = "Nombre generado automáticamente"; -$lang ['setuser'] = "Establecer su nombre de usuario"; -$lang ['keepuser'] = "Mantener el nombre autogenerado"; -$lang ['enterpwd'] = "Introduzca la contraseña"; -$lang ['totalpastes'] = "Total pegado:"; -$lang ['membtype'] = "Tipo de membresía:"; -$lang ['email'] = "Correo electrónico"; -$lang ['fullname'] = "Nombre completo"; -$lang ['chgpwd'] = "Cambiar contraseña"; -$lang ['curpwd'] = "Contraseña actual"; -$lang ['newpwd'] = "Nueva contraseña"; -$lang ['confpwd'] = "Confirmar contraseña"; -$lang ['mypastes'] = "Mis pegados"; -$lang ['viewpastes'] = "Ver todos mis pegados"; -$lang ['recentpastes'] = "Pegados recientes"; +$lang ['pastetitle'] = "Pegar título"; +$lang ['pastetime'] = "Tiempo de pegado"; +$lang ['pastesyntax'] = "Pegar Sintaxis"; +$lang ['pasteviews'] = "Pegar vistas"; +$lang ['wentwrong'] = "Algo salió mal."; +$lang ['versent'] = "Se ha enviado un correo electrónico de verificación a su dirección de correo electrónico."; +$lang ['modpaste'] = "Modificar Pegado"; +$lang ['newpaste'] = "Nueva Pega"; +$lang ['highlighting'] = "Resaltado de sintaxis"; +$lang ['expiration'] = "Pegar Expiración"; +$lang ['visibility'] = "Pegar Visibilidad"; +$lang ['pwopt'] = "Contraseña (Opcional)"; +$lang ['encrypt'] = "Cifrar en la base de datos"; +$lang ['entercode'] = "Introducir código"; +$lang ['almostthere'] = "Casi allí, un paso más."; +$lang ['username'] = "Nombre de usuario"; +$lang ['autogen'] = "Nombre generado automáticamente"; +$lang ['setuser'] = "Establecer su nombre de usuario"; +$lang ['keepuser'] = "Mantener el nombre autogenerado"; +$lang ['enterpwd'] = "Introduzca la contraseña"; +$lang ['totalpastes'] = "Total pegado:"; +$lang ['membtype'] = "Tipo de membresía:"; +$lang ['email'] = "Correo electrónico"; +$lang ['fullname'] = "Nombre completo"; +$lang ['chgpwd'] = "Cambiar contraseña"; +$lang ['curpwd'] = "Contraseña actual"; +$lang ['newpwd'] = "Nueva contraseña"; +$lang ['confpwd'] = "Confirmar contraseña"; +$lang ['mypastes'] = "Mis pegados"; +$lang ['viewpastes'] = "Ver todos mis pegados"; +$lang ['recentpastes'] = "Pegados recientes"; $lang ['user_public_pastes'] = "'s pegados"; -$lang ['yourpastes'] = "Sus pegados"; +$lang ['yourpastes'] = "Sus pegados"; $lang ['mypastestitle'] = "Todos tus pegados, en un solo lugar."; -$lang ['delete'] = "Eliminar"; -$lang['highlighted'] = "El texto siguiente está seleccionado, presione Ctrl+C para copiar en su portapapeles. (⌘+C en Mac)"; -$lang ['newpaste'] = "Nueva Pega"; -$lang ['download'] = "Descargar"; -$lang ['showlineno'] = "Mostrar / Ocultar línea no"; -$lang ['copyto'] = "Copiar texto al portapapeles"; -$lang ['rawpaste'] = "Pasta cruda"; -$lang ['membersince'] = "Registrado:"; +$lang ['delete'] = "Eliminar"; +$lang['highlighted'] = "El texto siguiente está seleccionado, presione Ctrl+C para copiar en su portapapeles. (⌘+C en Mac)"; +$lang ['newpaste'] = "Nueva Pega"; +$lang ['download'] = "Descargar"; +$lang ['showlineno'] = "Mostrar / Ocultar línea no"; +$lang ['copyto'] = "Copiar texto al portapapeles"; +$lang ['rawpaste'] = "Pasta cruda"; +$lang ['membersince'] = "Registrado:"; $lang ['delete_error_invalid'] = "Error: Pegado no borrado porque no existe o no posee el pegado."; $lang ['not_logged_in'] = "Error: Debes haber iniciado sesión para hacer eso."; -$lang ['public'] = "Público"; -$lang ['unlisted'] = "No listado"; -$lang ['private'] = "Privado"; -$lang ['hello'] = "Hola"; +$lang ['public'] = "Público"; +$lang ['unlisted'] = "No listado"; +$lang ['private'] = "Privado"; +$lang ['hello'] = "Hola"; $lang['profile-message'] = "Esta es su página de perfil donde puede administrar sus pegados.
    Todos sus pegados públicos, privados y no listados se mostrarán aquí. También puede eliminar sus pegados de esta página. Si otros usuarios visitan tu página, solo verán las pastas que hayas puesto público."; $lang ['profile-stats'] = "Algunas de sus estadísticas:"; $lang ['profile-total-pastes'] = "Pegados totales:"; @@ -116,5 +116,5 @@ $lang ['profile-total-unl'] = "Total de pegados no listados:"; $lang ['perfil-total-pri'] = "Total de pegados privados:"; $lang ['profile-total-views'] = "Total de vistas de todos sus pegados:"; $lang ['embed-hosted-by'] = "alojado por"; -$lang ['view-raw'] = "Ver crudo"; +$lang ['view-raw'] = "Ver crudo"; ?> diff --git a/langs/fr.php b/langs/fr.php index c2ebd63..a8afc77 100644 --- a/langs/fr.php +++ b/langs/fr.php @@ -5,118 +5,118 @@ $lang = array(); -$lang['banned'] = "Vous avez été banni de " . $site_name; -$lang['expired'] = "Le paste que vous recherchez est expiré."; -$lang['guestwelcome'] = $site_name . " vous permet de partager du texte et du code."; +$lang['banned'] = "Vous avez été banni de " . $site_name; +$lang['expired'] = "Le paste que vous recherchez est expiré."; +$lang['guestwelcome'] = $site_name . " vous permet de partager du texte et du code."; $lang['pleaseregister'] = "

    Connectez-vous ou Enregistrez-vous pour soumettre un nouveau paste. C'est gratuit !"; $lang['registertoedit'] = "Connectez-vous ou Enregistrez-vous pour éditer ou dupliquer ce paste. C'est gratuit !"; -$lang['editpaste'] = "Éditer"; -$lang['forkpaste'] = "Dupliquer"; -$lang['guestmsgtitle'] = $site_name . " est fait pour le code source et le texte général de débogage."; -$lang['guestmsgbody'] = "Connectez-vous ou Enregistrez-vous pour éditer, supprimer et suivre vos pastes et bien plus."; -$lang['emptypastebin'] = "Pas de pastes."; -$lang['siteprivate'] = "Ce pastebin est privé."; -$lang['image_wrong'] = "Erreur de captcha."; -$lang['missing-input-response'] = "Il manque le paramètre réponse de reCAPTCHA. Vérifier la configuration de PASTE."; -$lang['missing-input-secret'] = "Il manque le paramètre secret de reCAPTCHA. Merci de l'ajouter à la configuration de PASTE."; -$lang['missing-input-response'] = "Le paramètre réponse de reCAPTCHA est invalide. Recommencez."; -$lang['invalid-input-secret'] = "Le paramètre secret de reCAPTCHA est invalide ou incorrect. Vérifiez la configuration de PASTE."; -$lang['empty_paste'] = "Vous ne pouvez pas publier un paste vide."; -$lang['large_paste'] = "Le paste est trop volumineux. La taille maximale est " . $pastelimit . "MB"; +$lang['editpaste'] = "Éditer"; +$lang['forkpaste'] = "Dupliquer"; +$lang['guestmsgtitle'] = $site_name . " est fait pour le code source et le texte général de débogage."; +$lang['guestmsgbody'] = "Connectez-vous ou Enregistrez-vous pour éditer, supprimer et suivre vos pastes et bien plus."; +$lang['emptypastebin'] = "Pas de pastes."; +$lang['siteprivate'] = "Ce pastebin est privé."; +$lang['image_wrong'] = "Erreur de captcha."; +$lang['missing-input-response'] = "Il manque le paramètre réponse de reCAPTCHA. Vérifier la configuration de PASTE."; +$lang['missing-input-secret'] = "Il manque le paramètre secret de reCAPTCHA. Merci de l'ajouter à la configuration de PASTE."; +$lang['missing-input-response'] = "Le paramètre réponse de reCAPTCHA est invalide. Recommencez."; +$lang['invalid-input-secret'] = "Le paramètre secret de reCAPTCHA est invalide ou incorrect. Vérifiez la configuration de PASTE."; +$lang['empty_paste'] = "Vous ne pouvez pas publier un paste vide."; +$lang['large_paste'] = "Le paste est trop volumineux. La taille maximale est " . $pastelimit . "MB"; $lang['paste_db_error'] = "Impossible de publier dans la base de données."; -$lang['error'] = "Erreur fatale."; -$lang['archive'] = "Archives"; -$lang['contact'] = "Nous contacter"; -$lang['full_name'] = "Le champ nom doit être renseigné."; -$lang['email'] = "Le champ email doit être renseigné."; -$lang['email_invalid'] = "Adresse email invalide."; -$lang['message'] = "Le champ message doit être renseigné."; +$lang['error'] = "Erreur fatale."; +$lang['archive'] = "Archives"; +$lang['contact'] = "Nous contacter"; +$lang['full_name'] = "Le champ nom doit être renseigné."; +$lang['email'] = "Le champ email doit être renseigné."; +$lang['email_invalid'] = "Adresse email invalide."; +$lang['message'] = "Le champ message doit être renseigné."; $lang['login/register'] = "Se connecter/S'enregistrer"; -$lang['rememberme'] = "Rester connecter."; -$lang['mail_acc_con'] = "Confirmation de votre compte pour $site_name"; -$lang['mail_suc'] = "Le code de vérification a été transmis à votre adresse email."; -$lang['email_ver'] = "Adresse email déjà vérifiée."; -$lang['email_not'] = "Adresse email non trouvée."; -$lang['pass_change'] = "Le mot de passe a été changé et transmis à votre adresse email."; -$lang['notverified'] = "Compte non vérifié."; -$lang['incorrect'] = "Nom d'utilisateur ou mot de passe incorrect."; -$lang['missingfields'] = "Tous les champs doivent être renseignés"; -$lang['userexists'] = "Le nom d'utilisateur existe déjà."; -$lang['emailexists'] = "Adresse email déjà enregistrée."; -$lang['registered'] = "Votre compte a été enregistré."; -$lang['usrinvalid'] = "Votre nom d'utilisateur ne doit contenir que des lettres ou des chiffres."; -$lang['mypastes'] = "Mes Pastes"; -$lang['pastedeleted'] = "Paste supprimé."; -$lang['databaseerror'] = "Impossible d'enregistrer dans la base de données."; -$lang['userchanged'] = "Nom d'utilisateur changé."; -$lang['usernotvalid'] = "Nom d'utilisateur non valide."; -$lang['privatepaste'] = "Ce paste est privé."; -$lang['wrongpassword'] = 'Erreur mot de passe.'; -$lang['pwdprotected'] = 'Ce paste est protégé par mot de passe.'; -$lang['notfound'] = "Non trouvé"; -$lang['wrongpwd'] = "Erreur mot de passe, re-essayez."; -$lang['myprofile'] = "Mon profil"; -$lang['profileerror'] = "Impossible de mettre à jour vos informations de profil."; -$lang['profileupdated'] = "Vos informations de profil ont été mises à jour"; -$lang['oldpasswrong'] = "Erreur ancien mot de passe"; -$lang['archives'] = "Archives"; -$lang['archivestitle'] = "Cet écran réuni les 100 derniers paste enregistrés."; -$lang['pastetitle'] = "Titre du paste"; -$lang['pastetime'] = "Durée de vie du paste"; -$lang['pastesyntax'] = "Syntaxe du paste"; -$lang['pasteviews'] = "Nombre de vues du paste"; -$lang['wentwrong'] = "Erreur fatale."; -$lang['versent'] = "Un email de vérification a été transmis à votre adresse email."; -$lang['modpaste'] = "Modifier le paste"; -$lang['newpaste'] = "Nouveau paste"; -$lang['highlighting'] = "Mise en évidence de la syntaxe."; -$lang['expiration'] = "Durée de vie du paste"; -$lang['visibility'] = "Portée du paste"; -$lang['pwopt'] = "Mot de passe (Optionnel)"; -$lang['encrypt'] = "Crypter dans la base de données"; -$lang['entercode'] = "Entrez le code"; -$lang['almostthere'] = "Vous avez presque terminé, il ne reste qu'une étape"; -$lang['username'] = "Nom d'utilisateur"; -$lang['autogen'] = "Nom généré automatiquement"; -$lang['setuser'] = "Saisir votre nom d'utilisateur"; -$lang['keepuser'] = "Garder le nom généré automatiquement"; -$lang['enterpwd'] = "Saisir le mot de passe"; -$lang['totalpastes'] = "Total pastes:"; -$lang['membtype'] = "Type de compte:"; -$lang['email'] = "Email"; -$lang['fullname'] = "Nom complet"; -$lang['chgpwd'] = "Changer le mot de passe"; -$lang['curpwd'] = "Mot de passe actuel"; -$lang['newpwd'] = "Nouveau mot de passe"; -$lang['confpwd'] = "Confirmez le nouveau mot de passe"; -$lang['mypastes'] = "Mes pastes"; -$lang['viewpastes'] = "Voir tous mes pastes"; -$lang['recentpastes'] = "Pastes récents"; +$lang['rememberme'] = "Rester connecter."; +$lang['mail_acc_con'] = "Confirmation de votre compte pour $site_name"; +$lang['mail_suc'] = "Le code de vérification a été transmis à votre adresse email."; +$lang['email_ver'] = "Adresse email déjà vérifiée."; +$lang['email_not'] = "Adresse email non trouvée."; +$lang['pass_change'] = "Le mot de passe a été changé et transmis à votre adresse email."; +$lang['notverified'] = "Compte non vérifié."; +$lang['incorrect'] = "Nom d'utilisateur ou mot de passe incorrect."; +$lang['missingfields'] = "Tous les champs doivent être renseignés"; +$lang['userexists'] = "Le nom d'utilisateur existe déjà."; +$lang['emailexists'] = "Adresse email déjà enregistrée."; +$lang['registered'] = "Votre compte a été enregistré."; +$lang['usrinvalid'] = "Votre nom d'utilisateur ne doit contenir que des lettres ou des chiffres."; +$lang['mypastes'] = "Mes Pastes"; +$lang['pastedeleted'] = "Paste supprimé."; +$lang['databaseerror'] = "Impossible d'enregistrer dans la base de données."; +$lang['userchanged'] = "Nom d'utilisateur changé."; +$lang['usernotvalid'] = "Nom d'utilisateur non valide."; +$lang['privatepaste'] = "Ce paste est privé."; +$lang['wrongpassword'] = 'Erreur mot de passe.'; +$lang['pwdprotected'] = 'Ce paste est protégé par mot de passe.'; +$lang['notfound'] = "Non trouvé"; +$lang['wrongpwd'] = "Erreur mot de passe, re-essayez."; +$lang['myprofile'] = "Mon profil"; +$lang['profileerror'] = "Impossible de mettre à jour vos informations de profil."; +$lang['profileupdated'] = "Vos informations de profil ont été mises à jour"; +$lang['oldpasswrong'] = "Erreur ancien mot de passe"; +$lang['archives'] = "Archives"; +$lang['archivestitle'] = "Cet écran réuni les 100 derniers paste enregistrés."; +$lang['pastetitle'] = "Titre du paste"; +$lang['pastetime'] = "Durée de vie du paste"; +$lang['pastesyntax'] = "Syntaxe du paste"; +$lang['pasteviews'] = "Nombre de vues du paste"; +$lang['wentwrong'] = "Erreur fatale."; +$lang['versent'] = "Un email de vérification a été transmis à votre adresse email."; +$lang['modpaste'] = "Modifier le paste"; +$lang['newpaste'] = "Nouveau paste"; +$lang['highlighting'] = "Mise en évidence de la syntaxe."; +$lang['expiration'] = "Durée de vie du paste"; +$lang['visibility'] = "Portée du paste"; +$lang['pwopt'] = "Mot de passe (Optionnel)"; +$lang['encrypt'] = "Crypter dans la base de données"; +$lang['entercode'] = "Entrez le code"; +$lang['almostthere'] = "Vous avez presque terminé, il ne reste qu'une étape"; +$lang['username'] = "Nom d'utilisateur"; +$lang['autogen'] = "Nom généré automatiquement"; +$lang['setuser'] = "Saisir votre nom d'utilisateur"; +$lang['keepuser'] = "Garder le nom généré automatiquement"; +$lang['enterpwd'] = "Saisir le mot de passe"; +$lang['totalpastes'] = "Total pastes:"; +$lang['membtype'] = "Type de compte:"; +$lang['email'] = "Email"; +$lang['fullname'] = "Nom complet"; +$lang['chgpwd'] = "Changer le mot de passe"; +$lang['curpwd'] = "Mot de passe actuel"; +$lang['newpwd'] = "Nouveau mot de passe"; +$lang['confpwd'] = "Confirmez le nouveau mot de passe"; +$lang['mypastes'] = "Mes pastes"; +$lang['viewpastes'] = "Voir tous mes pastes"; +$lang['recentpastes'] = "Pastes récents"; $lang['user_public_pastes'] = "'s Pastes"; -$lang['yourpastes'] = "Vos pastes"; -$lang['mypastestitle'] = "Tous vos pastes au même endroit."; -$lang['delete'] = "Supprimer"; -$lang['highlighted'] = "Le texte ci-dessus est sélectionné, presser Ctrl+C pour le copier dans votre presse-papier. (⌘+C sur Mac)"; -$lang['newpaste'] = "Nouveau paste"; -$lang['download'] = "Télécharger"; -$lang['showlineno'] = "Afficher/Cacher les numéros de ligne."; -$lang['copyto'] = "Copier le texte dans le presse-papier."; -$lang['rawpaste'] = "Paste brut"; -$lang['membersince'] = "Enregistré depuis : "; +$lang['yourpastes'] = "Vos pastes"; +$lang['mypastestitle'] = "Tous vos pastes au même endroit."; +$lang['delete'] = "Supprimer"; +$lang['highlighted'] = "Le texte ci-dessus est sélectionné, presser Ctrl+C pour le copier dans votre presse-papier. (⌘+C sur Mac)"; +$lang['newpaste'] = "Nouveau paste"; +$lang['download'] = "Télécharger"; +$lang['showlineno'] = "Afficher/Cacher les numéros de ligne."; +$lang['copyto'] = "Copier le texte dans le presse-papier."; +$lang['rawpaste'] = "Paste brut"; +$lang['membersince'] = "Enregistré depuis : "; $lang['delete_error_invalid'] = "Erreur : le paste n'a pas été supprimé car il n'existe pas ou vous n'êtes pas son propriétaire."; -$lang['not_logged_in'] = "Erreur : vous devez être connecté."; -$lang['public'] = "Public"; -$lang['unlisted'] = "Fantôme"; -$lang['private'] = "Privé"; -$lang['hello'] = "Bonjour"; +$lang['not_logged_in'] = "Erreur : vous devez être connecté."; +$lang['public'] = "Public"; +$lang['unlisted'] = "Fantôme"; +$lang['private'] = "Privé"; +$lang['hello'] = "Bonjour"; $lang['profile-message'] = "Vous pouvez gérer vos pastes sur cet écran de profil.
    Tous vos pastes publics, privés et fantômes sont listés ici. Vous pouvez également supprimer vos pastes depuis cet écran. Si un autre utilisateur visite votre profil, il ne verra que vos pastes publics."; -$lang['profile-stats'] = "Quelques statistiques :"; +$lang['profile-stats'] = "Quelques statistiques :"; $lang['profile-total-pastes'] = "Nombre total de pastes :"; -$lang['profile-total-pub'] = "Nombre de pastes publics :"; -$lang['profile-total-unl'] = "Nombre de pastes fantômes :"; -$lang['profile-total-pri'] = "Nombre de pastes privés :"; +$lang['profile-total-pub'] = "Nombre de pastes publics :"; +$lang['profile-total-unl'] = "Nombre de pastes fantômes :"; +$lang['profile-total-pri'] = "Nombre de pastes privés :"; $lang['profile-total-views'] = "Nombre total de vues :"; $lang['embed-hosted-by'] = "hébergé par"; -$lang['view-raw'] = "Voir les données brutes"; +$lang['view-raw'] = "Voir les données brutes"; ?> \ No newline at end of file diff --git a/langs/pl.php b/langs/pl.php index 53e2917..d243f44 100644 --- a/langs/pl.php +++ b/langs/pl.php @@ -6,117 +6,117 @@ $lang = array(); -$lang['banned'] = "Zostałeś zablokowany na " . $site_name; -$lang['expired'] = "Wklejka, którą próbujesz odwiedzić, utraciła ważność."; -$lang['guestwelcome'] = $site_name . " pozwala przechowywać tekst i kod."; +$lang['banned'] = "Zostałeś zablokowany na " . $site_name; +$lang['expired'] = "Wklejka, którą próbujesz odwiedzić, utraciła ważność."; +$lang['guestwelcome'] = $site_name . " pozwala przechowywać tekst i kod."; $lang['pleaseregister'] = "

    Zaloguj się lub zarejestruj, aby wysłać nową wklejkę. To nic nie kosztuje."; $lang['registertoedit'] = "Zaloguj się lub zarejestruj, aby edytować lub powielić tą wklejkę. To nic nie kosztuje."; -$lang['editpaste'] = "Edytuj"; -$lang['forkpaste'] = "Powiel"; -$lang['guestmsgtitle'] = $site_name . " pozwala na przechowywanie kodu źródłowego i tekstu."; -$lang['guestmsgbody'] = "Zaloguj się lub zarejestruj aby edytować, usuwać i mieć kontrolę nad swoimi wklejkami."; -$lang['emptypastebin'] = "Brak wklejek do pokazania."; -$lang['siteprivate'] = "Ta strona jest prywatna."; -$lang['image_wrong'] = "Nieprawidłowy kod."; -$lang['missing-input-response'] = "Parametr odpowiedzi reCAPTCHA nie jest prawidłowy. Zweryfikuj ustawienia PASTE."; -$lang['missing-input-secret'] = "Brak tajnego parametru reCAPTCHA. Dodaj go do ustawień reCAPTCHA."; -$lang['missing-input-response'] = "Parametr odpowiedzi reCAPTCHA jest nieprawidłowy. Spróbuj wykonać reCAPTCHA ponownie."; -$lang['invalid-input-secret'] = "Patametr odpowiedzi reCAPTCHA jest nieprawidłowy. Sprawdź poprawność ustawień PASTE."; -$lang['empty_paste'] = "Nie możesz umieścić pustej wklejki."; -$lang['large_paste'] = "Wysłana wklejka jest zbyt duża. Maksymalny rozmiar wynosi " . $pastelimit . "MB."; +$lang['editpaste'] = "Edytuj"; +$lang['forkpaste'] = "Powiel"; +$lang['guestmsgtitle'] = $site_name . " pozwala na przechowywanie kodu źródłowego i tekstu."; +$lang['guestmsgbody'] = "Zaloguj się lub zarejestruj aby edytować, usuwać i mieć kontrolę nad swoimi wklejkami."; +$lang['emptypastebin'] = "Brak wklejek do pokazania."; +$lang['siteprivate'] = "Ta strona jest prywatna."; +$lang['image_wrong'] = "Nieprawidłowy kod."; +$lang['missing-input-response'] = "Parametr odpowiedzi reCAPTCHA nie jest prawidłowy. Zweryfikuj ustawienia PASTE."; +$lang['missing-input-secret'] = "Brak tajnego parametru reCAPTCHA. Dodaj go do ustawień reCAPTCHA."; +$lang['missing-input-response'] = "Parametr odpowiedzi reCAPTCHA jest nieprawidłowy. Spróbuj wykonać reCAPTCHA ponownie."; +$lang['invalid-input-secret'] = "Patametr odpowiedzi reCAPTCHA jest nieprawidłowy. Sprawdź poprawność ustawień PASTE."; +$lang['empty_paste'] = "Nie możesz umieścić pustej wklejki."; +$lang['large_paste'] = "Wysłana wklejka jest zbyt duża. Maksymalny rozmiar wynosi " . $pastelimit . "MB."; $lang['paste_db_error'] = "Nie udało się umieścić w bazie danych."; -$lang['error'] = "Coś poszło nie tak."; -$lang['archive'] = "Archiwum wklejek"; -$lang['contact'] = "Kontakt"; -$lang['full_name'] = "Musisz wprowadzić imię i nazwisko."; -$lang['email'] = "Musisz wprowadzić adres e-mail."; -$lang['email_invalid'] = "Wprowadzony adres e-mail jest nieprawidłowy."; -$lang['message'] = "Musisz wprowadzić wiadomość."; +$lang['error'] = "Coś poszło nie tak."; +$lang['archive'] = "Archiwum wklejek"; +$lang['contact'] = "Kontakt"; +$lang['full_name'] = "Musisz wprowadzić imię i nazwisko."; +$lang['email'] = "Musisz wprowadzić adres e-mail."; +$lang['email_invalid'] = "Wprowadzony adres e-mail jest nieprawidłowy."; +$lang['message'] = "Musisz wprowadzić wiadomość."; $lang['login/register'] = "Zaloguj się/Zarejestruj"; -$lang['rememberme'] = "Nie wylogowywuj mnie."; -$lang['mail_acc_con'] = "Potwierdzenie konta na $site_name"; -$lang['mail_suc'] = "Pomyślnie przesłano kod weryfikacyjny na podany e-mail."; -$lang['email_ver'] = "Już zweryfikowano adres e-mail."; -$lang['email_not'] = "Nie znaleziono adresu e-mail."; -$lang['pass_change'] = "Pomyślnie zmieniono hasło i przesłano na adres e-mail."; -$lang['notverified'] = "Nie zweryfikowano konto."; -$lang['incorrect'] = "Nieprawidłowa nazwa użytkownika/hasło"; -$lang['missingfields'] = "Wszystkie pola muszą być wypełnione."; -$lang['userexists'] = "Nazwa użytkownika jest zajęta."; -$lang['emailexists'] = "Istnieje konto przypisane do tego adresu e-mail."; -$lang['registered'] = "Pomyślnie zarejestrowano konto."; -$lang['usrinvalid'] = "Nazwa użytkownika może zawierać wyłącznie litery i cyfry."; -$lang['mypastes'] = "Moje wklejki"; -$lang['pastedeleted'] = "Usunięto wklejkę."; -$lang['databaseerror'] = "Nie udało się umieścić w bazie danych."; -$lang['userchanged'] = "Pomyślnie zmieniono nazwę użytkownika."; -$lang['usernotvalid'] = "Nieprawidłowa nazwa użytkownika."; -$lang['privatepaste'] = "To jest prywatna wklejka."; -$lang['wrongpassword'] = 'Nieprawidłowe hasło.'; -$lang['pwdprotected'] = 'Wklejka chroniona hasłem'; -$lang['notfound'] = "Nie znaleziono"; -$lang['wrongpwd'] = "Nieprawidłowe hasło. Spróbuj ponownie."; -$lang['myprofile'] = "Moje konto"; -$lang['profileerror'] = "Nie udało się zaktualizować informacje o koncie "; -$lang['profileupdated'] = "Pomyślnie zaktualizowano informacje o koncie "; -$lang['oldpasswrong'] = "Nieprawidłowe aktualne hasło."; -$lang['archives'] = "Archiwum wklejek"; -$lang['archivestitle'] = "Ta strona zawiera 100 najnowszych publicznych wklejek."; -$lang['pastetitle'] = "Tytuł wklejki"; -$lang['pastetime'] = "Czas dodania wklejki"; -$lang['pastesyntax'] = "Składnia wklejki"; -$lang['pasteviews'] = "Wyświetlenia wklejki"; -$lang['wentwrong'] = "Coś poszło nie tak."; -$lang['versent'] = "Link weryfikacyjny został wysłany na podany adres e-mail."; -$lang['modpaste'] = "Modyfikuj wklejkę"; -$lang['newpaste'] = "Nowa wklejka"; -$lang['highlighting'] = "Podświetlanie składni"; -$lang['expiration'] = "Data ważności wklejki"; -$lang['visibility'] = "Widoczność wklejki"; -$lang['pwopt'] = "Hasło (opcjonalne)"; -$lang['encrypt'] = "Zaszyfruj w bazie danych"; -$lang['entercode'] = "Wprowadź kod"; -$lang['almostthere'] = "Już prawie. Pozostał jeden krok."; -$lang['username'] = "Nazwa użytkownika"; -$lang['autogen'] = "Wygenerowana nazwa"; -$lang['setuser'] = "Ustaw swoją nazwę"; -$lang['keepuser'] = "Pozostaw wygenerowaną nazwę"; -$lang['enterpwd'] = "Wprowadź hasło"; -$lang['totalpastes'] = "Wklejki łącznie:"; -$lang['membtype'] = "Rodzaj konta:"; -$lang['email'] = "E-mail"; -$lang['fullname'] = "Nazwa"; -$lang['chgpwd'] = "Zmień hasło"; -$lang['curpwd'] = "Obecne hasło"; -$lang['newpwd'] = "Nowe hasło"; -$lang['confpwd'] = "Potwierdź hasło"; -$lang['mypastes'] = "Moje wklejki"; -$lang['viewpastes'] = "Pokaż wszystkie moje wklejki"; -$lang['recentpastes'] = "Najnowsze wklejki"; +$lang['rememberme'] = "Nie wylogowywuj mnie."; +$lang['mail_acc_con'] = "Potwierdzenie konta na $site_name"; +$lang['mail_suc'] = "Pomyślnie przesłano kod weryfikacyjny na podany e-mail."; +$lang['email_ver'] = "Już zweryfikowano adres e-mail."; +$lang['email_not'] = "Nie znaleziono adresu e-mail."; +$lang['pass_change'] = "Pomyślnie zmieniono hasło i przesłano na adres e-mail."; +$lang['notverified'] = "Nie zweryfikowano konto."; +$lang['incorrect'] = "Nieprawidłowa nazwa użytkownika/hasło"; +$lang['missingfields'] = "Wszystkie pola muszą być wypełnione."; +$lang['userexists'] = "Nazwa użytkownika jest zajęta."; +$lang['emailexists'] = "Istnieje konto przypisane do tego adresu e-mail."; +$lang['registered'] = "Pomyślnie zarejestrowano konto."; +$lang['usrinvalid'] = "Nazwa użytkownika może zawierać wyłącznie litery i cyfry."; +$lang['mypastes'] = "Moje wklejki"; +$lang['pastedeleted'] = "Usunięto wklejkę."; +$lang['databaseerror'] = "Nie udało się umieścić w bazie danych."; +$lang['userchanged'] = "Pomyślnie zmieniono nazwę użytkownika."; +$lang['usernotvalid'] = "Nieprawidłowa nazwa użytkownika."; +$lang['privatepaste'] = "To jest prywatna wklejka."; +$lang['wrongpassword'] = 'Nieprawidłowe hasło.'; +$lang['pwdprotected'] = 'Wklejka chroniona hasłem'; +$lang['notfound'] = "Nie znaleziono"; +$lang['wrongpwd'] = "Nieprawidłowe hasło. Spróbuj ponownie."; +$lang['myprofile'] = "Moje konto"; +$lang['profileerror'] = "Nie udało się zaktualizować informacje o koncie "; +$lang['profileupdated'] = "Pomyślnie zaktualizowano informacje o koncie "; +$lang['oldpasswrong'] = "Nieprawidłowe aktualne hasło."; +$lang['archives'] = "Archiwum wklejek"; +$lang['archivestitle'] = "Ta strona zawiera 100 najnowszych publicznych wklejek."; +$lang['pastetitle'] = "Tytuł wklejki"; +$lang['pastetime'] = "Czas dodania wklejki"; +$lang['pastesyntax'] = "Składnia wklejki"; +$lang['pasteviews'] = "Wyświetlenia wklejki"; +$lang['wentwrong'] = "Coś poszło nie tak."; +$lang['versent'] = "Link weryfikacyjny został wysłany na podany adres e-mail."; +$lang['modpaste'] = "Modyfikuj wklejkę"; +$lang['newpaste'] = "Nowa wklejka"; +$lang['highlighting'] = "Podświetlanie składni"; +$lang['expiration'] = "Data ważności wklejki"; +$lang['visibility'] = "Widoczność wklejki"; +$lang['pwopt'] = "Hasło (opcjonalne)"; +$lang['encrypt'] = "Zaszyfruj w bazie danych"; +$lang['entercode'] = "Wprowadź kod"; +$lang['almostthere'] = "Już prawie. Pozostał jeden krok."; +$lang['username'] = "Nazwa użytkownika"; +$lang['autogen'] = "Wygenerowana nazwa"; +$lang['setuser'] = "Ustaw swoją nazwę"; +$lang['keepuser'] = "Pozostaw wygenerowaną nazwę"; +$lang['enterpwd'] = "Wprowadź hasło"; +$lang['totalpastes'] = "Wklejki łącznie:"; +$lang['membtype'] = "Rodzaj konta:"; +$lang['email'] = "E-mail"; +$lang['fullname'] = "Nazwa"; +$lang['chgpwd'] = "Zmień hasło"; +$lang['curpwd'] = "Obecne hasło"; +$lang['newpwd'] = "Nowe hasło"; +$lang['confpwd'] = "Potwierdź hasło"; +$lang['mypastes'] = "Moje wklejki"; +$lang['viewpastes'] = "Pokaż wszystkie moje wklejki"; +$lang['recentpastes'] = "Najnowsze wklejki"; $lang['user_public_pastes'] = "Wklejki użytkownika"; -$lang['yourpastes'] = "Twoje wklejki"; -$lang['mypastestitle'] = "Wszystkie twoje wklejki w jednym miejscu."; -$lang['delete'] = "Usuń"; -$lang['highlighted'] = "Tekst jest zaznaczony, naciśnij Ctrl+C aby skopiować. (⌘+C na Macu)"; -$lang['newpaste'] = "Nowa wklejka"; -$lang['download'] = "Pobierz"; -$lang['showlineno'] = "Pokaż/ukryj wiersz nr."; -$lang['copyto'] = "Kopiuj tekst do schowka"; -$lang['rawpaste'] = "Surowy plik wklejki"; -$lang['membersince'] = "Data dołączenia: "; +$lang['yourpastes'] = "Twoje wklejki"; +$lang['mypastestitle'] = "Wszystkie twoje wklejki w jednym miejscu."; +$lang['delete'] = "Usuń"; +$lang['highlighted'] = "Tekst jest zaznaczony, naciśnij Ctrl+C aby skopiować. (⌘+C na Macu)"; +$lang['newpaste'] = "Nowa wklejka"; +$lang['download'] = "Pobierz"; +$lang['showlineno'] = "Pokaż/ukryj wiersz nr."; +$lang['copyto'] = "Kopiuj tekst do schowka"; +$lang['rawpaste'] = "Surowy plik wklejki"; +$lang['membersince'] = "Data dołączenia: "; $lang['delete_error_invalid'] = "Błąd: Nie usunięto wklejki. Wklejka nie istnieje lub nie jesteś jej autorem."; -$lang['not_logged_in'] = "Błąd: Musisz zalogować się, aby to zrobić."; -$lang['public'] = "Publiczna"; -$lang['unlisted'] = "Niewidoczna"; -$lang['private'] = "Prywatna"; -$lang['hello'] = "Witaj"; +$lang['not_logged_in'] = "Błąd: Musisz zalogować się, aby to zrobić."; +$lang['public'] = "Publiczna"; +$lang['unlisted'] = "Niewidoczna"; +$lang['private'] = "Prywatna"; +$lang['hello'] = "Witaj"; $lang['profile-message'] = "To jest strona twojego konta, na której możesz zarządzać wklejkami.
    Znajdują się tu twoje wszystkie – prywatne, publiczne i niewidoczne wklejki. Możesz je tutaj usunąć. Inni użytkownicy mogą zobaczyć tu tylko twoje publiczne wklejki."; -$lang['profile-stats'] = "Twoje statystyki:"; +$lang['profile-stats'] = "Twoje statystyki:"; $lang['profile-total-pastes'] = "Wklejki łącznie:"; -$lang['profile-total-pub'] = "Publiczne wklejki:"; -$lang['profile-total-unl'] = "Niewidoczne wklejki:"; -$lang['profile-total-pri'] = "Prywatne wklejki:"; +$lang['profile-total-pub'] = "Publiczne wklejki:"; +$lang['profile-total-unl'] = "Niewidoczne wklejki:"; +$lang['profile-total-pri'] = "Prywatne wklejki:"; $lang['profile-total-views'] = "Wyświetlenia wszystkich wklejek:"; $lang['embed-hosted-by'] = "przechowywane na"; -$lang['view-raw'] = "Surowy plik"; +$lang['view-raw'] = "Surowy plik"; ?> diff --git a/mail/class.phpmailer.php b/mail/class.phpmailer.php index 6afcf9a..0be3a41 100644 --- a/mail/class.phpmailer.php +++ b/mail/class.phpmailer.php @@ -25,8 +25,7 @@ * @author Andy Prevost (codeworxtech) * @author Brent R. Matzelle (original founder) */ -class PHPMailer -{ +class PHPMailer { /** * The PHPMailer Version number. * @var string @@ -654,8 +653,7 @@ class PHPMailer * Constructor. * @param boolean $exceptions Should we throw external exceptions? */ - public function __construct($exceptions = null) - { + public function __construct($exceptions = null) { if ($exceptions !== null) { $this->exceptions = (boolean)$exceptions; } @@ -664,8 +662,7 @@ class PHPMailer /** * Destructor. */ - public function __destruct() - { + public function __destruct() { //Close any open SMTP connection nicely $this->smtpClose(); } @@ -683,8 +680,7 @@ class PHPMailer * @access private * @return boolean */ - private function mailPassthru($to, $subject, $body, $header, $params) - { + private function mailPassthru($to, $subject, $body, $header, $params) { //Check overloading of mail function to avoid double-encoding if (ini_get('mbstring.func_overload') & 1) { $subject = $this->secureHeader($subject); @@ -701,15 +697,15 @@ class PHPMailer } return $result; } + /** * Output debugging info via user-defined method. - * Only generates output if SMTP debug output is enabled (@see SMTP::$do_debug). + * Only generates output if SMTP debug output is enabled (@param string $str * @see PHPMailer::$Debugoutput * @see PHPMailer::$SMTPDebug - * @param string $str + * @see SMTP::$do_debug). */ - protected function edebug($str) - { + protected function edebug($str) { if ($this->SMTPDebug <= 0) { return; } @@ -726,21 +722,21 @@ class PHPMailer case 'html': //Cleans up output a bit for a better looking, HTML-safe output echo htmlentities( - preg_replace('/[\r\n]+/', '', $str), - ENT_QUOTES, - 'UTF-8' - ) - . "
    \n"; + preg_replace('/[\r\n]+/', '', $str), + ENT_QUOTES, + 'UTF-8' + ) + . "
    \n"; break; case 'echo': default: //Normalize line breaks $str = preg_replace('/\r\n?/ms', "\n", $str); echo gmdate('Y-m-d H:i:s') . "\t" . str_replace( - "\n", - "\n \t ", - trim($str) - ) . "\n"; + "\n", + "\n \t ", + trim($str) + ) . "\n"; } } @@ -749,8 +745,7 @@ class PHPMailer * @param boolean $isHtml True for HTML mode. * @return void */ - public function isHTML($isHtml = true) - { + public function isHTML($isHtml = true) { if ($isHtml) { $this->ContentType = 'text/html'; } else { @@ -762,8 +757,7 @@ class PHPMailer * Send messages using SMTP. * @return void */ - public function isSMTP() - { + public function isSMTP() { $this->Mailer = 'smtp'; } @@ -771,8 +765,7 @@ class PHPMailer * Send messages using PHP's mail() function. * @return void */ - public function isMail() - { + public function isMail() { $this->Mailer = 'mail'; } @@ -780,8 +773,7 @@ class PHPMailer * Send messages using $Sendmail. * @return void */ - public function isSendmail() - { + public function isSendmail() { $ini_sendmail_path = ini_get('sendmail_path'); if (!stristr($ini_sendmail_path, 'sendmail')) { @@ -796,8 +788,7 @@ class PHPMailer * Send messages using qmail. * @return void */ - public function isQmail() - { + public function isQmail() { $ini_sendmail_path = ini_get('sendmail_path'); if (!stristr($ini_sendmail_path, 'qmail')) { @@ -814,8 +805,7 @@ class PHPMailer * @param string $name * @return boolean true on success, false if address already used or invalid in some way */ - public function addAddress($address, $name = '') - { + public function addAddress($address, $name = '') { return $this->addOrEnqueueAnAddress('to', $address, $name); } @@ -826,8 +816,7 @@ class PHPMailer * @param string $name * @return boolean true on success, false if address already used or invalid in some way */ - public function addCC($address, $name = '') - { + public function addCC($address, $name = '') { return $this->addOrEnqueueAnAddress('cc', $address, $name); } @@ -838,8 +827,7 @@ class PHPMailer * @param string $name * @return boolean true on success, false if address already used or invalid in some way */ - public function addBCC($address, $name = '') - { + public function addBCC($address, $name = '') { return $this->addOrEnqueueAnAddress('bcc', $address, $name); } @@ -849,8 +837,7 @@ class PHPMailer * @param string $name * @return boolean true on success, false if address already used or invalid in some way */ - public function addReplyTo($address, $name = '') - { + public function addReplyTo($address, $name = '') { return $this->addOrEnqueueAnAddress('Reply-To', $address, $name); } @@ -862,12 +849,11 @@ class PHPMailer * @param string $kind One of 'to', 'cc', 'bcc', or 'ReplyTo' * @param string $address The email address to send, resp. to reply to * @param string $name - * @throws phpmailerException * @return boolean true on success, false if address already used or invalid in some way * @access protected + * @throws phpmailerException */ - protected function addOrEnqueueAnAddress($kind, $address, $name) - { + protected function addOrEnqueueAnAddress($kind, $address, $name) { $address = trim($address); $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim if (($pos = strrpos($address, '@')) === false) { @@ -906,12 +892,11 @@ class PHPMailer * @param string $kind One of 'to', 'cc', 'bcc', or 'ReplyTo' * @param string $address The email address to send, resp. to reply to * @param string $name - * @throws phpmailerException * @return boolean true on success, false if address already used or invalid in some way * @access protected + * @throws phpmailerException */ - protected function addAnAddress($kind, $address, $name = '') - { + protected function addAnAddress($kind, $address, $name = '') { if (!in_array($kind, array('to', 'cc', 'bcc', 'Reply-To'))) { $error_message = $this->lang('Invalid recipient kind: ') . $kind; $this->setError($error_message); @@ -955,8 +940,7 @@ class PHPMailer * @return array * @link http://www.andrew.cmu.edu/user/agreen1/testing/mrbs/web/Mail/RFC822.php A more careful implementation */ - public function parseAddresses($addrstr, $useimap = true) - { + public function parseAddresses($addrstr, $useimap = true) { $addresses = array(); if ($useimap and function_exists('imap_rfc822_parse_adrlist')) { //Use this built-in parser if it's available @@ -1005,11 +989,10 @@ class PHPMailer * @param string $address * @param string $name * @param boolean $auto Whether to also set the Sender address, defaults to true - * @throws phpmailerException * @return boolean + * @throws phpmailerException */ - public function setFrom($address, $name = '', $auto = true) - { + public function setFrom($address, $name = '', $auto = true) { $address = trim($address); $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim // Don't validate now addresses with IDN. Will be done in send(). @@ -1041,8 +1024,7 @@ class PHPMailer * pathological cases. * @return string */ - public function getLastMessageID() - { + public function getLastMessageID() { return $this->lastMessageID; } @@ -1065,8 +1047,7 @@ class PHPMailer * @static * @access public */ - public static function validateAddress($address, $patternselect = null) - { + public static function validateAddress($address, $patternselect = null) { if (is_null($patternselect)) { $patternselect = self::$validator; } @@ -1161,8 +1142,7 @@ class PHPMailer * "intl" and "mbstring" PHP extensions. * @return bool "true" if required functions for IDN support are present */ - public function idnSupported() - { + public function idnSupported() { // @TODO: Write our own "idn_to_ascii" function for PHP <= 5.2. return function_exists('idn_to_ascii') and function_exists('mb_convert_encoding'); } @@ -1174,12 +1154,11 @@ class PHPMailer * - No conversion is necessary (i.e. domain name is not an IDN, or is already in ASCII form) * - Conversion to punycode is impossible (e.g. required PHP functions are not available) * or fails for any reason (e.g. domain has characters not allowed in an IDN) - * @see PHPMailer::$CharSet * @param string $address The email address to convert * @return string The encoded address in ASCII form + * @see PHPMailer::$CharSet */ - public function punyencodeAddress($address) - { + public function punyencodeAddress($address) { // Verify we have required functions, CharSet, and at-sign. if ($this->idnSupported() and !empty($this->CharSet) and @@ -1189,8 +1168,8 @@ class PHPMailer if ($this->has8bitChars($domain) and @mb_check_encoding($domain, $this->CharSet)) { $domain = mb_convert_encoding($domain, 'UTF-8', $this->CharSet); if (($punycode = defined('INTL_IDNA_VARIANT_UTS46') ? - idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46) : - idn_to_ascii($domain)) !== false) { + idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46) : + idn_to_ascii($domain)) !== false) { return substr($address, 0, $pos) . $punycode; } } @@ -1201,11 +1180,10 @@ class PHPMailer /** * Create a message and send it. * Uses the sending method specified by $Mailer. - * @throws phpmailerException * @return boolean false on error - See the ErrorInfo property for details of the error. + * @throws phpmailerException */ - public function send() - { + public function send() { try { if (!$this->preSend()) { return false; @@ -1223,11 +1201,10 @@ class PHPMailer /** * Prepare a message for sending. - * @throws phpmailerException * @return boolean + * @throws phpmailerException */ - public function preSend() - { + public function preSend() { try { $this->error_count = 0; // Reset errors $this->mailHeader = ''; @@ -1296,7 +1273,7 @@ class PHPMailer if (!empty($this->DKIM_domain) && !empty($this->DKIM_selector) && (!empty($this->DKIM_private_string) - || (!empty($this->DKIM_private) && file_exists($this->DKIM_private)) + || (!empty($this->DKIM_private) && file_exists($this->DKIM_private)) ) ) { $header_dkim = $this->DKIM_Add( @@ -1320,11 +1297,10 @@ class PHPMailer /** * Actually send a message. * Send the email via the selected mechanism - * @throws phpmailerException * @return boolean + * @throws phpmailerException */ - public function postSend() - { + public function postSend() { try { // Choose the mailer and send through it switch ($this->Mailer) { @@ -1336,7 +1312,7 @@ class PHPMailer case 'mail': return $this->mailSend($this->MIMEHeader, $this->MIMEBody); default: - $sendMethod = $this->Mailer.'Send'; + $sendMethod = $this->Mailer . 'Send'; if (method_exists($this, $sendMethod)) { return $this->$sendMethod($this->MIMEHeader, $this->MIMEBody); } @@ -1357,13 +1333,12 @@ class PHPMailer * Send mail using the $Sendmail program. * @param string $header The message headers * @param string $body The message body - * @see PHPMailer::$Sendmail + * @return boolean * @throws phpmailerException * @access protected - * @return boolean + * @see PHPMailer::$Sendmail */ - protected function sendmailSend($header, $body) - { + protected function sendmailSend($header, $body) { if (!empty($this->Sender)) { if ($this->Mailer == 'qmail') { $sendmail = sprintf('%s -f%s', escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender)); @@ -1426,13 +1401,12 @@ class PHPMailer * Send mail using the PHP mail() function. * @param string $header The message headers * @param string $body The message body - * @link http://www.php.net/manual/en/book.mail.php + * @return boolean * @throws phpmailerException * @access protected - * @return boolean + * @link http://www.php.net/manual/en/book.mail.php */ - protected function mailSend($header, $body) - { + protected function mailSend($header, $body) { $toArr = array(); foreach ($this->to as $toaddr) { $toArr[] = $this->addrFormat($toaddr); @@ -1472,8 +1446,7 @@ class PHPMailer * Override this function to load your own SMTP implementation * @return SMTP */ - public function getSMTPInstance() - { + public function getSMTPInstance() { if (!is_object($this->smtp)) { $this->smtp = new SMTP; } @@ -1484,16 +1457,15 @@ class PHPMailer * Send mail via SMTP. * Returns false if there is a bad MAIL FROM, RCPT, or DATA input. * Uses the PHPMailerSMTP class by default. - * @see PHPMailer::getSMTPInstance() to use a different class. * @param string $header The message headers * @param string $body The message body + * @return boolean * @throws phpmailerException * @uses SMTP * @access protected - * @return boolean + * @see PHPMailer::getSMTPInstance() to use a different class. */ - protected function smtpSend($header, $body) - { + protected function smtpSend($header, $body) { $bad_rcpt = array(); if (!$this->smtpConnect($this->SMTPOptions)) { throw new phpmailerException($this->lang('smtp_connect_failed'), self::STOP_CRITICAL); @@ -1550,13 +1522,12 @@ class PHPMailer * Initiate a connection to an SMTP server. * Returns false if the operation failed. * @param array $options An array of options compatible with stream_context_create() + * @return boolean + * @throws phpmailerException * @uses SMTP * @access public - * @throws phpmailerException - * @return boolean */ - public function smtpConnect($options = null) - { + public function smtpConnect($options = null) { if (is_null($this->smtp)) { $this->smtp = $this->getSMTPInstance(); } @@ -1606,7 +1577,7 @@ class PHPMailer if ('tls' === $secure or 'ssl' === $secure) { //Check for an OpenSSL constant rather than using extension_loaded, which is sometimes disabled if (!$sslext) { - throw new phpmailerException($this->lang('extension_missing').'openssl', self::STOP_CRITICAL); + throw new phpmailerException($this->lang('extension_missing') . 'openssl', self::STOP_CRITICAL); } } $host = $hostinfo[3]; @@ -1672,8 +1643,7 @@ class PHPMailer * Close the active SMTP session if one exists. * @return void */ - public function smtpClose() - { + public function smtpClose() { if (is_a($this->smtp, 'SMTP')) { if ($this->smtp->connected()) { $this->smtp->quit(); @@ -1691,8 +1661,7 @@ class PHPMailer * @return boolean * @access public */ - public function setLanguage($langcode = 'en', $lang_path = '') - { + public function setLanguage($langcode = 'en', $lang_path = '') { // Backwards compatibility for renamed language codes $renamed_langcodes = array( 'br' => 'pt_br', @@ -1730,7 +1699,7 @@ class PHPMailer ); if (empty($lang_path)) { // Calculate an absolute path so it can work if CWD is not here - $lang_path = dirname(__FILE__). DIRECTORY_SEPARATOR . 'language'. DIRECTORY_SEPARATOR; + $lang_path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'language' . DIRECTORY_SEPARATOR; } //Validate $langcode if (!preg_match('/^[a-z]{2}(?:_[a-zA-Z]{2})?$/', $langcode)) { @@ -1757,8 +1726,7 @@ class PHPMailer * Get the array of strings for the current language. * @return array */ - public function getTranslations() - { + public function getTranslations() { return $this->language; } @@ -1772,8 +1740,7 @@ class PHPMailer * array(array('joe@example.com', 'Joe User'), array('zoe@example.com', 'Zoe User')) * @return string */ - public function addrAppend($type, $addr) - { + public function addrAppend($type, $addr) { $addresses = array(); foreach ($addr as $address) { $addresses[] = $this->addrFormat($address); @@ -1788,14 +1755,13 @@ class PHPMailer * like array('joe@example.com', 'Joe User') * @return string */ - public function addrFormat($addr) - { + public function addrFormat($addr) { if (empty($addr[1])) { // No name provided return $this->secureHeader($addr[0]); } else { return $this->encodeHeader($this->secureHeader($addr[1]), 'phrase') . ' <' . $this->secureHeader( - $addr[0] - ) . '>'; + $addr[0] + ) . '>'; } } @@ -1810,8 +1776,7 @@ class PHPMailer * @access public * @return string */ - public function wrapText($message, $length, $qp_mode = false) - { + public function wrapText($message, $length, $qp_mode = false) { if ($qp_mode) { $soft_break = sprintf(' =%s', $this->LE); } else { @@ -1909,8 +1874,7 @@ class PHPMailer * @param integer $maxLength Find the last character boundary prior to this length * @return integer */ - public function utf8CharBoundary($encodedText, $maxLength) - { + public function utf8CharBoundary($encodedText, $maxLength) { $foundSplitPos = false; $lookBack = 3; while (!$foundSplitPos) { @@ -1954,8 +1918,7 @@ class PHPMailer * @access public * @return void */ - public function setWordWrap() - { + public function setWordWrap() { if ($this->WordWrap < 1) { return; } @@ -1978,8 +1941,7 @@ class PHPMailer * @access public * @return string The assembled headers */ - public function createHeader() - { + public function createHeader() { $result = ''; if ($this->MessageDate == '') { @@ -2076,8 +2038,7 @@ class PHPMailer * @access public * @return string */ - public function getMailMIME() - { + public function getMailMIME() { $result = ''; $ismultipart = true; switch ($this->message_type) { @@ -2127,12 +2088,11 @@ class PHPMailer * Returns the whole MIME message. * Includes complete headers and body. * Only valid post preSend(). + * @return string * @see PHPMailer::preSend() * @access public - * @return string */ - public function getSentMIMEMessage() - { + public function getSentMIMEMessage() { return rtrim($this->MIMEHeader . $this->mailHeader, "\n\r") . self::CRLF . self::CRLF . $this->MIMEBody; } @@ -2148,11 +2108,10 @@ class PHPMailer * Assemble the message body. * Returns an empty string on failure. * @access public - * @throws phpmailerException * @return string The assembled message body + * @throws phpmailerException */ - public function createBody() - { + public function createBody() { $body = ''; //Create unique IDs and preset boundaries $this->uniqueid = $this->generateId(); @@ -2365,8 +2324,7 @@ class PHPMailer * @param string $encoding * @return string */ - protected function getBoundary($boundary, $charSet, $contentType, $encoding) - { + protected function getBoundary($boundary, $charSet, $contentType, $encoding) { $result = ''; if ($charSet == '') { $charSet = $this->CharSet; @@ -2395,8 +2353,7 @@ class PHPMailer * @param string $boundary * @return string */ - protected function endBoundary($boundary) - { + protected function endBoundary($boundary) { return $this->LE . '--' . $boundary . '--' . $this->LE; } @@ -2406,8 +2363,7 @@ class PHPMailer * @access protected * @return void */ - protected function setMessageType() - { + protected function setMessageType() { $type = array(); if ($this->alternativeExists()) { $type[] = 'alt'; @@ -2432,8 +2388,7 @@ class PHPMailer * @param string $value * @return string */ - public function headerLine($name, $value) - { + public function headerLine($name, $value) { return $name . ': ' . $value . $this->LE; } @@ -2443,8 +2398,7 @@ class PHPMailer * @param string $value * @return string */ - public function textLine($value) - { + public function textLine($value) { return $value . $this->LE; } @@ -2456,11 +2410,10 @@ class PHPMailer * @param string $encoding File encoding (see $Encoding). * @param string $type File extension (MIME) type. * @param string $disposition Disposition to use - * @throws phpmailerException * @return boolean + * @throws phpmailerException */ - public function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment') - { + public function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment') { try { if (!@is_file($path)) { throw new phpmailerException($this->lang('file_access') . $path, self::STOP_CONTINUE); @@ -2502,8 +2455,7 @@ class PHPMailer * Return the array of attachments. * @return array */ - public function getAttachments() - { + public function getAttachments() { return $this->attachment; } @@ -2515,8 +2467,7 @@ class PHPMailer * @param string $boundary * @return string */ - protected function attachAll($disposition_type, $boundary) - { + protected function attachAll($disposition_type, $boundary) { // Return text of body $mime = array(); $cidUniq = array(); @@ -2636,12 +2587,11 @@ class PHPMailer * Returns an empty string on failure. * @param string $path The full path to the file * @param string $encoding The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable' + * @return string * @throws phpmailerException * @access protected - * @return string */ - protected function encodeFile($path, $encoding = 'base64') - { + protected function encodeFile($path, $encoding = 'base64') { try { if (!is_readable($path)) { throw new phpmailerException($this->lang('file_open') . $path, self::STOP_CONTINUE); @@ -2681,8 +2631,7 @@ class PHPMailer * @access public * @return string */ - public function encodeString($str, $encoding = 'base64') - { + public function encodeString($str, $encoding = 'base64') { $encoded = ''; switch (strtolower($encoding)) { case 'base64': @@ -2717,8 +2666,7 @@ class PHPMailer * @param string $position * @return string */ - public function encodeHeader($str, $position = 'text') - { + public function encodeHeader($str, $position = 'text') { $matchcount = 0; switch (strtolower($position)) { case 'phrase': @@ -2736,7 +2684,7 @@ class PHPMailer /** @noinspection PhpMissingBreakStatementInspection */ case 'comment': $matchcount = preg_match_all('/[()"]/', $str, $matches); - // Intentional fall-through + // Intentional fall-through case 'text': default: $matchcount += preg_match_all('/[\000-\010\013\014\016-\037\177-\377]/', $str, $matches); @@ -2781,8 +2729,7 @@ class PHPMailer * @param string $str multi-byte text to wrap encode * @return boolean */ - public function hasMultiBytes($str) - { + public function hasMultiBytes($str) { if (function_exists('mb_strlen')) { return (strlen($str) > mb_strlen($str, $this->CharSet)); } else { // Assume no multibytes (we can't handle without mbstring functions anyway) @@ -2795,8 +2742,7 @@ class PHPMailer * @param string $text * @return boolean */ - public function has8bitChars($text) - { + public function has8bitChars($text) { return (boolean)preg_match('/[\x80-\xFF]/', $text); } @@ -2810,8 +2756,7 @@ class PHPMailer * @param string $linebreak string to use as linefeed/end-of-line * @return string */ - public function base64EncodeWrapMB($str, $linebreak = null) - { + public function base64EncodeWrapMB($str, $linebreak = null) { $start = '=?' . $this->CharSet . '?B?'; $end = '?='; $encoded = ''; @@ -2852,8 +2797,7 @@ class PHPMailer * @return string * @link http://www.php.net/manual/en/function.quoted-printable-decode.php#89417 Adapted from this comment */ - public function encodeQP($string, $line_max = 76) - { + public function encodeQP($string, $line_max = 76) { // Use native function if it's available (>= PHP5.3) if (function_exists('quoted_printable_encode')) { return quoted_printable_encode($string); @@ -2869,12 +2813,12 @@ class PHPMailer /** * Backward compatibility wrapper for an old QP encoding function that was removed. - * @see PHPMailer::encodeQP() - * @access public * @param string $string * @param integer $line_max * @param boolean $space_conv * @return string + * @see PHPMailer::encodeQP() + * @access public * @deprecated Use encodeQP instead. */ public function encodeQPphp( @@ -2893,8 +2837,7 @@ class PHPMailer * @access public * @return string */ - public function encodeQ($str, $position = 'text') - { + public function encodeQ($str, $position = 'text') { // There should not be any EOL in the string $pattern = ''; $encoded = str_replace(array("\r", "\n"), '', $str); @@ -2907,8 +2850,8 @@ class PHPMailer case 'comment': // RFC 2047 section 5.2 $pattern = '\(\)"'; - // intentional fall-through - // for this reason we build the $pattern without including delimiters and [] + // intentional fall-through + // for this reason we build the $pattern without including delimiters and [] case 'text': default: // RFC 2047 section 5.1 @@ -2984,8 +2927,7 @@ class PHPMailer * @param string $disposition Disposition to use * @return boolean True on successfully adding an attachment */ - public function addEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = '', $disposition = 'inline') - { + public function addEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = '', $disposition = 'inline') { if (!@is_file($path)) { $this->setError($this->lang('file_access') . $path); return false; @@ -3061,8 +3003,7 @@ class PHPMailer * @access public * @return boolean */ - public function inlineImageExists() - { + public function inlineImageExists() { foreach ($this->attachment as $attachment) { if ($attachment[6] == 'inline') { return true; @@ -3075,8 +3016,7 @@ class PHPMailer * Check if an attachment (non-inline) is present. * @return boolean */ - public function attachmentExists() - { + public function attachmentExists() { foreach ($this->attachment as $attachment) { if ($attachment[6] == 'attachment') { return true; @@ -3089,8 +3029,7 @@ class PHPMailer * Check if this message has an alternative body set. * @return boolean */ - public function alternativeExists() - { + public function alternativeExists() { return !empty($this->AltBody); } @@ -3100,8 +3039,7 @@ class PHPMailer * @param string $kind 'to', 'cc', or 'bcc' * @return void */ - public function clearQueuedAddresses($kind) - { + public function clearQueuedAddresses($kind) { $RecipientsQueue = $this->RecipientsQueue; foreach ($RecipientsQueue as $address => $params) { if ($params[0] == $kind) { @@ -3114,8 +3052,7 @@ class PHPMailer * Clear all To recipients. * @return void */ - public function clearAddresses() - { + public function clearAddresses() { foreach ($this->to as $to) { unset($this->all_recipients[strtolower($to[0])]); } @@ -3127,8 +3064,7 @@ class PHPMailer * Clear all CC recipients. * @return void */ - public function clearCCs() - { + public function clearCCs() { foreach ($this->cc as $cc) { unset($this->all_recipients[strtolower($cc[0])]); } @@ -3140,8 +3076,7 @@ class PHPMailer * Clear all BCC recipients. * @return void */ - public function clearBCCs() - { + public function clearBCCs() { foreach ($this->bcc as $bcc) { unset($this->all_recipients[strtolower($bcc[0])]); } @@ -3153,8 +3088,7 @@ class PHPMailer * Clear all ReplyTo recipients. * @return void */ - public function clearReplyTos() - { + public function clearReplyTos() { $this->ReplyTo = array(); $this->ReplyToQueue = array(); } @@ -3163,8 +3097,7 @@ class PHPMailer * Clear all recipient types. * @return void */ - public function clearAllRecipients() - { + public function clearAllRecipients() { $this->to = array(); $this->cc = array(); $this->bcc = array(); @@ -3176,8 +3109,7 @@ class PHPMailer * Clear all filesystem, string, and binary attachments. * @return void */ - public function clearAttachments() - { + public function clearAttachments() { $this->attachment = array(); } @@ -3185,8 +3117,7 @@ class PHPMailer * Clear all custom headers. * @return void */ - public function clearCustomHeaders() - { + public function clearCustomHeaders() { $this->CustomHeader = array(); } @@ -3196,15 +3127,14 @@ class PHPMailer * @param string $msg * @return void */ - protected function setError($msg) - { + protected function setError($msg) { $this->error_count++; if ($this->Mailer == 'smtp' and !is_null($this->smtp)) { $lasterror = $this->smtp->getError(); if (!empty($lasterror['error'])) { $msg .= $this->lang('smtp_error') . $lasterror['error']; if (!empty($lasterror['detail'])) { - $msg .= ' Detail: '. $lasterror['detail']; + $msg .= ' Detail: ' . $lasterror['detail']; } if (!empty($lasterror['smtp_code'])) { $msg .= ' SMTP code: ' . $lasterror['smtp_code']; @@ -3223,8 +3153,7 @@ class PHPMailer * @return string * @static */ - public static function rfcDate() - { + public static function rfcDate() { // Set the time zone to whatever the default is to avoid 500 errors // Will default to UTC if it's not set properly in php.ini date_default_timezone_set(@date_default_timezone_get()); @@ -3237,8 +3166,7 @@ class PHPMailer * @access protected * @return string */ - protected function serverHostname() - { + protected function serverHostname() { $result = 'localhost.localdomain'; if (!empty($this->Hostname)) { $result = $this->Hostname; @@ -3258,8 +3186,7 @@ class PHPMailer * @param string $key * @return string */ - protected function lang($key) - { + protected function lang($key) { if (count($this->language) < 1) { $this->setLanguage('en'); // set the default language } @@ -3283,8 +3210,7 @@ class PHPMailer * @access public * @return boolean True if an error did occur. */ - public function isError() - { + public function isError() { return ($this->error_count > 0); } @@ -3295,8 +3221,7 @@ class PHPMailer * @param string $str String to fixEOL * @return string */ - public function fixEOL($str) - { + public function fixEOL($str) { // Normalise to \n $nstr = str_replace(array("\r\n", "\r"), "\n", $str); // Now convert LE as needed @@ -3315,8 +3240,7 @@ class PHPMailer * @param string $value Header value * @return void */ - public function addCustomHeader($name, $value = null) - { + public function addCustomHeader($name, $value = null) { if ($value === null) { // Value passed in as name:value $this->CustomHeader[] = explode(':', $name, 2); @@ -3329,8 +3253,7 @@ class PHPMailer * Returns all custom headers. * @return array */ - public function getCustomHeaders() - { + public function getCustomHeaders() { return $this->CustomHeader; } @@ -3345,11 +3268,10 @@ class PHPMailer * @param string $message HTML message string * @param string $basedir base directory for relative paths to images * @param boolean|callable $advanced Whether to use the internal HTML to text converter - * or your own custom converter @see PHPMailer::html2text() - * @return string $message The transformed message Body + * or your own custom converter @return string $message The transformed message Body + * @see PHPMailer::html2text() */ - public function msgHTML($message, $basedir = '', $advanced = false) - { + public function msgHTML($message, $basedir = '', $advanced = false) { preg_match_all('/(src|background)=["\'](.*)["\']/Ui', $message, $images); if (array_key_exists(2, $images)) { foreach ($images[2] as $imgindex => $url) { @@ -3432,8 +3354,7 @@ class PHPMailer * or provide your own callable for custom conversion. * @return string */ - public function html2text($html, $advanced = false) - { + public function html2text($html, $advanced = false) { if (is_callable($advanced)) { return call_user_func($advanced, $html); } @@ -3451,106 +3372,105 @@ class PHPMailer * @return string MIME type of file. * @static */ - public static function _mime_types($ext = '') - { + public static function _mime_types($ext = '') { $mimes = array( - 'xl' => 'application/excel', - 'js' => 'application/javascript', - 'hqx' => 'application/mac-binhex40', - 'cpt' => 'application/mac-compactpro', - 'bin' => 'application/macbinary', - 'doc' => 'application/msword', - 'word' => 'application/msword', - 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', - 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template', - 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', - 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', - 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide', - 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', - 'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12', - 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', + 'xl' => 'application/excel', + 'js' => 'application/javascript', + 'hqx' => 'application/mac-binhex40', + 'cpt' => 'application/mac-compactpro', + 'bin' => 'application/macbinary', + 'doc' => 'application/msword', + 'word' => 'application/msword', + 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', + 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template', + 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', + 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', + 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide', + 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', + 'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12', + 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', 'class' => 'application/octet-stream', - 'dll' => 'application/octet-stream', - 'dms' => 'application/octet-stream', - 'exe' => 'application/octet-stream', - 'lha' => 'application/octet-stream', - 'lzh' => 'application/octet-stream', - 'psd' => 'application/octet-stream', - 'sea' => 'application/octet-stream', - 'so' => 'application/octet-stream', - 'oda' => 'application/oda', - 'pdf' => 'application/pdf', - 'ai' => 'application/postscript', - 'eps' => 'application/postscript', - 'ps' => 'application/postscript', - 'smi' => 'application/smil', - 'smil' => 'application/smil', - 'mif' => 'application/vnd.mif', - 'xls' => 'application/vnd.ms-excel', - 'ppt' => 'application/vnd.ms-powerpoint', + 'dll' => 'application/octet-stream', + 'dms' => 'application/octet-stream', + 'exe' => 'application/octet-stream', + 'lha' => 'application/octet-stream', + 'lzh' => 'application/octet-stream', + 'psd' => 'application/octet-stream', + 'sea' => 'application/octet-stream', + 'so' => 'application/octet-stream', + 'oda' => 'application/oda', + 'pdf' => 'application/pdf', + 'ai' => 'application/postscript', + 'eps' => 'application/postscript', + 'ps' => 'application/postscript', + 'smi' => 'application/smil', + 'smil' => 'application/smil', + 'mif' => 'application/vnd.mif', + 'xls' => 'application/vnd.ms-excel', + 'ppt' => 'application/vnd.ms-powerpoint', 'wbxml' => 'application/vnd.wap.wbxml', - 'wmlc' => 'application/vnd.wap.wmlc', - 'dcr' => 'application/x-director', - 'dir' => 'application/x-director', - 'dxr' => 'application/x-director', - 'dvi' => 'application/x-dvi', - 'gtar' => 'application/x-gtar', - 'php3' => 'application/x-httpd-php', - 'php4' => 'application/x-httpd-php', - 'php' => 'application/x-httpd-php', + 'wmlc' => 'application/vnd.wap.wmlc', + 'dcr' => 'application/x-director', + 'dir' => 'application/x-director', + 'dxr' => 'application/x-director', + 'dvi' => 'application/x-dvi', + 'gtar' => 'application/x-gtar', + 'php3' => 'application/x-httpd-php', + 'php4' => 'application/x-httpd-php', + 'php' => 'application/x-httpd-php', 'phtml' => 'application/x-httpd-php', - 'phps' => 'application/x-httpd-php-source', - 'swf' => 'application/x-shockwave-flash', - 'sit' => 'application/x-stuffit', - 'tar' => 'application/x-tar', - 'tgz' => 'application/x-tar', - 'xht' => 'application/xhtml+xml', + 'phps' => 'application/x-httpd-php-source', + 'swf' => 'application/x-shockwave-flash', + 'sit' => 'application/x-stuffit', + 'tar' => 'application/x-tar', + 'tgz' => 'application/x-tar', + 'xht' => 'application/xhtml+xml', 'xhtml' => 'application/xhtml+xml', - 'zip' => 'application/zip', - 'mid' => 'audio/midi', - 'midi' => 'audio/midi', - 'mp2' => 'audio/mpeg', - 'mp3' => 'audio/mpeg', - 'mpga' => 'audio/mpeg', - 'aif' => 'audio/x-aiff', - 'aifc' => 'audio/x-aiff', - 'aiff' => 'audio/x-aiff', - 'ram' => 'audio/x-pn-realaudio', - 'rm' => 'audio/x-pn-realaudio', - 'rpm' => 'audio/x-pn-realaudio-plugin', - 'ra' => 'audio/x-realaudio', - 'wav' => 'audio/x-wav', - 'bmp' => 'image/bmp', - 'gif' => 'image/gif', - 'jpeg' => 'image/jpeg', - 'jpe' => 'image/jpeg', - 'jpg' => 'image/jpeg', - 'png' => 'image/png', - 'tiff' => 'image/tiff', - 'tif' => 'image/tiff', - 'eml' => 'message/rfc822', - 'css' => 'text/css', - 'html' => 'text/html', - 'htm' => 'text/html', + 'zip' => 'application/zip', + 'mid' => 'audio/midi', + 'midi' => 'audio/midi', + 'mp2' => 'audio/mpeg', + 'mp3' => 'audio/mpeg', + 'mpga' => 'audio/mpeg', + 'aif' => 'audio/x-aiff', + 'aifc' => 'audio/x-aiff', + 'aiff' => 'audio/x-aiff', + 'ram' => 'audio/x-pn-realaudio', + 'rm' => 'audio/x-pn-realaudio', + 'rpm' => 'audio/x-pn-realaudio-plugin', + 'ra' => 'audio/x-realaudio', + 'wav' => 'audio/x-wav', + 'bmp' => 'image/bmp', + 'gif' => 'image/gif', + 'jpeg' => 'image/jpeg', + 'jpe' => 'image/jpeg', + 'jpg' => 'image/jpeg', + 'png' => 'image/png', + 'tiff' => 'image/tiff', + 'tif' => 'image/tiff', + 'eml' => 'message/rfc822', + 'css' => 'text/css', + 'html' => 'text/html', + 'htm' => 'text/html', 'shtml' => 'text/html', - 'log' => 'text/plain', - 'text' => 'text/plain', - 'txt' => 'text/plain', - 'rtx' => 'text/richtext', - 'rtf' => 'text/rtf', - 'vcf' => 'text/vcard', + 'log' => 'text/plain', + 'text' => 'text/plain', + 'txt' => 'text/plain', + 'rtx' => 'text/richtext', + 'rtf' => 'text/rtf', + 'vcf' => 'text/vcard', 'vcard' => 'text/vcard', - 'xml' => 'text/xml', - 'xsl' => 'text/xml', - 'mpeg' => 'video/mpeg', - 'mpe' => 'video/mpeg', - 'mpg' => 'video/mpeg', - 'mov' => 'video/quicktime', - 'qt' => 'video/quicktime', - 'rv' => 'video/vnd.rn-realvideo', - 'avi' => 'video/x-msvideo', + 'xml' => 'text/xml', + 'xsl' => 'text/xml', + 'mpeg' => 'video/mpeg', + 'mpe' => 'video/mpeg', + 'mpg' => 'video/mpeg', + 'mov' => 'video/quicktime', + 'qt' => 'video/quicktime', + 'rv' => 'video/vnd.rn-realvideo', + 'avi' => 'video/x-msvideo', 'movie' => 'video/x-sgi-movie' ); if (array_key_exists(strtolower($ext), $mimes)) { @@ -3566,8 +3486,7 @@ class PHPMailer * @return string * @static */ - public static function filenameToType($filename) - { + public static function filenameToType($filename) { // In case the path is a URL, strip any query string before getting extension $qpos = strpos($filename, '?'); if (false !== $qpos) { @@ -3588,8 +3507,7 @@ class PHPMailer * @return string|array * @static */ - public static function mb_pathinfo($path, $options = null) - { + public static function mb_pathinfo($path, $options = null) { $ret = array('dirname' => '', 'basename' => '', 'extension' => '', 'filename' => ''); $pathinfo = array(); if (preg_match('%^(.*?)[\\\\/]*(([^/\\\\]*?)(\.([^\.\\\\/]+?)|))[\\\\/\.]*$%im', $path, $pathinfo)) { @@ -3638,8 +3556,7 @@ class PHPMailer * @return boolean * @TODO Should this not be using the __set() magic function? */ - public function set($name, $value = '') - { + public function set($name, $value = '') { if (property_exists($this, $name)) { $this->$name = $value; return true; @@ -3655,8 +3572,7 @@ class PHPMailer * @param string $str * @return string */ - public function secureHeader($str) - { + public function secureHeader($str) { return trim(str_replace(array("\r", "\n"), '', $str)); } @@ -3670,8 +3586,7 @@ class PHPMailer * @access public * @static */ - public static function normalizeBreaks($text, $breaktype = "\r\n") - { + public static function normalizeBreaks($text, $breaktype = "\r\n") { return preg_replace('/(\r\n|\r|\n)/ms', $breaktype, $text); } @@ -3683,8 +3598,7 @@ class PHPMailer * @param string $key_pass Password for private key * @param string $extracerts_filename Optional path to chain certificate */ - public function sign($cert_filename, $key_filename, $key_pass, $extracerts_filename = '') - { + public function sign($cert_filename, $key_filename, $key_pass, $extracerts_filename = '') { $this->sign_cert_file = $cert_filename; $this->sign_key_file = $key_filename; $this->sign_key_pass = $key_pass; @@ -3697,8 +3611,7 @@ class PHPMailer * @param string $txt * @return string */ - public function DKIM_QP($txt) - { + public function DKIM_QP($txt) { $line = ''; for ($i = 0; $i < strlen($txt); $i++) { $ord = ord($txt[$i]); @@ -3715,11 +3628,10 @@ class PHPMailer * Generate a DKIM signature. * @access public * @param string $signHeader - * @throws phpmailerException * @return string The DKIM signature value + * @throws phpmailerException */ - public function DKIM_Sign($signHeader) - { + public function DKIM_Sign($signHeader) { if (!defined('PKCS7_TEXT')) { if ($this->exceptions) { throw new phpmailerException($this->lang('extension_missing') . 'openssl'); @@ -3764,8 +3676,7 @@ class PHPMailer * @param string $signHeader Header * @return string */ - public function DKIM_HeaderC($signHeader) - { + public function DKIM_HeaderC($signHeader) { $signHeader = preg_replace('/\r\n\s+/', ' ', $signHeader); $lines = explode("\r\n", $signHeader); foreach ($lines as $key => $line) { @@ -3784,8 +3695,7 @@ class PHPMailer * @param string $body Message Body * @return string */ - public function DKIM_BodyC($body) - { + public function DKIM_BodyC($body) { if ($body == '') { return "\r\n"; } @@ -3807,8 +3717,7 @@ class PHPMailer * @param string $body Body * @return string */ - public function DKIM_Add($headers_line, $subject, $body) - { + public function DKIM_Add($headers_line, $subject, $body) { $DKIMsignatureType = 'rsa-sha256'; // Signature & hash algorithms $DKIMcanonicalization = 'relaxed/simple'; // Canonicalization of header/body $DKIMquery = 'dns/txt'; // Query method @@ -3885,10 +3794,9 @@ class PHPMailer * @return boolean * @static */ - public static function hasLineLongerThanMax($str) - { + public static function hasLineLongerThanMax($str) { //+2 to include CRLF line break for a 1000 total - return (boolean)preg_match('/^(.{'.(self::MAX_LINE_LENGTH + 2).',})/m', $str); + return (boolean)preg_match('/^(.{' . (self::MAX_LINE_LENGTH + 2) . ',})/m', $str); } /** @@ -3897,8 +3805,7 @@ class PHPMailer * @access public * @return array */ - public function getToAddresses() - { + public function getToAddresses() { return $this->to; } @@ -3908,8 +3815,7 @@ class PHPMailer * @access public * @return array */ - public function getCcAddresses() - { + public function getCcAddresses() { return $this->cc; } @@ -3919,8 +3825,7 @@ class PHPMailer * @access public * @return array */ - public function getBccAddresses() - { + public function getBccAddresses() { return $this->bcc; } @@ -3930,8 +3835,7 @@ class PHPMailer * @access public * @return array */ - public function getReplyToAddresses() - { + public function getReplyToAddresses() { return $this->ReplyTo; } @@ -3941,8 +3845,7 @@ class PHPMailer * @access public * @return array */ - public function getAllRecipientAddresses() - { + public function getAllRecipientAddresses() { return $this->all_recipients; } @@ -3956,8 +3859,7 @@ class PHPMailer * @param string $body * @param string $from */ - protected function doCallback($isSent, $to, $cc, $bcc, $subject, $body, $from) - { + protected function doCallback($isSent, $to, $cc, $bcc, $subject, $body, $from) { if (!empty($this->action_function) && is_callable($this->action_function)) { $params = array($isSent, $to, $cc, $bcc, $subject, $body, $from); call_user_func_array($this->action_function, $params); @@ -3969,14 +3871,12 @@ class PHPMailer * PHPMailer exception handler * @package PHPMailer */ -class phpmailerException extends Exception -{ +class phpmailerException extends Exception { /** * Prettify error message output * @return string */ - public function errorMessage() - { + public function errorMessage() { $errorMsg = '' . $this->getMessage() . "
    \n"; return $errorMsg; } diff --git a/mail/class.pop3.php b/mail/class.pop3.php index 32d614b..45108d0 100644 --- a/mail/class.pop3.php +++ b/mail/class.pop3.php @@ -27,8 +27,7 @@ * @author Jim Jagielski (jimjag) * @author Andy Prevost (codeworxtech) */ -class POP3 -{ +class POP3 { /** * The POP3 PHPMailer Version number. * @var string @@ -162,8 +161,7 @@ class POP3 * @param integer $debug_level * @return boolean */ - public function authorise($host, $port = false, $timeout = false, $username = '', $password = '', $debug_level = 0) - { + public function authorise($host, $port = false, $timeout = false, $username = '', $password = '', $debug_level = 0) { $this->host = $host; // If no port value provided, use default if (false === $port) { @@ -204,8 +202,7 @@ class POP3 * @param integer $tval * @return boolean */ - public function connect($host, $port = false, $tval = 30) - { + public function connect($host, $port = false, $tval = 30) { // Are we already connected? if ($this->connected) { return true; @@ -263,8 +260,7 @@ class POP3 * @param string $password * @return boolean */ - public function login($username = '', $password = '') - { + public function login($username = '', $password = '') { if (!$this->connected) { $this->setError('Not connected to POP3 server'); } @@ -293,8 +289,7 @@ class POP3 * Disconnect from the POP3 server. * @access public */ - public function disconnect() - { + public function disconnect() { $this->sendString('QUIT'); //The QUIT command may cause the daemon to exit, which will kill our connection //So ignore errors here @@ -312,8 +307,7 @@ class POP3 * @return string * @access protected */ - protected function getResponse($size = 128) - { + protected function getResponse($size = 128) { $response = fgets($this->pop_conn, $size); if ($this->do_debug >= 1) { echo "Server -> Client: $response"; @@ -327,8 +321,7 @@ class POP3 * @return integer * @access protected */ - protected function sendString($string) - { + protected function sendString($string) { if ($this->pop_conn) { if ($this->do_debug >= 2) { //Show client messages when debug >= 2 echo "Client -> Server: $string"; @@ -345,8 +338,7 @@ class POP3 * @return boolean * @access protected */ - protected function checkResponse($string) - { + protected function checkResponse($string) { if (substr($string, 0, 3) !== '+OK') { $this->setError(array( 'error' => "Server reported an error: $string", @@ -365,8 +357,7 @@ class POP3 * @param $error * @access protected */ - protected function setError($error) - { + protected function setError($error) { $this->errors[] = $error; if ($this->do_debug >= 1) { echo '
    ';
    @@ -381,8 +372,7 @@ class POP3
          * Get an array of error messages, if any.
          * @return array
          */
    -    public function getErrors()
    -    {
    +    public function getErrors() {
             return $this->errors;
         }
     
    @@ -394,8 +384,7 @@ class POP3
          * @param integer $errline
          * @access protected
          */
    -    protected function catchWarning($errno, $errstr, $errfile, $errline)
    -    {
    +    protected function catchWarning($errno, $errstr, $errfile, $errline) {
             $this->setError(array(
                 'error' => "Connecting to the POP3 server raised a PHP warning: ",
                 'errno' => $errno,
    diff --git a/mail/class.smtp.php b/mail/class.smtp.php
    index 04ced65..7a4741e 100644
    --- a/mail/class.smtp.php
    +++ b/mail/class.smtp.php
    @@ -24,8 +24,7 @@
      * @author Chris Ryan
      * @author Marcus Bointon 
      */
    -class SMTP
    -{
    +class SMTP {
         /**
          * The PHPMailer SMTP version number.
          * @var string
    @@ -150,16 +149,16 @@ class SMTP
          */
         public $Timelimit = 300;
     
    -	/**
    -	 * @var array patterns to extract smtp transaction id from smtp reply
    -	 * Only first capture group will be use, use non-capturing group to deal with it
    -	 * Extend this class to override this property to fulfil your needs.
    -	 */
    -	protected $smtp_transaction_id_patterns = array(
    -		'exim' => '/[0-9]{3} OK id=(.*)/',
    -		'sendmail' => '/[0-9]{3} 2.0.0 (.*) Message/',
    -		'postfix' => '/[0-9]{3} 2.0.0 Ok: queued as (.*)/'
    -	);
    +    /**
    +     * @var array patterns to extract smtp transaction id from smtp reply
    +     * Only first capture group will be use, use non-capturing group to deal with it
    +     * Extend this class to override this property to fulfil your needs.
    +     */
    +    protected $smtp_transaction_id_patterns = array(
    +        'exim' => '/[0-9]{3} OK id=(.*)/',
    +        'sendmail' => '/[0-9]{3} 2.0.0 (.*) Message/',
    +        'postfix' => '/[0-9]{3} 2.0.0 Ok: queued as (.*)/'
    +    );
     
         /**
          * The socket for the server connection.
    @@ -204,14 +203,13 @@ class SMTP
     
         /**
          * Output debugging info via a user-selected method.
    -     * @see SMTP::$Debugoutput
    -     * @see SMTP::$do_debug
          * @param string $str Debug string to output
          * @param integer $level The debug level of this message; see DEBUG_* constants
          * @return void
    +     * @see SMTP::$do_debug
    +     * @see SMTP::$Debugoutput
          */
    -    protected function edebug($str, $level = 0)
    -    {
    +    protected function edebug($str, $level = 0) {
             if ($level > $this->do_debug) {
                 return;
             }
    @@ -228,21 +226,21 @@ class SMTP
                 case 'html':
                     //Cleans up output a bit for a better looking, HTML-safe output
                     echo htmlentities(
    -                    preg_replace('/[\r\n]+/', '', $str),
    -                    ENT_QUOTES,
    -                    'UTF-8'
    -                )
    -                . "
    \n"; + preg_replace('/[\r\n]+/', '', $str), + ENT_QUOTES, + 'UTF-8' + ) + . "
    \n"; break; case 'echo': default: //Normalize line breaks $str = preg_replace('/(\r\n|\r|\n)/ms', "\n", $str); echo gmdate('Y-m-d H:i:s') . "\t" . str_replace( - "\n", - "\n \t ", - trim($str) - )."\n"; + "\n", + "\n \t ", + trim($str) + ) . "\n"; } } @@ -255,8 +253,7 @@ class SMTP * @access public * @return boolean */ - public function connect($host, $port = null, $timeout = 30, $options = array()) - { + public function connect($host, $port = null, $timeout = 30, $options = array()) { static $streamok; //This is enabled by default since 5.0.0 but some providers disable it //Check this once and cache the result @@ -276,7 +273,7 @@ class SMTP } // Connect to the SMTP server $this->edebug( - "Connection: opening to $host:$port, timeout=$timeout, options=".var_export($options, true), + "Connection: opening to $host:$port, timeout=$timeout, options=" . var_export($options, true), self::DEBUG_CONNECTION ); $errno = 0; @@ -345,8 +342,7 @@ class SMTP * @access public * @return boolean */ - public function startTLS() - { + public function startTLS() { if (!$this->sendCommand('STARTTLS', 'STARTTLS', 220)) { return false; } @@ -375,7 +371,6 @@ class SMTP /** * Perform SMTP authentication. * Must be run after hello(). - * @see hello() * @param string $username The user name * @param string $password The password * @param string $authtype The auth type (PLAIN, LOGIN, NTLM, CRAM-MD5, XOAUTH2) @@ -383,6 +378,7 @@ class SMTP * @param string $workstation The auth workstation for NTLM * @param null|OAuth $OAuth An optional OAuth instance (@see PHPMailerOAuth) * @return bool True if successfully authenticated.* @access public + * @see hello() */ public function authenticate( $username, @@ -398,7 +394,7 @@ class SMTP } if (array_key_exists('EHLO', $this->server_caps)) { - // SMTP extensions are available. Let's try to find a proper authentication method + // SMTP extensions are available. Let's try to find a proper authentication method if (!array_key_exists('AUTH', $this->server_caps)) { $this->setError('Authentication is not allowed at this stage'); @@ -424,7 +420,7 @@ class SMTP $this->setError('No supported authentication methods found'); return false; } - self::edebug('Auth method selected: '.$authtype, self::DEBUG_LOWLEVEL); + self::edebug('Auth method selected: ' . $authtype, self::DEBUG_LOWLEVEL); } if (!in_array($authtype, $this->server_caps['AUTH'])) { @@ -550,12 +546,11 @@ class SMTP * Works like hash_hmac('md5', $data, $key) * in case that function is not available * @param string $data The data to hash - * @param string $key The key to hash with + * @param string $key The key to hash with * @access protected * @return string */ - protected function hmac($data, $key) - { + protected function hmac($data, $key) { if (function_exists('hash_hmac')) { return hash_hmac('md5', $data, $key); } @@ -586,8 +581,7 @@ class SMTP * @access public * @return boolean True if connected. */ - public function connected() - { + public function connected() { if (is_resource($this->smtp_conn)) { $sock_status = stream_get_meta_data($this->smtp_conn); if ($sock_status['eof']) { @@ -607,12 +601,11 @@ class SMTP /** * Close the socket and clean up the state of the class. * Don't use this function without first trying to use QUIT. + * @return void * @see quit() * @access public - * @return void */ - public function close() - { + public function close() { $this->setError(''); $this->server_caps = null; $this->helo_rply = null; @@ -636,8 +629,7 @@ class SMTP * @access public * @return boolean */ - public function data($msg_data) - { + public function data($msg_data) { //This will use the standard timelimit if (!$this->sendCommand('DATA', 'DATA', 354)) { return false; @@ -725,8 +717,7 @@ class SMTP * @access public * @return boolean */ - public function hello($host = '') - { + public function hello($host = '') { //Try extended hello first (RFC 2821) return (boolean)($this->sendHello('EHLO', $host) or $this->sendHello('HELO', $host)); } @@ -734,14 +725,13 @@ class SMTP /** * Send an SMTP HELO or EHLO command. * Low-level implementation used by hello() - * @see hello() * @param string $hello The HELO string * @param string $host The hostname to say we are * @access protected * @return boolean + * @see hello() */ - protected function sendHello($hello, $host) - { + protected function sendHello($hello, $host) { $noerror = $this->sendCommand($hello, $hello . ' ' . $host, 250); $this->helo_rply = $this->last_reply; if ($noerror) { @@ -758,8 +748,7 @@ class SMTP * @access protected * @param string $type - 'HELO' or 'EHLO' */ - protected function parseHelloFields($type) - { + protected function parseHelloFields($type) { $this->server_caps = array(); $lines = explode("\n", $this->helo_rply); @@ -805,8 +794,7 @@ class SMTP * @access public * @return boolean */ - public function mail($from) - { + public function mail($from) { $useVerp = ($this->do_verp ? ' XVERP' : ''); return $this->sendCommand( 'MAIL FROM', @@ -823,8 +811,7 @@ class SMTP * @access public * @return boolean */ - public function quit($close_on_error = true) - { + public function quit($close_on_error = true) { $noerror = $this->sendCommand('QUIT', 'QUIT', 221); $err = $this->error; //Save any error if ($noerror or $close_on_error) { @@ -843,8 +830,7 @@ class SMTP * @access public * @return boolean */ - public function recipient($address) - { + public function recipient($address) { return $this->sendCommand( 'RCPT TO', 'RCPT TO:<' . $address . '>', @@ -859,8 +845,7 @@ class SMTP * @access public * @return boolean True on success. */ - public function reset() - { + public function reset() { return $this->sendCommand('RSET', 'RSET', 250); } @@ -872,8 +857,7 @@ class SMTP * @access protected * @return boolean True on success. */ - protected function sendCommand($command, $commandstring, $expect) - { + protected function sendCommand($command, $commandstring, $expect) { if (!$this->connected()) { $this->setError("Called $command without being connected"); return false; @@ -893,7 +877,7 @@ class SMTP $code_ex = (count($matches) > 2 ? $matches[2] : null); // Cut off error code from each response line $detail = preg_replace( - "/{$code}[ -]".($code_ex ? str_replace('.', '\\.', $code_ex).' ' : '')."/m", + "/{$code}[ -]" . ($code_ex ? str_replace('.', '\\.', $code_ex) . ' ' : '') . "/m", '', $this->last_reply ); @@ -937,8 +921,7 @@ class SMTP * @access public * @return boolean */ - public function sendAndMail($from) - { + public function sendAndMail($from) { return $this->sendCommand('SAML', "SAML FROM:$from", 250); } @@ -948,8 +931,7 @@ class SMTP * @access public * @return boolean */ - public function verify($name) - { + public function verify($name) { return $this->sendCommand('VRFY', "VRFY $name", array(250, 251)); } @@ -959,8 +941,7 @@ class SMTP * @access public * @return boolean */ - public function noop() - { + public function noop() { return $this->sendCommand('NOOP', 'NOOP', 250); } @@ -973,8 +954,7 @@ class SMTP * @access public * @return boolean */ - public function turn() - { + public function turn() { $this->setError('The SMTP TURN command is not implemented'); $this->edebug('SMTP NOTICE: ' . $this->error['error'], self::DEBUG_CLIENT); return false; @@ -986,8 +966,7 @@ class SMTP * @access public * @return integer|boolean The number of bytes sent to the server or false on error */ - public function client_send($data) - { + public function client_send($data) { $this->edebug("CLIENT -> SERVER: $data", self::DEBUG_CLIENT); return fwrite($this->smtp_conn, $data); } @@ -997,8 +976,7 @@ class SMTP * @access public * @return array */ - public function getError() - { + public function getError() { return $this->error; } @@ -1007,8 +985,7 @@ class SMTP * @access public * @return array|null */ - public function getServerExtList() - { + public function getServerExtList() { return $this->server_caps; } @@ -1031,8 +1008,7 @@ class SMTP * @param string $name Name of SMTP extension or 'HELO'|'EHLO' * @return mixed */ - public function getServerExt($name) - { + public function getServerExt($name) { if (!$this->server_caps) { $this->setError('No HELO/EHLO was sent'); return null; @@ -1058,8 +1034,7 @@ class SMTP * @access public * @return string */ - public function getLastReply() - { + public function getLastReply() { return $this->last_reply; } @@ -1072,8 +1047,7 @@ class SMTP * @access protected * @return string */ - protected function get_lines() - { + protected function get_lines() { // If the connection is bad, give up straight away if (!is_resource($this->smtp_conn)) { return ''; @@ -1105,7 +1079,7 @@ class SMTP // Now check if reads took too long if ($endtime and time() > $endtime) { $this->edebug( - 'SMTP -> get_lines(): timelimit reached ('. + 'SMTP -> get_lines(): timelimit reached (' . $this->Timelimit . ' sec)', self::DEBUG_LOWLEVEL ); @@ -1119,8 +1093,7 @@ class SMTP * Enable or disable VERP address generation. * @param boolean $enabled */ - public function setVerp($enabled = false) - { + public function setVerp($enabled = false) { $this->do_verp = $enabled; } @@ -1128,8 +1101,7 @@ class SMTP * Get VERP address generation mode. * @return boolean */ - public function getVerp() - { + public function getVerp() { return $this->do_verp; } @@ -1140,8 +1112,7 @@ class SMTP * @param string $smtp_code An associated SMTP error code * @param string $smtp_code_ex Extended SMTP code */ - protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '') - { + protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '') { $this->error = array( 'error' => $message, 'detail' => $detail, @@ -1154,8 +1125,7 @@ class SMTP * Set debug output method. * @param string|callable $method The name of the mechanism to use for debugging output, or a callable to handle it. */ - public function setDebugOutput($method = 'echo') - { + public function setDebugOutput($method = 'echo') { $this->Debugoutput = $method; } @@ -1163,8 +1133,7 @@ class SMTP * Get debug output method. * @return string */ - public function getDebugOutput() - { + public function getDebugOutput() { return $this->Debugoutput; } @@ -1172,8 +1141,7 @@ class SMTP * Set debug output level. * @param integer $level */ - public function setDebugLevel($level = 0) - { + public function setDebugLevel($level = 0) { $this->do_debug = $level; } @@ -1181,8 +1149,7 @@ class SMTP * Get debug output level. * @return integer */ - public function getDebugLevel() - { + public function getDebugLevel() { return $this->do_debug; } @@ -1190,8 +1157,7 @@ class SMTP * Set SMTP timeout. * @param integer $timeout */ - public function setTimeout($timeout = 0) - { + public function setTimeout($timeout = 0) { $this->Timeout = $timeout; } @@ -1199,8 +1165,7 @@ class SMTP * Get SMTP timeout. * @return integer */ - public function getTimeout() - { + public function getTimeout() { return $this->Timeout; } @@ -1209,8 +1174,7 @@ class SMTP * @param integer $errno The error number returned by PHP. * @param string $errmsg The error message returned by PHP. */ - protected function errorHandler($errno, $errmsg) - { + protected function errorHandler($errno, $errmsg) { $notice = 'Connection: Failed to connect to server.'; $this->setError( $notice, @@ -1223,27 +1187,26 @@ class SMTP ); } - /** - * Will return the ID of the last smtp transaction based on a list of patterns provided - * in SMTP::$smtp_transaction_id_patterns. - * If no reply has been received yet, it will return null. - * If no pattern has been matched, it will return false. - * @return bool|null|string - */ - public function getLastTransactionID() - { - $reply = $this->getLastReply(); + /** + * Will return the ID of the last smtp transaction based on a list of patterns provided + * in SMTP::$smtp_transaction_id_patterns. + * If no reply has been received yet, it will return null. + * If no pattern has been matched, it will return false. + * @return bool|null|string + */ + public function getLastTransactionID() { + $reply = $this->getLastReply(); - if (empty($reply)) { - return null; - } + if (empty($reply)) { + return null; + } - foreach($this->smtp_transaction_id_patterns as $smtp_transaction_id_pattern) { - if(preg_match($smtp_transaction_id_pattern, $reply, $matches)) { - return $matches[1]; - } - } + foreach ($this->smtp_transaction_id_patterns as $smtp_transaction_id_pattern) { + if (preg_match($smtp_transaction_id_pattern, $reply, $matches)) { + return $matches[1]; + } + } - return false; + return false; } } diff --git a/mail/mail.php b/mail/mail.php index 8a6d008..730dfe7 100644 --- a/mail/mail.php +++ b/mail/mail.php @@ -14,63 +14,61 @@ */ error_reporting(1); -function default_mail($admin_mail, $admin_name, $sent_mail, $subject, $body) -{ +function default_mail($admin_mail, $admin_name, $sent_mail, $subject, $body) { // Functions require_once('class.phpmailer.php'); - + $mail = new PHPMailer(); - - $body = stripslashes ($body); - + + $body = stripslashes($body); + $mail->AddReplyTo($admin_mail, $admin_name); - + $mail->SetFrom($admin_mail, $admin_name); - + $mail->AddReplyTo($admin_mail, $admin_name); - + $address = $sent_mail; - + $mail->AddAddress($address); - + $mail->Subject = $subject; - + $mail->MsgHTML($body); - + $mail->AltBody = "To view the message, please use an HTML compatible viewer"; - + if (!$mail->Send()) { $msg = "Mailer Error: " . $mail->ErrorInfo; } else { $msg = "Message has been sent"; } return $msg; - + } -function smtp_mail($smtp_host, $smtp_port = 587, $smtp_auth, $smtp_user, $smtp_pass, $smtp_sec = 'tls', $admin_mail, $admin_name, $sent_mail, $subject, $body) -{ +function smtp_mail($smtp_host, $smtp_port = 587, $smtp_auth, $smtp_user, $smtp_pass, $smtp_sec = 'tls', $admin_mail, $admin_name, $sent_mail, $subject, $body) { require_once('class.phpmailer.php'); require_once('class.smtp.php'); $mail = new PHPMailer; $mail->IsSMTP(); // Set mailer to use SMTP - $mail->Host = $smtp_host; // Specify main and backup server - $mail->Port = $smtp_port; // Set the SMTP port - $mail->SMTPAuth = $smtp_auth; // Enable SMTP authentication - $mail->Username = $smtp_user; // SMTP username - $mail->Password = $smtp_pass; // SMTP password + $mail->Host = $smtp_host; // Specify main and backup server + $mail->Port = $smtp_port; // Set the SMTP port + $mail->SMTPAuth = $smtp_auth; // Enable SMTP authentication + $mail->Username = $smtp_user; // SMTP username + $mail->Password = $smtp_pass; // SMTP password $mail->SMTPSecure = $smtp_sec; // Enable encryption, 'ssl' also accepted - - $mail->From = $admin_mail; + + $mail->From = $admin_mail; $mail->FromName = $admin_name; $mail->AddAddress($sent_mail); // Add a recipient - + $mail->IsHTML(true); // Set email format to HTML - + $mail->Subject = $subject; - $mail->Body = $body; + $mail->Body = $body; $mail->AltBody = $body; - + if (!$mail->Send()) { $msg = 'Mailer Error: ' . $mail->ErrorInfo; } else { @@ -78,4 +76,5 @@ function smtp_mail($smtp_host, $smtp_port = 587, $smtp_auth, $smtp_user, $smtp_p } return $msg; } + ?> diff --git a/oauth.php b/oauth.php index 1ed5e9a..cbb29b7 100644 --- a/oauth.php +++ b/oauth.php @@ -20,7 +20,7 @@ require_once('includes/functions.php'); // Current date & user IP $date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$ip = $_SERVER['REMOTE_ADDR']; // Database Connection $con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); @@ -28,29 +28,29 @@ if (mysqli_connect_errno()) { die("Unable to connect to database"); } // Get site info -$query = "SELECT * FROM site_info"; +$query = "SELECT * FROM site_info"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { - $title = Trim($row['title']); - $des = Trim($row['des']); - $baseurl = Trim($row['baseurl']); - $keyword = Trim($row['keyword']); - $site_name = Trim($row['site_name']); - $email = Trim($row['email']); - $twit = Trim($row['twit']); - $face = Trim($row['face']); - $gplus = Trim($row['gplus']); - $ga = Trim($row['ga']); - $additional_scripts = Trim($row['additional_scripts']); + $title = Trim($row['title']); + $des = Trim($row['des']); + $baseurl = Trim($row['baseurl']); + $keyword = Trim($row['keyword']); + $site_name = Trim($row['site_name']); + $email = Trim($row['email']); + $twit = Trim($row['twit']); + $face = Trim($row['face']); + $gplus = Trim($row['gplus']); + $ga = Trim($row['ga']); + $additional_scripts = Trim($row['additional_scripts']); } // Set theme and language -$query = "SELECT * FROM interface"; +$query = "SELECT * FROM interface"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { - $default_lang = Trim($row['lang']); + $default_lang = Trim($row['lang']); $default_theme = Trim($row['theme']); } @@ -74,13 +74,13 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { } else { $res = isValidUsername($new_username); if ($res == '1') { - $query = "SELECT * FROM users WHERE username='$new_username'"; + $query = "SELECT * FROM users WHERE username='$new_username'"; $result = mysqli_query($con, $query); if (mysqli_num_rows($result) > 0) { $error = $lang['userexists']; //"Username already taken"; } else { $client_id = Trim($_SESSION['oauth_uid']); - $query = "UPDATE users SET username='$new_username' WHERE oauth_uid='$client_id'"; + $query = "UPDATE users SET username='$new_username' WHERE oauth_uid='$client_id'"; mysqli_query($con, $query); if (mysqli_error($con)) { $error = $lang['databaseerror']; // "Unable to access database."; @@ -91,7 +91,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { } } } else { - $error = $lang['usernotvalid']; //"Username not vaild"; + $error = $lang['usernotvalid']; //"Username not vaild"; $username = Trim($_SESSION['username']); goto OutPut; } diff --git a/oauth/Google/Auth/Abstract.php b/oauth/Google/Auth/Abstract.php index 0832df3..005ad83 100644 --- a/oauth/Google/Auth/Abstract.php +++ b/oauth/Google/Auth/Abstract.php @@ -21,15 +21,15 @@ require_once "Google/Http/Request.php"; * @author Chris Chabot * */ -abstract class Google_Auth_Abstract -{ - /** - * An utility function that first calls $this->auth->sign($request) and then - * executes makeRequest() on that signed request. Used for when a request - * should be authenticated - * @param Google_Http_Request $request - * @return Google_Http_Request $request - */ - abstract public function authenticatedRequest(Google_Http_Request $request); - abstract public function sign(Google_Http_Request $request); +abstract class Google_Auth_Abstract { + /** + * An utility function that first calls $this->auth->sign($request) and then + * executes makeRequest() on that signed request. Used for when a request + * should be authenticated + * @param Google_Http_Request $request + * @return Google_Http_Request $request + */ + abstract public function authenticatedRequest(Google_Http_Request $request); + + abstract public function sign(Google_Http_Request $request); } diff --git a/oauth/Google/Auth/AppIdentity.php b/oauth/Google/Auth/AppIdentity.php index 0be5917..57786c5 100644 --- a/oauth/Google/Auth/AppIdentity.php +++ b/oauth/Google/Auth/AppIdentity.php @@ -20,6 +20,7 @@ * which is 5.3 and above only, so if you include this in a PHP 5.2 * setup or one without 5.3 things will blow up. */ + use google\appengine\api\app_identity\AppIdentityService; require_once "Google/Auth/Abstract.php"; @@ -28,73 +29,68 @@ require_once "Google/Http/Request.php"; /** * Authentication via the Google App Engine App Identity service. */ -class Google_Auth_AppIdentity extends Google_Auth_Abstract -{ - const CACHE_PREFIX = "Google_Auth_AppIdentity::"; - const CACHE_LIFETIME = 1500; - private $key = null; - private $client; - private $token = false; - private $tokenScopes = false; +class Google_Auth_AppIdentity extends Google_Auth_Abstract { + const CACHE_PREFIX = "Google_Auth_AppIdentity::"; + const CACHE_LIFETIME = 1500; + private $key = null; + private $client; + private $token = false; + private $tokenScopes = false; - public function __construct(Google_Client $client, $config = null) - { - $this->client = $client; - } - - /** - * Retrieve an access token for the scopes supplied. - */ - public function authenticateForScope($scopes) - { - if ($this->token && $this->tokenScopes == $scopes) { - return $this->token; + public function __construct(Google_Client $client, $config = null) { + $this->client = $client; } - $memcache = new Memcached(); - $this->token = $memcache->get(self::CACHE_PREFIX . $scopes); - if (!$this->token) { - $this->token = AppIdentityService::getAccessToken($scopes); - if ($this->token) { - $memcache_key = self::CACHE_PREFIX; - if (is_string($scopes)) { - $memcache_key .= $scopes; - } else if (is_array($scopes)) { - $memcache_key .= implode(":", $scopes); + + /** + * Retrieve an access token for the scopes supplied. + */ + public function authenticateForScope($scopes) { + if ($this->token && $this->tokenScopes == $scopes) { + return $this->token; } - $memcache->set($memcache_key, $this->token, self::CACHE_LIFETIME); - } + $memcache = new Memcached(); + $this->token = $memcache->get(self::CACHE_PREFIX . $scopes); + if (!$this->token) { + $this->token = AppIdentityService::getAccessToken($scopes); + if ($this->token) { + $memcache_key = self::CACHE_PREFIX; + if (is_string($scopes)) { + $memcache_key .= $scopes; + } elseif (is_array($scopes)) { + $memcache_key .= implode(":", $scopes); + } + $memcache->set($memcache_key, $this->token, self::CACHE_LIFETIME); + } + } + $this->tokenScopes = $scopes; + return $this->token; } - $this->tokenScopes = $scopes; - return $this->token; - } - /** - * Perform an authenticated / signed apiHttpRequest. - * This function takes the apiHttpRequest, calls apiAuth->sign on it - * (which can modify the request in what ever way fits the auth mechanism) - * and then calls apiCurlIO::makeRequest on the signed request - * - * @param Google_Http_Request $request - * @return Google_Http_Request The resulting HTTP response including the - * responseHttpCode, responseHeaders and responseBody. - */ - public function authenticatedRequest(Google_Http_Request $request) - { - $request = $this->sign($request); - return $this->io->makeRequest($request); - } - - public function sign(Google_Http_Request $request) - { - if (!$this->token) { - // No token, so nothing to do. - return $request; + /** + * Perform an authenticated / signed apiHttpRequest. + * This function takes the apiHttpRequest, calls apiAuth->sign on it + * (which can modify the request in what ever way fits the auth mechanism) + * and then calls apiCurlIO::makeRequest on the signed request + * + * @param Google_Http_Request $request + * @return Google_Http_Request The resulting HTTP response including the + * responseHttpCode, responseHeaders and responseBody. + */ + public function authenticatedRequest(Google_Http_Request $request) { + $request = $this->sign($request); + return $this->io->makeRequest($request); } - // Add the OAuth2 header to the request - $request->setRequestHeaders( - array('Authorization' => 'Bearer ' . $this->token['access_token']) - ); - return $request; - } + public function sign(Google_Http_Request $request) { + if (!$this->token) { + // No token, so nothing to do. + return $request; + } + // Add the OAuth2 header to the request + $request->setRequestHeaders( + array('Authorization' => 'Bearer ' . $this->token['access_token']) + ); + + return $request; + } } diff --git a/oauth/Google/Auth/AssertionCredentials.php b/oauth/Google/Auth/AssertionCredentials.php index 3db0a77..5c55633 100644 --- a/oauth/Google/Auth/AssertionCredentials.php +++ b/oauth/Google/Auth/AssertionCredentials.php @@ -24,115 +24,111 @@ require_once "Google/Utils.php"; * * @author Chirag Shah */ -class Google_Auth_AssertionCredentials -{ - const MAX_TOKEN_LIFETIME_SECS = 3600; +class Google_Auth_AssertionCredentials { + const MAX_TOKEN_LIFETIME_SECS = 3600; - public $serviceAccountName; - public $scopes; - public $privateKey; - public $privateKeyPassword; - public $assertionType; - public $sub; - /** - * @deprecated - * @link http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-06 - */ - public $prn; - private $useCache; + public $serviceAccountName; + public $scopes; + public $privateKey; + public $privateKeyPassword; + public $assertionType; + public $sub; + /** + * @deprecated + * @link http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-06 + */ + public $prn; + private $useCache; - /** - * @param $serviceAccountName - * @param $scopes array List of scopes - * @param $privateKey - * @param string $privateKeyPassword - * @param string $assertionType - * @param bool|string $sub The email address of the user for which the - * application is requesting delegated access. - * @param bool useCache Whether to generate a cache key and allow - * automatic caching of the generated token. - */ - public function __construct( - $serviceAccountName, - $scopes, - $privateKey, - $privateKeyPassword = 'notasecret', - $assertionType = 'http://oauth.net/grant_type/jwt/1.0/bearer', - $sub = false, - $useCache = true - ) { - $this->serviceAccountName = $serviceAccountName; - $this->scopes = is_string($scopes) ? $scopes : implode(' ', $scopes); - $this->privateKey = $privateKey; - $this->privateKeyPassword = $privateKeyPassword; - $this->assertionType = $assertionType; - $this->sub = $sub; - $this->prn = $sub; - $this->useCache = $useCache; - } - - /** - * Generate a unique key to represent this credential. - * @return string - */ - public function getCacheKey() - { - if (!$this->useCache) { - return false; - } - $h = $this->sub; - $h .= $this->assertionType; - $h .= $this->privateKey; - $h .= $this->scopes; - $h .= $this->serviceAccountName; - return md5($h); - } - - public function generateAssertion() - { - $now = time(); - - $jwtParams = array( - 'aud' => Google_Auth_OAuth2::OAUTH2_TOKEN_URI, - 'scope' => $this->scopes, - 'iat' => $now, - 'exp' => $now + self::MAX_TOKEN_LIFETIME_SECS, - 'iss' => $this->serviceAccountName, - ); - - if ($this->sub !== false) { - $jwtParams['sub'] = $this->sub; - } else if ($this->prn !== false) { - $jwtParams['prn'] = $this->prn; + /** + * @param $serviceAccountName + * @param $scopes array List of scopes + * @param $privateKey + * @param string $privateKeyPassword + * @param string $assertionType + * @param bool|string $sub The email address of the user for which the + * application is requesting delegated access. + * @param bool useCache Whether to generate a cache key and allow + * automatic caching of the generated token. + */ + public function __construct( + $serviceAccountName, + $scopes, + $privateKey, + $privateKeyPassword = 'notasecret', + $assertionType = 'http://oauth.net/grant_type/jwt/1.0/bearer', + $sub = false, + $useCache = true + ) { + $this->serviceAccountName = $serviceAccountName; + $this->scopes = is_string($scopes) ? $scopes : implode(' ', $scopes); + $this->privateKey = $privateKey; + $this->privateKeyPassword = $privateKeyPassword; + $this->assertionType = $assertionType; + $this->sub = $sub; + $this->prn = $sub; + $this->useCache = $useCache; } - return $this->makeSignedJwt($jwtParams); - } + /** + * Generate a unique key to represent this credential. + * @return string + */ + public function getCacheKey() { + if (!$this->useCache) { + return false; + } + $h = $this->sub; + $h .= $this->assertionType; + $h .= $this->privateKey; + $h .= $this->scopes; + $h .= $this->serviceAccountName; + return md5($h); + } - /** - * Creates a signed JWT. - * @param array $payload - * @return string The signed JWT. - */ - private function makeSignedJwt($payload) - { - $header = array('typ' => 'JWT', 'alg' => 'RS256'); + public function generateAssertion() { + $now = time(); - $payload = json_encode($payload); - // Handle some overzealous escaping in PHP json that seemed to cause some errors - // with claimsets. - $payload = str_replace('\/', '/', $payload); + $jwtParams = array( + 'aud' => Google_Auth_OAuth2::OAUTH2_TOKEN_URI, + 'scope' => $this->scopes, + 'iat' => $now, + 'exp' => $now + self::MAX_TOKEN_LIFETIME_SECS, + 'iss' => $this->serviceAccountName, + ); - $segments = array( - Google_Utils::urlSafeB64Encode(json_encode($header)), - Google_Utils::urlSafeB64Encode($payload) - ); + if ($this->sub !== false) { + $jwtParams['sub'] = $this->sub; + } elseif ($this->prn !== false) { + $jwtParams['prn'] = $this->prn; + } - $signingInput = implode('.', $segments); - $signer = new Google_Signer_P12($this->privateKey, $this->privateKeyPassword); - $signature = $signer->sign($signingInput); - $segments[] = Google_Utils::urlSafeB64Encode($signature); + return $this->makeSignedJwt($jwtParams); + } - return implode(".", $segments); - } + /** + * Creates a signed JWT. + * @param array $payload + * @return string The signed JWT. + */ + private function makeSignedJwt($payload) { + $header = array('typ' => 'JWT', 'alg' => 'RS256'); + + $payload = json_encode($payload); + // Handle some overzealous escaping in PHP json that seemed to cause some errors + // with claimsets. + $payload = str_replace('\/', '/', $payload); + + $segments = array( + Google_Utils::urlSafeB64Encode(json_encode($header)), + Google_Utils::urlSafeB64Encode($payload) + ); + + $signingInput = implode('.', $segments); + $signer = new Google_Signer_P12($this->privateKey, $this->privateKeyPassword); + $signature = $signer->sign($signingInput); + $segments[] = Google_Utils::urlSafeB64Encode($signature); + + return implode(".", $segments); + } } diff --git a/oauth/Google/Auth/Exception.php b/oauth/Google/Auth/Exception.php index 65067ee..f3e7b38 100644 --- a/oauth/Google/Auth/Exception.php +++ b/oauth/Google/Auth/Exception.php @@ -17,6 +17,5 @@ require_once "Google/Exception.php"; -class Google_Auth_Exception extends Google_Exception -{ +class Google_Auth_Exception extends Google_Exception { } diff --git a/oauth/Google/Auth/LoginTicket.php b/oauth/Google/Auth/LoginTicket.php index bcf798a..3374de8 100644 --- a/oauth/Google/Auth/LoginTicket.php +++ b/oauth/Google/Auth/LoginTicket.php @@ -22,48 +22,44 @@ require_once "Google/Auth/Exception.php"; * * @author Brian Eaton */ -class Google_Auth_LoginTicket -{ - const USER_ATTR = "sub"; +class Google_Auth_LoginTicket { + const USER_ATTR = "sub"; - // Information from id token envelope. - private $envelope; + // Information from id token envelope. + private $envelope; - // Information from id token payload. - private $payload; + // Information from id token payload. + private $payload; - /** - * Creates a user based on the supplied token. - * - * @param string $envelope Header from a verified authentication token. - * @param string $payload Information from a verified authentication token. - */ - public function __construct($envelope, $payload) - { - $this->envelope = $envelope; - $this->payload = $payload; - } - - /** - * Returns the numeric identifier for the user. - * @throws Google_Auth_Exception - * @return - */ - public function getUserId() - { - if (array_key_exists(self::USER_ATTR, $this->payload)) { - return $this->payload[self::USER_ATTR]; + /** + * Creates a user based on the supplied token. + * + * @param string $envelope Header from a verified authentication token. + * @param string $payload Information from a verified authentication token. + */ + public function __construct($envelope, $payload) { + $this->envelope = $envelope; + $this->payload = $payload; } - throw new Google_Auth_Exception("No user_id in token"); - } - /** - * Returns attributes from the login ticket. This can contain - * various information about the user session. - * @return array - */ - public function getAttributes() - { - return array("envelope" => $this->envelope, "payload" => $this->payload); - } + /** + * Returns the numeric identifier for the user. + * @return + * @throws Google_Auth_Exception + */ + public function getUserId() { + if (array_key_exists(self::USER_ATTR, $this->payload)) { + return $this->payload[self::USER_ATTR]; + } + throw new Google_Auth_Exception("No user_id in token"); + } + + /** + * Returns attributes from the login ticket. This can contain + * various information about the user session. + * @return array + */ + public function getAttributes() { + return array("envelope" => $this->envelope, "payload" => $this->payload); + } } diff --git a/oauth/Google/Auth/OAuth2.php b/oauth/Google/Auth/OAuth2.php index e5b6031..3a87998 100644 --- a/oauth/Google/Auth/OAuth2.php +++ b/oauth/Google/Auth/OAuth2.php @@ -31,565 +31,547 @@ require_once "Google/Verifier/Pem.php"; * @author Chirag Shah * */ -class Google_Auth_OAuth2 extends Google_Auth_Abstract -{ - const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; - const OAUTH2_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token'; - const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth'; - const CLOCK_SKEW_SECS = 300; // five minutes in seconds - const AUTH_TOKEN_LIFETIME_SECS = 300; // five minutes in seconds - const MAX_TOKEN_LIFETIME_SECS = 86400; // one day in seconds - const OAUTH2_ISSUER = 'accounts.google.com'; +class Google_Auth_OAuth2 extends Google_Auth_Abstract { + const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; + const OAUTH2_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token'; + const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth'; + const CLOCK_SKEW_SECS = 300; // five minutes in seconds + const AUTH_TOKEN_LIFETIME_SECS = 300; // five minutes in seconds + const MAX_TOKEN_LIFETIME_SECS = 86400; // one day in seconds + const OAUTH2_ISSUER = 'accounts.google.com'; - /** @var Google_Auth_AssertionCredentials $assertionCredentials */ - private $assertionCredentials; + /** @var Google_Auth_AssertionCredentials $assertionCredentials */ + private $assertionCredentials; - /** - * @var string The state parameters for CSRF and other forgery protection. - */ - private $state; + /** + * @var string The state parameters for CSRF and other forgery protection. + */ + private $state; - /** - * @var array The token bundle. - */ - private $token = array(); + /** + * @var array The token bundle. + */ + private $token = array(); - /** - * @var Google_Client the base client - */ - private $client; + /** + * @var Google_Client the base client + */ + private $client; - /** - * Instantiates the class, but does not initiate the login flow, leaving it - * to the discretion of the caller. - */ - public function __construct(Google_Client $client) - { - $this->client = $client; - } - - /** - * Perform an authenticated / signed apiHttpRequest. - * This function takes the apiHttpRequest, calls apiAuth->sign on it - * (which can modify the request in what ever way fits the auth mechanism) - * and then calls apiCurlIO::makeRequest on the signed request - * - * @param Google_Http_Request $request - * @return Google_Http_Request The resulting HTTP response including the - * responseHttpCode, responseHeaders and responseBody. - */ - public function authenticatedRequest(Google_Http_Request $request) - { - $request = $this->sign($request); - return $this->client->getIo()->makeRequest($request); - } - - /** - * @param string $code - * @throws Google_Auth_Exception - * @return string - */ - public function authenticate($code) - { - if (strlen($code) == 0) { - throw new Google_Auth_Exception("Invalid code"); + /** + * Instantiates the class, but does not initiate the login flow, leaving it + * to the discretion of the caller. + */ + public function __construct(Google_Client $client) { + $this->client = $client; } - // We got here from the redirect from a successful authorization grant, - // fetch the access token - $request = new Google_Http_Request( - self::OAUTH2_TOKEN_URI, - 'POST', - array(), - array( - 'code' => $code, - 'grant_type' => 'authorization_code', - 'redirect_uri' => $this->client->getClassConfig($this, 'redirect_uri'), - 'client_id' => $this->client->getClassConfig($this, 'client_id'), - 'client_secret' => $this->client->getClassConfig($this, 'client_secret') - ) - ); - $request->disableGzip(); - $response = $this->client->getIo()->makeRequest($request); - - if ($response->getResponseHttpCode() == 200) { - $this->setAccessToken($response->getResponseBody()); - $this->token['created'] = time(); - return $this->getAccessToken(); - } else { - $decodedResponse = json_decode($response->getResponseBody(), true); - if ($decodedResponse != null && $decodedResponse['error']) { - $decodedResponse = $decodedResponse['error']; - } - throw new Google_Auth_Exception( - sprintf( - "Error fetching OAuth2 access token, message: '%s'", - $decodedResponse - ), - $response->getResponseHttpCode() - ); - } - } - - /** - * Create a URL to obtain user authorization. - * The authorization endpoint allows the user to first - * authenticate, and then grant/deny the access request. - * @param string $scope The scope is expressed as a list of space-delimited strings. - * @return string - */ - public function createAuthUrl($scope) - { - $params = array( - 'response_type' => 'code', - 'redirect_uri' => $this->client->getClassConfig($this, 'redirect_uri'), - 'client_id' => $this->client->getClassConfig($this, 'client_id'), - 'scope' => $scope, - 'access_type' => $this->client->getClassConfig($this, 'access_type'), - 'approval_prompt' => $this->client->getClassConfig($this, 'approval_prompt'), - ); - - $login_hint = $this->client->getClassConfig($this, 'login_hint'); - if ($login_hint != '') { - $params['login_hint'] = $login_hint; + /** + * Perform an authenticated / signed apiHttpRequest. + * This function takes the apiHttpRequest, calls apiAuth->sign on it + * (which can modify the request in what ever way fits the auth mechanism) + * and then calls apiCurlIO::makeRequest on the signed request + * + * @param Google_Http_Request $request + * @return Google_Http_Request The resulting HTTP response including the + * responseHttpCode, responseHeaders and responseBody. + */ + public function authenticatedRequest(Google_Http_Request $request) { + $request = $this->sign($request); + return $this->client->getIo()->makeRequest($request); } - // If the list of scopes contains plus.login, add request_visible_actions - // to auth URL. - $rva = $this->client->getClassConfig($this, 'request_visible_actions'); - if (strpos($scope, 'plus.login') && strlen($rva) > 0) { - $params['request_visible_actions'] = $rva; - } + /** + * @param string $code + * @return string + * @throws Google_Auth_Exception + */ + public function authenticate($code) { + if (strlen($code) == 0) { + throw new Google_Auth_Exception("Invalid code"); + } - if (isset($this->state)) { - $params['state'] = $this->state; - } + // We got here from the redirect from a successful authorization grant, + // fetch the access token + $request = new Google_Http_Request( + self::OAUTH2_TOKEN_URI, + 'POST', + array(), + array( + 'code' => $code, + 'grant_type' => 'authorization_code', + 'redirect_uri' => $this->client->getClassConfig($this, 'redirect_uri'), + 'client_id' => $this->client->getClassConfig($this, 'client_id'), + 'client_secret' => $this->client->getClassConfig($this, 'client_secret') + ) + ); + $request->disableGzip(); + $response = $this->client->getIo()->makeRequest($request); - return self::OAUTH2_AUTH_URL . "?" . http_build_query($params, '', '&'); - } - - /** - * @param string $token - * @throws Google_Auth_Exception - */ - public function setAccessToken($token) - { - $token = json_decode($token, true); - if ($token == null) { - throw new Google_Auth_Exception('Could not json decode the token'); - } - if (! isset($token['access_token'])) { - throw new Google_Auth_Exception("Invalid token format"); - } - $this->token = $token; - } - - public function getAccessToken() - { - return json_encode($this->token); - } - - public function setState($state) - { - $this->state = $state; - } - - public function setAssertionCredentials(Google_Auth_AssertionCredentials $creds) - { - $this->assertionCredentials = $creds; - } - - /** - * Include an accessToken in a given apiHttpRequest. - * @param Google_Http_Request $request - * @return Google_Http_Request - * @throws Google_Auth_Exception - */ - public function sign(Google_Http_Request $request) - { - // add the developer key to the request before signing it - if ($this->client->getClassConfig($this, 'developer_key')) { - $request->setQueryParam('key', $this->client->getClassConfig($this, 'developer_key')); - } - - // Cannot sign the request without an OAuth access token. - if (null == $this->token && null == $this->assertionCredentials) { - return $request; - } - - // Check if the token is set to expire in the next 30 seconds - // (or has already expired). - if ($this->isAccessTokenExpired()) { - if ($this->assertionCredentials) { - $this->refreshTokenWithAssertion(); - } else { - if (! array_key_exists('refresh_token', $this->token)) { + if ($response->getResponseHttpCode() == 200) { + $this->setAccessToken($response->getResponseBody()); + $this->token['created'] = time(); + return $this->getAccessToken(); + } else { + $decodedResponse = json_decode($response->getResponseBody(), true); + if ($decodedResponse != null && $decodedResponse['error']) { + $decodedResponse = $decodedResponse['error']; + } throw new Google_Auth_Exception( - "The OAuth 2.0 access token has expired," - ." and a refresh token is not available. Refresh tokens" - ." are not returned for responses that were auto-approved." + sprintf( + "Error fetching OAuth2 access token, message: '%s'", + $decodedResponse + ), + $response->getResponseHttpCode() ); } - $this->refreshToken($this->token['refresh_token']); - } } - // Add the OAuth2 header to the request - $request->setRequestHeaders( - array('Authorization' => 'Bearer ' . $this->token['access_token']) - ); + /** + * Create a URL to obtain user authorization. + * The authorization endpoint allows the user to first + * authenticate, and then grant/deny the access request. + * @param string $scope The scope is expressed as a list of space-delimited strings. + * @return string + */ + public function createAuthUrl($scope) { + $params = array( + 'response_type' => 'code', + 'redirect_uri' => $this->client->getClassConfig($this, 'redirect_uri'), + 'client_id' => $this->client->getClassConfig($this, 'client_id'), + 'scope' => $scope, + 'access_type' => $this->client->getClassConfig($this, 'access_type'), + 'approval_prompt' => $this->client->getClassConfig($this, 'approval_prompt'), + ); - return $request; - } + $login_hint = $this->client->getClassConfig($this, 'login_hint'); + if ($login_hint != '') { + $params['login_hint'] = $login_hint; + } - /** - * Fetches a fresh access token with the given refresh token. - * @param string $refreshToken - * @return void - */ - public function refreshToken($refreshToken) - { - $this->refreshTokenRequest( - array( - 'client_id' => $this->client->getClassConfig($this, 'client_id'), - 'client_secret' => $this->client->getClassConfig($this, 'client_secret'), - 'refresh_token' => $refreshToken, - 'grant_type' => 'refresh_token' - ) - ); - } + // If the list of scopes contains plus.login, add request_visible_actions + // to auth URL. + $rva = $this->client->getClassConfig($this, 'request_visible_actions'); + if (strpos($scope, 'plus.login') && strlen($rva) > 0) { + $params['request_visible_actions'] = $rva; + } - /** - * Fetches a fresh access token with a given assertion token. - * @param Google_Auth_AssertionCredentials $assertionCredentials optional. - * @return void - */ - public function refreshTokenWithAssertion($assertionCredentials = null) - { - if (!$assertionCredentials) { - $assertionCredentials = $this->assertionCredentials; + if (isset($this->state)) { + $params['state'] = $this->state; + } + + return self::OAUTH2_AUTH_URL . "?" . http_build_query($params, '', '&'); } - $cacheKey = $assertionCredentials->getCacheKey(); - - if ($cacheKey) { - // We can check whether we have a token available in the - // cache. If it is expired, we can retrieve a new one from - // the assertion. - $token = $this->client->getCache()->get($cacheKey); - if ($token) { - $this->setAccessToken($token); - } - if (!$this->isAccessTokenExpired()) { - return; - } + /** + * @param string $token + * @throws Google_Auth_Exception + */ + public function setAccessToken($token) { + $token = json_decode($token, true); + if ($token == null) { + throw new Google_Auth_Exception('Could not json decode the token'); + } + if (!isset($token['access_token'])) { + throw new Google_Auth_Exception("Invalid token format"); + } + $this->token = $token; } - $this->refreshTokenRequest( - array( - 'grant_type' => 'assertion', - 'assertion_type' => $assertionCredentials->assertionType, - 'assertion' => $assertionCredentials->generateAssertion(), - ) - ); - - if ($cacheKey) { - // Attempt to cache the token. - $this->client->getCache()->set( - $cacheKey, - $this->getAccessToken() - ); + public function getAccessToken() { + return json_encode($this->token); } - } - private function refreshTokenRequest($params) - { - $http = new Google_Http_Request( - self::OAUTH2_TOKEN_URI, - 'POST', - array(), - $params - ); - $http->disableGzip(); - $request = $this->client->getIo()->makeRequest($http); - - $code = $request->getResponseHttpCode(); - $body = $request->getResponseBody(); - if (200 == $code) { - $token = json_decode($body, true); - if ($token == null) { - throw new Google_Auth_Exception("Could not json decode the access token"); - } - - if (! isset($token['access_token']) || ! isset($token['expires_in'])) { - throw new Google_Auth_Exception("Invalid token format"); - } - - if (isset($token['id_token'])) { - $this->token['id_token'] = $token['id_token']; - } - $this->token['access_token'] = $token['access_token']; - $this->token['expires_in'] = $token['expires_in']; - $this->token['created'] = time(); - } else { - throw new Google_Auth_Exception("Error refreshing the OAuth2 token, message: '$body'", $code); + public function setState($state) { + $this->state = $state; } - } - /** - * Revoke an OAuth2 access token or refresh token. This method will revoke the current access - * token, if a token isn't provided. - * @throws Google_Auth_Exception - * @param string|null $token The token (access token or a refresh token) that should be revoked. - * @return boolean Returns True if the revocation was successful, otherwise False. - */ - public function revokeToken($token = null) - { - if (!$token) { - if (!$this->token) { - // Not initialized, no token to actually revoke + public function setAssertionCredentials(Google_Auth_AssertionCredentials $creds) { + $this->assertionCredentials = $creds; + } + + /** + * Include an accessToken in a given apiHttpRequest. + * @param Google_Http_Request $request + * @return Google_Http_Request + * @throws Google_Auth_Exception + */ + public function sign(Google_Http_Request $request) { + // add the developer key to the request before signing it + if ($this->client->getClassConfig($this, 'developer_key')) { + $request->setQueryParam('key', $this->client->getClassConfig($this, 'developer_key')); + } + + // Cannot sign the request without an OAuth access token. + if (null == $this->token && null == $this->assertionCredentials) { + return $request; + } + + // Check if the token is set to expire in the next 30 seconds + // (or has already expired). + if ($this->isAccessTokenExpired()) { + if ($this->assertionCredentials) { + $this->refreshTokenWithAssertion(); + } else { + if (!array_key_exists('refresh_token', $this->token)) { + throw new Google_Auth_Exception( + "The OAuth 2.0 access token has expired," + . " and a refresh token is not available. Refresh tokens" + . " are not returned for responses that were auto-approved." + ); + } + $this->refreshToken($this->token['refresh_token']); + } + } + + // Add the OAuth2 header to the request + $request->setRequestHeaders( + array('Authorization' => 'Bearer ' . $this->token['access_token']) + ); + + return $request; + } + + /** + * Fetches a fresh access token with the given refresh token. + * @param string $refreshToken + * @return void + */ + public function refreshToken($refreshToken) { + $this->refreshTokenRequest( + array( + 'client_id' => $this->client->getClassConfig($this, 'client_id'), + 'client_secret' => $this->client->getClassConfig($this, 'client_secret'), + 'refresh_token' => $refreshToken, + 'grant_type' => 'refresh_token' + ) + ); + } + + /** + * Fetches a fresh access token with a given assertion token. + * @param Google_Auth_AssertionCredentials $assertionCredentials optional. + * @return void + */ + public function refreshTokenWithAssertion($assertionCredentials = null) { + if (!$assertionCredentials) { + $assertionCredentials = $this->assertionCredentials; + } + + $cacheKey = $assertionCredentials->getCacheKey(); + + if ($cacheKey) { + // We can check whether we have a token available in the + // cache. If it is expired, we can retrieve a new one from + // the assertion. + $token = $this->client->getCache()->get($cacheKey); + if ($token) { + $this->setAccessToken($token); + } + if (!$this->isAccessTokenExpired()) { + return; + } + } + + $this->refreshTokenRequest( + array( + 'grant_type' => 'assertion', + 'assertion_type' => $assertionCredentials->assertionType, + 'assertion' => $assertionCredentials->generateAssertion(), + ) + ); + + if ($cacheKey) { + // Attempt to cache the token. + $this->client->getCache()->set( + $cacheKey, + $this->getAccessToken() + ); + } + } + + private function refreshTokenRequest($params) { + $http = new Google_Http_Request( + self::OAUTH2_TOKEN_URI, + 'POST', + array(), + $params + ); + $http->disableGzip(); + $request = $this->client->getIo()->makeRequest($http); + + $code = $request->getResponseHttpCode(); + $body = $request->getResponseBody(); + if (200 == $code) { + $token = json_decode($body, true); + if ($token == null) { + throw new Google_Auth_Exception("Could not json decode the access token"); + } + + if (!isset($token['access_token']) || !isset($token['expires_in'])) { + throw new Google_Auth_Exception("Invalid token format"); + } + + if (isset($token['id_token'])) { + $this->token['id_token'] = $token['id_token']; + } + $this->token['access_token'] = $token['access_token']; + $this->token['expires_in'] = $token['expires_in']; + $this->token['created'] = time(); + } else { + throw new Google_Auth_Exception("Error refreshing the OAuth2 token, message: '$body'", $code); + } + } + + /** + * Revoke an OAuth2 access token or refresh token. This method will revoke the current access + * token, if a token isn't provided. + * @param string|null $token The token (access token or a refresh token) that should be revoked. + * @return boolean Returns True if the revocation was successful, otherwise False. + * @throws Google_Auth_Exception + */ + public function revokeToken($token = null) { + if (!$token) { + if (!$this->token) { + // Not initialized, no token to actually revoke + return false; + } elseif (array_key_exists('refresh_token', $this->token)) { + $token = $this->token['refresh_token']; + } else { + $token = $this->token['access_token']; + } + } + $request = new Google_Http_Request( + self::OAUTH2_REVOKE_URI, + 'POST', + array(), + "token=$token" + ); + $request->disableGzip(); + $response = $this->client->getIo()->makeRequest($request); + $code = $response->getResponseHttpCode(); + if ($code == 200) { + $this->token = null; + return true; + } + return false; - } elseif (array_key_exists('refresh_token', $this->token)) { - $token = $this->token['refresh_token']; - } else { - $token = $this->token['access_token']; - } - } - $request = new Google_Http_Request( - self::OAUTH2_REVOKE_URI, - 'POST', - array(), - "token=$token" - ); - $request->disableGzip(); - $response = $this->client->getIo()->makeRequest($request); - $code = $response->getResponseHttpCode(); - if ($code == 200) { - $this->token = null; - return true; } - return false; - } + /** + * Returns if the access_token is expired. + * @return bool Returns True if the access_token is expired. + */ + public function isAccessTokenExpired() { + if (!$this->token || !isset($this->token['created'])) { + return true; + } - /** - * Returns if the access_token is expired. - * @return bool Returns True if the access_token is expired. - */ - public function isAccessTokenExpired() - { - if (!$this->token || !isset($this->token['created'])) { - return true; + // If the token is set to expire in the next 30 seconds. + $expired = ($this->token['created'] + + ($this->token['expires_in'] - 30)) < time(); + + return $expired; } - // If the token is set to expire in the next 30 seconds. - $expired = ($this->token['created'] - + ($this->token['expires_in'] - 30)) < time(); + // Gets federated sign-on certificates to use for verifying identity tokens. + // Returns certs as array structure, where keys are key ids, and values + // are PEM encoded certificates. + private function getFederatedSignOnCerts() { + return $this->retrieveCertsFromLocation( + $this->client->getClassConfig($this, 'federated_signon_certs_url') + ); + } - return $expired; - } + /** + * Retrieve and cache a certificates file. + * @param $url location + * @return array certificates + */ + public function retrieveCertsFromLocation($url) { + // If we're retrieving a local file, just grab it. + if ("http" != substr($url, 0, 4)) { + $file = file_get_contents($url); + if ($file) { + return json_decode($file, true); + } else { + throw new Google_Auth_Exception( + "Failed to retrieve verification certificates: '" . + $url . "'." + ); + } + } - // Gets federated sign-on certificates to use for verifying identity tokens. - // Returns certs as array structure, where keys are key ids, and values - // are PEM encoded certificates. - private function getFederatedSignOnCerts() - { - return $this->retrieveCertsFromLocation( - $this->client->getClassConfig($this, 'federated_signon_certs_url') - ); - } - - /** - * Retrieve and cache a certificates file. - * @param $url location - * @return array certificates - */ - public function retrieveCertsFromLocation($url) - { - // If we're retrieving a local file, just grab it. - if ("http" != substr($url, 0, 4)) { - $file = file_get_contents($url); - if ($file) { - return json_decode($file, true); - } else { + // This relies on makeRequest caching certificate responses. + $request = $this->client->getIo()->makeRequest( + new Google_Http_Request( + $url + ) + ); + if ($request->getResponseHttpCode() == 200) { + $certs = json_decode($request->getResponseBody(), true); + if ($certs) { + return $certs; + } + } throw new Google_Auth_Exception( "Failed to retrieve verification certificates: '" . - $url . "'." + $request->getResponseBody() . "'.", + $request->getResponseHttpCode() ); - } } - // This relies on makeRequest caching certificate responses. - $request = $this->client->getIo()->makeRequest( - new Google_Http_Request( - $url - ) - ); - if ($request->getResponseHttpCode() == 200) { - $certs = json_decode($request->getResponseBody(), true); - if ($certs) { - return $certs; - } - } - throw new Google_Auth_Exception( - "Failed to retrieve verification certificates: '" . - $request->getResponseBody() . "'.", - $request->getResponseHttpCode() - ); - } + /** + * Verifies an id token and returns the authenticated apiLoginTicket. + * Throws an exception if the id token is not valid. + * The audience parameter can be used to control which id tokens are + * accepted. By default, the id token must have been issued to this OAuth2 client. + * + * @param $id_token + * @param $audience + * @return Google_Auth_LoginTicket + */ + public function verifyIdToken($id_token = null, $audience = null) { + if (!$id_token) { + $id_token = $this->token['id_token']; + } + $certs = $this->getFederatedSignonCerts(); + if (!$audience) { + $audience = $this->client->getClassConfig($this, 'client_id'); + } - /** - * Verifies an id token and returns the authenticated apiLoginTicket. - * Throws an exception if the id token is not valid. - * The audience parameter can be used to control which id tokens are - * accepted. By default, the id token must have been issued to this OAuth2 client. - * - * @param $id_token - * @param $audience - * @return Google_Auth_LoginTicket - */ - public function verifyIdToken($id_token = null, $audience = null) - { - if (!$id_token) { - $id_token = $this->token['id_token']; - } - $certs = $this->getFederatedSignonCerts(); - if (!$audience) { - $audience = $this->client->getClassConfig($this, 'client_id'); + return $this->verifySignedJwtWithCerts($id_token, $certs, $audience, self::OAUTH2_ISSUER); } - return $this->verifySignedJwtWithCerts($id_token, $certs, $audience, self::OAUTH2_ISSUER); - } + /** + * Verifies the id token, returns the verified token contents. + * + * @param $jwt the token + * @param $certs array of certificates + * @param $required_audience the expected consumer of the token + * @param [$issuer] the expected issues, defaults to Google + * @param [$max_expiry] the max lifetime of a token, defaults to MAX_TOKEN_LIFETIME_SECS + * @return token information if valid, false if not + */ + public function verifySignedJwtWithCerts( + $jwt, + $certs, + $required_audience, + $issuer = null, + $max_expiry = null + ) { + if (!$max_expiry) { + // Set the maximum time we will accept a token for. + $max_expiry = self::MAX_TOKEN_LIFETIME_SECS; + } - /** - * Verifies the id token, returns the verified token contents. - * - * @param $jwt the token - * @param $certs array of certificates - * @param $required_audience the expected consumer of the token - * @param [$issuer] the expected issues, defaults to Google - * @param [$max_expiry] the max lifetime of a token, defaults to MAX_TOKEN_LIFETIME_SECS - * @return token information if valid, false if not - */ - public function verifySignedJwtWithCerts( - $jwt, - $certs, - $required_audience, - $issuer = null, - $max_expiry = null - ) { - if (!$max_expiry) { - // Set the maximum time we will accept a token for. - $max_expiry = self::MAX_TOKEN_LIFETIME_SECS; - } + $segments = explode(".", $jwt); + if (count($segments) != 3) { + throw new Google_Auth_Exception("Wrong number of segments in token: $jwt"); + } + $signed = $segments[0] . "." . $segments[1]; + $signature = Google_Utils::urlSafeB64Decode($segments[2]); - $segments = explode(".", $jwt); - if (count($segments) != 3) { - throw new Google_Auth_Exception("Wrong number of segments in token: $jwt"); - } - $signed = $segments[0] . "." . $segments[1]; - $signature = Google_Utils::urlSafeB64Decode($segments[2]); + // Parse envelope. + $envelope = json_decode(Google_Utils::urlSafeB64Decode($segments[0]), true); + if (!$envelope) { + throw new Google_Auth_Exception("Can't parse token envelope: " . $segments[0]); + } - // Parse envelope. - $envelope = json_decode(Google_Utils::urlSafeB64Decode($segments[0]), true); - if (!$envelope) { - throw new Google_Auth_Exception("Can't parse token envelope: " . $segments[0]); - } + // Parse token + $json_body = Google_Utils::urlSafeB64Decode($segments[1]); + $payload = json_decode($json_body, true); + if (!$payload) { + throw new Google_Auth_Exception("Can't parse token payload: " . $segments[1]); + } - // Parse token - $json_body = Google_Utils::urlSafeB64Decode($segments[1]); - $payload = json_decode($json_body, true); - if (!$payload) { - throw new Google_Auth_Exception("Can't parse token payload: " . $segments[1]); - } + // Check signature + $verified = false; + foreach ($certs as $keyName => $pem) { + $public_key = new Google_Verifier_Pem($pem); + if ($public_key->verify($signed, $signature)) { + $verified = true; + break; + } + } - // Check signature - $verified = false; - foreach ($certs as $keyName => $pem) { - $public_key = new Google_Verifier_Pem($pem); - if ($public_key->verify($signed, $signature)) { - $verified = true; - break; - } - } + if (!$verified) { + throw new Google_Auth_Exception("Invalid token signature: $jwt"); + } - if (!$verified) { - throw new Google_Auth_Exception("Invalid token signature: $jwt"); - } + // Check issued-at timestamp + $iat = 0; + if (array_key_exists("iat", $payload)) { + $iat = $payload["iat"]; + } + if (!$iat) { + throw new Google_Auth_Exception("No issue time in token: $json_body"); + } + $earliest = $iat - self::CLOCK_SKEW_SECS; - // Check issued-at timestamp - $iat = 0; - if (array_key_exists("iat", $payload)) { - $iat = $payload["iat"]; - } - if (!$iat) { - throw new Google_Auth_Exception("No issue time in token: $json_body"); - } - $earliest = $iat - self::CLOCK_SKEW_SECS; + // Check expiration timestamp + $now = time(); + $exp = 0; + if (array_key_exists("exp", $payload)) { + $exp = $payload["exp"]; + } + if (!$exp) { + throw new Google_Auth_Exception("No expiration time in token: $json_body"); + } + if ($exp >= $now + $max_expiry) { + throw new Google_Auth_Exception( + sprintf("Expiration time too far in future: %s", $json_body) + ); + } - // Check expiration timestamp - $now = time(); - $exp = 0; - if (array_key_exists("exp", $payload)) { - $exp = $payload["exp"]; - } - if (!$exp) { - throw new Google_Auth_Exception("No expiration time in token: $json_body"); - } - if ($exp >= $now + $max_expiry) { - throw new Google_Auth_Exception( - sprintf("Expiration time too far in future: %s", $json_body) - ); - } + $latest = $exp + self::CLOCK_SKEW_SECS; + if ($now < $earliest) { + throw new Google_Auth_Exception( + sprintf( + "Token used too early, %s < %s: %s", + $now, + $earliest, + $json_body + ) + ); + } + if ($now > $latest) { + throw new Google_Auth_Exception( + sprintf( + "Token used too late, %s > %s: %s", + $now, + $latest, + $json_body + ) + ); + } - $latest = $exp + self::CLOCK_SKEW_SECS; - if ($now < $earliest) { - throw new Google_Auth_Exception( - sprintf( - "Token used too early, %s < %s: %s", - $now, - $earliest, - $json_body - ) - ); - } - if ($now > $latest) { - throw new Google_Auth_Exception( - sprintf( - "Token used too late, %s > %s: %s", - $now, - $latest, - $json_body - ) - ); - } + $iss = $payload['iss']; + if ($issuer && $iss != $issuer) { + throw new Google_Auth_Exception( + sprintf( + "Invalid issuer, %s != %s: %s", + $iss, + $issuer, + $json_body + ) + ); + } - $iss = $payload['iss']; - if ($issuer && $iss != $issuer) { - throw new Google_Auth_Exception( - sprintf( - "Invalid issuer, %s != %s: %s", - $iss, - $issuer, - $json_body - ) - ); - } + // Check audience + $aud = $payload["aud"]; + if ($aud != $required_audience) { + throw new Google_Auth_Exception( + sprintf( + "Wrong recipient, %s != %s:", + $aud, + $required_audience, + $json_body + ) + ); + } - // Check audience - $aud = $payload["aud"]; - if ($aud != $required_audience) { - throw new Google_Auth_Exception( - sprintf( - "Wrong recipient, %s != %s:", - $aud, - $required_audience, - $json_body - ) - ); + // All good. + return new Google_Auth_LoginTicket($envelope, $payload); } - - // All good. - return new Google_Auth_LoginTicket($envelope, $payload); - } } diff --git a/oauth/Google/Auth/Simple.php b/oauth/Google/Auth/Simple.php index e83900f..f580f4f 100644 --- a/oauth/Google/Auth/Simple.php +++ b/oauth/Google/Auth/Simple.php @@ -25,38 +25,34 @@ require_once "Google/Http/Request.php"; * @author Chris Chabot * @author Chirag Shah */ -class Google_Auth_Simple extends Google_Auth_Abstract -{ - private $key = null; - private $client; +class Google_Auth_Simple extends Google_Auth_Abstract { + private $key = null; + private $client; - public function __construct(Google_Client $client, $config = null) - { - $this->client = $client; - } - - /** - * Perform an authenticated / signed apiHttpRequest. - * This function takes the apiHttpRequest, calls apiAuth->sign on it - * (which can modify the request in what ever way fits the auth mechanism) - * and then calls apiCurlIO::makeRequest on the signed request - * - * @param Google_Http_Request $request - * @return Google_Http_Request The resulting HTTP response including the - * responseHttpCode, responseHeaders and responseBody. - */ - public function authenticatedRequest(Google_Http_Request $request) - { - $request = $this->sign($request); - return $this->io->makeRequest($request); - } - - public function sign(Google_Http_Request $request) - { - $key = $this->client->getClassConfig($this, 'developer_key'); - if ($key) { - $request->setQueryParam('key', $key); + public function __construct(Google_Client $client, $config = null) { + $this->client = $client; + } + + /** + * Perform an authenticated / signed apiHttpRequest. + * This function takes the apiHttpRequest, calls apiAuth->sign on it + * (which can modify the request in what ever way fits the auth mechanism) + * and then calls apiCurlIO::makeRequest on the signed request + * + * @param Google_Http_Request $request + * @return Google_Http_Request The resulting HTTP response including the + * responseHttpCode, responseHeaders and responseBody. + */ + public function authenticatedRequest(Google_Http_Request $request) { + $request = $this->sign($request); + return $this->io->makeRequest($request); + } + + public function sign(Google_Http_Request $request) { + $key = $this->client->getClassConfig($this, 'developer_key'); + if ($key) { + $request->setQueryParam('key', $key); + } + return $request; } - return $request; - } } diff --git a/oauth/Google/Cache/Abstract.php b/oauth/Google/Cache/Abstract.php index ff19f36..29f3f7e 100644 --- a/oauth/Google/Cache/Abstract.php +++ b/oauth/Google/Cache/Abstract.php @@ -20,34 +20,33 @@ * * @author Chris Chabot */ -abstract class Google_Cache_Abstract -{ - - abstract public function __construct(Google_Client $client); +abstract class Google_Cache_Abstract { - /** - * Retrieves the data for the given key, or false if they - * key is unknown or expired - * - * @param String $key The key who's data to retrieve - * @param boolean|int $expiration Expiration time in seconds - * - */ - abstract public function get($key, $expiration = false); + abstract public function __construct(Google_Client $client); - /** - * Store the key => $value set. The $value is serialized - * by this function so can be of any type - * - * @param string $key Key of the data - * @param string $value data - */ - abstract public function set($key, $value); + /** + * Retrieves the data for the given key, or false if they + * key is unknown or expired + * + * @param String $key The key who's data to retrieve + * @param boolean|int $expiration Expiration time in seconds + * + */ + abstract public function get($key, $expiration = false); - /** - * Removes the key/data pair for the given $key - * - * @param String $key - */ - abstract public function delete($key); + /** + * Store the key => $value set. The $value is serialized + * by this function so can be of any type + * + * @param string $key Key of the data + * @param string $value data + */ + abstract public function set($key, $value); + + /** + * Removes the key/data pair for the given $key + * + * @param String $key + */ + abstract public function delete($key); } diff --git a/oauth/Google/Cache/Apc.php b/oauth/Google/Cache/Apc.php index 051b537..a4e9c50 100644 --- a/oauth/Google/Cache/Apc.php +++ b/oauth/Google/Cache/Apc.php @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + require_once "Google/Cache/Abstract.php"; require_once "Google/Cache/Exception.php"; @@ -26,48 +26,43 @@ require_once "Google/Cache/Exception.php"; * * @author Chris Chabot */ -class Google_Cache_Apc extends Google_Cache_Abstract -{ - public function __construct(Google_Client $client) - { - if (! function_exists('apc_add') ) { - throw new Google_Cache_Exception("Apc functions not available"); +class Google_Cache_Apc extends Google_Cache_Abstract { + public function __construct(Google_Client $client) { + if (!function_exists('apc_add')) { + throw new Google_Cache_Exception("Apc functions not available"); + } } - } - /** - * @inheritDoc - */ - public function get($key, $expiration = false) - { - $ret = apc_fetch($key); - if ($ret === false) { - return false; + /** + * @inheritDoc + */ + public function get($key, $expiration = false) { + $ret = apc_fetch($key); + if ($ret === false) { + return false; + } + if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) { + $this->delete($key); + return false; + } + return $ret['data']; } - if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) { - $this->delete($key); - return false; - } - return $ret['data']; - } - /** - * @inheritDoc - */ - public function set($key, $value) - { - $rc = apc_store($key, array('time' => time(), 'data' => $value)); - if ($rc == false) { - throw new Google_Cache_Exception("Couldn't store data"); + /** + * @inheritDoc + */ + public function set($key, $value) { + $rc = apc_store($key, array('time' => time(), 'data' => $value)); + if ($rc == false) { + throw new Google_Cache_Exception("Couldn't store data"); + } } - } - /** - * @inheritDoc - * @param String $key - */ - public function delete($key) - { - apc_delete($key); - } + /** + * @inheritDoc + * @param String $key + */ + public function delete($key) { + apc_delete($key); + } } diff --git a/oauth/Google/Cache/Exception.php b/oauth/Google/Cache/Exception.php index 23b6246..a5fe7e7 100644 --- a/oauth/Google/Cache/Exception.php +++ b/oauth/Google/Cache/Exception.php @@ -16,6 +16,5 @@ */ require_once "Google/Exception.php"; -class Google_Cache_Exception extends Google_Exception -{ +class Google_Cache_Exception extends Google_Exception { } diff --git a/oauth/Google/Cache/File.php b/oauth/Google/Cache/File.php index 8d0d62f..f9c233e 100644 --- a/oauth/Google/Cache/File.php +++ b/oauth/Google/Cache/File.php @@ -26,120 +26,109 @@ require_once "Google/Cache/Exception.php"; * * @author Chris Chabot */ -class Google_Cache_File extends Google_Cache_Abstract -{ - const MAX_LOCK_RETRIES = 10; - private $path; - private $fh; - public function __construct(Google_Client $client) - { - $this->path = $client->getClassConfig($this, 'directory'); - } - - public function get($key, $expiration = false) - { - $storageFile = $this->getCacheFile($key); - $data = false; - - if (!file_exists($storageFile)) { - return false; +class Google_Cache_File extends Google_Cache_Abstract { + const MAX_LOCK_RETRIES = 10; + private $path; + private $fh; + + public function __construct(Google_Client $client) { + $this->path = $client->getClassConfig($this, 'directory'); } - if ($expiration) { - $mtime = filemtime($storageFile); - if ((time() - $mtime) >= $expiration) { - $this->delete($key); - return false; - } + public function get($key, $expiration = false) { + $storageFile = $this->getCacheFile($key); + $data = false; + + if (!file_exists($storageFile)) { + return false; + } + + if ($expiration) { + $mtime = filemtime($storageFile); + if ((time() - $mtime) >= $expiration) { + $this->delete($key); + return false; + } + } + + if ($this->acquireReadLock($storageFile)) { + $data = fread($this->fh, filesize($storageFile)); + $data = unserialize($data); + $this->unlock($storageFile); + } + + return $data; } - if ($this->acquireReadLock($storageFile)) { - $data = fread($this->fh, filesize($storageFile)); - $data = unserialize($data); - $this->unlock($storageFile); + public function set($key, $value) { + $storageFile = $this->getWriteableCacheFile($key); + if ($this->acquireWriteLock($storageFile)) { + // We serialize the whole request object, since we don't only want the + // responseContent but also the postBody used, headers, size, etc. + $data = serialize($value); + $result = fwrite($this->fh, $data); + $this->unlock($storageFile); + } } - return $data; - } + public function delete($key) { + $file = $this->getCacheFile($key); + if (file_exists($file) && !unlink($file)) { + throw new Google_Cache_Exception("Cache file could not be deleted"); + } + } - public function set($key, $value) - { - $storageFile = $this->getWriteableCacheFile($key); - if ($this->acquireWriteLock($storageFile)) { - // We serialize the whole request object, since we don't only want the - // responseContent but also the postBody used, headers, size, etc. - $data = serialize($value); - $result = fwrite($this->fh, $data); - $this->unlock($storageFile); + private function getWriteableCacheFile($file) { + return $this->getCacheFile($file, true); } - } - public function delete($key) - { - $file = $this->getCacheFile($key); - if (file_exists($file) && !unlink($file)) { - throw new Google_Cache_Exception("Cache file could not be deleted"); + private function getCacheFile($file, $forWrite = false) { + return $this->getCacheDir($file, $forWrite) . '/' . md5($file); } - } - - private function getWriteableCacheFile($file) - { - return $this->getCacheFile($file, true); - } - private function getCacheFile($file, $forWrite = false) - { - return $this->getCacheDir($file, $forWrite) . '/' . md5($file); - } - - private function getCacheDir($file, $forWrite) - { - // use the first 2 characters of the hash as a directory prefix - // this should prevent slowdowns due to huge directory listings - // and thus give some basic amount of scalability - $storageDir = $this->path . '/' . substr(md5($file), 0, 2); - if ($forWrite && ! is_dir($storageDir)) { - if (! mkdir($storageDir, 0755, true)) { - throw new Google_Cache_Exception("Could not create storage directory: $storageDir"); - } + private function getCacheDir($file, $forWrite) { + // use the first 2 characters of the hash as a directory prefix + // this should prevent slowdowns due to huge directory listings + // and thus give some basic amount of scalability + $storageDir = $this->path . '/' . substr(md5($file), 0, 2); + if ($forWrite && !is_dir($storageDir)) { + if (!mkdir($storageDir, 0755, true)) { + throw new Google_Cache_Exception("Could not create storage directory: $storageDir"); + } + } + return $storageDir; } - return $storageDir; - } - - private function acquireReadLock($storageFile) - { - return $this->acquireLock(LOCK_SH, $storageFile); - } - - private function acquireWriteLock($storageFile) - { - $rc = $this->acquireLock(LOCK_EX, $storageFile); - if (!$rc) { - $this->delete($storageFile); + + private function acquireReadLock($storageFile) { + return $this->acquireLock(LOCK_SH, $storageFile); } - return $rc; - } - - private function acquireLock($type, $storageFile) - { - $mode = $type == LOCK_EX ? "w" : "r"; - $this->fh = fopen($storageFile, $mode); - $count = 0; - while (!flock($this->fh, $type | LOCK_NB)) { - // Sleep for 10ms. - usleep(10000); - if (++$count < self::MAX_LOCK_RETRIES) { - return false; - } + + private function acquireWriteLock($storageFile) { + $rc = $this->acquireLock(LOCK_EX, $storageFile); + if (!$rc) { + $this->delete($storageFile); + } + return $rc; } - return true; - } - - public function unlock($storageFile) - { - if ($this->fh) { - flock($this->fh, LOCK_UN); + + private function acquireLock($type, $storageFile) { + $mode = $type == LOCK_EX ? "w" : "r"; + $this->fh = fopen($storageFile, $mode); + $count = 0; + while (!flock($this->fh, $type | LOCK_NB)) { + // Sleep for 10ms. + usleep(10000); + if (++$count < self::MAX_LOCK_RETRIES) { + return false; + } + } + return true; + } + + public function unlock($storageFile) { + if ($this->fh) { + flock($this->fh, LOCK_UN); + } } - } } diff --git a/oauth/Google/Cache/Memcache.php b/oauth/Google/Cache/Memcache.php index 56676c2..4d4780c 100644 --- a/oauth/Google/Cache/Memcache.php +++ b/oauth/Google/Cache/Memcache.php @@ -28,110 +28,104 @@ require_once "Google/Cache/Exception.php"; * * @author Chris Chabot */ -class Google_Cache_Memcache extends Google_Cache_Abstract -{ - private $connection = false; - private $mc = false; - private $host; - private $port; +class Google_Cache_Memcache extends Google_Cache_Abstract { + private $connection = false; + private $mc = false; + private $host; + private $port; - public function __construct(Google_Client $client) - { - if (!function_exists('memcache_connect') && !class_exists("Memcached")) { - throw new Google_Cache_Exception("Memcache functions not available"); - } - if ($client->isAppEngine()) { - // No credentials needed for GAE. - $this->mc = new Memcached(); - $this->connection = true; - } else { - $this->host = $client->getClassConfig($this, 'host'); - $this->port = $client->getClassConfig($this, 'port'); - if (empty($this->host) || empty($this->port)) { - throw new Google_Cache_Exception("You need to supply a valid memcache host and port"); - } - } - } - - /** - * @inheritDoc - */ - public function get($key, $expiration = false) - { - $this->connect(); - $ret = false; - if ($this->mc) { - $ret = $this->mc->get($key); - } else { - $ret = memcache_get($this->connection, $key); - } - if ($ret === false) { - return false; - } - if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) { - $this->delete($key); - return false; - } - return $ret['data']; - } - - /** - * @inheritDoc - * @param string $key - * @param string $value - * @throws Google_Cache_Exception - */ - public function set($key, $value) - { - $this->connect(); - // we store it with the cache_time default expiration so objects will at - // least get cleaned eventually. - $data = array('time' => time(), 'data' => $value); - $rc = false; - if ($this->mc) { - $rc = $this->mc->set($key, $data); - } else { - $rc = memcache_set($this->connection, $key, $data, false); - } - if ($rc == false) { - throw new Google_Cache_Exception("Couldn't store data in cache"); - } - } - - /** - * @inheritDoc - * @param String $key - */ - public function delete($key) - { - $this->connect(); - if ($this->mc) { - $this->mc->delete($key, 0); - } else { - memcache_delete($this->connection, $key, 0); - } - } - - /** - * Lazy initialiser for memcache connection. Uses pconnect for to take - * advantage of the persistence pool where possible. - */ - private function connect() - { - if ($this->connection) { - return; + public function __construct(Google_Client $client) { + if (!function_exists('memcache_connect') && !class_exists("Memcached")) { + throw new Google_Cache_Exception("Memcache functions not available"); + } + if ($client->isAppEngine()) { + // No credentials needed for GAE. + $this->mc = new Memcached(); + $this->connection = true; + } else { + $this->host = $client->getClassConfig($this, 'host'); + $this->port = $client->getClassConfig($this, 'port'); + if (empty($this->host) || empty($this->port)) { + throw new Google_Cache_Exception("You need to supply a valid memcache host and port"); + } + } } - if (class_exists("Memcached")) { - $this->mc = new Memcached(); - $this->mc->addServer($this->host, $this->port); - $this->connection = true; - } else { - $this->connection = memcache_pconnect($this->host, $this->port); + /** + * @inheritDoc + */ + public function get($key, $expiration = false) { + $this->connect(); + $ret = false; + if ($this->mc) { + $ret = $this->mc->get($key); + } else { + $ret = memcache_get($this->connection, $key); + } + if ($ret === false) { + return false; + } + if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) { + $this->delete($key); + return false; + } + return $ret['data']; } - - if (! $this->connection) { - throw new Google_Cache_Exception("Couldn't connect to memcache server"); + + /** + * @inheritDoc + * @param string $key + * @param string $value + * @throws Google_Cache_Exception + */ + public function set($key, $value) { + $this->connect(); + // we store it with the cache_time default expiration so objects will at + // least get cleaned eventually. + $data = array('time' => time(), 'data' => $value); + $rc = false; + if ($this->mc) { + $rc = $this->mc->set($key, $data); + } else { + $rc = memcache_set($this->connection, $key, $data, false); + } + if ($rc == false) { + throw new Google_Cache_Exception("Couldn't store data in cache"); + } + } + + /** + * @inheritDoc + * @param String $key + */ + public function delete($key) { + $this->connect(); + if ($this->mc) { + $this->mc->delete($key, 0); + } else { + memcache_delete($this->connection, $key, 0); + } + } + + /** + * Lazy initialiser for memcache connection. Uses pconnect for to take + * advantage of the persistence pool where possible. + */ + private function connect() { + if ($this->connection) { + return; + } + + if (class_exists("Memcached")) { + $this->mc = new Memcached(); + $this->mc->addServer($this->host, $this->port); + $this->connection = true; + } else { + $this->connection = memcache_pconnect($this->host, $this->port); + } + + if (!$this->connection) { + throw new Google_Cache_Exception("Couldn't connect to memcache server"); + } } - } } diff --git a/oauth/Google/Cache/Null.php b/oauth/Google/Cache/Null.php index 0e33631..fe80ac5 100644 --- a/oauth/Google/Cache/Null.php +++ b/oauth/Google/Cache/Null.php @@ -22,35 +22,30 @@ require_once "Google/Cache/Exception.php"; * A blank storage class, for cases where caching is not * required. */ -class Google_Cache_Null extends Google_Cache_Abstract -{ - public function __construct(Google_Client $client) - { +class Google_Cache_Null extends Google_Cache_Abstract { + public function __construct(Google_Client $client) { - } + } - /** - * @inheritDoc - */ - public function get($key, $expiration = false) - { - return false; - } + /** + * @inheritDoc + */ + public function get($key, $expiration = false) { + return false; + } - /** - * @inheritDoc - */ - public function set($key, $value) - { - // Nop. - } + /** + * @inheritDoc + */ + public function set($key, $value) { + // Nop. + } - /** - * @inheritDoc - * @param String $key - */ - public function delete($key) - { - // Nop. - } + /** + * @inheritDoc + * @param String $key + */ + public function delete($key) { + // Nop. + } } diff --git a/oauth/Google/Client.php b/oauth/Google/Client.php index 1ec2f32..ab73c86 100644 --- a/oauth/Google/Client.php +++ b/oauth/Google/Client.php @@ -34,579 +34,534 @@ require_once 'Google/Service/Resource.php'; * @author Chris Chabot * @author Chirag Shah */ -class Google_Client -{ - const LIBVER = "1.0.5-beta"; - const USER_AGENT_SUFFIX = "google-api-php-client/"; - /** - * @var Google_Auth_Abstract $auth - */ - private $auth; +class Google_Client { + const LIBVER = "1.0.5-beta"; + const USER_AGENT_SUFFIX = "google-api-php-client/"; + /** + * @var Google_Auth_Abstract $auth + */ + private $auth; - /** - * @var Google_IO_Abstract $io - */ - private $io; + /** + * @var Google_IO_Abstract $io + */ + private $io; - /** - * @var Google_Cache_Abstract $cache - */ - private $cache; + /** + * @var Google_Cache_Abstract $cache + */ + private $cache; - /** - * @var Google_Config $config - */ - private $config; + /** + * @var Google_Config $config + */ + private $config; - /** - * @var boolean $deferExecution - */ - private $deferExecution = false; + /** + * @var boolean $deferExecution + */ + private $deferExecution = false; - /** @var array $scopes */ - // Scopes requested by the client - protected $requestedScopes = array(); + /** @var array $scopes */ + // Scopes requested by the client + protected $requestedScopes = array(); - // definitions of services that are discovered. - protected $services = array(); + // definitions of services that are discovered. + protected $services = array(); - // Used to track authenticated state, can't discover services after doing authenticate() - private $authenticated = false; + // Used to track authenticated state, can't discover services after doing authenticate() + private $authenticated = false; - /** - * Construct the Google Client. - * - * @param $config Google_Config or string for the ini file to load - */ - public function __construct($config = null) - { - if (is_string($config) && strlen($config)) { - $config = new Google_Config($config); - } else if ( !($config instanceof Google_Config)) { - $config = new Google_Config(); + /** + * Construct the Google Client. + * + * @param $config Google_Config or string for the ini file to load + */ + public function __construct($config = null) { + if (is_string($config) && strlen($config)) { + $config = new Google_Config($config); + } elseif (!($config instanceof Google_Config)) { + $config = new Google_Config(); - if ($this->isAppEngine()) { - // Automatically use Memcache if we're in AppEngine. - $config->setCacheClass('Google_Cache_Memcache'); - } + if ($this->isAppEngine()) { + // Automatically use Memcache if we're in AppEngine. + $config->setCacheClass('Google_Cache_Memcache'); + } - if (version_compare(phpversion(), "5.3.4", "<=") || $this->isAppEngine()) { - // Automatically disable compress.zlib, as currently unsupported. - $config->setClassConfig('Google_Http_Request', 'disable_gzip', true); - } + if (version_compare(phpversion(), "5.3.4", "<=") || $this->isAppEngine()) { + // Automatically disable compress.zlib, as currently unsupported. + $config->setClassConfig('Google_Http_Request', 'disable_gzip', true); + } + } + + if ($config->getIoClass() == Google_Config::USE_AUTO_IO_SELECTION) { + if (function_exists('curl_version') && function_exists('curl_exec')) { + $config->setIoClass("Google_IO_Curl"); + } else { + $config->setIoClass("Google_IO_Stream"); + } + } + + $this->config = $config; } - if ($config->getIoClass() == Google_Config::USE_AUTO_IO_SELECTION) { - if (function_exists('curl_version') && function_exists('curl_exec')) { - $config->setIoClass("Google_IO_Curl"); - } else { - $config->setIoClass("Google_IO_Stream"); - } + /** + * Get a string containing the version of the library. + * + * @return string + */ + public function getLibraryVersion() { + return self::LIBVER; } - $this->config = $config; - } - - /** - * Get a string containing the version of the library. - * - * @return string - */ - public function getLibraryVersion() - { - return self::LIBVER; - } - - /** - * Attempt to exchange a code for an valid authentication token. - * Helper wrapped around the OAuth 2.0 implementation. - * - * @param $code string code from accounts.google.com - * @return string token - */ - public function authenticate($code) - { - $this->authenticated = true; - return $this->getAuth()->authenticate($code); - } - - /** - * Set the auth config from the JSON string provided. - * This structure should match the file downloaded from - * the "Download JSON" button on in the Google Developer - * Console. - * @param string $json the configuration json - */ - public function setAuthConfig($json) - { - $data = json_decode($json); - $key = isset($data->installed) ? 'installed' : 'web'; - if (!isset($data->$key)) { - throw new Google_Exception("Invalid client secret JSON file."); + /** + * Attempt to exchange a code for an valid authentication token. + * Helper wrapped around the OAuth 2.0 implementation. + * + * @param $code string code from accounts.google.com + * @return string token + */ + public function authenticate($code) { + $this->authenticated = true; + return $this->getAuth()->authenticate($code); } - $this->setClientId($data->$key->client_id); - $this->setClientSecret($data->$key->client_secret); - if (isset($data->$key->redirect_uris)) { - $this->setRedirectUri($data->$key->redirect_uris[0]); + + /** + * Set the auth config from the JSON string provided. + * This structure should match the file downloaded from + * the "Download JSON" button on in the Google Developer + * Console. + * @param string $json the configuration json + */ + public function setAuthConfig($json) { + $data = json_decode($json); + $key = isset($data->installed) ? 'installed' : 'web'; + if (!isset($data->$key)) { + throw new Google_Exception("Invalid client secret JSON file."); + } + $this->setClientId($data->$key->client_id); + $this->setClientSecret($data->$key->client_secret); + if (isset($data->$key->redirect_uris)) { + $this->setRedirectUri($data->$key->redirect_uris[0]); + } } - } - /** - * Set the auth config from the JSON file in the path - * provided. This should match the file downloaded from - * the "Download JSON" button on in the Google Developer - * Console. - * @param string $file the file location of the client json - */ - public function setAuthConfigFile($file) - { - $this->setAuthConfig(file_get_contents($file)); - } - - /** - * @return array - * @visible For Testing - */ - public function prepareScopes() - { - if (empty($this->requestedScopes)) { - throw new Google_Auth_Exception("No scopes specified"); + /** + * Set the auth config from the JSON file in the path + * provided. This should match the file downloaded from + * the "Download JSON" button on in the Google Developer + * Console. + * @param string $file the file location of the client json + */ + public function setAuthConfigFile($file) { + $this->setAuthConfig(file_get_contents($file)); } - $scopes = implode(' ', $this->requestedScopes); - return $scopes; - } - /** - * Set the OAuth 2.0 access token using the string that resulted from calling createAuthUrl() - * or Google_Client#getAccessToken(). - * @param string $accessToken JSON encoded string containing in the following format: - * {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer", - * "expires_in":3600, "id_token":"TOKEN", "created":1320790426} - */ - public function setAccessToken($accessToken) - { - if ($accessToken == 'null') { - $accessToken = null; + /** + * @return array + * @visible For Testing + */ + public function prepareScopes() { + if (empty($this->requestedScopes)) { + throw new Google_Auth_Exception("No scopes specified"); + } + $scopes = implode(' ', $this->requestedScopes); + return $scopes; } - $this->getAuth()->setAccessToken($accessToken); - } - - - /** - * Set the authenticator object - * @param Google_Auth_Abstract $auth - */ - public function setAuth(Google_Auth_Abstract $auth) - { - $this->config->setAuthClass(get_class($auth)); - $this->auth = $auth; - } - - /** - * Set the IO object - * @param Google_Io_Abstract $auth - */ - public function setIo(Google_Io_Abstract $io) - { - $this->config->setIoClass(get_class($io)); - $this->io = $io; - } - - /** - * Set the Cache object - * @param Google_Cache_Abstract $auth - */ - public function setCache(Google_Cache_Abstract $cache) - { - $this->config->setCacheClass(get_class($cache)); - $this->cache = $cache; - } - - /** - * Construct the OAuth 2.0 authorization request URI. - * @return string - */ - public function createAuthUrl() - { - $scopes = $this->prepareScopes(); - return $this->getAuth()->createAuthUrl($scopes); - } - - /** - * Get the OAuth 2.0 access token. - * @return string $accessToken JSON encoded string in the following format: - * {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer", - * "expires_in":3600,"id_token":"TOKEN", "created":1320790426} - */ - public function getAccessToken() - { - $token = $this->getAuth()->getAccessToken(); - // The response is json encoded, so could be the string null. - // It is arguable whether this check should be here or lower - // in the library. - return (null == $token || 'null' == $token || '[]' == $token) ? null : $token; - } - - /** - * Returns if the access_token is expired. - * @return bool Returns True if the access_token is expired. - */ - public function isAccessTokenExpired() - { - return $this->getAuth()->isAccessTokenExpired(); - } - - /** - * Set OAuth 2.0 "state" parameter to achieve per-request customization. - * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 - * @param string $state - */ - public function setState($state) - { - $this->getAuth()->setState($state); - } - - /** - * @param string $accessType Possible values for access_type include: - * {@code "offline"} to request offline access from the user. - * {@code "online"} to request online access from the user. - */ - public function setAccessType($accessType) - { - $this->config->setAccessType($accessType); - } - - /** - * @param string $approvalPrompt Possible values for approval_prompt include: - * {@code "force"} to force the approval UI to appear. (This is the default value) - * {@code "auto"} to request auto-approval when possible. - */ - public function setApprovalPrompt($approvalPrompt) - { - $this->config->setApprovalPrompt($approvalPrompt); - } - - /** - * Set the login hint, email address or sub id. - * @param string $loginHint - */ - public function setLoginHint($loginHint) - { - $this->config->setLoginHint($loginHint); - } - - /** - * Set the application name, this is included in the User-Agent HTTP header. - * @param string $applicationName - */ - public function setApplicationName($applicationName) - { - $this->config->setApplicationName($applicationName); - } - - /** - * Set the OAuth 2.0 Client ID. - * @param string $clientId - */ - public function setClientId($clientId) - { - $this->config->setClientId($clientId); - } - - /** - * Set the OAuth 2.0 Client Secret. - * @param string $clientSecret - */ - public function setClientSecret($clientSecret) - { - $this->config->setClientSecret($clientSecret); - } - - /** - * Set the OAuth 2.0 Redirect URI. - * @param string $redirectUri - */ - public function setRedirectUri($redirectUri) - { - $this->config->setRedirectUri($redirectUri); - } - - /** - * If 'plus.login' is included in the list of requested scopes, you can use - * this method to define types of app activities that your app will write. - * You can find a list of available types here: - * @link https://developers.google.com/+/api/moment-types - * - * @param array $requestVisibleActions Array of app activity types - */ - public function setRequestVisibleActions($requestVisibleActions) - { - if (is_array($requestVisibleActions)) { - $requestVisibleActions = join(" ", $requestVisibleActions); + /** + * Set the OAuth 2.0 access token using the string that resulted from calling createAuthUrl() + * or Google_Client#getAccessToken(). + * @param string $accessToken JSON encoded string containing in the following format: + * {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer", + * "expires_in":3600, "id_token":"TOKEN", "created":1320790426} + */ + public function setAccessToken($accessToken) { + if ($accessToken == 'null') { + $accessToken = null; + } + $this->getAuth()->setAccessToken($accessToken); } - $this->config->setRequestVisibleActions($requestVisibleActions); - } - /** - * Set the developer key to use, these are obtained through the API Console. - * @see http://code.google.com/apis/console-help/#generatingdevkeys - * @param string $developerKey - */ - public function setDeveloperKey($developerKey) - { - $this->config->setDeveloperKey($developerKey); - } - /** - * Fetches a fresh OAuth 2.0 access token with the given refresh token. - * @param string $refreshToken - * @return void - */ - public function refreshToken($refreshToken) - { - return $this->getAuth()->refreshToken($refreshToken); - } - - /** - * Revoke an OAuth2 access token or refresh token. This method will revoke the current access - * token, if a token isn't provided. - * @throws Google_Auth_Exception - * @param string|null $token The token (access token or a refresh token) that should be revoked. - * @return boolean Returns True if the revocation was successful, otherwise False. - */ - public function revokeToken($token = null) - { - return $this->getAuth()->revokeToken($token); - } - - /** - * Verify an id_token. This method will verify the current id_token, if one - * isn't provided. - * @throws Google_Auth_Exception - * @param string|null $token The token (id_token) that should be verified. - * @return Google_Auth_LoginTicket Returns an apiLoginTicket if the verification was - * successful. - */ - public function verifyIdToken($token = null) - { - return $this->getAuth()->verifyIdToken($token); - } - - /** - * Verify a JWT that was signed with your own certificates. - * - * @param $jwt the token - * @param $certs array of certificates - * @param $required_audience the expected consumer of the token - * @param [$issuer] the expected issues, defaults to Google - * @param [$max_expiry] the max lifetime of a token, defaults to MAX_TOKEN_LIFETIME_SECS - * @return token information if valid, false if not - */ - public function verifySignedJwt($id_token, $cert_location, $audience, $issuer, $max_expiry = null) - { - $auth = new Google_Auth_OAuth2($this); - $certs = $auth->retrieveCertsFromLocation($cert_location); - return $auth->verifySignedJwtWithCerts($id_token, $certs, $audience, $issuer, $max_expiry); - } - - /** - * @param Google_Auth_AssertionCredentials $creds - * @return void - */ - public function setAssertionCredentials(Google_Auth_AssertionCredentials $creds) - { - $this->getAuth()->setAssertionCredentials($creds); - } - - /** - * Set the scopes to be requested. Must be called before createAuthUrl(). - * Will remove any previously configured scopes. - * @param array $scopes, ie: array('https://www.googleapis.com/auth/plus.login', - * 'https://www.googleapis.com/auth/moderator') - */ - public function setScopes($scopes) - { - $this->requestedScopes = array(); - $this->addScope($scopes); - } - - /** - * This functions adds a scope to be requested as part of the OAuth2.0 flow. - * Will append any scopes not previously requested to the scope parameter. - * A single string will be treated as a scope to request. An array of strings - * will each be appended. - * @param $scope_or_scopes string|array e.g. "profile" - */ - public function addScope($scope_or_scopes) - { - if (is_string($scope_or_scopes) && !in_array($scope_or_scopes, $this->requestedScopes)) { - $this->requestedScopes[] = $scope_or_scopes; - } else if (is_array($scope_or_scopes)) { - foreach ($scope_or_scopes as $scope) { - $this->addScope($scope); - } + /** + * Set the authenticator object + * @param Google_Auth_Abstract $auth + */ + public function setAuth(Google_Auth_Abstract $auth) { + $this->config->setAuthClass(get_class($auth)); + $this->auth = $auth; } - } - /** - * Returns the list of scopes requested by the client - * @return array the list of scopes - * - */ - public function getScopes() - { - return $this->requestedScopes; - } - - /** - * Declare whether batch calls should be used. This may increase throughput - * by making multiple requests in one connection. - * - * @param boolean $useBatch True if the batch support should - * be enabled. Defaults to False. - */ - public function setUseBatch($useBatch) - { - // This is actually an alias for setDefer. - $this->setDefer($useBatch); - } - - /** - * Declare whether making API calls should make the call immediately, or - * return a request which can be called with ->execute(); - * - * @param boolean $defer True if calls should not be executed right away. - */ - public function setDefer($defer) - { - $this->deferExecution = $defer; - } - - /** - * Helper method to execute deferred HTTP requests. - * - * @returns object of the type of the expected class or array. - */ - public function execute($request) - { - if ($request instanceof Google_Http_Request) { - $request->setUserAgent( - $this->getApplicationName() - . " " . self::USER_AGENT_SUFFIX - . $this->getLibraryVersion() - ); - if (!$this->getClassConfig("Google_Http_Request", "disable_gzip")) { - $request->enableGzip(); - } - $request->maybeMoveParametersToBody(); - return Google_Http_REST::execute($this, $request); - } else if ($request instanceof Google_Http_Batch) { - return $request->execute(); - } else { - throw new Google_Exception("Do not know how to execute this type of object."); + /** + * Set the IO object + * @param Google_Io_Abstract $auth + */ + public function setIo(Google_Io_Abstract $io) { + $this->config->setIoClass(get_class($io)); + $this->io = $io; } - } - /** - * Whether or not to return raw requests - * @return boolean - */ - public function shouldDefer() - { - return $this->deferExecution; - } - - /** - * @return Google_Auth_Abstract Authentication implementation - */ - public function getAuth() - { - if (!isset($this->auth)) { - $class = $this->config->getAuthClass(); - $this->auth = new $class($this); + /** + * Set the Cache object + * @param Google_Cache_Abstract $auth + */ + public function setCache(Google_Cache_Abstract $cache) { + $this->config->setCacheClass(get_class($cache)); + $this->cache = $cache; } - return $this->auth; - } - /** - * @return Google_IO_Abstract IO implementation - */ - public function getIo() - { - if (!isset($this->io)) { - $class = $this->config->getIoClass(); - $this->io = new $class($this); + /** + * Construct the OAuth 2.0 authorization request URI. + * @return string + */ + public function createAuthUrl() { + $scopes = $this->prepareScopes(); + return $this->getAuth()->createAuthUrl($scopes); } - return $this->io; - } - /** - * @return Google_Cache_Abstract Cache implementation - */ - public function getCache() - { - if (!isset($this->cache)) { - $class = $this->config->getCacheClass(); - $this->cache = new $class($this); + /** + * Get the OAuth 2.0 access token. + * @return string $accessToken JSON encoded string in the following format: + * {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer", + * "expires_in":3600,"id_token":"TOKEN", "created":1320790426} + */ + public function getAccessToken() { + $token = $this->getAuth()->getAccessToken(); + // The response is json encoded, so could be the string null. + // It is arguable whether this check should be here or lower + // in the library. + return (null == $token || 'null' == $token || '[]' == $token) ? null : $token; } - return $this->cache; - } - /** - * Retrieve custom configuration for a specific class. - * @param $class string|object - class or instance of class to retrieve - * @param $key string optional - key to retrieve - */ - public function getClassConfig($class, $key = null) - { - if (!is_string($class)) { - $class = get_class($class); + /** + * Returns if the access_token is expired. + * @return bool Returns True if the access_token is expired. + */ + public function isAccessTokenExpired() { + return $this->getAuth()->isAccessTokenExpired(); } - return $this->config->getClassConfig($class, $key); - } - /** - * Set configuration specific to a given class. - * $config->setClassConfig('Google_Cache_File', - * array('directory' => '/tmp/cache')); - * @param $class The class name for the configuration - * @param $config string key or an array of configuration values - * @param $value optional - if $config is a key, the value - * - */ - public function setClassConfig($class, $config, $value = null) - { - if (!is_string($class)) { - $class = get_class($class); + /** + * Set OAuth 2.0 "state" parameter to achieve per-request customization. + * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 + * @param string $state + */ + public function setState($state) { + $this->getAuth()->setState($state); } - return $this->config->setClassConfig($class, $config, $value); - } + /** + * @param string $accessType Possible values for access_type include: + * {@code "offline"} to request offline access from the user. + * {@code "online"} to request online access from the user. + */ + public function setAccessType($accessType) { + $this->config->setAccessType($accessType); + } - /** - * @return string the base URL to use for calls to the APIs - */ - public function getBasePath() - { - return $this->config->getBasePath(); - } + /** + * @param string $approvalPrompt Possible values for approval_prompt include: + * {@code "force"} to force the approval UI to appear. (This is the default value) + * {@code "auto"} to request auto-approval when possible. + */ + public function setApprovalPrompt($approvalPrompt) { + $this->config->setApprovalPrompt($approvalPrompt); + } - /** - * @return string the name of the application - */ - public function getApplicationName() - { - return $this->config->getApplicationName(); - } + /** + * Set the login hint, email address or sub id. + * @param string $loginHint + */ + public function setLoginHint($loginHint) { + $this->config->setLoginHint($loginHint); + } - /** - * Are we running in Google AppEngine? - * return bool - */ - public function isAppEngine() - { - return (isset($_SERVER['SERVER_SOFTWARE']) && - strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false); - } + /** + * Set the application name, this is included in the User-Agent HTTP header. + * @param string $applicationName + */ + public function setApplicationName($applicationName) { + $this->config->setApplicationName($applicationName); + } + + /** + * Set the OAuth 2.0 Client ID. + * @param string $clientId + */ + public function setClientId($clientId) { + $this->config->setClientId($clientId); + } + + /** + * Set the OAuth 2.0 Client Secret. + * @param string $clientSecret + */ + public function setClientSecret($clientSecret) { + $this->config->setClientSecret($clientSecret); + } + + /** + * Set the OAuth 2.0 Redirect URI. + * @param string $redirectUri + */ + public function setRedirectUri($redirectUri) { + $this->config->setRedirectUri($redirectUri); + } + + /** + * If 'plus.login' is included in the list of requested scopes, you can use + * this method to define types of app activities that your app will write. + * You can find a list of available types here: + * @link https://developers.google.com/+/api/moment-types + * + * @param array $requestVisibleActions Array of app activity types + */ + public function setRequestVisibleActions($requestVisibleActions) { + if (is_array($requestVisibleActions)) { + $requestVisibleActions = join(" ", $requestVisibleActions); + } + $this->config->setRequestVisibleActions($requestVisibleActions); + } + + /** + * Set the developer key to use, these are obtained through the API Console. + * @see http://code.google.com/apis/console-help/#generatingdevkeys + * @param string $developerKey + */ + public function setDeveloperKey($developerKey) { + $this->config->setDeveloperKey($developerKey); + } + + /** + * Fetches a fresh OAuth 2.0 access token with the given refresh token. + * @param string $refreshToken + * @return void + */ + public function refreshToken($refreshToken) { + return $this->getAuth()->refreshToken($refreshToken); + } + + /** + * Revoke an OAuth2 access token or refresh token. This method will revoke the current access + * token, if a token isn't provided. + * @param string|null $token The token (access token or a refresh token) that should be revoked. + * @return boolean Returns True if the revocation was successful, otherwise False. + * @throws Google_Auth_Exception + */ + public function revokeToken($token = null) { + return $this->getAuth()->revokeToken($token); + } + + /** + * Verify an id_token. This method will verify the current id_token, if one + * isn't provided. + * @param string|null $token The token (id_token) that should be verified. + * @return Google_Auth_LoginTicket Returns an apiLoginTicket if the verification was + * successful. + * @throws Google_Auth_Exception + */ + public function verifyIdToken($token = null) { + return $this->getAuth()->verifyIdToken($token); + } + + /** + * Verify a JWT that was signed with your own certificates. + * + * @param $jwt the token + * @param $certs array of certificates + * @param $required_audience the expected consumer of the token + * @param [$issuer] the expected issues, defaults to Google + * @param [$max_expiry] the max lifetime of a token, defaults to MAX_TOKEN_LIFETIME_SECS + * @return token information if valid, false if not + */ + public function verifySignedJwt($id_token, $cert_location, $audience, $issuer, $max_expiry = null) { + $auth = new Google_Auth_OAuth2($this); + $certs = $auth->retrieveCertsFromLocation($cert_location); + return $auth->verifySignedJwtWithCerts($id_token, $certs, $audience, $issuer, $max_expiry); + } + + /** + * @param Google_Auth_AssertionCredentials $creds + * @return void + */ + public function setAssertionCredentials(Google_Auth_AssertionCredentials $creds) { + $this->getAuth()->setAssertionCredentials($creds); + } + + /** + * Set the scopes to be requested. Must be called before createAuthUrl(). + * Will remove any previously configured scopes. + * @param array $scopes , ie: array('https://www.googleapis.com/auth/plus.login', + * 'https://www.googleapis.com/auth/moderator') + */ + public function setScopes($scopes) { + $this->requestedScopes = array(); + $this->addScope($scopes); + } + + /** + * This functions adds a scope to be requested as part of the OAuth2.0 flow. + * Will append any scopes not previously requested to the scope parameter. + * A single string will be treated as a scope to request. An array of strings + * will each be appended. + * @param $scope_or_scopes string|array e.g. "profile" + */ + public function addScope($scope_or_scopes) { + if (is_string($scope_or_scopes) && !in_array($scope_or_scopes, $this->requestedScopes)) { + $this->requestedScopes[] = $scope_or_scopes; + } elseif (is_array($scope_or_scopes)) { + foreach ($scope_or_scopes as $scope) { + $this->addScope($scope); + } + } + } + + /** + * Returns the list of scopes requested by the client + * @return array the list of scopes + * + */ + public function getScopes() { + return $this->requestedScopes; + } + + /** + * Declare whether batch calls should be used. This may increase throughput + * by making multiple requests in one connection. + * + * @param boolean $useBatch True if the batch support should + * be enabled. Defaults to False. + */ + public function setUseBatch($useBatch) { + // This is actually an alias for setDefer. + $this->setDefer($useBatch); + } + + /** + * Declare whether making API calls should make the call immediately, or + * return a request which can be called with ->execute(); + * + * @param boolean $defer True if calls should not be executed right away. + */ + public function setDefer($defer) { + $this->deferExecution = $defer; + } + + /** + * Helper method to execute deferred HTTP requests. + * + * @returns object of the type of the expected class or array. + */ + public function execute($request) { + if ($request instanceof Google_Http_Request) { + $request->setUserAgent( + $this->getApplicationName() + . " " . self::USER_AGENT_SUFFIX + . $this->getLibraryVersion() + ); + if (!$this->getClassConfig("Google_Http_Request", "disable_gzip")) { + $request->enableGzip(); + } + $request->maybeMoveParametersToBody(); + return Google_Http_REST::execute($this, $request); + } elseif ($request instanceof Google_Http_Batch) { + return $request->execute(); + } else { + throw new Google_Exception("Do not know how to execute this type of object."); + } + } + + /** + * Whether or not to return raw requests + * @return boolean + */ + public function shouldDefer() { + return $this->deferExecution; + } + + /** + * @return Google_Auth_Abstract Authentication implementation + */ + public function getAuth() { + if (!isset($this->auth)) { + $class = $this->config->getAuthClass(); + $this->auth = new $class($this); + } + return $this->auth; + } + + /** + * @return Google_IO_Abstract IO implementation + */ + public function getIo() { + if (!isset($this->io)) { + $class = $this->config->getIoClass(); + $this->io = new $class($this); + } + return $this->io; + } + + /** + * @return Google_Cache_Abstract Cache implementation + */ + public function getCache() { + if (!isset($this->cache)) { + $class = $this->config->getCacheClass(); + $this->cache = new $class($this); + } + return $this->cache; + } + + /** + * Retrieve custom configuration for a specific class. + * @param $class string|object - class or instance of class to retrieve + * @param $key string optional - key to retrieve + */ + public function getClassConfig($class, $key = null) { + if (!is_string($class)) { + $class = get_class($class); + } + return $this->config->getClassConfig($class, $key); + } + + /** + * Set configuration specific to a given class. + * $config->setClassConfig('Google_Cache_File', + * array('directory' => '/tmp/cache')); + * @param $class The class name for the configuration + * @param $config string key or an array of configuration values + * @param $value optional - if $config is a key, the value + * + */ + public function setClassConfig($class, $config, $value = null) { + if (!is_string($class)) { + $class = get_class($class); + } + return $this->config->setClassConfig($class, $config, $value); + + } + + /** + * @return string the base URL to use for calls to the APIs + */ + public function getBasePath() { + return $this->config->getBasePath(); + } + + /** + * @return string the name of the application + */ + public function getApplicationName() { + return $this->config->getApplicationName(); + } + + /** + * Are we running in Google AppEngine? + * return bool + */ + public function isAppEngine() { + return (isset($_SERVER['SERVER_SOFTWARE']) && + strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false); + } } diff --git a/oauth/Google/Collection.php b/oauth/Google/Collection.php index 6e7bf9b..70e2ed2 100644 --- a/oauth/Google/Collection.php +++ b/oauth/Google/Collection.php @@ -7,90 +7,78 @@ require_once "Google/Model.php"; * exposes the items array for iteration, so you can just * iterate over the object rather than a reference inside. */ -class Google_Collection extends Google_Model implements Iterator, Countable -{ - protected $collection_key = 'items'; +class Google_Collection extends Google_Model implements Iterator, Countable { + protected $collection_key = 'items'; - public function rewind() - { - if (isset($this->modelData[$this->collection_key]) - && is_array($this->modelData[$this->collection_key])) { - reset($this->modelData[$this->collection_key]); + public function rewind() { + if (isset($this->modelData[$this->collection_key]) + && is_array($this->modelData[$this->collection_key])) { + reset($this->modelData[$this->collection_key]); + } } - } - public function current() - { - $this->coerceType($this->key()); - if (is_array($this->modelData[$this->collection_key])) { - return current($this->modelData[$this->collection_key]); + public function current() { + $this->coerceType($this->key()); + if (is_array($this->modelData[$this->collection_key])) { + return current($this->modelData[$this->collection_key]); + } } - } - public function key() - { - if (isset($this->modelData[$this->collection_key]) - && is_array($this->modelData[$this->collection_key])) { - return key($this->modelData[$this->collection_key]); + public function key() { + if (isset($this->modelData[$this->collection_key]) + && is_array($this->modelData[$this->collection_key])) { + return key($this->modelData[$this->collection_key]); + } } - } - public function next() - { - return next($this->modelData[$this->collection_key]); - } - - public function valid() - { - $key = $this->key(); - return $key !== null && $key !== false; - } - - public function count() - { - return count($this->modelData[$this->collection_key]); - } - - public function offsetExists ($offset) - { - if (!is_numeric($offset)) { - return parent::offsetExists($offset); + public function next() { + return next($this->modelData[$this->collection_key]); } - return isset($this->modelData[$this->collection_key][$offset]); - } - public function offsetGet($offset) - { - if (!is_numeric($offset)) { - return parent::offsetGet($offset); + public function valid() { + $key = $this->key(); + return $key !== null && $key !== false; } - $this->coerceType($offset); - return $this->modelData[$this->collection_key][$offset]; - } - public function offsetSet($offset, $value) - { - if (!is_numeric($offset)) { - return parent::offsetSet($offset, $value); + public function count() { + return count($this->modelData[$this->collection_key]); } - $this->modelData[$this->collection_key][$offset] = $value; - } - public function offsetUnset($offset) - { - if (!is_numeric($offset)) { - return parent::offsetUnset($offset); + public function offsetExists($offset) { + if (!is_numeric($offset)) { + return parent::offsetExists($offset); + } + return isset($this->modelData[$this->collection_key][$offset]); } - unset($this->modelData[$this->collection_key][$offset]); - } - private function coerceType($offset) - { - $typeKey = $this->keyType($this->collection_key); - if (isset($this->$typeKey) && !is_object($this->modelData[$this->collection_key][$offset])) { - $type = $this->$typeKey; - $this->modelData[$this->collection_key][$offset] = - new $type($this->modelData[$this->collection_key][$offset]); + public function offsetGet($offset) { + if (!is_numeric($offset)) { + return parent::offsetGet($offset); + } + $this->coerceType($offset); + return $this->modelData[$this->collection_key][$offset]; + } + + public function offsetSet($offset, $value) { + if (!is_numeric($offset)) { + return parent::offsetSet($offset, $value); + } + $this->modelData[$this->collection_key][$offset] = $value; + } + + public function offsetUnset($offset) { + if (!is_numeric($offset)) { + return parent::offsetUnset($offset); + } + unset($this->modelData[$this->collection_key][$offset]); + } + + private function coerceType($offset) { + $typeKey = $this->keyType($this->collection_key); + if (isset($this->$typeKey) && !is_object($this->modelData[$this->collection_key][$offset])) { + $type = $this->$typeKey; + $this->modelData[$this->collection_key][$offset] = + new $type($this->modelData[$this->collection_key][$offset]); + } } - } } diff --git a/oauth/Google/Config.php b/oauth/Google/Config.php index 05be141..61560b1 100644 --- a/oauth/Google/Config.php +++ b/oauth/Google/Config.php @@ -18,309 +18,286 @@ /** * A class to contain the library configuration for the Google API client. */ -class Google_Config -{ - const GZIP_DISABLED = true; - const GZIP_ENABLED = false; - const GZIP_UPLOADS_ENABLED = true; - const GZIP_UPLOADS_DISABLED = false; - const USE_AUTO_IO_SELECTION = "auto"; - private $configuration; +class Google_Config { + const GZIP_DISABLED = true; + const GZIP_ENABLED = false; + const GZIP_UPLOADS_ENABLED = true; + const GZIP_UPLOADS_DISABLED = false; + const USE_AUTO_IO_SELECTION = "auto"; + private $configuration; - /** - * Create a new Google_Config. Can accept an ini file location with the - * local configuration. For example: - * application_name: "My App"; - * - * @param [$ini_file_location] - optional - The location of the ini file to load - */ - public function __construct($ini_file_location = null) - { - require_once('../config.php'); - - $this->configuration = array( - // The application_name is included in the User-Agent HTTP header. - 'application_name' => G_Application_Name, + /** + * Create a new Google_Config. Can accept an ini file location with the + * local configuration. For example: + * application_name: "My App"; + * + * @param [$ini_file_location] - optional - The location of the ini file to load + */ + public function __construct($ini_file_location = null) { + require_once('../config.php'); - // Which Authentication, Storage and HTTP IO classes to use. - 'auth_class' => 'Google_Auth_OAuth2', - 'io_class' => self::USE_AUTO_IO_SELECTION, - 'cache_class' => 'Google_Cache_File', + $this->configuration = array( + // The application_name is included in the User-Agent HTTP header. + 'application_name' => G_Application_Name, - // Don't change these unless you're working against a special development - // or testing environment. - 'base_path' => 'https://www.googleapis.com', + // Which Authentication, Storage and HTTP IO classes to use. + 'auth_class' => 'Google_Auth_OAuth2', + 'io_class' => self::USE_AUTO_IO_SELECTION, + 'cache_class' => 'Google_Cache_File', - // Definition of class specific values, like file paths and so on. - 'classes' => array( - 'Google_IO_Abstract' => array( - 'request_timeout_seconds' => 100, - ), - 'Google_Http_Request' => array( - // Disable the use of gzip on calls if set to true. Defaults to false. - 'disable_gzip' => self::GZIP_ENABLED, + // Don't change these unless you're working against a special development + // or testing environment. + 'base_path' => 'https://www.googleapis.com', - // We default gzip to disabled on uploads even if gzip is otherwise - // enabled, due to some issues seen with small packet sizes for uploads. - // Please test with this option before enabling gzip for uploads in - // a production environment. - 'enable_gzip_for_uploads' => self::GZIP_UPLOADS_DISABLED, - ), - // If you want to pass in OAuth 2.0 settings, they will need to be - // structured like this. - 'Google_Auth_OAuth2' => array( - // Keys for OAuth 2.0 access, see the API console at - // https://developers.google.com/console - 'client_id' => G_Client_ID, - 'client_secret' => G_Client_Secret, - 'redirect_uri' => G_Redirect_Uri, - // Simple API access key, also from the API console. Ensure you get - // a Server key, and not a Browser key. - 'developer_key' => '', + // Definition of class specific values, like file paths and so on. + 'classes' => array( + 'Google_IO_Abstract' => array( + 'request_timeout_seconds' => 100, + ), + 'Google_Http_Request' => array( + // Disable the use of gzip on calls if set to true. Defaults to false. + 'disable_gzip' => self::GZIP_ENABLED, - // Other parameters. - 'access_type' => 'online', - 'approval_prompt' => 'auto', - 'login_hint' => '', - 'request_visible_actions' => '', - 'federated_signon_certs_url' => - 'https://www.googleapis.com/oauth2/v1/certs', - ), - // Set a default directory for the file cache. - 'Google_Cache_File' => array( - 'directory' => sys_get_temp_dir() . '/Google_Client' - ) - ), + // We default gzip to disabled on uploads even if gzip is otherwise + // enabled, due to some issues seen with small packet sizes for uploads. + // Please test with this option before enabling gzip for uploads in + // a production environment. + 'enable_gzip_for_uploads' => self::GZIP_UPLOADS_DISABLED, + ), + // If you want to pass in OAuth 2.0 settings, they will need to be + // structured like this. + 'Google_Auth_OAuth2' => array( + // Keys for OAuth 2.0 access, see the API console at + // https://developers.google.com/console + 'client_id' => G_Client_ID, + 'client_secret' => G_Client_Secret, + 'redirect_uri' => G_Redirect_Uri, + // Simple API access key, also from the API console. Ensure you get + // a Server key, and not a Browser key. + 'developer_key' => '', - // Definition of service specific values like scopes, oauth token URLs, - // etc. Example: - 'services' => array( - ), - ); - if ($ini_file_location) { - $ini = parse_ini_file($ini_file_location, true); - if (is_array($ini) && count($ini)) { - $this->configuration = array_merge($this->configuration, $ini); - } + // Other parameters. + 'access_type' => 'online', + 'approval_prompt' => 'auto', + 'login_hint' => '', + 'request_visible_actions' => '', + 'federated_signon_certs_url' => + 'https://www.googleapis.com/oauth2/v1/certs', + ), + // Set a default directory for the file cache. + 'Google_Cache_File' => array( + 'directory' => sys_get_temp_dir() . '/Google_Client' + ) + ), + + // Definition of service specific values like scopes, oauth token URLs, + // etc. Example: + 'services' => array(), + ); + if ($ini_file_location) { + $ini = parse_ini_file($ini_file_location, true); + if (is_array($ini) && count($ini)) { + $this->configuration = array_merge($this->configuration, $ini); + } + } } - } - /** - * Set configuration specific to a given class. - * $config->setClassConfig('Google_Cache_File', - * array('directory' => '/tmp/cache')); - * @param $class The class name for the configuration - * @param $config string key or an array of configuration values - * @param $value optional - if $config is a key, the value - */ - public function setClassConfig($class, $config, $value = null) - { - if (!is_array($config)) { - if (!isset($this->configuration['classes'][$class])) { - $this->configuration['classes'][$class] = array(); - } - $this->configuration['classes'][$class][$config] = $value; - } else { - $this->configuration['classes'][$class] = $config; + /** + * Set configuration specific to a given class. + * $config->setClassConfig('Google_Cache_File', + * array('directory' => '/tmp/cache')); + * @param $class The class name for the configuration + * @param $config string key or an array of configuration values + * @param $value optional - if $config is a key, the value + */ + public function setClassConfig($class, $config, $value = null) { + if (!is_array($config)) { + if (!isset($this->configuration['classes'][$class])) { + $this->configuration['classes'][$class] = array(); + } + $this->configuration['classes'][$class][$config] = $value; + } else { + $this->configuration['classes'][$class] = $config; + } } - } - public function getClassConfig($class, $key = null) - { - if (!isset($this->configuration['classes'][$class])) { - return null; + public function getClassConfig($class, $key = null) { + if (!isset($this->configuration['classes'][$class])) { + return null; + } + if ($key === null) { + return $this->configuration['classes'][$class]; + } else { + return $this->configuration['classes'][$class][$key]; + } } - if ($key === null) { - return $this->configuration['classes'][$class]; - } else { - return $this->configuration['classes'][$class][$key]; + + /** + * Return the configured cache class. + * @return string + */ + public function getCacheClass() { + return $this->configuration['cache_class']; } - } - /** - * Return the configured cache class. - * @return string - */ - public function getCacheClass() - { - return $this->configuration['cache_class']; - } - - /** - * Return the configured Auth class. - * @return string - */ - public function getAuthClass() - { - return $this->configuration['auth_class']; - } - - /** - * Set the auth class. - * - * @param $class the class name to set - */ - public function setAuthClass($class) - { - $prev = $this->configuration['auth_class']; - if (!isset($this->configuration['classes'][$class]) && - isset($this->configuration['classes'][$prev])) { - $this->configuration['classes'][$class] = - $this->configuration['classes'][$prev]; + /** + * Return the configured Auth class. + * @return string + */ + public function getAuthClass() { + return $this->configuration['auth_class']; } - $this->configuration['auth_class'] = $class; - } - /** - * Set the IO class. - * - * @param $class the class name to set - */ - public function setIoClass($class) - { - $prev = $this->configuration['io_class']; - if (!isset($this->configuration['classes'][$class]) && - isset($this->configuration['classes'][$prev])) { - $this->configuration['classes'][$class] = - $this->configuration['classes'][$prev]; + /** + * Set the auth class. + * + * @param $class the class name to set + */ + public function setAuthClass($class) { + $prev = $this->configuration['auth_class']; + if (!isset($this->configuration['classes'][$class]) && + isset($this->configuration['classes'][$prev])) { + $this->configuration['classes'][$class] = + $this->configuration['classes'][$prev]; + } + $this->configuration['auth_class'] = $class; } - $this->configuration['io_class'] = $class; - } - /** - * Set the cache class. - * - * @param $class the class name to set - */ - public function setCacheClass($class) - { - $prev = $this->configuration['cache_class']; - if (!isset($this->configuration['classes'][$class]) && - isset($this->configuration['classes'][$prev])) { - $this->configuration['classes'][$class] = - $this->configuration['classes'][$prev]; + /** + * Set the IO class. + * + * @param $class the class name to set + */ + public function setIoClass($class) { + $prev = $this->configuration['io_class']; + if (!isset($this->configuration['classes'][$class]) && + isset($this->configuration['classes'][$prev])) { + $this->configuration['classes'][$class] = + $this->configuration['classes'][$prev]; + } + $this->configuration['io_class'] = $class; } - $this->configuration['cache_class'] = $class; - } - /** - * Return the configured IO class. - * @return string - */ - public function getIoClass() - { - return $this->configuration['io_class']; - } - - /** - * Set the application name, this is included in the User-Agent HTTP header. - * @param string $name - */ - public function setApplicationName($name) - { - $this->configuration['application_name'] = $name; - } - - /** - * @return string the name of the application - */ - public function getApplicationName() - { - return $this->configuration['application_name']; - } - - /** - * Set the client ID for the auth class. - * @param $key string - the API console client ID - */ - public function setClientId($clientId) - { - $this->setAuthConfig('client_id', $clientId); - } - - /** - * Set the client secret for the auth class. - * @param $key string - the API console client secret - */ - public function setClientSecret($secret) - { - $this->setAuthConfig('client_secret', $secret); - } - - /** - * Set the redirect uri for the auth class. Note that if using the - * Javascript based sign in flow, this should be the string 'postmessage'. - * @param $key string - the URI that users should be redirected to - */ - public function setRedirectUri($uri) - { - $this->setAuthConfig('redirect_uri', $uri); - } - - /** - * Set the app activities for the auth class. - * @param $rva string a space separated list of app activity types - */ - public function setRequestVisibleActions($rva) - { - $this->setAuthConfig('request_visible_actions', $rva); - } - - /** - * Set the the access type requested (offline or online.) - * @param $access string - the access type - */ - public function setAccessType($access) - { - $this->setAuthConfig('access_type', $access); - } - - /** - * Set when to show the approval prompt (auto or force) - * @param $approval string - the approval request - */ - public function setApprovalPrompt($approval) - { - $this->setAuthConfig('approval_prompt', $approval); - } - - /** - * Set the login hint (email address or sub identifier) - * @param $hint string - */ - public function setLoginHint($hint) - { - $this->setAuthConfig('login_hint', $hint); - } - - /** - * Set the developer key for the auth class. Note that this is separate value - * from the client ID - if it looks like a URL, its a client ID! - * @param $key string - the API console developer key - */ - public function setDeveloperKey($key) - { - $this->setAuthConfig('developer_key', $key); - } - - /** - * @return string the base URL to use for API calls - */ - public function getBasePath() - { - return $this->configuration['base_path']; - } - - /** - * Set the auth configuration for the current auth class. - * @param $key - the key to set - * @param $value - the parameter value - */ - private function setAuthConfig($key, $value) - { - if (!isset($this->configuration['classes'][$this->getAuthClass()])) { - $this->configuration['classes'][$this->getAuthClass()] = array(); + /** + * Set the cache class. + * + * @param $class the class name to set + */ + public function setCacheClass($class) { + $prev = $this->configuration['cache_class']; + if (!isset($this->configuration['classes'][$class]) && + isset($this->configuration['classes'][$prev])) { + $this->configuration['classes'][$class] = + $this->configuration['classes'][$prev]; + } + $this->configuration['cache_class'] = $class; + } + + /** + * Return the configured IO class. + * @return string + */ + public function getIoClass() { + return $this->configuration['io_class']; + } + + /** + * Set the application name, this is included in the User-Agent HTTP header. + * @param string $name + */ + public function setApplicationName($name) { + $this->configuration['application_name'] = $name; + } + + /** + * @return string the name of the application + */ + public function getApplicationName() { + return $this->configuration['application_name']; + } + + /** + * Set the client ID for the auth class. + * @param $key string - the API console client ID + */ + public function setClientId($clientId) { + $this->setAuthConfig('client_id', $clientId); + } + + /** + * Set the client secret for the auth class. + * @param $key string - the API console client secret + */ + public function setClientSecret($secret) { + $this->setAuthConfig('client_secret', $secret); + } + + /** + * Set the redirect uri for the auth class. Note that if using the + * Javascript based sign in flow, this should be the string 'postmessage'. + * @param $key string - the URI that users should be redirected to + */ + public function setRedirectUri($uri) { + $this->setAuthConfig('redirect_uri', $uri); + } + + /** + * Set the app activities for the auth class. + * @param $rva string a space separated list of app activity types + */ + public function setRequestVisibleActions($rva) { + $this->setAuthConfig('request_visible_actions', $rva); + } + + /** + * Set the the access type requested (offline or online.) + * @param $access string - the access type + */ + public function setAccessType($access) { + $this->setAuthConfig('access_type', $access); + } + + /** + * Set when to show the approval prompt (auto or force) + * @param $approval string - the approval request + */ + public function setApprovalPrompt($approval) { + $this->setAuthConfig('approval_prompt', $approval); + } + + /** + * Set the login hint (email address or sub identifier) + * @param $hint string + */ + public function setLoginHint($hint) { + $this->setAuthConfig('login_hint', $hint); + } + + /** + * Set the developer key for the auth class. Note that this is separate value + * from the client ID - if it looks like a URL, its a client ID! + * @param $key string - the API console developer key + */ + public function setDeveloperKey($key) { + $this->setAuthConfig('developer_key', $key); + } + + /** + * @return string the base URL to use for API calls + */ + public function getBasePath() { + return $this->configuration['base_path']; + } + + /** + * Set the auth configuration for the current auth class. + * @param $key - the key to set + * @param $value - the parameter value + */ + private function setAuthConfig($key, $value) { + if (!isset($this->configuration['classes'][$this->getAuthClass()])) { + $this->configuration['classes'][$this->getAuthClass()] = array(); + } + $this->configuration['classes'][$this->getAuthClass()][$key] = $value; } - $this->configuration['classes'][$this->getAuthClass()][$key] = $value; - } } diff --git a/oauth/Google/Exception.php b/oauth/Google/Exception.php index af80269..7d9569f 100644 --- a/oauth/Google/Exception.php +++ b/oauth/Google/Exception.php @@ -15,6 +15,5 @@ * limitations under the License. */ -class Google_Exception extends Exception -{ +class Google_Exception extends Exception { } diff --git a/oauth/Google/Http/Batch.php b/oauth/Google/Http/Batch.php index d851da5..1cb4961 100644 --- a/oauth/Google/Http/Batch.php +++ b/oauth/Google/Http/Batch.php @@ -22,122 +22,117 @@ require_once 'Google/Http/REST.php'; /** * @author Chirag Shah */ -class Google_Http_Batch -{ - /** @var string Multipart Boundary. */ - private $boundary; +class Google_Http_Batch { + /** @var string Multipart Boundary. */ + private $boundary; - /** @var array service requests to be executed. */ - private $requests = array(); + /** @var array service requests to be executed. */ + private $requests = array(); - /** @var Google_Client */ - private $client; + /** @var Google_Client */ + private $client; - private $expected_classes = array(); + private $expected_classes = array(); - private $base_path; + private $base_path; - public function __construct(Google_Client $client, $boundary = false) - { - $this->client = $client; - $this->base_path = $this->client->getBasePath(); - $this->expected_classes = array(); - $boundary = (false == $boundary) ? mt_rand() : $boundary; - $this->boundary = str_replace('"', '', $boundary); - } - - public function add(Google_Http_Request $request, $key = false) - { - if (false == $key) { - $key = mt_rand(); + public function __construct(Google_Client $client, $boundary = false) { + $this->client = $client; + $this->base_path = $this->client->getBasePath(); + $this->expected_classes = array(); + $boundary = (false == $boundary) ? mt_rand() : $boundary; + $this->boundary = str_replace('"', '', $boundary); } - $this->requests[$key] = $request; - } - - public function execute() - { - $body = ''; - - /** @var Google_Http_Request $req */ - foreach ($this->requests as $key => $req) { - $body .= "--{$this->boundary}\n"; - $body .= $req->toBatchString($key) . "\n"; - $this->expected_classes["response-" . $key] = $req->getExpectedClass(); - } - - $body = rtrim($body); - $body .= "\n--{$this->boundary}--"; - - $url = $this->base_path . '/batch'; - $httpRequest = new Google_Http_Request($url, 'POST'); - $httpRequest->setRequestHeaders( - array('Content-Type' => 'multipart/mixed; boundary=' . $this->boundary) - ); - - $httpRequest->setPostBody($body); - $response = $this->client->getIo()->makeRequest($httpRequest); - - return $this->parseResponse($response); - } - - public function parseResponse(Google_Http_Request $response) - { - $contentType = $response->getResponseHeader('content-type'); - $contentType = explode(';', $contentType); - $boundary = false; - foreach ($contentType as $part) { - $part = (explode('=', $part, 2)); - if (isset($part[0]) && 'boundary' == trim($part[0])) { - $boundary = $part[1]; - } - } - - $body = $response->getResponseBody(); - if ($body) { - $body = str_replace("--$boundary--", "--$boundary", $body); - $parts = explode("--$boundary", $body); - $responses = array(); - - foreach ($parts as $part) { - $part = trim($part); - if (!empty($part)) { - list($metaHeaders, $part) = explode("\r\n\r\n", $part, 2); - $metaHeaders = $this->client->getIo()->getHttpResponseHeaders($metaHeaders); - - $status = substr($part, 0, strpos($part, "\n")); - $status = explode(" ", $status); - $status = $status[1]; - - list($partHeaders, $partBody) = $this->client->getIo()->ParseHttpResponse($part, false); - $response = new Google_Http_Request(""); - $response->setResponseHttpCode($status); - $response->setResponseHeaders($partHeaders); - $response->setResponseBody($partBody); - - // Need content id. - $key = $metaHeaders['content-id']; - - if (isset($this->expected_classes[$key]) && - strlen($this->expected_classes[$key]) > 0) { - $class = $this->expected_classes[$key]; - $response->setExpectedClass($class); - } - - try { - $response = Google_Http_REST::decodeHttpResponse($response); - $responses[$key] = $response; - } catch (Google_Service_Exception $e) { - // Store the exception as the response, so succesful responses - // can be processed. - $responses[$key] = $e; - } + public function add(Google_Http_Request $request, $key = false) { + if (false == $key) { + $key = mt_rand(); } - } - return $responses; + $this->requests[$key] = $request; } - return null; - } + public function execute() { + $body = ''; + + /** @var Google_Http_Request $req */ + foreach ($this->requests as $key => $req) { + $body .= "--{$this->boundary}\n"; + $body .= $req->toBatchString($key) . "\n"; + $this->expected_classes["response-" . $key] = $req->getExpectedClass(); + } + + $body = rtrim($body); + $body .= "\n--{$this->boundary}--"; + + $url = $this->base_path . '/batch'; + $httpRequest = new Google_Http_Request($url, 'POST'); + $httpRequest->setRequestHeaders( + array('Content-Type' => 'multipart/mixed; boundary=' . $this->boundary) + ); + + $httpRequest->setPostBody($body); + $response = $this->client->getIo()->makeRequest($httpRequest); + + return $this->parseResponse($response); + } + + public function parseResponse(Google_Http_Request $response) { + $contentType = $response->getResponseHeader('content-type'); + $contentType = explode(';', $contentType); + $boundary = false; + foreach ($contentType as $part) { + $part = (explode('=', $part, 2)); + if (isset($part[0]) && 'boundary' == trim($part[0])) { + $boundary = $part[1]; + } + } + + $body = $response->getResponseBody(); + if ($body) { + $body = str_replace("--$boundary--", "--$boundary", $body); + $parts = explode("--$boundary", $body); + $responses = array(); + + foreach ($parts as $part) { + $part = trim($part); + if (!empty($part)) { + list($metaHeaders, $part) = explode("\r\n\r\n", $part, 2); + $metaHeaders = $this->client->getIo()->getHttpResponseHeaders($metaHeaders); + + $status = substr($part, 0, strpos($part, "\n")); + $status = explode(" ", $status); + $status = $status[1]; + + list($partHeaders, $partBody) = $this->client->getIo()->ParseHttpResponse($part, false); + $response = new Google_Http_Request(""); + $response->setResponseHttpCode($status); + $response->setResponseHeaders($partHeaders); + $response->setResponseBody($partBody); + + // Need content id. + $key = $metaHeaders['content-id']; + + if (isset($this->expected_classes[$key]) && + strlen($this->expected_classes[$key]) > 0) { + $class = $this->expected_classes[$key]; + $response->setExpectedClass($class); + } + + try { + $response = Google_Http_REST::decodeHttpResponse($response); + $responses[$key] = $response; + } catch (Google_Service_Exception $e) { + // Store the exception as the response, so succesful responses + // can be processed. + $responses[$key] = $e; + } + } + } + + return $responses; + } + + return null; + } } diff --git a/oauth/Google/Http/CacheParser.php b/oauth/Google/Http/CacheParser.php index 83f1c8d..76d09f1 100644 --- a/oauth/Google/Http/CacheParser.php +++ b/oauth/Google/Http/CacheParser.php @@ -22,163 +22,158 @@ require_once 'Google/Http/Request.php'; * implementation is guided by the guidance offered in rfc2616-sec13. * @author Chirag Shah */ -class Google_Http_CacheParser -{ - public static $CACHEABLE_HTTP_METHODS = array('GET', 'HEAD'); - public static $CACHEABLE_STATUS_CODES = array('200', '203', '300', '301'); +class Google_Http_CacheParser { + public static $CACHEABLE_HTTP_METHODS = array('GET', 'HEAD'); + public static $CACHEABLE_STATUS_CODES = array('200', '203', '300', '301'); - /** - * Check if an HTTP request can be cached by a private local cache. - * - * @static - * @param Google_Http_Request $resp - * @return bool True if the request is cacheable. - * False if the request is uncacheable. - */ - public static function isRequestCacheable(Google_Http_Request $resp) - { - $method = $resp->getRequestMethod(); - if (! in_array($method, self::$CACHEABLE_HTTP_METHODS)) { - return false; - } + /** + * Check if an HTTP request can be cached by a private local cache. + * + * @static + * @param Google_Http_Request $resp + * @return bool True if the request is cacheable. + * False if the request is uncacheable. + */ + public static function isRequestCacheable(Google_Http_Request $resp) { + $method = $resp->getRequestMethod(); + if (!in_array($method, self::$CACHEABLE_HTTP_METHODS)) { + return false; + } - // Don't cache authorized requests/responses. - // [rfc2616-14.8] When a shared cache receives a request containing an - // Authorization field, it MUST NOT return the corresponding response - // as a reply to any other request... - if ($resp->getRequestHeader("authorization")) { - return false; - } + // Don't cache authorized requests/responses. + // [rfc2616-14.8] When a shared cache receives a request containing an + // Authorization field, it MUST NOT return the corresponding response + // as a reply to any other request... + if ($resp->getRequestHeader("authorization")) { + return false; + } - return true; - } - - /** - * Check if an HTTP response can be cached by a private local cache. - * - * @static - * @param Google_Http_Request $resp - * @return bool True if the response is cacheable. - * False if the response is un-cacheable. - */ - public static function isResponseCacheable(Google_Http_Request $resp) - { - // First, check if the HTTP request was cacheable before inspecting the - // HTTP response. - if (false == self::isRequestCacheable($resp)) { - return false; - } - - $code = $resp->getResponseHttpCode(); - if (! in_array($code, self::$CACHEABLE_STATUS_CODES)) { - return false; - } - - // The resource is uncacheable if the resource is already expired and - // the resource doesn't have an ETag for revalidation. - $etag = $resp->getResponseHeader("etag"); - if (self::isExpired($resp) && $etag == false) { - return false; - } - - // [rfc2616-14.9.2] If [no-store is] sent in a response, a cache MUST NOT - // store any part of either this response or the request that elicited it. - $cacheControl = $resp->getParsedCacheControl(); - if (isset($cacheControl['no-store'])) { - return false; - } - - // Pragma: no-cache is an http request directive, but is occasionally - // used as a response header incorrectly. - $pragma = $resp->getResponseHeader('pragma'); - if ($pragma == 'no-cache' || strpos($pragma, 'no-cache') !== false) { - return false; - } - - // [rfc2616-14.44] Vary: * is extremely difficult to cache. "It implies that - // a cache cannot determine from the request headers of a subsequent request - // whether this response is the appropriate representation." - // Given this, we deem responses with the Vary header as uncacheable. - $vary = $resp->getResponseHeader('vary'); - if ($vary) { - return false; - } - - return true; - } - - /** - * @static - * @param Google_Http_Request $resp - * @return bool True if the HTTP response is considered to be expired. - * False if it is considered to be fresh. - */ - public static function isExpired(Google_Http_Request $resp) - { - // HTTP/1.1 clients and caches MUST treat other invalid date formats, - // especially including the value “0”, as in the past. - $parsedExpires = false; - $responseHeaders = $resp->getResponseHeaders(); - - if (isset($responseHeaders['expires'])) { - $rawExpires = $responseHeaders['expires']; - // Check for a malformed expires header first. - if (empty($rawExpires) || (is_numeric($rawExpires) && $rawExpires <= 0)) { return true; - } + } + + /** + * Check if an HTTP response can be cached by a private local cache. + * + * @static + * @param Google_Http_Request $resp + * @return bool True if the response is cacheable. + * False if the response is un-cacheable. + */ + public static function isResponseCacheable(Google_Http_Request $resp) { + // First, check if the HTTP request was cacheable before inspecting the + // HTTP response. + if (false == self::isRequestCacheable($resp)) { + return false; + } + + $code = $resp->getResponseHttpCode(); + if (!in_array($code, self::$CACHEABLE_STATUS_CODES)) { + return false; + } + + // The resource is uncacheable if the resource is already expired and + // the resource doesn't have an ETag for revalidation. + $etag = $resp->getResponseHeader("etag"); + if (self::isExpired($resp) && $etag == false) { + return false; + } + + // [rfc2616-14.9.2] If [no-store is] sent in a response, a cache MUST NOT + // store any part of either this response or the request that elicited it. + $cacheControl = $resp->getParsedCacheControl(); + if (isset($cacheControl['no-store'])) { + return false; + } + + // Pragma: no-cache is an http request directive, but is occasionally + // used as a response header incorrectly. + $pragma = $resp->getResponseHeader('pragma'); + if ($pragma == 'no-cache' || strpos($pragma, 'no-cache') !== false) { + return false; + } + + // [rfc2616-14.44] Vary: * is extremely difficult to cache. "It implies that + // a cache cannot determine from the request headers of a subsequent request + // whether this response is the appropriate representation." + // Given this, we deem responses with the Vary header as uncacheable. + $vary = $resp->getResponseHeader('vary'); + if ($vary) { + return false; + } - // See if we can parse the expires header. - $parsedExpires = strtotime($rawExpires); - if (false == $parsedExpires || $parsedExpires <= 0) { return true; - } } - // Calculate the freshness of an http response. - $freshnessLifetime = false; - $cacheControl = $resp->getParsedCacheControl(); - if (isset($cacheControl['max-age'])) { - $freshnessLifetime = $cacheControl['max-age']; + /** + * @static + * @param Google_Http_Request $resp + * @return bool True if the HTTP response is considered to be expired. + * False if it is considered to be fresh. + */ + public static function isExpired(Google_Http_Request $resp) { + // HTTP/1.1 clients and caches MUST treat other invalid date formats, + // especially including the value “0”, as in the past. + $parsedExpires = false; + $responseHeaders = $resp->getResponseHeaders(); + + if (isset($responseHeaders['expires'])) { + $rawExpires = $responseHeaders['expires']; + // Check for a malformed expires header first. + if (empty($rawExpires) || (is_numeric($rawExpires) && $rawExpires <= 0)) { + return true; + } + + // See if we can parse the expires header. + $parsedExpires = strtotime($rawExpires); + if (false == $parsedExpires || $parsedExpires <= 0) { + return true; + } + } + + // Calculate the freshness of an http response. + $freshnessLifetime = false; + $cacheControl = $resp->getParsedCacheControl(); + if (isset($cacheControl['max-age'])) { + $freshnessLifetime = $cacheControl['max-age']; + } + + $rawDate = $resp->getResponseHeader('date'); + $parsedDate = strtotime($rawDate); + + if (empty($rawDate) || false == $parsedDate) { + // We can't default this to now, as that means future cache reads + // will always pass with the logic below, so we will require a + // date be injected if not supplied. + throw new Google_Exception("All cacheable requests must have creation dates."); + } + + if (false == $freshnessLifetime && isset($responseHeaders['expires'])) { + $freshnessLifetime = $parsedExpires - $parsedDate; + } + + if (false == $freshnessLifetime) { + return true; + } + + // Calculate the age of an http response. + $age = max(0, time() - $parsedDate); + if (isset($responseHeaders['age'])) { + $age = max($age, strtotime($responseHeaders['age'])); + } + + return $freshnessLifetime <= $age; } - $rawDate = $resp->getResponseHeader('date'); - $parsedDate = strtotime($rawDate); - - if (empty($rawDate) || false == $parsedDate) { - // We can't default this to now, as that means future cache reads - // will always pass with the logic below, so we will require a - // date be injected if not supplied. - throw new Google_Exception("All cacheable requests must have creation dates."); + /** + * Determine if a cache entry should be revalidated with by the origin. + * + * @param Google_Http_Request $response + * @return bool True if the entry is expired, else return false. + */ + public static function mustRevalidate(Google_Http_Request $response) { + // [13.3] When a cache has a stale entry that it would like to use as a + // response to a client's request, it first has to check with the origin + // server to see if its cached entry is still usable. + return self::isExpired($response); } - - if (false == $freshnessLifetime && isset($responseHeaders['expires'])) { - $freshnessLifetime = $parsedExpires - $parsedDate; - } - - if (false == $freshnessLifetime) { - return true; - } - - // Calculate the age of an http response. - $age = max(0, time() - $parsedDate); - if (isset($responseHeaders['age'])) { - $age = max($age, strtotime($responseHeaders['age'])); - } - - return $freshnessLifetime <= $age; - } - - /** - * Determine if a cache entry should be revalidated with by the origin. - * - * @param Google_Http_Request $response - * @return bool True if the entry is expired, else return false. - */ - public static function mustRevalidate(Google_Http_Request $response) - { - // [13.3] When a cache has a stale entry that it would like to use as a - // response to a client's request, it first has to check with the origin - // server to see if its cached entry is still usable. - return self::isExpired($response); - } } diff --git a/oauth/Google/Http/MediaFileUpload.php b/oauth/Google/Http/MediaFileUpload.php index a934f56..d04145a 100644 --- a/oauth/Google/Http/MediaFileUpload.php +++ b/oauth/Google/Http/MediaFileUpload.php @@ -25,268 +25,259 @@ require_once 'Google/Utils.php'; * @author Chirag Shah * */ -class Google_Http_MediaFileUpload -{ - const UPLOAD_MEDIA_TYPE = 'media'; - const UPLOAD_MULTIPART_TYPE = 'multipart'; - const UPLOAD_RESUMABLE_TYPE = 'resumable'; +class Google_Http_MediaFileUpload { + const UPLOAD_MEDIA_TYPE = 'media'; + const UPLOAD_MULTIPART_TYPE = 'multipart'; + const UPLOAD_RESUMABLE_TYPE = 'resumable'; - /** @var string $mimeType */ - private $mimeType; + /** @var string $mimeType */ + private $mimeType; - /** @var string $data */ - private $data; + /** @var string $data */ + private $data; - /** @var bool $resumable */ - private $resumable; + /** @var bool $resumable */ + private $resumable; - /** @var int $chunkSize */ - private $chunkSize; + /** @var int $chunkSize */ + private $chunkSize; - /** @var int $size */ - private $size; + /** @var int $size */ + private $size; - /** @var string $resumeUri */ - private $resumeUri; + /** @var string $resumeUri */ + private $resumeUri; - /** @var int $progress */ - private $progress; + /** @var int $progress */ + private $progress; - /** @var Google_Client */ - private $client; + /** @var Google_Client */ + private $client; - /** @var Google_Http_Request */ - private $request; + /** @var Google_Http_Request */ + private $request; - /** @var string */ - private $boundary; + /** @var string */ + private $boundary; - /** - * Result code from last HTTP call - * @var int - */ - private $httpResultCode; + /** + * Result code from last HTTP call + * @var int + */ + private $httpResultCode; - /** - * @param $mimeType string - * @param $data string The bytes you want to upload. - * @param $resumable bool - * @param bool $chunkSize File will be uploaded in chunks of this many bytes. - * only used if resumable=True - */ - public function __construct( - Google_Client $client, - Google_Http_Request $request, - $mimeType, - $data, - $resumable = false, - $chunkSize = false, - $boundary = false - ) { - $this->client = $client; - $this->request = $request; - $this->mimeType = $mimeType; - $this->data = $data; - $this->size = strlen($this->data); - $this->resumable = $resumable; - if (!$chunkSize) { - $chunkSize = 256 * 1024; - } - $this->chunkSize = $chunkSize; - $this->progress = 0; - $this->boundary = $boundary; + /** + * @param $mimeType string + * @param $data string The bytes you want to upload. + * @param $resumable bool + * @param bool $chunkSize File will be uploaded in chunks of this many bytes. + * only used if resumable=True + */ + public function __construct( + Google_Client $client, + Google_Http_Request $request, + $mimeType, + $data, + $resumable = false, + $chunkSize = false, + $boundary = false + ) { + $this->client = $client; + $this->request = $request; + $this->mimeType = $mimeType; + $this->data = $data; + $this->size = strlen($this->data); + $this->resumable = $resumable; + if (!$chunkSize) { + $chunkSize = 256 * 1024; + } + $this->chunkSize = $chunkSize; + $this->progress = 0; + $this->boundary = $boundary; - // Process Media Request - $this->process(); - } - - /** - * Set the size of the file that is being uploaded. - * @param $size - int file size in bytes - */ - public function setFileSize($size) - { - $this->size = $size; - } - - /** - * Return the progress on the upload - * @return int progress in bytes uploaded. - */ - public function getProgress() - { - return $this->progress; - } - - /** - * Return the HTTP result code from the last call made. - * @return int code - */ - public function getHttpResultCode() - { - return $this->httpResultCode; - } - - /** - * Send the next part of the file to upload. - * @param [$chunk] the next set of bytes to send. If false will used $data passed - * at construct time. - */ - public function nextChunk($chunk = false) - { - if (false == $this->resumeUri) { - $this->resumeUri = $this->getResumeUri(); + // Process Media Request + $this->process(); } - if (false == $chunk) { - $chunk = substr($this->data, $this->progress, $this->chunkSize); + /** + * Set the size of the file that is being uploaded. + * @param $size - int file size in bytes + */ + public function setFileSize($size) { + $this->size = $size; } - $lastBytePos = $this->progress + strlen($chunk) - 1; - $headers = array( - 'content-range' => "bytes $this->progress-$lastBytePos/$this->size", - 'content-type' => $this->request->getRequestHeader('content-type'), - 'content-length' => $this->chunkSize, - 'expect' => '', - ); - - $httpRequest = new Google_Http_Request( - $this->resumeUri, - 'PUT', - $headers, - $chunk - ); - - if ($this->client->getClassConfig("Google_Http_Request", "enable_gzip_for_uploads")) { - $httpRequest->enableGzip(); - } else { - $httpRequest->disableGzip(); + /** + * Return the progress on the upload + * @return int progress in bytes uploaded. + */ + public function getProgress() { + return $this->progress; } - $response = $this->client->getIo()->makeRequest($httpRequest); - $response->setExpectedClass($this->request->getExpectedClass()); - $code = $response->getResponseHttpCode(); - $this->httpResultCode = $code; - - if (308 == $code) { - // Track the amount uploaded. - $range = explode('-', $response->getResponseHeader('range')); - $this->progress = $range[1] + 1; - - // Allow for changing upload URLs. - $location = $response->getResponseHeader('location'); - if ($location) { - $this->resumeUri = $location; - } - - // No problems, but upload not complete. - return false; - } else { - return Google_Http_REST::decodeHttpResponse($response); - } - } - - /** - * @param $meta - * @param $params - * @return array|bool - * @visible for testing - */ - private function process() - { - $postBody = false; - $contentType = false; - - $meta = $this->request->getPostBody(); - $meta = is_string($meta) ? json_decode($meta, true) : $meta; - - $uploadType = $this->getUploadType($meta); - $this->request->setQueryParam('uploadType', $uploadType); - $this->transformToUploadUrl(); - $mimeType = $this->mimeType ? - $this->mimeType : - $this->request->getRequestHeader('content-type'); - - if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) { - $contentType = $mimeType; - $postBody = is_string($meta) ? $meta : json_encode($meta); - } else if (self::UPLOAD_MEDIA_TYPE == $uploadType) { - $contentType = $mimeType; - $postBody = $this->data; - } else if (self::UPLOAD_MULTIPART_TYPE == $uploadType) { - // This is a multipart/related upload. - $boundary = $this->boundary ? $this->boundary : mt_rand(); - $boundary = str_replace('"', '', $boundary); - $contentType = 'multipart/related; boundary=' . $boundary; - $related = "--$boundary\r\n"; - $related .= "Content-Type: application/json; charset=UTF-8\r\n"; - $related .= "\r\n" . json_encode($meta) . "\r\n"; - $related .= "--$boundary\r\n"; - $related .= "Content-Type: $mimeType\r\n"; - $related .= "Content-Transfer-Encoding: base64\r\n"; - $related .= "\r\n" . base64_encode($this->data) . "\r\n"; - $related .= "--$boundary--"; - $postBody = $related; + /** + * Return the HTTP result code from the last call made. + * @return int code + */ + public function getHttpResultCode() { + return $this->httpResultCode; } - $this->request->setPostBody($postBody); + /** + * Send the next part of the file to upload. + * @param [$chunk] the next set of bytes to send. If false will used $data passed + * at construct time. + */ + public function nextChunk($chunk = false) { + if (false == $this->resumeUri) { + $this->resumeUri = $this->getResumeUri(); + } - if (isset($contentType) && $contentType) { - $contentTypeHeader['content-type'] = $contentType; - $this->request->setRequestHeaders($contentTypeHeader); - } - } + if (false == $chunk) { + $chunk = substr($this->data, $this->progress, $this->chunkSize); + } - private function transformToUploadUrl() - { - $base = $this->request->getBaseComponent(); - $this->request->setBaseComponent($base . '/upload'); - } + $lastBytePos = $this->progress + strlen($chunk) - 1; + $headers = array( + 'content-range' => "bytes $this->progress-$lastBytePos/$this->size", + 'content-type' => $this->request->getRequestHeader('content-type'), + 'content-length' => $this->chunkSize, + 'expect' => '', + ); - /** - * Valid upload types: - * - resumable (UPLOAD_RESUMABLE_TYPE) - * - media (UPLOAD_MEDIA_TYPE) - * - multipart (UPLOAD_MULTIPART_TYPE) - * @param $meta - * @return string - * @visible for testing - */ - public function getUploadType($meta) - { - if ($this->resumable) { - return self::UPLOAD_RESUMABLE_TYPE; + $httpRequest = new Google_Http_Request( + $this->resumeUri, + 'PUT', + $headers, + $chunk + ); + + if ($this->client->getClassConfig("Google_Http_Request", "enable_gzip_for_uploads")) { + $httpRequest->enableGzip(); + } else { + $httpRequest->disableGzip(); + } + + $response = $this->client->getIo()->makeRequest($httpRequest); + $response->setExpectedClass($this->request->getExpectedClass()); + $code = $response->getResponseHttpCode(); + $this->httpResultCode = $code; + + if (308 == $code) { + // Track the amount uploaded. + $range = explode('-', $response->getResponseHeader('range')); + $this->progress = $range[1] + 1; + + // Allow for changing upload URLs. + $location = $response->getResponseHeader('location'); + if ($location) { + $this->resumeUri = $location; + } + + // No problems, but upload not complete. + return false; + } else { + return Google_Http_REST::decodeHttpResponse($response); + } } - if (false == $meta && $this->data) { - return self::UPLOAD_MEDIA_TYPE; + /** + * @param $meta + * @param $params + * @return array|bool + * @visible for testing + */ + private function process() { + $postBody = false; + $contentType = false; + + $meta = $this->request->getPostBody(); + $meta = is_string($meta) ? json_decode($meta, true) : $meta; + + $uploadType = $this->getUploadType($meta); + $this->request->setQueryParam('uploadType', $uploadType); + $this->transformToUploadUrl(); + $mimeType = $this->mimeType ? + $this->mimeType : + $this->request->getRequestHeader('content-type'); + + if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) { + $contentType = $mimeType; + $postBody = is_string($meta) ? $meta : json_encode($meta); + } elseif (self::UPLOAD_MEDIA_TYPE == $uploadType) { + $contentType = $mimeType; + $postBody = $this->data; + } elseif (self::UPLOAD_MULTIPART_TYPE == $uploadType) { + // This is a multipart/related upload. + $boundary = $this->boundary ? $this->boundary : mt_rand(); + $boundary = str_replace('"', '', $boundary); + $contentType = 'multipart/related; boundary=' . $boundary; + $related = "--$boundary\r\n"; + $related .= "Content-Type: application/json; charset=UTF-8\r\n"; + $related .= "\r\n" . json_encode($meta) . "\r\n"; + $related .= "--$boundary\r\n"; + $related .= "Content-Type: $mimeType\r\n"; + $related .= "Content-Transfer-Encoding: base64\r\n"; + $related .= "\r\n" . base64_encode($this->data) . "\r\n"; + $related .= "--$boundary--"; + $postBody = $related; + } + + $this->request->setPostBody($postBody); + + if (isset($contentType) && $contentType) { + $contentTypeHeader['content-type'] = $contentType; + $this->request->setRequestHeaders($contentTypeHeader); + } } - return self::UPLOAD_MULTIPART_TYPE; - } - - private function getResumeUri() - { - $result = null; - $body = $this->request->getPostBody(); - if ($body) { - $headers = array( - 'content-type' => 'application/json; charset=UTF-8', - 'content-length' => Google_Utils::getStrLen($body), - 'x-upload-content-type' => $this->mimeType, - 'x-upload-content-length' => $this->size, - 'expect' => '', - ); - $this->request->setRequestHeaders($headers); + private function transformToUploadUrl() { + $base = $this->request->getBaseComponent(); + $this->request->setBaseComponent($base . '/upload'); } - $response = $this->client->getIo()->makeRequest($this->request); - $location = $response->getResponseHeader('location'); - $code = $response->getResponseHttpCode(); + /** + * Valid upload types: + * - resumable (UPLOAD_RESUMABLE_TYPE) + * - media (UPLOAD_MEDIA_TYPE) + * - multipart (UPLOAD_MULTIPART_TYPE) + * @param $meta + * @return string + * @visible for testing + */ + public function getUploadType($meta) { + if ($this->resumable) { + return self::UPLOAD_RESUMABLE_TYPE; + } - if (200 == $code && true == $location) { - return $location; + if (false == $meta && $this->data) { + return self::UPLOAD_MEDIA_TYPE; + } + + return self::UPLOAD_MULTIPART_TYPE; + } + + private function getResumeUri() { + $result = null; + $body = $this->request->getPostBody(); + if ($body) { + $headers = array( + 'content-type' => 'application/json; charset=UTF-8', + 'content-length' => Google_Utils::getStrLen($body), + 'x-upload-content-type' => $this->mimeType, + 'x-upload-content-length' => $this->size, + 'expect' => '', + ); + $this->request->setRequestHeaders($headers); + } + + $response = $this->client->getIo()->makeRequest($this->request); + $location = $response->getResponseHeader('location'); + $code = $response->getResponseHttpCode(); + + if (200 == $code && true == $location) { + return $location; + } + throw new Google_Exception("Failed to start the resumable upload"); } - throw new Google_Exception("Failed to start the resumable upload"); - } } diff --git a/oauth/Google/Http/REST.php b/oauth/Google/Http/REST.php index 3c318e4..e1ac017 100644 --- a/oauth/Google/Http/REST.php +++ b/oauth/Google/Http/REST.php @@ -26,114 +26,110 @@ require_once 'Google/Utils/URITemplate.php'; * @author Chris Chabot * @author Chirag Shah */ -class Google_Http_REST -{ - /** - * Executes a Google_Http_Request - * - * @param Google_Client $client - * @param Google_Http_Request $req - * @return array decoded result - * @throws Google_Service_Exception on server side error (ie: not authenticated, - * invalid or malformed post body, invalid url) - */ - public static function execute(Google_Client $client, Google_Http_Request $req) - { - $httpRequest = $client->getIo()->makeRequest($req); - $httpRequest->setExpectedClass($req->getExpectedClass()); - return self::decodeHttpResponse($httpRequest); - } - - /** - * Decode an HTTP Response. - * @static - * @throws Google_Service_Exception - * @param Google_Http_Request $response The http response to be decoded. - * @return mixed|null - */ - public static function decodeHttpResponse($response) - { - $code = $response->getResponseHttpCode(); - $body = $response->getResponseBody(); - $decoded = null; - - if ((intVal($code)) >= 300) { - $decoded = json_decode($body, true); - $err = 'Error calling ' . $response->getRequestMethod() . ' ' . $response->getUrl(); - if (isset($decoded['error']) && - isset($decoded['error']['message']) && - isset($decoded['error']['code'])) { - // if we're getting a json encoded error definition, use that instead of the raw response - // body for improved readability - $err .= ": ({$decoded['error']['code']}) {$decoded['error']['message']}"; - } else { - $err .= ": ($code) $body"; - } - - $errors = null; - // Specific check for APIs which don't return error details, such as Blogger. - if (isset($decoded['error']) && isset($decoded['error']['errors'])) { - $errors = $decoded['error']['errors']; - } - - throw new Google_Service_Exception($err, $code, null, $errors); +class Google_Http_REST { + /** + * Executes a Google_Http_Request + * + * @param Google_Client $client + * @param Google_Http_Request $req + * @return array decoded result + * @throws Google_Service_Exception on server side error (ie: not authenticated, + * invalid or malformed post body, invalid url) + */ + public static function execute(Google_Client $client, Google_Http_Request $req) { + $httpRequest = $client->getIo()->makeRequest($req); + $httpRequest->setExpectedClass($req->getExpectedClass()); + return self::decodeHttpResponse($httpRequest); } - // Only attempt to decode the response, if the response code wasn't (204) 'no content' - if ($code != '204') { - $decoded = json_decode($body, true); - if ($decoded === null || $decoded === "") { - throw new Google_Service_Exception("Invalid json in service response: $body"); - } + /** + * Decode an HTTP Response. + * @static + * @param Google_Http_Request $response The http response to be decoded. + * @return mixed|null + * @throws Google_Service_Exception + */ + public static function decodeHttpResponse($response) { + $code = $response->getResponseHttpCode(); + $body = $response->getResponseBody(); + $decoded = null; - if ($response->getExpectedClass()) { - $class = $response->getExpectedClass(); - $decoded = new $class($decoded); - } - } - return $decoded; - } + if ((intVal($code)) >= 300) { + $decoded = json_decode($body, true); + $err = 'Error calling ' . $response->getRequestMethod() . ' ' . $response->getUrl(); + if (isset($decoded['error']) && + isset($decoded['error']['message']) && + isset($decoded['error']['code'])) { + // if we're getting a json encoded error definition, use that instead of the raw response + // body for improved readability + $err .= ": ({$decoded['error']['code']}) {$decoded['error']['message']}"; + } else { + $err .= ": ($code) $body"; + } - /** - * Parse/expand request parameters and create a fully qualified - * request uri. - * @static - * @param string $servicePath - * @param string $restPath - * @param array $params - * @return string $requestUrl - */ - public static function createRequestUri($servicePath, $restPath, $params) - { - $requestUrl = $servicePath . $restPath; - $uriTemplateVars = array(); - $queryVars = array(); - foreach ($params as $paramName => $paramSpec) { - if ($paramSpec['type'] == 'boolean') { - $paramSpec['value'] = ($paramSpec['value']) ? 'true' : 'false'; - } - if ($paramSpec['location'] == 'path') { - $uriTemplateVars[$paramName] = $paramSpec['value']; - } else if ($paramSpec['location'] == 'query') { - if (isset($paramSpec['repeated']) && is_array($paramSpec['value'])) { - foreach ($paramSpec['value'] as $value) { - $queryVars[] = $paramName . '=' . rawurlencode($value); - } - } else { - $queryVars[] = $paramName . '=' . rawurlencode($paramSpec['value']); + $errors = null; + // Specific check for APIs which don't return error details, such as Blogger. + if (isset($decoded['error']) && isset($decoded['error']['errors'])) { + $errors = $decoded['error']['errors']; + } + + throw new Google_Service_Exception($err, $code, null, $errors); } - } + + // Only attempt to decode the response, if the response code wasn't (204) 'no content' + if ($code != '204') { + $decoded = json_decode($body, true); + if ($decoded === null || $decoded === "") { + throw new Google_Service_Exception("Invalid json in service response: $body"); + } + + if ($response->getExpectedClass()) { + $class = $response->getExpectedClass(); + $decoded = new $class($decoded); + } + } + return $decoded; } - if (count($uriTemplateVars)) { - $uriTemplateParser = new Google_Utils_URITemplate(); - $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars); - } + /** + * Parse/expand request parameters and create a fully qualified + * request uri. + * @static + * @param string $servicePath + * @param string $restPath + * @param array $params + * @return string $requestUrl + */ + public static function createRequestUri($servicePath, $restPath, $params) { + $requestUrl = $servicePath . $restPath; + $uriTemplateVars = array(); + $queryVars = array(); + foreach ($params as $paramName => $paramSpec) { + if ($paramSpec['type'] == 'boolean') { + $paramSpec['value'] = ($paramSpec['value']) ? 'true' : 'false'; + } + if ($paramSpec['location'] == 'path') { + $uriTemplateVars[$paramName] = $paramSpec['value']; + } elseif ($paramSpec['location'] == 'query') { + if (isset($paramSpec['repeated']) && is_array($paramSpec['value'])) { + foreach ($paramSpec['value'] as $value) { + $queryVars[] = $paramName . '=' . rawurlencode($value); + } + } else { + $queryVars[] = $paramName . '=' . rawurlencode($paramSpec['value']); + } + } + } - if (count($queryVars)) { - $requestUrl .= '?' . implode($queryVars, '&'); - } + if (count($uriTemplateVars)) { + $uriTemplateParser = new Google_Utils_URITemplate(); + $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars); + } - return $requestUrl; - } + if (count($queryVars)) { + $requestUrl .= '?' . implode($queryVars, '&'); + } + + return $requestUrl; + } } diff --git a/oauth/Google/Http/Request.php b/oauth/Google/Http/Request.php index 8643694..53a1d6b 100644 --- a/oauth/Google/Http/Request.php +++ b/oauth/Google/Http/Request.php @@ -25,452 +25,418 @@ require_once 'Google/Utils.php'; * @author Chirag Shah * */ -class Google_Http_Request -{ - const GZIP_UA = " (gzip)"; +class Google_Http_Request { + const GZIP_UA = " (gzip)"; - private $batchHeaders = array( - 'Content-Type' => 'application/http', - 'Content-Transfer-Encoding' => 'binary', - 'MIME-Version' => '1.0', - ); + private $batchHeaders = array( + 'Content-Type' => 'application/http', + 'Content-Transfer-Encoding' => 'binary', + 'MIME-Version' => '1.0', + ); - protected $queryParams; - protected $requestMethod; - protected $requestHeaders; - protected $baseComponent = null; - protected $path; - protected $postBody; - protected $userAgent; - protected $canGzip = null; + protected $queryParams; + protected $requestMethod; + protected $requestHeaders; + protected $baseComponent = null; + protected $path; + protected $postBody; + protected $userAgent; + protected $canGzip = null; - protected $responseHttpCode; - protected $responseHeaders; - protected $responseBody; - - protected $expectedClass; + protected $responseHttpCode; + protected $responseHeaders; + protected $responseBody; - public $accessKey; + protected $expectedClass; - public function __construct( - $url, - $method = 'GET', - $headers = array(), - $postBody = null - ) { - $this->setUrl($url); - $this->setRequestMethod($method); - $this->setRequestHeaders($headers); - $this->setPostBody($postBody); - } + public $accessKey; - /** - * Misc function that returns the base url component of the $url - * used by the OAuth signing class to calculate the base string - * @return string The base url component of the $url. - */ - public function getBaseComponent() - { - return $this->baseComponent; - } - - /** - * Set the base URL that path and query parameters will be added to. - * @param $baseComponent string - */ - public function setBaseComponent($baseComponent) - { - $this->baseComponent = $baseComponent; - } - - /** - * Enable support for gzipped responses with this request. - */ - public function enableGzip() - { - $this->setRequestHeaders(array("Accept-Encoding" => "gzip")); - $this->canGzip = true; - $this->setUserAgent($this->userAgent); - } - - /** - * Disable support for gzip responses with this request. - */ - public function disableGzip() - { - if ( - isset($this->requestHeaders['accept-encoding']) && - $this->requestHeaders['accept-encoding'] == "gzip" + public function __construct( + $url, + $method = 'GET', + $headers = array(), + $postBody = null ) { - unset($this->requestHeaders['accept-encoding']); - } - $this->canGzip = false; - $this->userAgent = str_replace(self::GZIP_UA, "", $this->userAgent); - } - - /** - * Can this request accept a gzip response? - * @return bool - */ - public function canGzip() - { - return $this->canGzip; - } - - /** - * Misc function that returns an array of the query parameters of the current - * url used by the OAuth signing class to calculate the signature - * @return array Query parameters in the query string. - */ - public function getQueryParams() - { - return $this->queryParams; - } - - /** - * Set a new query parameter. - * @param $key - string to set, does not need to be URL encoded - * @param $value - string to set, does not need to be URL encoded - */ - public function setQueryParam($key, $value) - { - $this->queryParams[$key] = $value; - } - - /** - * @return string HTTP Response Code. - */ - public function getResponseHttpCode() - { - return (int) $this->responseHttpCode; - } - - /** - * @param int $responseHttpCode HTTP Response Code. - */ - public function setResponseHttpCode($responseHttpCode) - { - $this->responseHttpCode = $responseHttpCode; - } - - /** - * @return $responseHeaders (array) HTTP Response Headers. - */ - public function getResponseHeaders() - { - return $this->responseHeaders; - } - - /** - * @return string HTTP Response Body - */ - public function getResponseBody() - { - return $this->responseBody; - } - - /** - * Set the class the response to this request should expect. - * - * @param $class string the class name - */ - public function setExpectedClass($class) - { - $this->expectedClass = $class; - } - - /** - * Retrieve the expected class the response should expect. - * @return string class name - */ - public function getExpectedClass() - { - return $this->expectedClass; - } - - /** - * @param array $headers The HTTP response headers - * to be normalized. - */ - public function setResponseHeaders($headers) - { - $headers = Google_Utils::normalize($headers); - if ($this->responseHeaders) { - $headers = array_merge($this->responseHeaders, $headers); + $this->setUrl($url); + $this->setRequestMethod($method); + $this->setRequestHeaders($headers); + $this->setPostBody($postBody); } - $this->responseHeaders = $headers; - } - - /** - * @param string $key - * @return array|boolean Returns the requested HTTP header or - * false if unavailable. - */ - public function getResponseHeader($key) - { - return isset($this->responseHeaders[$key]) - ? $this->responseHeaders[$key] - : false; - } - - /** - * @param string $responseBody The HTTP response body. - */ - public function setResponseBody($responseBody) - { - $this->responseBody = $responseBody; - } - - /** - * @return string $url The request URL. - */ - public function getUrl() - { - return $this->baseComponent . $this->path . - (count($this->queryParams) ? - "?" . $this->buildQuery($this->queryParams) : - ''); - } - - /** - * @return string $method HTTP Request Method. - */ - public function getRequestMethod() - { - return $this->requestMethod; - } - - /** - * @return array $headers HTTP Request Headers. - */ - public function getRequestHeaders() - { - return $this->requestHeaders; - } - - /** - * @param string $key - * @return array|boolean Returns the requested HTTP header or - * false if unavailable. - */ - public function getRequestHeader($key) - { - return isset($this->requestHeaders[$key]) - ? $this->requestHeaders[$key] - : false; - } - - /** - * @return string $postBody HTTP Request Body. - */ - public function getPostBody() - { - return $this->postBody; - } - - /** - * @param string $url the url to set - */ - public function setUrl($url) - { - if (substr($url, 0, 4) != 'http') { - // Force the path become relative. - if (substr($url, 0, 1) !== '/') { - $url = '/' . $url; - } - } - $parts = parse_url($url); - if (isset($parts['host'])) { - $this->baseComponent = sprintf( - "%s%s%s", - isset($parts['scheme']) ? $parts['scheme'] . "://" : '', - isset($parts['host']) ? $parts['host'] : '', - isset($parts['port']) ? ":" . $parts['port'] : '' - ); - } - $this->path = isset($parts['path']) ? $parts['path'] : ''; - $this->queryParams = array(); - if (isset($parts['query'])) { - $this->queryParams = $this->parseQuery($parts['query']); - } - } - - /** - * @param string $method Set he HTTP Method and normalize - * it to upper-case, as required by HTTP. - * - */ - public function setRequestMethod($method) - { - $this->requestMethod = strtoupper($method); - } - - /** - * @param array $headers The HTTP request headers - * to be set and normalized. - */ - public function setRequestHeaders($headers) - { - $headers = Google_Utils::normalize($headers); - if ($this->requestHeaders) { - $headers = array_merge($this->requestHeaders, $headers); - } - $this->requestHeaders = $headers; - } - - /** - * @param string $postBody the postBody to set - */ - public function setPostBody($postBody) - { - $this->postBody = $postBody; - } - - /** - * Set the User-Agent Header. - * @param string $userAgent The User-Agent. - */ - public function setUserAgent($userAgent) - { - $this->userAgent = $userAgent; - if ($this->canGzip) { - $this->userAgent = $userAgent . self::GZIP_UA; - } - } - - /** - * @return string The User-Agent. - */ - public function getUserAgent() - { - return $this->userAgent; - } - - /** - * Returns a cache key depending on if this was an OAuth signed request - * in which case it will use the non-signed url and access key to make this - * cache key unique per authenticated user, else use the plain request url - * @return string The md5 hash of the request cache key. - */ - public function getCacheKey() - { - $key = $this->getUrl(); - - if (isset($this->accessKey)) { - $key .= $this->accessKey; + /** + * Misc function that returns the base url component of the $url + * used by the OAuth signing class to calculate the base string + * @return string The base url component of the $url. + */ + public function getBaseComponent() { + return $this->baseComponent; } - if (isset($this->requestHeaders['authorization'])) { - $key .= $this->requestHeaders['authorization']; + /** + * Set the base URL that path and query parameters will be added to. + * @param $baseComponent string + */ + public function setBaseComponent($baseComponent) { + $this->baseComponent = $baseComponent; } - return md5($key); - } - - public function getParsedCacheControl() - { - $parsed = array(); - $rawCacheControl = $this->getResponseHeader('cache-control'); - if ($rawCacheControl) { - $rawCacheControl = str_replace(', ', '&', $rawCacheControl); - parse_str($rawCacheControl, $parsed); + /** + * Enable support for gzipped responses with this request. + */ + public function enableGzip() { + $this->setRequestHeaders(array("Accept-Encoding" => "gzip")); + $this->canGzip = true; + $this->setUserAgent($this->userAgent); } - return $parsed; - } - - /** - * @param string $id - * @return string A string representation of the HTTP Request. - */ - public function toBatchString($id) - { - $str = ''; - $path = parse_url($this->getUrl(), PHP_URL_PATH) . "?" . - http_build_query($this->queryParams); - $str .= $this->getRequestMethod() . ' ' . $path . " HTTP/1.1\n"; - - foreach ($this->getRequestHeaders() as $key => $val) { - $str .= $key . ': ' . $val . "\n"; - } - - if ($this->getPostBody()) { - $str .= "\n"; - $str .= $this->getPostBody(); - } - - $headers = ''; - foreach ($this->batchHeaders as $key => $val) { - $headers .= $key . ': ' . $val . "\n"; - } - - $headers .= "Content-ID: $id\n"; - $str = $headers . "\n" . $str; - - return $str; - } - - /** - * Our own version of parse_str that allows for multiple variables - * with the same name. - * @param $string - the query string to parse - */ - private function parseQuery($string) - { - $return = array(); - $parts = explode("&", $string); - foreach ($parts as $part) { - list($key, $value) = explode('=', $part, 2); - $value = urldecode($value); - if (isset($return[$key])) { - if (!is_array($return[$key])) { - $return[$key] = array($return[$key]); + /** + * Disable support for gzip responses with this request. + */ + public function disableGzip() { + if ( + isset($this->requestHeaders['accept-encoding']) && + $this->requestHeaders['accept-encoding'] == "gzip" + ) { + unset($this->requestHeaders['accept-encoding']); } - $return[$key][] = $value; - } else { - $return[$key] = $value; - } + $this->canGzip = false; + $this->userAgent = str_replace(self::GZIP_UA, "", $this->userAgent); } - return $return; - } - - /** - * A version of build query that allows for multiple - * duplicate keys. - * @param $parts array of key value pairs - */ - private function buildQuery($parts) - { - $return = array(); - foreach ($parts as $key => $value) { - if (is_array($value)) { - foreach ($value as $v) { - $return[] = urlencode($key) . "=" . urlencode($v); + + /** + * Can this request accept a gzip response? + * @return bool + */ + public function canGzip() { + return $this->canGzip; + } + + /** + * Misc function that returns an array of the query parameters of the current + * url used by the OAuth signing class to calculate the signature + * @return array Query parameters in the query string. + */ + public function getQueryParams() { + return $this->queryParams; + } + + /** + * Set a new query parameter. + * @param $key - string to set, does not need to be URL encoded + * @param $value - string to set, does not need to be URL encoded + */ + public function setQueryParam($key, $value) { + $this->queryParams[$key] = $value; + } + + /** + * @return string HTTP Response Code. + */ + public function getResponseHttpCode() { + return (int)$this->responseHttpCode; + } + + /** + * @param int $responseHttpCode HTTP Response Code. + */ + public function setResponseHttpCode($responseHttpCode) { + $this->responseHttpCode = $responseHttpCode; + } + + /** + * @return $responseHeaders (array) HTTP Response Headers. + */ + public function getResponseHeaders() { + return $this->responseHeaders; + } + + /** + * @return string HTTP Response Body + */ + public function getResponseBody() { + return $this->responseBody; + } + + /** + * Set the class the response to this request should expect. + * + * @param $class string the class name + */ + public function setExpectedClass($class) { + $this->expectedClass = $class; + } + + /** + * Retrieve the expected class the response should expect. + * @return string class name + */ + public function getExpectedClass() { + return $this->expectedClass; + } + + /** + * @param array $headers The HTTP response headers + * to be normalized. + */ + public function setResponseHeaders($headers) { + $headers = Google_Utils::normalize($headers); + if ($this->responseHeaders) { + $headers = array_merge($this->responseHeaders, $headers); } - } else { - $return[] = urlencode($key) . "=" . urlencode($value); - } + + $this->responseHeaders = $headers; } - return implode('&', $return); - } - - /** - * If we're POSTing and have no body to send, we can send the query - * parameters in there, which avoids length issues with longer query - * params. - */ - public function maybeMoveParametersToBody() - { - if ($this->getRequestMethod() == "POST" && empty($this->postBody)) { - $this->setRequestHeaders( - array( - "content-type" => - "application/x-www-form-urlencoded; charset=UTF-8" - ) - ); - $this->setPostBody($this->buildQuery($this->queryParams)); - $this->queryParams = array(); + + /** + * @param string $key + * @return array|boolean Returns the requested HTTP header or + * false if unavailable. + */ + public function getResponseHeader($key) { + return isset($this->responseHeaders[$key]) + ? $this->responseHeaders[$key] + : false; + } + + /** + * @param string $responseBody The HTTP response body. + */ + public function setResponseBody($responseBody) { + $this->responseBody = $responseBody; + } + + /** + * @return string $url The request URL. + */ + public function getUrl() { + return $this->baseComponent . $this->path . + (count($this->queryParams) ? + "?" . $this->buildQuery($this->queryParams) : + ''); + } + + /** + * @return string $method HTTP Request Method. + */ + public function getRequestMethod() { + return $this->requestMethod; + } + + /** + * @return array $headers HTTP Request Headers. + */ + public function getRequestHeaders() { + return $this->requestHeaders; + } + + /** + * @param string $key + * @return array|boolean Returns the requested HTTP header or + * false if unavailable. + */ + public function getRequestHeader($key) { + return isset($this->requestHeaders[$key]) + ? $this->requestHeaders[$key] + : false; + } + + /** + * @return string $postBody HTTP Request Body. + */ + public function getPostBody() { + return $this->postBody; + } + + /** + * @param string $url the url to set + */ + public function setUrl($url) { + if (substr($url, 0, 4) != 'http') { + // Force the path become relative. + if (substr($url, 0, 1) !== '/') { + $url = '/' . $url; + } + } + $parts = parse_url($url); + if (isset($parts['host'])) { + $this->baseComponent = sprintf( + "%s%s%s", + isset($parts['scheme']) ? $parts['scheme'] . "://" : '', + isset($parts['host']) ? $parts['host'] : '', + isset($parts['port']) ? ":" . $parts['port'] : '' + ); + } + $this->path = isset($parts['path']) ? $parts['path'] : ''; + $this->queryParams = array(); + if (isset($parts['query'])) { + $this->queryParams = $this->parseQuery($parts['query']); + } + } + + /** + * @param string $method Set he HTTP Method and normalize + * it to upper-case, as required by HTTP. + * + */ + public function setRequestMethod($method) { + $this->requestMethod = strtoupper($method); + } + + /** + * @param array $headers The HTTP request headers + * to be set and normalized. + */ + public function setRequestHeaders($headers) { + $headers = Google_Utils::normalize($headers); + if ($this->requestHeaders) { + $headers = array_merge($this->requestHeaders, $headers); + } + $this->requestHeaders = $headers; + } + + /** + * @param string $postBody the postBody to set + */ + public function setPostBody($postBody) { + $this->postBody = $postBody; + } + + /** + * Set the User-Agent Header. + * @param string $userAgent The User-Agent. + */ + public function setUserAgent($userAgent) { + $this->userAgent = $userAgent; + if ($this->canGzip) { + $this->userAgent = $userAgent . self::GZIP_UA; + } + } + + /** + * @return string The User-Agent. + */ + public function getUserAgent() { + return $this->userAgent; + } + + /** + * Returns a cache key depending on if this was an OAuth signed request + * in which case it will use the non-signed url and access key to make this + * cache key unique per authenticated user, else use the plain request url + * @return string The md5 hash of the request cache key. + */ + public function getCacheKey() { + $key = $this->getUrl(); + + if (isset($this->accessKey)) { + $key .= $this->accessKey; + } + + if (isset($this->requestHeaders['authorization'])) { + $key .= $this->requestHeaders['authorization']; + } + + return md5($key); + } + + public function getParsedCacheControl() { + $parsed = array(); + $rawCacheControl = $this->getResponseHeader('cache-control'); + if ($rawCacheControl) { + $rawCacheControl = str_replace(', ', '&', $rawCacheControl); + parse_str($rawCacheControl, $parsed); + } + + return $parsed; + } + + /** + * @param string $id + * @return string A string representation of the HTTP Request. + */ + public function toBatchString($id) { + $str = ''; + $path = parse_url($this->getUrl(), PHP_URL_PATH) . "?" . + http_build_query($this->queryParams); + $str .= $this->getRequestMethod() . ' ' . $path . " HTTP/1.1\n"; + + foreach ($this->getRequestHeaders() as $key => $val) { + $str .= $key . ': ' . $val . "\n"; + } + + if ($this->getPostBody()) { + $str .= "\n"; + $str .= $this->getPostBody(); + } + + $headers = ''; + foreach ($this->batchHeaders as $key => $val) { + $headers .= $key . ': ' . $val . "\n"; + } + + $headers .= "Content-ID: $id\n"; + $str = $headers . "\n" . $str; + + return $str; + } + + /** + * Our own version of parse_str that allows for multiple variables + * with the same name. + * @param $string - the query string to parse + */ + private function parseQuery($string) { + $return = array(); + $parts = explode("&", $string); + foreach ($parts as $part) { + list($key, $value) = explode('=', $part, 2); + $value = urldecode($value); + if (isset($return[$key])) { + if (!is_array($return[$key])) { + $return[$key] = array($return[$key]); + } + $return[$key][] = $value; + } else { + $return[$key] = $value; + } + } + return $return; + } + + /** + * A version of build query that allows for multiple + * duplicate keys. + * @param $parts array of key value pairs + */ + private function buildQuery($parts) { + $return = array(); + foreach ($parts as $key => $value) { + if (is_array($value)) { + foreach ($value as $v) { + $return[] = urlencode($key) . "=" . urlencode($v); + } + } else { + $return[] = urlencode($key) . "=" . urlencode($value); + } + } + return implode('&', $return); + } + + /** + * If we're POSTing and have no body to send, we can send the query + * parameters in there, which avoids length issues with longer query + * params. + */ + public function maybeMoveParametersToBody() { + if ($this->getRequestMethod() == "POST" && empty($this->postBody)) { + $this->setRequestHeaders( + array( + "content-type" => + "application/x-www-form-urlencoded; charset=UTF-8" + ) + ); + $this->setPostBody($this->buildQuery($this->queryParams)); + $this->queryParams = array(); + } } - } } diff --git a/oauth/Google/IO/Abstract.php b/oauth/Google/IO/Abstract.php index 2d80afd..37220a3 100644 --- a/oauth/Google/IO/Abstract.php +++ b/oauth/Google/IO/Abstract.php @@ -24,306 +24,294 @@ require_once 'Google/IO/Exception.php'; require_once 'Google/Http/CacheParser.php'; require_once 'Google/Http/Request.php'; -abstract class Google_IO_Abstract -{ - const UNKNOWN_CODE = 0; - const FORM_URLENCODED = 'application/x-www-form-urlencoded'; - private static $CONNECTION_ESTABLISHED_HEADERS = array( - "HTTP/1.0 200 Connection established\r\n\r\n", - "HTTP/1.1 200 Connection established\r\n\r\n", - ); - private static $ENTITY_HTTP_METHODS = array("POST" => null, "PUT" => null); +abstract class Google_IO_Abstract { + const UNKNOWN_CODE = 0; + const FORM_URLENCODED = 'application/x-www-form-urlencoded'; + private static $CONNECTION_ESTABLISHED_HEADERS = array( + "HTTP/1.0 200 Connection established\r\n\r\n", + "HTTP/1.1 200 Connection established\r\n\r\n", + ); + private static $ENTITY_HTTP_METHODS = array("POST" => null, "PUT" => null); - /** @var Google_Client */ - protected $client; + /** @var Google_Client */ + protected $client; - public function __construct(Google_Client $client) - { - $this->client = $client; - $timeout = $client->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds'); - if ($timeout > 0) { - $this->setTimeout($timeout); - } - } - - /** - * Executes a Google_Http_Request and returns the resulting populated Google_Http_Request - * @param Google_Http_Request $request - * @return Google_Http_Request $request - */ - abstract public function executeRequest(Google_Http_Request $request); - - /** - * Set options that update the transport implementation's behavior. - * @param $options - */ - abstract public function setOptions($options); - - /** - * Set the maximum request time in seconds. - * @param $timeout in seconds - */ - abstract public function setTimeout($timeout); - - /** - * Get the maximum request time in seconds. - * @return timeout in seconds - */ - abstract public function getTimeout(); - - /** - * Test for the presence of a cURL header processing bug - * - * The cURL bug was present in versions prior to 7.30.0 and caused the header - * length to be miscalculated when a "Connection established" header added by - * some proxies was present. - * - * @return boolean - */ - abstract protected function needsQuirk(); - - /** - * @visible for testing. - * Cache the response to an HTTP request if it is cacheable. - * @param Google_Http_Request $request - * @return bool Returns true if the insertion was successful. - * Otherwise, return false. - */ - public function setCachedRequest(Google_Http_Request $request) - { - // Determine if the request is cacheable. - if (Google_Http_CacheParser::isResponseCacheable($request)) { - $this->client->getCache()->set($request->getCacheKey(), $request); - return true; - } - - return false; - } - - /** - * Execute an HTTP Request - * - * @param Google_HttpRequest $request the http request to be executed - * @return Google_HttpRequest http request with the response http code, - * response headers and response body filled in - * @throws Google_IO_Exception on curl or IO error - */ - public function makeRequest(Google_Http_Request $request) - { - // First, check to see if we have a valid cached version. - $cached = $this->getCachedRequest($request); - if ($cached !== false && $cached instanceof Google_Http_Request) { - if (!$this->checkMustRevalidateCachedRequest($cached, $request)) { - return $cached; - } - } - - if (array_key_exists($request->getRequestMethod(), self::$ENTITY_HTTP_METHODS)) { - $request = $this->processEntityRequest($request); - } - - list($responseData, $responseHeaders, $respHttpCode) = $this->executeRequest($request); - - if ($respHttpCode == 304 && $cached) { - // If the server responded NOT_MODIFIED, return the cached request. - $this->updateCachedRequest($cached, $responseHeaders); - return $cached; - } - - if (!isset($responseHeaders['Date']) && !isset($responseHeaders['date'])) { - $responseHeaders['Date'] = date("r"); - } - - $request->setResponseHttpCode($respHttpCode); - $request->setResponseHeaders($responseHeaders); - $request->setResponseBody($responseData); - // Store the request in cache (the function checks to see if the request - // can actually be cached) - $this->setCachedRequest($request); - return $request; - } - - /** - * @visible for testing. - * @param Google_Http_Request $request - * @return Google_Http_Request|bool Returns the cached object or - * false if the operation was unsuccessful. - */ - public function getCachedRequest(Google_Http_Request $request) - { - if (false === Google_Http_CacheParser::isRequestCacheable($request)) { - return false; - } - - return $this->client->getCache()->get($request->getCacheKey()); - } - - /** - * @visible for testing - * Process an http request that contains an enclosed entity. - * @param Google_Http_Request $request - * @return Google_Http_Request Processed request with the enclosed entity. - */ - public function processEntityRequest(Google_Http_Request $request) - { - $postBody = $request->getPostBody(); - $contentType = $request->getRequestHeader("content-type"); - - // Set the default content-type as application/x-www-form-urlencoded. - if (false == $contentType) { - $contentType = self::FORM_URLENCODED; - $request->setRequestHeaders(array('content-type' => $contentType)); - } - - // Force the payload to match the content-type asserted in the header. - if ($contentType == self::FORM_URLENCODED && is_array($postBody)) { - $postBody = http_build_query($postBody, '', '&'); - $request->setPostBody($postBody); - } - - // Make sure the content-length header is set. - if (!$postBody || is_string($postBody)) { - $postsLength = strlen($postBody); - $request->setRequestHeaders(array('content-length' => $postsLength)); - } - - return $request; - } - - /** - * Check if an already cached request must be revalidated, and if so update - * the request with the correct ETag headers. - * @param Google_Http_Request $cached A previously cached response. - * @param Google_Http_Request $request The outbound request. - * return bool If the cached object needs to be revalidated, false if it is - * still current and can be re-used. - */ - protected function checkMustRevalidateCachedRequest($cached, $request) - { - if (Google_Http_CacheParser::mustRevalidate($cached)) { - $addHeaders = array(); - if ($cached->getResponseHeader('etag')) { - // [13.3.4] If an entity tag has been provided by the origin server, - // we must use that entity tag in any cache-conditional request. - $addHeaders['If-None-Match'] = $cached->getResponseHeader('etag'); - } elseif ($cached->getResponseHeader('date')) { - $addHeaders['If-Modified-Since'] = $cached->getResponseHeader('date'); - } - - $request->setRequestHeaders($addHeaders); - return true; - } else { - return false; - } - } - - /** - * Update a cached request, using the headers from the last response. - * @param Google_HttpRequest $cached A previously cached response. - * @param mixed Associative array of response headers from the last request. - */ - protected function updateCachedRequest($cached, $responseHeaders) - { - if (isset($responseHeaders['connection'])) { - $hopByHop = array_merge( - self::$HOP_BY_HOP, - explode( - ',', - $responseHeaders['connection'] - ) - ); - - $endToEnd = array(); - foreach ($hopByHop as $key) { - if (isset($responseHeaders[$key])) { - $endToEnd[$key] = $responseHeaders[$key]; + public function __construct(Google_Client $client) { + $this->client = $client; + $timeout = $client->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds'); + if ($timeout > 0) { + $this->setTimeout($timeout); } - } - $cached->setResponseHeaders($endToEnd); } - } - /** - * Used by the IO lib and also the batch processing. - * - * @param $respData - * @param $headerSize - * @return array - */ - public function parseHttpResponse($respData, $headerSize) - { - // check proxy header - foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) { - if (stripos($respData, $established_header) !== false) { - // existed, remove it - $respData = str_ireplace($established_header, '', $respData); - // Subtract the proxy header size unless the cURL bug prior to 7.30.0 - // is present which prevented the proxy header size from being taken into - // account. - if (!$this->needsQuirk()) { - $headerSize -= strlen($established_header); + /** + * Executes a Google_Http_Request and returns the resulting populated Google_Http_Request + * @param Google_Http_Request $request + * @return Google_Http_Request $request + */ + abstract public function executeRequest(Google_Http_Request $request); + + /** + * Set options that update the transport implementation's behavior. + * @param $options + */ + abstract public function setOptions($options); + + /** + * Set the maximum request time in seconds. + * @param $timeout in seconds + */ + abstract public function setTimeout($timeout); + + /** + * Get the maximum request time in seconds. + * @return timeout in seconds + */ + abstract public function getTimeout(); + + /** + * Test for the presence of a cURL header processing bug + * + * The cURL bug was present in versions prior to 7.30.0 and caused the header + * length to be miscalculated when a "Connection established" header added by + * some proxies was present. + * + * @return boolean + */ + abstract protected function needsQuirk(); + + /** + * @visible for testing. + * Cache the response to an HTTP request if it is cacheable. + * @param Google_Http_Request $request + * @return bool Returns true if the insertion was successful. + * Otherwise, return false. + */ + public function setCachedRequest(Google_Http_Request $request) { + // Determine if the request is cacheable. + if (Google_Http_CacheParser::isResponseCacheable($request)) { + $this->client->getCache()->set($request->getCacheKey(), $request); + return true; } - break; - } + + return false; } - if ($headerSize) { - $responseBody = substr($respData, $headerSize); - $responseHeaders = substr($respData, 0, $headerSize); - } else { - list($responseHeaders, $responseBody) = explode("\r\n\r\n", $respData, 2); + /** + * Execute an HTTP Request + * + * @param Google_HttpRequest $request the http request to be executed + * @return Google_HttpRequest http request with the response http code, + * response headers and response body filled in + * @throws Google_IO_Exception on curl or IO error + */ + public function makeRequest(Google_Http_Request $request) { + // First, check to see if we have a valid cached version. + $cached = $this->getCachedRequest($request); + if ($cached !== false && $cached instanceof Google_Http_Request) { + if (!$this->checkMustRevalidateCachedRequest($cached, $request)) { + return $cached; + } + } + + if (array_key_exists($request->getRequestMethod(), self::$ENTITY_HTTP_METHODS)) { + $request = $this->processEntityRequest($request); + } + + list($responseData, $responseHeaders, $respHttpCode) = $this->executeRequest($request); + + if ($respHttpCode == 304 && $cached) { + // If the server responded NOT_MODIFIED, return the cached request. + $this->updateCachedRequest($cached, $responseHeaders); + return $cached; + } + + if (!isset($responseHeaders['Date']) && !isset($responseHeaders['date'])) { + $responseHeaders['Date'] = date("r"); + } + + $request->setResponseHttpCode($respHttpCode); + $request->setResponseHeaders($responseHeaders); + $request->setResponseBody($responseData); + // Store the request in cache (the function checks to see if the request + // can actually be cached) + $this->setCachedRequest($request); + return $request; } - $responseHeaders = $this->getHttpResponseHeaders($responseHeaders); - return array($responseHeaders, $responseBody); - } + /** + * @visible for testing. + * @param Google_Http_Request $request + * @return Google_Http_Request|bool Returns the cached object or + * false if the operation was unsuccessful. + */ + public function getCachedRequest(Google_Http_Request $request) { + if (false === Google_Http_CacheParser::isRequestCacheable($request)) { + return false; + } - /** - * Parse out headers from raw headers - * @param rawHeaders array or string - * @return array - */ - public function getHttpResponseHeaders($rawHeaders) - { - if (is_array($rawHeaders)) { - return $this->parseArrayHeaders($rawHeaders); - } else { - return $this->parseStringHeaders($rawHeaders); + return $this->client->getCache()->get($request->getCacheKey()); } - } - private function parseStringHeaders($rawHeaders) - { - $headers = array(); - $responseHeaderLines = explode("\r\n", $rawHeaders); - foreach ($responseHeaderLines as $headerLine) { - if ($headerLine && strpos($headerLine, ':') !== false) { - list($header, $value) = explode(': ', $headerLine, 2); - $header = strtolower($header); - if (isset($responseHeaders[$header])) { - $headers[$header] .= "\n" . $value; + /** + * @visible for testing + * Process an http request that contains an enclosed entity. + * @param Google_Http_Request $request + * @return Google_Http_Request Processed request with the enclosed entity. + */ + public function processEntityRequest(Google_Http_Request $request) { + $postBody = $request->getPostBody(); + $contentType = $request->getRequestHeader("content-type"); + + // Set the default content-type as application/x-www-form-urlencoded. + if (false == $contentType) { + $contentType = self::FORM_URLENCODED; + $request->setRequestHeaders(array('content-type' => $contentType)); + } + + // Force the payload to match the content-type asserted in the header. + if ($contentType == self::FORM_URLENCODED && is_array($postBody)) { + $postBody = http_build_query($postBody, '', '&'); + $request->setPostBody($postBody); + } + + // Make sure the content-length header is set. + if (!$postBody || is_string($postBody)) { + $postsLength = strlen($postBody); + $request->setRequestHeaders(array('content-length' => $postsLength)); + } + + return $request; + } + + /** + * Check if an already cached request must be revalidated, and if so update + * the request with the correct ETag headers. + * @param Google_Http_Request $cached A previously cached response. + * @param Google_Http_Request $request The outbound request. + * return bool If the cached object needs to be revalidated, false if it is + * still current and can be re-used. + */ + protected function checkMustRevalidateCachedRequest($cached, $request) { + if (Google_Http_CacheParser::mustRevalidate($cached)) { + $addHeaders = array(); + if ($cached->getResponseHeader('etag')) { + // [13.3.4] If an entity tag has been provided by the origin server, + // we must use that entity tag in any cache-conditional request. + $addHeaders['If-None-Match'] = $cached->getResponseHeader('etag'); + } elseif ($cached->getResponseHeader('date')) { + $addHeaders['If-Modified-Since'] = $cached->getResponseHeader('date'); + } + + $request->setRequestHeaders($addHeaders); + return true; } else { - $headers[$header] = $value; + return false; } - } - } - return $headers; - } - - private function parseArrayHeaders($rawHeaders) - { - $header_count = count($rawHeaders); - $headers = array(); - - for ($i = 0; $i < $header_count; $i++) { - $header = $rawHeaders[$i]; - // Times will have colons in - so we just want the first match. - $header_parts = explode(': ', $header, 2); - if (count($header_parts) == 2) { - $headers[$header_parts[0]] = $header_parts[1]; - } } - return $headers; - } + /** + * Update a cached request, using the headers from the last response. + * @param Google_HttpRequest $cached A previously cached response. + * @param mixed Associative array of response headers from the last request. + */ + protected function updateCachedRequest($cached, $responseHeaders) { + if (isset($responseHeaders['connection'])) { + $hopByHop = array_merge( + self::$HOP_BY_HOP, + explode( + ',', + $responseHeaders['connection'] + ) + ); + + $endToEnd = array(); + foreach ($hopByHop as $key) { + if (isset($responseHeaders[$key])) { + $endToEnd[$key] = $responseHeaders[$key]; + } + } + $cached->setResponseHeaders($endToEnd); + } + } + + /** + * Used by the IO lib and also the batch processing. + * + * @param $respData + * @param $headerSize + * @return array + */ + public function parseHttpResponse($respData, $headerSize) { + // check proxy header + foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) { + if (stripos($respData, $established_header) !== false) { + // existed, remove it + $respData = str_ireplace($established_header, '', $respData); + // Subtract the proxy header size unless the cURL bug prior to 7.30.0 + // is present which prevented the proxy header size from being taken into + // account. + if (!$this->needsQuirk()) { + $headerSize -= strlen($established_header); + } + break; + } + } + + if ($headerSize) { + $responseBody = substr($respData, $headerSize); + $responseHeaders = substr($respData, 0, $headerSize); + } else { + list($responseHeaders, $responseBody) = explode("\r\n\r\n", $respData, 2); + } + + $responseHeaders = $this->getHttpResponseHeaders($responseHeaders); + return array($responseHeaders, $responseBody); + } + + /** + * Parse out headers from raw headers + * @param rawHeaders array or string + * @return array + */ + public function getHttpResponseHeaders($rawHeaders) { + if (is_array($rawHeaders)) { + return $this->parseArrayHeaders($rawHeaders); + } else { + return $this->parseStringHeaders($rawHeaders); + } + } + + private function parseStringHeaders($rawHeaders) { + $headers = array(); + $responseHeaderLines = explode("\r\n", $rawHeaders); + foreach ($responseHeaderLines as $headerLine) { + if ($headerLine && strpos($headerLine, ':') !== false) { + list($header, $value) = explode(': ', $headerLine, 2); + $header = strtolower($header); + if (isset($responseHeaders[$header])) { + $headers[$header] .= "\n" . $value; + } else { + $headers[$header] = $value; + } + } + } + return $headers; + } + + private function parseArrayHeaders($rawHeaders) { + $header_count = count($rawHeaders); + $headers = array(); + + for ($i = 0; $i < $header_count; $i++) { + $header = $rawHeaders[$i]; + // Times will have colons in - so we just want the first match. + $header_parts = explode(': ', $header, 2); + if (count($header_parts) == 2) { + $headers[$header_parts[0]] = $header_parts[1]; + } + } + + return $headers; + } } diff --git a/oauth/Google/IO/Curl.php b/oauth/Google/IO/Curl.php index 57a0571..3a2676c 100644 --- a/oauth/Google/IO/Curl.php +++ b/oauth/Google/IO/Curl.php @@ -23,115 +23,110 @@ require_once 'Google/IO/Abstract.php'; -class Google_IO_Curl extends Google_IO_Abstract -{ - // cURL hex representation of version 7.30.0 - const NO_QUIRK_VERSION = 0x071E00; +class Google_IO_Curl extends Google_IO_Abstract { + // cURL hex representation of version 7.30.0 + const NO_QUIRK_VERSION = 0x071E00; - private $options = array(); - /** - * Execute an HTTP Request - * - * @param Google_HttpRequest $request the http request to be executed - * @return Google_HttpRequest http request with the response http code, - * response headers and response body filled in - * @throws Google_IO_Exception on curl or IO error - */ - public function executeRequest(Google_Http_Request $request) - { - $curl = curl_init(); + private $options = array(); - if ($request->getPostBody()) { - curl_setopt($curl, CURLOPT_POSTFIELDS, $request->getPostBody()); + /** + * Execute an HTTP Request + * + * @param Google_HttpRequest $request the http request to be executed + * @return Google_HttpRequest http request with the response http code, + * response headers and response body filled in + * @throws Google_IO_Exception on curl or IO error + */ + public function executeRequest(Google_Http_Request $request) { + $curl = curl_init(); + + if ($request->getPostBody()) { + curl_setopt($curl, CURLOPT_POSTFIELDS, $request->getPostBody()); + } + + $requestHeaders = $request->getRequestHeaders(); + if ($requestHeaders && is_array($requestHeaders)) { + $curlHeaders = array(); + foreach ($requestHeaders as $k => $v) { + $curlHeaders[] = "$k: $v"; + } + curl_setopt($curl, CURLOPT_HTTPHEADER, $curlHeaders); + } + + curl_setopt($curl, CURLOPT_URL, $request->getUrl()); + + curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $request->getRequestMethod()); + curl_setopt($curl, CURLOPT_USERAGENT, $request->getUserAgent()); + + curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); + curl_setopt($curl, CURLOPT_HEADER, true); + + if ($request->canGzip()) { + curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate'); + } + + foreach ($this->options as $key => $var) { + curl_setopt($curl, $key, $var); + } + + if (!isset($this->options[CURLOPT_CAINFO])) { + curl_setopt($curl, CURLOPT_CAINFO, dirname(__FILE__) . '/cacerts.pem'); + } + + $response = curl_exec($curl); + if ($response === false) { + throw new Google_IO_Exception(curl_error($curl)); + } + $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE); + + list($responseHeaders, $responseBody) = $this->parseHttpResponse($response, $headerSize); + + $responseCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); + + return array($responseBody, $responseHeaders, $responseCode); } - $requestHeaders = $request->getRequestHeaders(); - if ($requestHeaders && is_array($requestHeaders)) { - $curlHeaders = array(); - foreach ($requestHeaders as $k => $v) { - $curlHeaders[] = "$k: $v"; - } - curl_setopt($curl, CURLOPT_HTTPHEADER, $curlHeaders); + /** + * Set options that update the transport implementation's behavior. + * @param $options + */ + public function setOptions($options) { + $this->options = $options + $this->options; } - curl_setopt($curl, CURLOPT_URL, $request->getUrl()); - - curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $request->getRequestMethod()); - curl_setopt($curl, CURLOPT_USERAGENT, $request->getUserAgent()); - - curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); - curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true); - curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); - curl_setopt($curl, CURLOPT_HEADER, true); - - if ($request->canGzip()) { - curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate'); + /** + * Set the maximum request time in seconds. + * @param $timeout in seconds + */ + public function setTimeout($timeout) { + // Since this timeout is really for putting a bound on the time + // we'll set them both to the same. If you need to specify a longer + // CURLOPT_TIMEOUT, or a tigher CONNECTTIMEOUT, the best thing to + // do is use the setOptions method for the values individually. + $this->options[CURLOPT_CONNECTTIMEOUT] = $timeout; + $this->options[CURLOPT_TIMEOUT] = $timeout; } - foreach ($this->options as $key => $var) { - curl_setopt($curl, $key, $var); + /** + * Get the maximum request time in seconds. + * @return timeout in seconds + */ + public function getTimeout() { + return $this->options[CURLOPT_TIMEOUT]; } - if (!isset($this->options[CURLOPT_CAINFO])) { - curl_setopt($curl, CURLOPT_CAINFO, dirname(__FILE__) . '/cacerts.pem'); + /** + * Test for the presence of a cURL header processing bug + * + * {@inheritDoc} + * + * @return boolean + */ + protected function needsQuirk() { + $ver = curl_version(); + $versionNum = $ver['version_number']; + return $versionNum < Google_IO_Curl::NO_QUIRK_VERSION; } - - $response = curl_exec($curl); - if ($response === false) { - throw new Google_IO_Exception(curl_error($curl)); - } - $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE); - - list($responseHeaders, $responseBody) = $this->parseHttpResponse($response, $headerSize); - - $responseCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); - - return array($responseBody, $responseHeaders, $responseCode); - } - - /** - * Set options that update the transport implementation's behavior. - * @param $options - */ - public function setOptions($options) - { - $this->options = $options + $this->options; - } - - /** - * Set the maximum request time in seconds. - * @param $timeout in seconds - */ - public function setTimeout($timeout) - { - // Since this timeout is really for putting a bound on the time - // we'll set them both to the same. If you need to specify a longer - // CURLOPT_TIMEOUT, or a tigher CONNECTTIMEOUT, the best thing to - // do is use the setOptions method for the values individually. - $this->options[CURLOPT_CONNECTTIMEOUT] = $timeout; - $this->options[CURLOPT_TIMEOUT] = $timeout; - } - - /** - * Get the maximum request time in seconds. - * @return timeout in seconds - */ - public function getTimeout() - { - return $this->options[CURLOPT_TIMEOUT]; - } - - /** - * Test for the presence of a cURL header processing bug - * - * {@inheritDoc} - * - * @return boolean - */ - protected function needsQuirk() - { - $ver = curl_version(); - $versionNum = $ver['version_number']; - return $versionNum < Google_IO_Curl::NO_QUIRK_VERSION; - } } diff --git a/oauth/Google/IO/Exception.php b/oauth/Google/IO/Exception.php index 28c2d8c..3e86e75 100644 --- a/oauth/Google/IO/Exception.php +++ b/oauth/Google/IO/Exception.php @@ -17,6 +17,5 @@ require_once 'Google/Exception.php'; -class Google_IO_Exception extends Google_Exception -{ +class Google_IO_Exception extends Google_Exception { } diff --git a/oauth/Google/IO/Stream.php b/oauth/Google/IO/Stream.php index 917578d..a39feb2 100644 --- a/oauth/Google/IO/Stream.php +++ b/oauth/Google/IO/Stream.php @@ -23,189 +23,181 @@ require_once 'Google/IO/Abstract.php'; -class Google_IO_Stream extends Google_IO_Abstract -{ - const TIMEOUT = "timeout"; - const ZLIB = "compress.zlib://"; - private $options = array(); - private $trappedErrorNumber; - private $trappedErrorString; +class Google_IO_Stream extends Google_IO_Abstract { + const TIMEOUT = "timeout"; + const ZLIB = "compress.zlib://"; + private $options = array(); + private $trappedErrorNumber; + private $trappedErrorString; - private static $DEFAULT_HTTP_CONTEXT = array( - "follow_location" => 0, - "ignore_errors" => 1, - ); - - private static $DEFAULT_SSL_CONTEXT = array( - "verify_peer" => true, - ); - - /** - * Execute an HTTP Request - * - * @param Google_HttpRequest $request the http request to be executed - * @return Google_HttpRequest http request with the response http code, - * response headers and response body filled in - * @throws Google_IO_Exception on curl or IO error - */ - public function executeRequest(Google_Http_Request $request) - { - $default_options = stream_context_get_options(stream_context_get_default()); - - $requestHttpContext = array_key_exists('http', $default_options) ? - $default_options['http'] : array(); - - if ($request->getPostBody()) { - $requestHttpContext["content"] = $request->getPostBody(); - } - - $requestHeaders = $request->getRequestHeaders(); - if ($requestHeaders && is_array($requestHeaders)) { - $headers = ""; - foreach ($requestHeaders as $k => $v) { - $headers .= "$k: $v\r\n"; - } - $requestHttpContext["header"] = $headers; - } - - $requestHttpContext["method"] = $request->getRequestMethod(); - $requestHttpContext["user_agent"] = $request->getUserAgent(); - - $requestSslContext = array_key_exists('ssl', $default_options) ? - $default_options['ssl'] : array(); - - if (!array_key_exists("cafile", $requestSslContext)) { - $requestSslContext["cafile"] = dirname(__FILE__) . '/cacerts.pem'; - } - - $options = array( - "http" => array_merge( - self::$DEFAULT_HTTP_CONTEXT, - $requestHttpContext - ), - "ssl" => array_merge( - self::$DEFAULT_SSL_CONTEXT, - $requestSslContext - ) + private static $DEFAULT_HTTP_CONTEXT = array( + "follow_location" => 0, + "ignore_errors" => 1, ); - $context = stream_context_create($options); + private static $DEFAULT_SSL_CONTEXT = array( + "verify_peer" => true, + ); - $url = $request->getUrl(); + /** + * Execute an HTTP Request + * + * @param Google_HttpRequest $request the http request to be executed + * @return Google_HttpRequest http request with the response http code, + * response headers and response body filled in + * @throws Google_IO_Exception on curl or IO error + */ + public function executeRequest(Google_Http_Request $request) { + $default_options = stream_context_get_options(stream_context_get_default()); - if ($request->canGzip()) { - $url = self::ZLIB . $url; + $requestHttpContext = array_key_exists('http', $default_options) ? + $default_options['http'] : array(); + + if ($request->getPostBody()) { + $requestHttpContext["content"] = $request->getPostBody(); + } + + $requestHeaders = $request->getRequestHeaders(); + if ($requestHeaders && is_array($requestHeaders)) { + $headers = ""; + foreach ($requestHeaders as $k => $v) { + $headers .= "$k: $v\r\n"; + } + $requestHttpContext["header"] = $headers; + } + + $requestHttpContext["method"] = $request->getRequestMethod(); + $requestHttpContext["user_agent"] = $request->getUserAgent(); + + $requestSslContext = array_key_exists('ssl', $default_options) ? + $default_options['ssl'] : array(); + + if (!array_key_exists("cafile", $requestSslContext)) { + $requestSslContext["cafile"] = dirname(__FILE__) . '/cacerts.pem'; + } + + $options = array( + "http" => array_merge( + self::$DEFAULT_HTTP_CONTEXT, + $requestHttpContext + ), + "ssl" => array_merge( + self::$DEFAULT_SSL_CONTEXT, + $requestSslContext + ) + ); + + $context = stream_context_create($options); + + $url = $request->getUrl(); + + if ($request->canGzip()) { + $url = self::ZLIB . $url; + } + + // We are trapping any thrown errors in this method only and + // throwing an exception. + $this->trappedErrorNumber = null; + $this->trappedErrorString = null; + + // START - error trap. + set_error_handler(array($this, 'trapError')); + $fh = fopen($url, 'r', false, $context); + restore_error_handler(); + // END - error trap. + + if ($this->trappedErrorNumber) { + throw new Google_IO_Exception( + sprintf( + "HTTP Error: Unable to connect: '%s'", + $this->trappedErrorString + ), + $this->trappedErrorNumber + ); + } + + $response_data = false; + $respHttpCode = self::UNKNOWN_CODE; + if ($fh) { + if (isset($this->options[self::TIMEOUT])) { + stream_set_timeout($fh, $this->options[self::TIMEOUT]); + } + + $response_data = stream_get_contents($fh); + fclose($fh); + + $respHttpCode = $this->getHttpResponseCode($http_response_header); + } + + if (false === $response_data) { + throw new Google_IO_Exception( + sprintf( + "HTTP Error: Unable to connect: '%s'", + $respHttpCode + ), + $respHttpCode + ); + } + + $responseHeaders = $this->getHttpResponseHeaders($http_response_header); + + return array($response_data, $responseHeaders, $respHttpCode); } - // We are trapping any thrown errors in this method only and - // throwing an exception. - $this->trappedErrorNumber = null; - $this->trappedErrorString = null; - - // START - error trap. - set_error_handler(array($this, 'trapError')); - $fh = fopen($url, 'r', false, $context); - restore_error_handler(); - // END - error trap. - - if ($this->trappedErrorNumber) { - throw new Google_IO_Exception( - sprintf( - "HTTP Error: Unable to connect: '%s'", - $this->trappedErrorString - ), - $this->trappedErrorNumber - ); + /** + * Set options that update the transport implementation's behavior. + * @param $options + */ + public function setOptions($options) { + $this->options = $options + $this->options; } - $response_data = false; - $respHttpCode = self::UNKNOWN_CODE; - if ($fh) { - if (isset($this->options[self::TIMEOUT])) { - stream_set_timeout($fh, $this->options[self::TIMEOUT]); - } - - $response_data = stream_get_contents($fh); - fclose($fh); - - $respHttpCode = $this->getHttpResponseCode($http_response_header); + /** + * Method to handle errors, used for error handling around + * stream connection methods. + */ + public function trapError($errno, $errstr) { + $this->trappedErrorNumber = $errno; + $this->trappedErrorString = $errstr; } - if (false === $response_data) { - throw new Google_IO_Exception( - sprintf( - "HTTP Error: Unable to connect: '%s'", - $respHttpCode - ), - $respHttpCode - ); + /** + * Set the maximum request time in seconds. + * @param $timeout in seconds + */ + public function setTimeout($timeout) { + $this->options[self::TIMEOUT] = $timeout; } - $responseHeaders = $this->getHttpResponseHeaders($http_response_header); - - return array($response_data, $responseHeaders, $respHttpCode); - } - - /** - * Set options that update the transport implementation's behavior. - * @param $options - */ - public function setOptions($options) - { - $this->options = $options + $this->options; - } - - /** - * Method to handle errors, used for error handling around - * stream connection methods. - */ - public function trapError($errno, $errstr) - { - $this->trappedErrorNumber = $errno; - $this->trappedErrorString = $errstr; - } - - /** - * Set the maximum request time in seconds. - * @param $timeout in seconds - */ - public function setTimeout($timeout) - { - $this->options[self::TIMEOUT] = $timeout; - } - - /** - * Get the maximum request time in seconds. - * @return timeout in seconds - */ - public function getTimeout() - { - return $this->options[self::TIMEOUT]; - } - - /** - * Test for the presence of a cURL header processing bug - * - * {@inheritDoc} - * - * @return boolean - */ - protected function needsQuirk() - { - return false; - } - - protected function getHttpResponseCode($response_headers) - { - $header_count = count($response_headers); - - for ($i = 0; $i < $header_count; $i++) { - $header = $response_headers[$i]; - if (strncasecmp("HTTP", $header, strlen("HTTP")) == 0) { - $response = explode(' ', $header); - return $response[1]; - } + /** + * Get the maximum request time in seconds. + * @return timeout in seconds + */ + public function getTimeout() { + return $this->options[self::TIMEOUT]; + } + + /** + * Test for the presence of a cURL header processing bug + * + * {@inheritDoc} + * + * @return boolean + */ + protected function needsQuirk() { + return false; + } + + protected function getHttpResponseCode($response_headers) { + $header_count = count($response_headers); + + for ($i = 0; $i < $header_count; $i++) { + $header = $response_headers[$i]; + if (strncasecmp("HTTP", $header, strlen("HTTP")) == 0) { + $response = explode(' ', $header); + return $response[1]; + } + } + return self::UNKNOWN_CODE; } - return self::UNKNOWN_CODE; - } } diff --git a/oauth/Google/Model.php b/oauth/Google/Model.php index 34904ab..e4cd228 100644 --- a/oauth/Google/Model.php +++ b/oauth/Google/Model.php @@ -23,228 +23,211 @@ * @author Chirag Shah * */ -class Google_Model implements ArrayAccess -{ - protected $modelData = array(); - protected $processed = array(); +class Google_Model implements ArrayAccess { + protected $modelData = array(); + protected $processed = array(); - /** - * Polymorphic - accepts a variable number of arguments dependent - * on the type of the model subclass. - */ - public function __construct() - { - if (func_num_args() == 1 && is_array(func_get_arg(0))) { - // Initialize the model with the array's contents. - $array = func_get_arg(0); - $this->mapTypes($array); + /** + * Polymorphic - accepts a variable number of arguments dependent + * on the type of the model subclass. + */ + public function __construct() { + if (func_num_args() == 1 && is_array(func_get_arg(0))) { + // Initialize the model with the array's contents. + $array = func_get_arg(0); + $this->mapTypes($array); + } } - } - public function __get($key) - { - $keyTypeName = $this->keyType($key); - $keyDataType = $this->dataType($key); - if (isset($this->$keyTypeName) && !isset($this->processed[$key])) { - if (isset($this->modelData[$key])) { - $val = $this->modelData[$key]; - } else if (isset($this->$keyDataType) && - ($this->$keyDataType == 'array' || $this->$keyDataType == 'map')) { - $val = array(); - } else { - $val = null; - } + public function __get($key) { + $keyTypeName = $this->keyType($key); + $keyDataType = $this->dataType($key); + if (isset($this->$keyTypeName) && !isset($this->processed[$key])) { + if (isset($this->modelData[$key])) { + $val = $this->modelData[$key]; + } elseif (isset($this->$keyDataType) && + ($this->$keyDataType == 'array' || $this->$keyDataType == 'map')) { + $val = array(); + } else { + $val = null; + } - if ($this->isAssociativeArray($val)) { - if (isset($this->$keyDataType) && 'map' == $this->$keyDataType) { - foreach ($val as $arrayKey => $arrayItem) { - $this->modelData[$key][$arrayKey] = - $this->createObjectFromName($keyTypeName, $arrayItem); - } + if ($this->isAssociativeArray($val)) { + if (isset($this->$keyDataType) && 'map' == $this->$keyDataType) { + foreach ($val as $arrayKey => $arrayItem) { + $this->modelData[$key][$arrayKey] = + $this->createObjectFromName($keyTypeName, $arrayItem); + } + } else { + $this->modelData[$key] = $this->createObjectFromName($keyTypeName, $val); + } + } elseif (is_array($val)) { + $arrayObject = array(); + foreach ($val as $arrayIndex => $arrayItem) { + $arrayObject[$arrayIndex] = + $this->createObjectFromName($keyTypeName, $arrayItem); + } + $this->modelData[$key] = $arrayObject; + } + $this->processed[$key] = true; + } + + return $this->modelData[$key]; + } + + /** + * Initialize this object's properties from an array. + * + * @param array $array Used to seed this object's properties. + * @return void + */ + protected function mapTypes($array) { + // Hard initilise simple types, lazy load more complex ones. + foreach ($array as $key => $val) { + if (!property_exists($this, $this->keyType($key)) && + property_exists($this, $key)) { + $this->$key = $val; + unset($array[$key]); + } elseif (property_exists($this, $camelKey = Google_Utils::camelCase($key))) { + // This checks if property exists as camelCase, leaving it in array as snake_case + // in case of backwards compatibility issues. + $this->$camelKey = $val; + } + } + $this->modelData = $array; + } + + /** + * Create a simplified object suitable for straightforward + * conversion to JSON. This is relatively expensive + * due to the usage of reflection, but shouldn't be called + * a whole lot, and is the most straightforward way to filter. + */ + public function toSimpleObject() { + $object = new stdClass(); + + // Process all other data. + foreach ($this->modelData as $key => $val) { + $result = $this->getSimpleValue($val); + if ($result !== null) { + $object->$key = $result; + } + } + + // Process all public properties. + $reflect = new ReflectionObject($this); + $props = $reflect->getProperties(ReflectionProperty::IS_PUBLIC); + foreach ($props as $member) { + $name = $member->getName(); + $result = $this->getSimpleValue($this->$name); + if ($result !== null) { + $object->$name = $result; + } + } + + return $object; + } + + /** + * Handle different types of values, primarily + * other objects and map and array data types. + */ + private function getSimpleValue($value) { + if ($value instanceof Google_Model) { + return $value->toSimpleObject(); + } elseif (is_array($value)) { + $return = array(); + foreach ($value as $key => $a_value) { + $a_value = $this->getSimpleValue($a_value); + if ($a_value !== null) { + $return[$key] = $a_value; + } + } + return $return; + } + return $value; + } + + /** + * Returns true only if the array is associative. + * @param array $array + * @return bool True if the array is associative. + */ + protected function isAssociativeArray($array) { + if (!is_array($array)) { + return false; + } + $keys = array_keys($array); + foreach ($keys as $key) { + if (is_string($key)) { + return true; + } + } + return false; + } + + /** + * Given a variable name, discover its type. + * + * @param $name + * @param $item + * @return object The object from the item. + */ + private function createObjectFromName($name, $item) { + $type = $this->$name; + return new $type($item); + } + + /** + * Verify if $obj is an array. + * @throws Google_Exception Thrown if $obj isn't an array. + * @param array $obj Items that should be validated. + * @param string $method Method expecting an array as an argument. + */ + public function assertIsArray($obj, $method) { + if ($obj && !is_array($obj)) { + throw new Google_Exception( + "Incorrect parameter type passed to $method(). Expected an array." + ); + } + } + + public function offsetExists($offset) { + return isset($this->$offset) || isset($this->modelData[$offset]); + } + + public function offsetGet($offset) { + return isset($this->$offset) ? + $this->$offset : + $this->__get($offset); + } + + public function offsetSet($offset, $value) { + if (property_exists($this, $offset)) { + $this->$offset = $value; } else { - $this->modelData[$key] = $this->createObjectFromName($keyTypeName, $val); + $this->modelData[$offset] = $value; + $this->processed[$offset] = true; } - } else if (is_array($val)) { - $arrayObject = array(); - foreach ($val as $arrayIndex => $arrayItem) { - $arrayObject[$arrayIndex] = - $this->createObjectFromName($keyTypeName, $arrayItem); - } - $this->modelData[$key] = $arrayObject; - } - $this->processed[$key] = true; } - return $this->modelData[$key]; - } - - /** - * Initialize this object's properties from an array. - * - * @param array $array Used to seed this object's properties. - * @return void - */ - protected function mapTypes($array) - { - // Hard initilise simple types, lazy load more complex ones. - foreach ($array as $key => $val) { - if ( !property_exists($this, $this->keyType($key)) && - property_exists($this, $key)) { - $this->$key = $val; - unset($array[$key]); - } elseif (property_exists($this, $camelKey = Google_Utils::camelCase($key))) { - // This checks if property exists as camelCase, leaving it in array as snake_case - // in case of backwards compatibility issues. - $this->$camelKey = $val; - } - } - $this->modelData = $array; - } - - /** - * Create a simplified object suitable for straightforward - * conversion to JSON. This is relatively expensive - * due to the usage of reflection, but shouldn't be called - * a whole lot, and is the most straightforward way to filter. - */ - public function toSimpleObject() - { - $object = new stdClass(); - - // Process all other data. - foreach ($this->modelData as $key => $val) { - $result = $this->getSimpleValue($val); - if ($result !== null) { - $object->$key = $result; - } + public function offsetUnset($offset) { + unset($this->modelData[$offset]); } - // Process all public properties. - $reflect = new ReflectionObject($this); - $props = $reflect->getProperties(ReflectionProperty::IS_PUBLIC); - foreach ($props as $member) { - $name = $member->getName(); - $result = $this->getSimpleValue($this->$name); - if ($result !== null) { - $object->$name = $result; - } + protected function keyType($key) { + return $key . "Type"; } - return $object; - } - - /** - * Handle different types of values, primarily - * other objects and map and array data types. - */ - private function getSimpleValue($value) - { - if ($value instanceof Google_Model) { - return $value->toSimpleObject(); - } else if (is_array($value)) { - $return = array(); - foreach ($value as $key => $a_value) { - $a_value = $this->getSimpleValue($a_value); - if ($a_value !== null) { - $return[$key] = $a_value; - } - } - return $return; + protected function dataType($key) { + return $key . "DataType"; } - return $value; - } - /** - * Returns true only if the array is associative. - * @param array $array - * @return bool True if the array is associative. - */ - protected function isAssociativeArray($array) - { - if (!is_array($array)) { - return false; + public function __isset($key) { + return isset($this->modelData[$key]); } - $keys = array_keys($array); - foreach ($keys as $key) { - if (is_string($key)) { - return true; - } + + public function __unset($key) { + unset($this->modelData[$key]); } - return false; - } - - /** - * Given a variable name, discover its type. - * - * @param $name - * @param $item - * @return object The object from the item. - */ - private function createObjectFromName($name, $item) - { - $type = $this->$name; - return new $type($item); - } - - /** - * Verify if $obj is an array. - * @throws Google_Exception Thrown if $obj isn't an array. - * @param array $obj Items that should be validated. - * @param string $method Method expecting an array as an argument. - */ - public function assertIsArray($obj, $method) - { - if ($obj && !is_array($obj)) { - throw new Google_Exception( - "Incorrect parameter type passed to $method(). Expected an array." - ); - } - } - - public function offsetExists($offset) - { - return isset($this->$offset) || isset($this->modelData[$offset]); - } - - public function offsetGet($offset) - { - return isset($this->$offset) ? - $this->$offset : - $this->__get($offset); - } - - public function offsetSet($offset, $value) - { - if (property_exists($this, $offset)) { - $this->$offset = $value; - } else { - $this->modelData[$offset] = $value; - $this->processed[$offset] = true; - } - } - - public function offsetUnset($offset) - { - unset($this->modelData[$offset]); - } - - protected function keyType($key) - { - return $key . "Type"; - } - - protected function dataType($key) - { - return $key . "DataType"; - } - - public function __isset($key) - { - return isset($this->modelData[$key]); - } - - public function __unset($key) - { - unset($this->modelData[$key]); - } } diff --git a/oauth/Google/Service.php b/oauth/Google/Service.php index 2e0b6c5..65d670f 100644 --- a/oauth/Google/Service.php +++ b/oauth/Google/Service.php @@ -15,25 +15,22 @@ * limitations under the License. */ -class Google_Service -{ - public $version; - public $servicePath; - public $availableScopes; - public $resource; - private $client; +class Google_Service { + public $version; + public $servicePath; + public $availableScopes; + public $resource; + private $client; - public function __construct(Google_Client $client) - { - $this->client = $client; - } + public function __construct(Google_Client $client) { + $this->client = $client; + } - /** - * Return the associated Google_Client class. - * @return Google_Client - */ - public function getClient() - { - return $this->client; - } + /** + * Return the associated Google_Client class. + * @return Google_Client + */ + public function getClient() { + return $this->client; + } } diff --git a/oauth/Google/Service/AdExchangeBuyer.php b/oauth/Google/Service/AdExchangeBuyer.php index 533b9b2..8ce9786 100644 --- a/oauth/Google/Service/AdExchangeBuyer.php +++ b/oauth/Google/Service/AdExchangeBuyer.php @@ -29,308 +29,306 @@ * * @author Google, Inc. */ -class Google_Service_AdExchangeBuyer extends Google_Service -{ - /** Manage your Ad Exchange buyer account configuration. */ - const ADEXCHANGE_BUYER = "https://www.googleapis.com/auth/adexchange.buyer"; +class Google_Service_AdExchangeBuyer extends Google_Service { + /** Manage your Ad Exchange buyer account configuration. */ + const ADEXCHANGE_BUYER = "https://www.googleapis.com/auth/adexchange.buyer"; - public $accounts; - public $billingInfo; - public $creatives; - public $directDeals; - public $performanceReport; - public $pretargetingConfig; - + public $accounts; + public $billingInfo; + public $creatives; + public $directDeals; + public $performanceReport; + public $pretargetingConfig; - /** - * Constructs the internal representation of the AdExchangeBuyer service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'adexchangebuyer/v1.3/'; - $this->version = 'v1.3'; - $this->serviceName = 'adexchangebuyer'; - $this->accounts = new Google_Service_AdExchangeBuyer_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'accounts/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->billingInfo = new Google_Service_AdExchangeBuyer_BillingInfo_Resource( - $this, - $this->serviceName, - 'billingInfo', - array( - 'methods' => array( - 'get' => array( - 'path' => 'billinginfo/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'billinginfo', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource( - $this, - $this->serviceName, - 'creatives', - array( - 'methods' => array( - 'get' => array( - 'path' => 'creatives/{accountId}/{buyerCreativeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'buyerCreativeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'creatives', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'creatives', - 'httpMethod' => 'GET', - 'parameters' => array( - 'statusFilter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'buyerCreativeId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'accountId' => array( - 'location' => 'query', - 'type' => 'integer', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->directDeals = new Google_Service_AdExchangeBuyer_DirectDeals_Resource( - $this, - $this->serviceName, - 'directDeals', - array( - 'methods' => array( - 'get' => array( - 'path' => 'directdeals/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'directdeals', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->performanceReport = new Google_Service_AdExchangeBuyer_PerformanceReport_Resource( - $this, - $this->serviceName, - 'performanceReport', - array( - 'methods' => array( - 'list' => array( - 'path' => 'performancereport', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDateTime' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'startDateTime' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->pretargetingConfig = new Google_Service_AdExchangeBuyer_PretargetingConfig_Resource( - $this, - $this->serviceName, - 'pretargetingConfig', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'configId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'configId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'pretargetingconfigs/{accountId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'pretargetingconfigs/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'configId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'pretargetingconfigs/{accountId}/{configId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'configId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the AdExchangeBuyer service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'adexchangebuyer/v1.3/'; + $this->version = 'v1.3'; + $this->serviceName = 'adexchangebuyer'; + + $this->accounts = new Google_Service_AdExchangeBuyer_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'accounts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'accounts', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), 'patch' => array( + 'path' => 'accounts/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'accounts/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->billingInfo = new Google_Service_AdExchangeBuyer_BillingInfo_Resource( + $this, + $this->serviceName, + 'billingInfo', + array( + 'methods' => array( + 'get' => array( + 'path' => 'billinginfo/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'billinginfo', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource( + $this, + $this->serviceName, + 'creatives', + array( + 'methods' => array( + 'get' => array( + 'path' => 'creatives/{accountId}/{buyerCreativeId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'buyerCreativeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'creatives', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'list' => array( + 'path' => 'creatives', + 'httpMethod' => 'GET', + 'parameters' => array( + 'statusFilter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'buyerCreativeId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'accountId' => array( + 'location' => 'query', + 'type' => 'integer', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->directDeals = new Google_Service_AdExchangeBuyer_DirectDeals_Resource( + $this, + $this->serviceName, + 'directDeals', + array( + 'methods' => array( + 'get' => array( + 'path' => 'directdeals/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'directdeals', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->performanceReport = new Google_Service_AdExchangeBuyer_PerformanceReport_Resource( + $this, + $this->serviceName, + 'performanceReport', + array( + 'methods' => array( + 'list' => array( + 'path' => 'performancereport', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'endDateTime' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'startDateTime' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->pretargetingConfig = new Google_Service_AdExchangeBuyer_PretargetingConfig_Resource( + $this, + $this->serviceName, + 'pretargetingConfig', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'pretargetingconfigs/{accountId}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'pretargetingconfigs/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'pretargetingconfigs/{accountId}/{configId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'configId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -342,66 +340,64 @@ class Google_Service_AdExchangeBuyer extends Google_Service * $accounts = $adexchangebuyerService->accounts; *
    */ -class Google_Service_AdExchangeBuyer_Accounts_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeBuyer_Accounts_Resource extends Google_Service_Resource { - /** - * Gets one account by ID. (accounts.get) - * - * @param int $id - * The account id - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Account - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Account"); - } - /** - * Retrieves the authenticated user's list of accounts. (accounts.listAccounts) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_AccountsList - */ - public function listAccounts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_AccountsList"); - } - /** - * Updates an existing account. This method supports patch semantics. - * (accounts.patch) - * - * @param int $id - * The account id - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Account - */ - public function patch($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Account"); - } - /** - * Updates an existing account. (accounts.update) - * - * @param int $id - * The account id - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Account - */ - public function update($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Account"); - } + /** + * Gets one account by ID. (accounts.get) + * + * @param int $id + * The account id + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Account + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Account"); + } + + /** + * Retrieves the authenticated user's list of accounts. (accounts.listAccounts) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_AccountsList + */ + public function listAccounts($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_AccountsList"); + } + + /** + * Updates an existing account. This method supports patch semantics. + * (accounts.patch) + * + * @param int $id + * The account id + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Account + */ + public function patch($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Account"); + } + + /** + * Updates an existing account. (accounts.update) + * + * @param int $id + * The account id + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Account + */ + public function update($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Account"); + } } /** @@ -412,37 +408,35 @@ class Google_Service_AdExchangeBuyer_Accounts_Resource extends Google_Service_Re * $billingInfo = $adexchangebuyerService->billingInfo; *
    */ -class Google_Service_AdExchangeBuyer_BillingInfo_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeBuyer_BillingInfo_Resource extends Google_Service_Resource { - /** - * Returns the billing information for one account specified by account ID. - * (billingInfo.get) - * - * @param int $accountId - * The account id. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_BillingInfo - */ - public function get($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_BillingInfo"); - } - /** - * Retrieves a list of billing information for all accounts of the authenticated - * user. (billingInfo.listBillingInfo) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_BillingInfoList - */ - public function listBillingInfo($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_BillingInfoList"); - } + /** + * Returns the billing information for one account specified by account ID. + * (billingInfo.get) + * + * @param int $accountId + * The account id. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_BillingInfo + */ + public function get($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_BillingInfo"); + } + + /** + * Retrieves a list of billing information for all accounts of the authenticated + * user. (billingInfo.listBillingInfo) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_BillingInfoList + */ + public function listBillingInfo($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_BillingInfoList"); + } } /** @@ -453,64 +447,62 @@ class Google_Service_AdExchangeBuyer_BillingInfo_Resource extends Google_Service * $creatives = $adexchangebuyerService->creatives; * */ -class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_Resource { - /** - * Gets the status for a single creative. A creative will be available 30-40 - * minutes after submission. (creatives.get) - * - * @param int $accountId - * The id for the account that will serve this creative. - * @param string $buyerCreativeId - * The buyer-specific id for this creative. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Creative - */ - public function get($accountId, $buyerCreativeId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Creative"); - } - /** - * Submit a new creative. (creatives.insert) - * - * @param Google_Creative $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_Creative - */ - public function insert(Google_Service_AdExchangeBuyer_Creative $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_Creative"); - } - /** - * Retrieves a list of the authenticated user's active creatives. A creative - * will be available 30-40 minutes after submission. (creatives.listCreatives) - * - * @param array $optParams Optional parameters. - * - * @opt_param string statusFilter - * When specified, only creatives having the given status are returned. - * @opt_param string pageToken - * A continuation token, used to page through ad clients. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. Optional. - * @opt_param string maxResults - * Maximum number of entries returned on one result page. If not set, the default is 100. Optional. - * @opt_param string buyerCreativeId - * When specified, only creatives for the given buyer creative ids are returned. - * @opt_param int accountId - * When specified, only creatives for the given account ids are returned. - * @return Google_Service_AdExchangeBuyer_CreativesList - */ - public function listCreatives($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_CreativesList"); - } + /** + * Gets the status for a single creative. A creative will be available 30-40 + * minutes after submission. (creatives.get) + * + * @param int $accountId + * The id for the account that will serve this creative. + * @param string $buyerCreativeId + * The buyer-specific id for this creative. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Creative + */ + public function get($accountId, $buyerCreativeId, $optParams = array()) { + $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Creative"); + } + + /** + * Submit a new creative. (creatives.insert) + * + * @param Google_Creative $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Creative + */ + public function insert(Google_Service_AdExchangeBuyer_Creative $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_Creative"); + } + + /** + * Retrieves a list of the authenticated user's active creatives. A creative + * will be available 30-40 minutes after submission. (creatives.listCreatives) + * + * @param array $optParams Optional parameters. + * + * @opt_param string statusFilter + * When specified, only creatives having the given status are returned. + * @opt_param string pageToken + * A continuation token, used to page through ad clients. To retrieve the next page, set this + * parameter to the value of "nextPageToken" from the previous response. Optional. + * @opt_param string maxResults + * Maximum number of entries returned on one result page. If not set, the default is 100. Optional. + * @opt_param string buyerCreativeId + * When specified, only creatives for the given buyer creative ids are returned. + * @opt_param int accountId + * When specified, only creatives for the given account ids are returned. + * @return Google_Service_AdExchangeBuyer_CreativesList + */ + public function listCreatives($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_CreativesList"); + } } /** @@ -521,36 +513,34 @@ class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_R * $directDeals = $adexchangebuyerService->directDeals; * */ -class Google_Service_AdExchangeBuyer_DirectDeals_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeBuyer_DirectDeals_Resource extends Google_Service_Resource { - /** - * Gets one direct deal by ID. (directDeals.get) - * - * @param string $id - * The direct deal id - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_DirectDeal - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_DirectDeal"); - } - /** - * Retrieves the authenticated user's list of direct deals. - * (directDeals.listDirectDeals) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_DirectDealsList - */ - public function listDirectDeals($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_DirectDealsList"); - } + /** + * Gets one direct deal by ID. (directDeals.get) + * + * @param string $id + * The direct deal id + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_DirectDeal + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_DirectDeal"); + } + + /** + * Retrieves the authenticated user's list of direct deals. + * (directDeals.listDirectDeals) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_DirectDealsList + */ + public function listDirectDeals($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_DirectDealsList"); + } } /** @@ -561,34 +551,32 @@ class Google_Service_AdExchangeBuyer_DirectDeals_Resource extends Google_Service * $performanceReport = $adexchangebuyerService->performanceReport; * */ -class Google_Service_AdExchangeBuyer_PerformanceReport_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeBuyer_PerformanceReport_Resource extends Google_Service_Resource { - /** - * Retrieves the authenticated user's list of performance metrics. - * (performanceReport.listPerformanceReport) - * - * @param string $accountId - * The account id to get the reports. - * @param string $endDateTime - * The end time of the report in ISO 8601 timestamp format using UTC. - * @param string $startDateTime - * The start time of the report in ISO 8601 timestamp format using UTC. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token, used to page through performance reports. To retrieve the next page, set - * this parameter to the value of "nextPageToken" from the previous response. Optional. - * @opt_param string maxResults - * Maximum number of entries returned on one result page. If not set, the default is 100. Optional. - * @return Google_Service_AdExchangeBuyer_PerformanceReportList - */ - public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array()) - { - $params = array('accountId' => $accountId, 'endDateTime' => $endDateTime, 'startDateTime' => $startDateTime); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PerformanceReportList"); - } + /** + * Retrieves the authenticated user's list of performance metrics. + * (performanceReport.listPerformanceReport) + * + * @param string $accountId + * The account id to get the reports. + * @param string $endDateTime + * The end time of the report in ISO 8601 timestamp format using UTC. + * @param string $startDateTime + * The start time of the report in ISO 8601 timestamp format using UTC. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token, used to page through performance reports. To retrieve the next page, set + * this parameter to the value of "nextPageToken" from the previous response. Optional. + * @opt_param string maxResults + * Maximum number of entries returned on one result page. If not set, the default is 100. Optional. + * @return Google_Service_AdExchangeBuyer_PerformanceReportList + */ + public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array()) { + $params = array('accountId' => $accountId, 'endDateTime' => $endDateTime, 'startDateTime' => $startDateTime); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PerformanceReportList"); + } } /** @@ -599,1399 +587,1157 @@ class Google_Service_AdExchangeBuyer_PerformanceReport_Resource extends Google_S * $pretargetingConfig = $adexchangebuyerService->pretargetingConfig; * */ -class Google_Service_AdExchangeBuyer_PretargetingConfig_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeBuyer_PretargetingConfig_Resource extends Google_Service_Resource { - /** - * Deletes an existing pretargeting config. (pretargetingConfig.delete) - * - * @param string $accountId - * The account id to delete the pretargeting config for. - * @param string $configId - * The specific id of the configuration to delete. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $configId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'configId' => $configId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a specific pretargeting configuration (pretargetingConfig.get) - * - * @param string $accountId - * The account id to get the pretargeting config for. - * @param string $configId - * The specific id of the configuration to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig - */ - public function get($accountId, $configId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'configId' => $configId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); - } - /** - * Inserts a new pretargeting configuration. (pretargetingConfig.insert) - * - * @param string $accountId - * The account id to insert the pretargeting config for. - * @param Google_PretargetingConfig $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig - */ - public function insert($accountId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); - } - /** - * Retrieves a list of the authenticated user's pretargeting configurations. - * (pretargetingConfig.listPretargetingConfig) - * - * @param string $accountId - * The account id to get the pretargeting configs for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfigList - */ - public function listPretargetingConfig($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfigList"); - } - /** - * Updates an existing pretargeting config. This method supports patch - * semantics. (pretargetingConfig.patch) - * - * @param string $accountId - * The account id to update the pretargeting config for. - * @param string $configId - * The specific id of the configuration to update. - * @param Google_PretargetingConfig $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig - */ - public function patch($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); - } - /** - * Updates an existing pretargeting config. (pretargetingConfig.update) - * - * @param string $accountId - * The account id to update the pretargeting config for. - * @param string $configId - * The specific id of the configuration to update. - * @param Google_PretargetingConfig $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeBuyer_PretargetingConfig - */ - public function update($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); - } + /** + * Deletes an existing pretargeting config. (pretargetingConfig.delete) + * + * @param string $accountId + * The account id to delete the pretargeting config for. + * @param string $configId + * The specific id of the configuration to delete. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $configId, $optParams = array()) { + $params = array('accountId' => $accountId, 'configId' => $configId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a specific pretargeting configuration (pretargetingConfig.get) + * + * @param string $accountId + * The account id to get the pretargeting config for. + * @param string $configId + * The specific id of the configuration to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_PretargetingConfig + */ + public function get($accountId, $configId, $optParams = array()) { + $params = array('accountId' => $accountId, 'configId' => $configId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + } + + /** + * Inserts a new pretargeting configuration. (pretargetingConfig.insert) + * + * @param string $accountId + * The account id to insert the pretargeting config for. + * @param Google_PretargetingConfig $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_PretargetingConfig + */ + public function insert($accountId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + } + + /** + * Retrieves a list of the authenticated user's pretargeting configurations. + * (pretargetingConfig.listPretargetingConfig) + * + * @param string $accountId + * The account id to get the pretargeting configs for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_PretargetingConfigList + */ + public function listPretargetingConfig($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfigList"); + } + + /** + * Updates an existing pretargeting config. This method supports patch + * semantics. (pretargetingConfig.patch) + * + * @param string $accountId + * The account id to update the pretargeting config for. + * @param string $configId + * The specific id of the configuration to update. + * @param Google_PretargetingConfig $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_PretargetingConfig + */ + public function patch($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + } + + /** + * Updates an existing pretargeting config. (pretargetingConfig.update) + * + * @param string $accountId + * The account id to update the pretargeting config for. + * @param string $configId + * The specific id of the configuration to update. + * @param Google_PretargetingConfig $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_PretargetingConfig + */ + public function update($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig"); + } } +class Google_Service_AdExchangeBuyer_Account extends Google_Collection { + protected $bidderLocationType = 'Google_Service_AdExchangeBuyer_AccountBidderLocation'; + protected $bidderLocationDataType = 'array'; + public $cookieMatchingNid; + public $cookieMatchingUrl; + public $id; + public $kind; + public $maximumTotalQps; + public function setBidderLocation($bidderLocation) { + $this->bidderLocation = $bidderLocation; + } -class Google_Service_AdExchangeBuyer_Account extends Google_Collection -{ - protected $bidderLocationType = 'Google_Service_AdExchangeBuyer_AccountBidderLocation'; - protected $bidderLocationDataType = 'array'; - public $cookieMatchingNid; - public $cookieMatchingUrl; - public $id; - public $kind; - public $maximumTotalQps; + public function getBidderLocation() { + return $this->bidderLocation; + } - public function setBidderLocation($bidderLocation) - { - $this->bidderLocation = $bidderLocation; - } + public function setCookieMatchingNid($cookieMatchingNid) { + $this->cookieMatchingNid = $cookieMatchingNid; + } - public function getBidderLocation() - { - return $this->bidderLocation; - } + public function getCookieMatchingNid() { + return $this->cookieMatchingNid; + } - public function setCookieMatchingNid($cookieMatchingNid) - { - $this->cookieMatchingNid = $cookieMatchingNid; - } + public function setCookieMatchingUrl($cookieMatchingUrl) { + $this->cookieMatchingUrl = $cookieMatchingUrl; + } - public function getCookieMatchingNid() - { - return $this->cookieMatchingNid; - } + public function getCookieMatchingUrl() { + return $this->cookieMatchingUrl; + } - public function setCookieMatchingUrl($cookieMatchingUrl) - { - $this->cookieMatchingUrl = $cookieMatchingUrl; - } + public function setId($id) { + $this->id = $id; + } - public function getCookieMatchingUrl() - { - return $this->cookieMatchingUrl; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setMaximumTotalQps($maximumTotalQps) { + $this->maximumTotalQps = $maximumTotalQps; + } - public function getKind() - { - return $this->kind; - } - - public function setMaximumTotalQps($maximumTotalQps) - { - $this->maximumTotalQps = $maximumTotalQps; - } - - public function getMaximumTotalQps() - { - return $this->maximumTotalQps; - } + public function getMaximumTotalQps() { + return $this->maximumTotalQps; + } } -class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model -{ - public $maximumQps; - public $region; - public $url; +class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model { + public $maximumQps; + public $region; + public $url; - public function setMaximumQps($maximumQps) - { - $this->maximumQps = $maximumQps; - } + public function setMaximumQps($maximumQps) { + $this->maximumQps = $maximumQps; + } - public function getMaximumQps() - { - return $this->maximumQps; - } + public function getMaximumQps() { + return $this->maximumQps; + } - public function setRegion($region) - { - $this->region = $region; - } + public function setRegion($region) { + $this->region = $region; + } - public function getRegion() - { - return $this->region; - } + public function getRegion() { + return $this->region; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_AdExchangeBuyer_AccountsList extends Google_Collection -{ - protected $itemsType = 'Google_Service_AdExchangeBuyer_Account'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_AdExchangeBuyer_AccountsList extends Google_Collection { + protected $itemsType = 'Google_Service_AdExchangeBuyer_Account'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection -{ - public $accountId; - public $accountName; - public $billingId; - public $kind; +class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection { + public $accountId; + public $accountName; + public $billingId; + public $kind; - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } + public function setAccountId($accountId) { + $this->accountId = $accountId; + } - public function getAccountId() - { - return $this->accountId; - } + public function getAccountId() { + return $this->accountId; + } - public function setAccountName($accountName) - { - $this->accountName = $accountName; - } + public function setAccountName($accountName) { + $this->accountName = $accountName; + } - public function getAccountName() - { - return $this->accountName; - } + public function getAccountName() { + return $this->accountName; + } - public function setBillingId($billingId) - { - $this->billingId = $billingId; - } + public function setBillingId($billingId) { + $this->billingId = $billingId; + } - public function getBillingId() - { - return $this->billingId; - } + public function getBillingId() { + return $this->billingId; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection -{ - protected $itemsType = 'Google_Service_AdExchangeBuyer_BillingInfo'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection { + protected $itemsType = 'Google_Service_AdExchangeBuyer_BillingInfo'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdExchangeBuyer_Creative extends Google_Collection -{ - public $hTMLSnippet; - public $accountId; - public $advertiserId; - public $advertiserName; - public $agencyId; - public $attribute; - public $buyerCreativeId; - public $clickThroughUrl; - protected $correctionsType = 'Google_Service_AdExchangeBuyer_CreativeCorrections'; - protected $correctionsDataType = 'array'; - protected $disapprovalReasonsType = 'Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons'; - protected $disapprovalReasonsDataType = 'array'; - protected $filteringReasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasons'; - protected $filteringReasonsDataType = ''; - public $height; - public $kind; - public $productCategories; - public $restrictedCategories; - public $sensitiveCategories; - public $status; - public $vendorType; - public $videoURL; - public $width; +class Google_Service_AdExchangeBuyer_Creative extends Google_Collection { + public $hTMLSnippet; + public $accountId; + public $advertiserId; + public $advertiserName; + public $agencyId; + public $attribute; + public $buyerCreativeId; + public $clickThroughUrl; + protected $correctionsType = 'Google_Service_AdExchangeBuyer_CreativeCorrections'; + protected $correctionsDataType = 'array'; + protected $disapprovalReasonsType = 'Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons'; + protected $disapprovalReasonsDataType = 'array'; + protected $filteringReasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasons'; + protected $filteringReasonsDataType = ''; + public $height; + public $kind; + public $productCategories; + public $restrictedCategories; + public $sensitiveCategories; + public $status; + public $vendorType; + public $videoURL; + public $width; - public function setHTMLSnippet($hTMLSnippet) - { - $this->hTMLSnippet = $hTMLSnippet; - } + public function setHTMLSnippet($hTMLSnippet) { + $this->hTMLSnippet = $hTMLSnippet; + } - public function getHTMLSnippet() - { - return $this->hTMLSnippet; - } + public function getHTMLSnippet() { + return $this->hTMLSnippet; + } - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } + public function setAccountId($accountId) { + $this->accountId = $accountId; + } - public function getAccountId() - { - return $this->accountId; - } + public function getAccountId() { + return $this->accountId; + } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } + public function setAdvertiserId($advertiserId) { + $this->advertiserId = $advertiserId; + } - public function getAdvertiserId() - { - return $this->advertiserId; - } + public function getAdvertiserId() { + return $this->advertiserId; + } - public function setAdvertiserName($advertiserName) - { - $this->advertiserName = $advertiserName; - } + public function setAdvertiserName($advertiserName) { + $this->advertiserName = $advertiserName; + } - public function getAdvertiserName() - { - return $this->advertiserName; - } + public function getAdvertiserName() { + return $this->advertiserName; + } - public function setAgencyId($agencyId) - { - $this->agencyId = $agencyId; - } + public function setAgencyId($agencyId) { + $this->agencyId = $agencyId; + } - public function getAgencyId() - { - return $this->agencyId; - } + public function getAgencyId() { + return $this->agencyId; + } - public function setAttribute($attribute) - { - $this->attribute = $attribute; - } + public function setAttribute($attribute) { + $this->attribute = $attribute; + } - public function getAttribute() - { - return $this->attribute; - } + public function getAttribute() { + return $this->attribute; + } - public function setBuyerCreativeId($buyerCreativeId) - { - $this->buyerCreativeId = $buyerCreativeId; - } + public function setBuyerCreativeId($buyerCreativeId) { + $this->buyerCreativeId = $buyerCreativeId; + } - public function getBuyerCreativeId() - { - return $this->buyerCreativeId; - } + public function getBuyerCreativeId() { + return $this->buyerCreativeId; + } - public function setClickThroughUrl($clickThroughUrl) - { - $this->clickThroughUrl = $clickThroughUrl; - } + public function setClickThroughUrl($clickThroughUrl) { + $this->clickThroughUrl = $clickThroughUrl; + } - public function getClickThroughUrl() - { - return $this->clickThroughUrl; - } + public function getClickThroughUrl() { + return $this->clickThroughUrl; + } - public function setCorrections($corrections) - { - $this->corrections = $corrections; - } + public function setCorrections($corrections) { + $this->corrections = $corrections; + } - public function getCorrections() - { - return $this->corrections; - } + public function getCorrections() { + return $this->corrections; + } - public function setDisapprovalReasons($disapprovalReasons) - { - $this->disapprovalReasons = $disapprovalReasons; - } + public function setDisapprovalReasons($disapprovalReasons) { + $this->disapprovalReasons = $disapprovalReasons; + } - public function getDisapprovalReasons() - { - return $this->disapprovalReasons; - } + public function getDisapprovalReasons() { + return $this->disapprovalReasons; + } - public function setFilteringReasons(Google_Service_AdExchangeBuyer_CreativeFilteringReasons $filteringReasons) - { - $this->filteringReasons = $filteringReasons; - } + public function setFilteringReasons(Google_Service_AdExchangeBuyer_CreativeFilteringReasons $filteringReasons) { + $this->filteringReasons = $filteringReasons; + } - public function getFilteringReasons() - { - return $this->filteringReasons; - } + public function getFilteringReasons() { + return $this->filteringReasons; + } - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setProductCategories($productCategories) - { - $this->productCategories = $productCategories; - } + public function setProductCategories($productCategories) { + $this->productCategories = $productCategories; + } - public function getProductCategories() - { - return $this->productCategories; - } + public function getProductCategories() { + return $this->productCategories; + } - public function setRestrictedCategories($restrictedCategories) - { - $this->restrictedCategories = $restrictedCategories; - } + public function setRestrictedCategories($restrictedCategories) { + $this->restrictedCategories = $restrictedCategories; + } - public function getRestrictedCategories() - { - return $this->restrictedCategories; - } + public function getRestrictedCategories() { + return $this->restrictedCategories; + } - public function setSensitiveCategories($sensitiveCategories) - { - $this->sensitiveCategories = $sensitiveCategories; - } + public function setSensitiveCategories($sensitiveCategories) { + $this->sensitiveCategories = $sensitiveCategories; + } - public function getSensitiveCategories() - { - return $this->sensitiveCategories; - } + public function getSensitiveCategories() { + return $this->sensitiveCategories; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setVendorType($vendorType) - { - $this->vendorType = $vendorType; - } + public function setVendorType($vendorType) { + $this->vendorType = $vendorType; + } - public function getVendorType() - { - return $this->vendorType; - } + public function getVendorType() { + return $this->vendorType; + } - public function setVideoURL($videoURL) - { - $this->videoURL = $videoURL; - } + public function setVideoURL($videoURL) { + $this->videoURL = $videoURL; + } - public function getVideoURL() - { - return $this->videoURL; - } + public function getVideoURL() { + return $this->videoURL; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_AdExchangeBuyer_CreativeCorrections extends Google_Collection -{ - public $details; - public $reason; +class Google_Service_AdExchangeBuyer_CreativeCorrections extends Google_Collection { + public $details; + public $reason; - public function setDetails($details) - { - $this->details = $details; - } + public function setDetails($details) { + $this->details = $details; + } - public function getDetails() - { - return $this->details; - } + public function getDetails() { + return $this->details; + } - public function setReason($reason) - { - $this->reason = $reason; - } + public function setReason($reason) { + $this->reason = $reason; + } - public function getReason() - { - return $this->reason; - } + public function getReason() { + return $this->reason; + } } -class Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons extends Google_Collection -{ - public $details; - public $reason; +class Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons extends Google_Collection { + public $details; + public $reason; - public function setDetails($details) - { - $this->details = $details; - } + public function setDetails($details) { + $this->details = $details; + } - public function getDetails() - { - return $this->details; - } + public function getDetails() { + return $this->details; + } - public function setReason($reason) - { - $this->reason = $reason; - } + public function setReason($reason) { + $this->reason = $reason; + } - public function getReason() - { - return $this->reason; - } + public function getReason() { + return $this->reason; + } } -class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Collection -{ - public $date; - protected $reasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons'; - protected $reasonsDataType = 'array'; +class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Collection { + public $date; + protected $reasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons'; + protected $reasonsDataType = 'array'; - public function setDate($date) - { - $this->date = $date; - } + public function setDate($date) { + $this->date = $date; + } - public function getDate() - { - return $this->date; - } + public function getDate() { + return $this->date; + } - public function setReasons($reasons) - { - $this->reasons = $reasons; - } + public function setReasons($reasons) { + $this->reasons = $reasons; + } - public function getReasons() - { - return $this->reasons; - } + public function getReasons() { + return $this->reasons; + } } -class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Google_Model -{ - public $filteringCount; - public $filteringStatus; +class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Google_Model { + public $filteringCount; + public $filteringStatus; - public function setFilteringCount($filteringCount) - { - $this->filteringCount = $filteringCount; - } + public function setFilteringCount($filteringCount) { + $this->filteringCount = $filteringCount; + } - public function getFilteringCount() - { - return $this->filteringCount; - } + public function getFilteringCount() { + return $this->filteringCount; + } - public function setFilteringStatus($filteringStatus) - { - $this->filteringStatus = $filteringStatus; - } + public function setFilteringStatus($filteringStatus) { + $this->filteringStatus = $filteringStatus; + } - public function getFilteringStatus() - { - return $this->filteringStatus; - } + public function getFilteringStatus() { + return $this->filteringStatus; + } } -class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection -{ - protected $itemsType = 'Google_Service_AdExchangeBuyer_Creative'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection { + protected $itemsType = 'Google_Service_AdExchangeBuyer_Creative'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdExchangeBuyer_DirectDeal extends Google_Model -{ - public $accountId; - public $advertiser; - public $currencyCode; - public $endTime; - public $fixedCpm; - public $id; - public $kind; - public $name; - public $privateExchangeMinCpm; - public $sellerNetwork; - public $startTime; +class Google_Service_AdExchangeBuyer_DirectDeal extends Google_Model { + public $accountId; + public $advertiser; + public $currencyCode; + public $endTime; + public $fixedCpm; + public $id; + public $kind; + public $name; + public $privateExchangeMinCpm; + public $sellerNetwork; + public $startTime; - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } + public function setAccountId($accountId) { + $this->accountId = $accountId; + } - public function getAccountId() - { - return $this->accountId; - } + public function getAccountId() { + return $this->accountId; + } - public function setAdvertiser($advertiser) - { - $this->advertiser = $advertiser; - } + public function setAdvertiser($advertiser) { + $this->advertiser = $advertiser; + } - public function getAdvertiser() - { - return $this->advertiser; - } + public function getAdvertiser() { + return $this->advertiser; + } - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } + public function setCurrencyCode($currencyCode) { + $this->currencyCode = $currencyCode; + } - public function getCurrencyCode() - { - return $this->currencyCode; - } + public function getCurrencyCode() { + return $this->currencyCode; + } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } + public function setEndTime($endTime) { + $this->endTime = $endTime; + } - public function getEndTime() - { - return $this->endTime; - } + public function getEndTime() { + return $this->endTime; + } - public function setFixedCpm($fixedCpm) - { - $this->fixedCpm = $fixedCpm; - } + public function setFixedCpm($fixedCpm) { + $this->fixedCpm = $fixedCpm; + } - public function getFixedCpm() - { - return $this->fixedCpm; - } + public function getFixedCpm() { + return $this->fixedCpm; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPrivateExchangeMinCpm($privateExchangeMinCpm) - { - $this->privateExchangeMinCpm = $privateExchangeMinCpm; - } + public function setPrivateExchangeMinCpm($privateExchangeMinCpm) { + $this->privateExchangeMinCpm = $privateExchangeMinCpm; + } - public function getPrivateExchangeMinCpm() - { - return $this->privateExchangeMinCpm; - } + public function getPrivateExchangeMinCpm() { + return $this->privateExchangeMinCpm; + } - public function setSellerNetwork($sellerNetwork) - { - $this->sellerNetwork = $sellerNetwork; - } + public function setSellerNetwork($sellerNetwork) { + $this->sellerNetwork = $sellerNetwork; + } - public function getSellerNetwork() - { - return $this->sellerNetwork; - } + public function getSellerNetwork() { + return $this->sellerNetwork; + } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getStartTime() - { - return $this->startTime; - } + public function getStartTime() { + return $this->startTime; + } } -class Google_Service_AdExchangeBuyer_DirectDealsList extends Google_Collection -{ - protected $directDealsType = 'Google_Service_AdExchangeBuyer_DirectDeal'; - protected $directDealsDataType = 'array'; - public $kind; +class Google_Service_AdExchangeBuyer_DirectDealsList extends Google_Collection { + protected $directDealsType = 'Google_Service_AdExchangeBuyer_DirectDeal'; + protected $directDealsDataType = 'array'; + public $kind; - public function setDirectDeals($directDeals) - { - $this->directDeals = $directDeals; - } + public function setDirectDeals($directDeals) { + $this->directDeals = $directDeals; + } - public function getDirectDeals() - { - return $this->directDeals; - } + public function getDirectDeals() { + return $this->directDeals; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection -{ - public $calloutStatusRate; - public $cookieMatcherStatusRate; - public $creativeStatusRate; - public $hostedMatchStatusRate; - public $kind; - public $latency50thPercentile; - public $latency85thPercentile; - public $latency95thPercentile; - public $noQuotaInRegion; - public $outOfQuota; - public $pixelMatchRequests; - public $pixelMatchResponses; - public $quotaConfiguredLimit; - public $quotaThrottledLimit; - public $region; - public $timestamp; +class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection { + public $calloutStatusRate; + public $cookieMatcherStatusRate; + public $creativeStatusRate; + public $hostedMatchStatusRate; + public $kind; + public $latency50thPercentile; + public $latency85thPercentile; + public $latency95thPercentile; + public $noQuotaInRegion; + public $outOfQuota; + public $pixelMatchRequests; + public $pixelMatchResponses; + public $quotaConfiguredLimit; + public $quotaThrottledLimit; + public $region; + public $timestamp; - public function setCalloutStatusRate($calloutStatusRate) - { - $this->calloutStatusRate = $calloutStatusRate; - } + public function setCalloutStatusRate($calloutStatusRate) { + $this->calloutStatusRate = $calloutStatusRate; + } - public function getCalloutStatusRate() - { - return $this->calloutStatusRate; - } + public function getCalloutStatusRate() { + return $this->calloutStatusRate; + } - public function setCookieMatcherStatusRate($cookieMatcherStatusRate) - { - $this->cookieMatcherStatusRate = $cookieMatcherStatusRate; - } + public function setCookieMatcherStatusRate($cookieMatcherStatusRate) { + $this->cookieMatcherStatusRate = $cookieMatcherStatusRate; + } - public function getCookieMatcherStatusRate() - { - return $this->cookieMatcherStatusRate; - } + public function getCookieMatcherStatusRate() { + return $this->cookieMatcherStatusRate; + } - public function setCreativeStatusRate($creativeStatusRate) - { - $this->creativeStatusRate = $creativeStatusRate; - } + public function setCreativeStatusRate($creativeStatusRate) { + $this->creativeStatusRate = $creativeStatusRate; + } - public function getCreativeStatusRate() - { - return $this->creativeStatusRate; - } + public function getCreativeStatusRate() { + return $this->creativeStatusRate; + } - public function setHostedMatchStatusRate($hostedMatchStatusRate) - { - $this->hostedMatchStatusRate = $hostedMatchStatusRate; - } + public function setHostedMatchStatusRate($hostedMatchStatusRate) { + $this->hostedMatchStatusRate = $hostedMatchStatusRate; + } - public function getHostedMatchStatusRate() - { - return $this->hostedMatchStatusRate; - } + public function getHostedMatchStatusRate() { + return $this->hostedMatchStatusRate; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLatency50thPercentile($latency50thPercentile) - { - $this->latency50thPercentile = $latency50thPercentile; - } + public function setLatency50thPercentile($latency50thPercentile) { + $this->latency50thPercentile = $latency50thPercentile; + } - public function getLatency50thPercentile() - { - return $this->latency50thPercentile; - } + public function getLatency50thPercentile() { + return $this->latency50thPercentile; + } - public function setLatency85thPercentile($latency85thPercentile) - { - $this->latency85thPercentile = $latency85thPercentile; - } + public function setLatency85thPercentile($latency85thPercentile) { + $this->latency85thPercentile = $latency85thPercentile; + } - public function getLatency85thPercentile() - { - return $this->latency85thPercentile; - } + public function getLatency85thPercentile() { + return $this->latency85thPercentile; + } - public function setLatency95thPercentile($latency95thPercentile) - { - $this->latency95thPercentile = $latency95thPercentile; - } + public function setLatency95thPercentile($latency95thPercentile) { + $this->latency95thPercentile = $latency95thPercentile; + } - public function getLatency95thPercentile() - { - return $this->latency95thPercentile; - } + public function getLatency95thPercentile() { + return $this->latency95thPercentile; + } - public function setNoQuotaInRegion($noQuotaInRegion) - { - $this->noQuotaInRegion = $noQuotaInRegion; - } + public function setNoQuotaInRegion($noQuotaInRegion) { + $this->noQuotaInRegion = $noQuotaInRegion; + } - public function getNoQuotaInRegion() - { - return $this->noQuotaInRegion; - } + public function getNoQuotaInRegion() { + return $this->noQuotaInRegion; + } - public function setOutOfQuota($outOfQuota) - { - $this->outOfQuota = $outOfQuota; - } + public function setOutOfQuota($outOfQuota) { + $this->outOfQuota = $outOfQuota; + } - public function getOutOfQuota() - { - return $this->outOfQuota; - } + public function getOutOfQuota() { + return $this->outOfQuota; + } - public function setPixelMatchRequests($pixelMatchRequests) - { - $this->pixelMatchRequests = $pixelMatchRequests; - } + public function setPixelMatchRequests($pixelMatchRequests) { + $this->pixelMatchRequests = $pixelMatchRequests; + } - public function getPixelMatchRequests() - { - return $this->pixelMatchRequests; - } + public function getPixelMatchRequests() { + return $this->pixelMatchRequests; + } - public function setPixelMatchResponses($pixelMatchResponses) - { - $this->pixelMatchResponses = $pixelMatchResponses; - } + public function setPixelMatchResponses($pixelMatchResponses) { + $this->pixelMatchResponses = $pixelMatchResponses; + } - public function getPixelMatchResponses() - { - return $this->pixelMatchResponses; - } + public function getPixelMatchResponses() { + return $this->pixelMatchResponses; + } - public function setQuotaConfiguredLimit($quotaConfiguredLimit) - { - $this->quotaConfiguredLimit = $quotaConfiguredLimit; - } + public function setQuotaConfiguredLimit($quotaConfiguredLimit) { + $this->quotaConfiguredLimit = $quotaConfiguredLimit; + } - public function getQuotaConfiguredLimit() - { - return $this->quotaConfiguredLimit; - } + public function getQuotaConfiguredLimit() { + return $this->quotaConfiguredLimit; + } - public function setQuotaThrottledLimit($quotaThrottledLimit) - { - $this->quotaThrottledLimit = $quotaThrottledLimit; - } + public function setQuotaThrottledLimit($quotaThrottledLimit) { + $this->quotaThrottledLimit = $quotaThrottledLimit; + } - public function getQuotaThrottledLimit() - { - return $this->quotaThrottledLimit; - } + public function getQuotaThrottledLimit() { + return $this->quotaThrottledLimit; + } - public function setRegion($region) - { - $this->region = $region; - } + public function setRegion($region) { + $this->region = $region; + } - public function getRegion() - { - return $this->region; - } + public function getRegion() { + return $this->region; + } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } + public function setTimestamp($timestamp) { + $this->timestamp = $timestamp; + } - public function getTimestamp() - { - return $this->timestamp; - } + public function getTimestamp() { + return $this->timestamp; + } } -class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection -{ - public $kind; - protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport'; - protected $performanceReportDataType = 'array'; +class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection { + public $kind; + protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport'; + protected $performanceReportDataType = 'array'; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPerformanceReport($performanceReport) - { - $this->performanceReport = $performanceReport; - } + public function setPerformanceReport($performanceReport) { + $this->performanceReport = $performanceReport; + } - public function getPerformanceReport() - { - return $this->performanceReport; - } + public function getPerformanceReport() { + return $this->performanceReport; + } } -class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection -{ - public $configId; - public $configName; - public $creativeType; - protected $dimensionsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigDimensions'; - protected $dimensionsDataType = 'array'; - public $excludedContentLabels; - public $excludedGeoCriteriaIds; - protected $excludedPlacementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements'; - protected $excludedPlacementsDataType = 'array'; - public $excludedUserLists; - public $excludedVerticals; - public $geoCriteriaIds; - public $isActive; - public $kind; - public $languages; - public $mobileCarriers; - public $mobileDevices; - public $mobileOperatingSystemVersions; - protected $placementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigPlacements'; - protected $placementsDataType = 'array'; - public $platforms; - public $supportedCreativeAttributes; - public $userLists; - public $vendorTypes; - public $verticals; +class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection { + public $configId; + public $configName; + public $creativeType; + protected $dimensionsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigDimensions'; + protected $dimensionsDataType = 'array'; + public $excludedContentLabels; + public $excludedGeoCriteriaIds; + protected $excludedPlacementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements'; + protected $excludedPlacementsDataType = 'array'; + public $excludedUserLists; + public $excludedVerticals; + public $geoCriteriaIds; + public $isActive; + public $kind; + public $languages; + public $mobileCarriers; + public $mobileDevices; + public $mobileOperatingSystemVersions; + protected $placementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigPlacements'; + protected $placementsDataType = 'array'; + public $platforms; + public $supportedCreativeAttributes; + public $userLists; + public $vendorTypes; + public $verticals; - public function setConfigId($configId) - { - $this->configId = $configId; - } + public function setConfigId($configId) { + $this->configId = $configId; + } - public function getConfigId() - { - return $this->configId; - } + public function getConfigId() { + return $this->configId; + } - public function setConfigName($configName) - { - $this->configName = $configName; - } + public function setConfigName($configName) { + $this->configName = $configName; + } - public function getConfigName() - { - return $this->configName; - } + public function getConfigName() { + return $this->configName; + } - public function setCreativeType($creativeType) - { - $this->creativeType = $creativeType; - } + public function setCreativeType($creativeType) { + $this->creativeType = $creativeType; + } - public function getCreativeType() - { - return $this->creativeType; - } + public function getCreativeType() { + return $this->creativeType; + } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } - public function getDimensions() - { - return $this->dimensions; - } + public function getDimensions() { + return $this->dimensions; + } - public function setExcludedContentLabels($excludedContentLabels) - { - $this->excludedContentLabels = $excludedContentLabels; - } + public function setExcludedContentLabels($excludedContentLabels) { + $this->excludedContentLabels = $excludedContentLabels; + } - public function getExcludedContentLabels() - { - return $this->excludedContentLabels; - } + public function getExcludedContentLabels() { + return $this->excludedContentLabels; + } - public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds) - { - $this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds; - } + public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds) { + $this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds; + } - public function getExcludedGeoCriteriaIds() - { - return $this->excludedGeoCriteriaIds; - } + public function getExcludedGeoCriteriaIds() { + return $this->excludedGeoCriteriaIds; + } - public function setExcludedPlacements($excludedPlacements) - { - $this->excludedPlacements = $excludedPlacements; - } + public function setExcludedPlacements($excludedPlacements) { + $this->excludedPlacements = $excludedPlacements; + } - public function getExcludedPlacements() - { - return $this->excludedPlacements; - } + public function getExcludedPlacements() { + return $this->excludedPlacements; + } - public function setExcludedUserLists($excludedUserLists) - { - $this->excludedUserLists = $excludedUserLists; - } + public function setExcludedUserLists($excludedUserLists) { + $this->excludedUserLists = $excludedUserLists; + } - public function getExcludedUserLists() - { - return $this->excludedUserLists; - } + public function getExcludedUserLists() { + return $this->excludedUserLists; + } - public function setExcludedVerticals($excludedVerticals) - { - $this->excludedVerticals = $excludedVerticals; - } + public function setExcludedVerticals($excludedVerticals) { + $this->excludedVerticals = $excludedVerticals; + } - public function getExcludedVerticals() - { - return $this->excludedVerticals; - } + public function getExcludedVerticals() { + return $this->excludedVerticals; + } - public function setGeoCriteriaIds($geoCriteriaIds) - { - $this->geoCriteriaIds = $geoCriteriaIds; - } + public function setGeoCriteriaIds($geoCriteriaIds) { + $this->geoCriteriaIds = $geoCriteriaIds; + } - public function getGeoCriteriaIds() - { - return $this->geoCriteriaIds; - } + public function getGeoCriteriaIds() { + return $this->geoCriteriaIds; + } - public function setIsActive($isActive) - { - $this->isActive = $isActive; - } + public function setIsActive($isActive) { + $this->isActive = $isActive; + } - public function getIsActive() - { - return $this->isActive; - } + public function getIsActive() { + return $this->isActive; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLanguages($languages) - { - $this->languages = $languages; - } + public function setLanguages($languages) { + $this->languages = $languages; + } - public function getLanguages() - { - return $this->languages; - } + public function getLanguages() { + return $this->languages; + } - public function setMobileCarriers($mobileCarriers) - { - $this->mobileCarriers = $mobileCarriers; - } + public function setMobileCarriers($mobileCarriers) { + $this->mobileCarriers = $mobileCarriers; + } - public function getMobileCarriers() - { - return $this->mobileCarriers; - } + public function getMobileCarriers() { + return $this->mobileCarriers; + } - public function setMobileDevices($mobileDevices) - { - $this->mobileDevices = $mobileDevices; - } + public function setMobileDevices($mobileDevices) { + $this->mobileDevices = $mobileDevices; + } - public function getMobileDevices() - { - return $this->mobileDevices; - } + public function getMobileDevices() { + return $this->mobileDevices; + } - public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions) - { - $this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions; - } + public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions) { + $this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions; + } - public function getMobileOperatingSystemVersions() - { - return $this->mobileOperatingSystemVersions; - } + public function getMobileOperatingSystemVersions() { + return $this->mobileOperatingSystemVersions; + } - public function setPlacements($placements) - { - $this->placements = $placements; - } + public function setPlacements($placements) { + $this->placements = $placements; + } - public function getPlacements() - { - return $this->placements; - } + public function getPlacements() { + return $this->placements; + } - public function setPlatforms($platforms) - { - $this->platforms = $platforms; - } + public function setPlatforms($platforms) { + $this->platforms = $platforms; + } - public function getPlatforms() - { - return $this->platforms; - } + public function getPlatforms() { + return $this->platforms; + } - public function setSupportedCreativeAttributes($supportedCreativeAttributes) - { - $this->supportedCreativeAttributes = $supportedCreativeAttributes; - } + public function setSupportedCreativeAttributes($supportedCreativeAttributes) { + $this->supportedCreativeAttributes = $supportedCreativeAttributes; + } - public function getSupportedCreativeAttributes() - { - return $this->supportedCreativeAttributes; - } + public function getSupportedCreativeAttributes() { + return $this->supportedCreativeAttributes; + } - public function setUserLists($userLists) - { - $this->userLists = $userLists; - } + public function setUserLists($userLists) { + $this->userLists = $userLists; + } - public function getUserLists() - { - return $this->userLists; - } + public function getUserLists() { + return $this->userLists; + } - public function setVendorTypes($vendorTypes) - { - $this->vendorTypes = $vendorTypes; - } + public function setVendorTypes($vendorTypes) { + $this->vendorTypes = $vendorTypes; + } - public function getVendorTypes() - { - return $this->vendorTypes; - } + public function getVendorTypes() { + return $this->vendorTypes; + } - public function setVerticals($verticals) - { - $this->verticals = $verticals; - } + public function setVerticals($verticals) { + $this->verticals = $verticals; + } - public function getVerticals() - { - return $this->verticals; - } + public function getVerticals() { + return $this->verticals; + } } -class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model -{ - public $height; - public $width; +class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model { + public $height; + public $width; - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model -{ - public $token; - public $type; +class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model { + public $token; + public $type; - public function setToken($token) - { - $this->token = $token; - } + public function setToken($token) { + $this->token = $token; + } - public function getToken() - { - return $this->token; - } + public function getToken() { + return $this->token; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Collection -{ - protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Collection { + protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model -{ - public $token; - public $type; +class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model { + public $token; + public $type; - public function setToken($token) - { - $this->token = $token; - } + public function setToken($token) { + $this->token = $token; + } - public function getToken() - { - return $this->token; - } + public function getToken() { + return $this->token; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } diff --git a/oauth/Google/Service/AdExchangeSeller.php b/oauth/Google/Service/AdExchangeSeller.php index a09913a..e925353 100644 --- a/oauth/Google/Service/AdExchangeSeller.php +++ b/oauth/Google/Service/AdExchangeSeller.php @@ -29,445 +29,443 @@ * * @author Google, Inc. */ -class Google_Service_AdExchangeSeller extends Google_Service -{ - /** View and manage your Ad Exchange data. */ - const ADEXCHANGE_SELLER = "https://www.googleapis.com/auth/adexchange.seller"; - /** View your Ad Exchange data. */ - const ADEXCHANGE_SELLER_READONLY = "https://www.googleapis.com/auth/adexchange.seller.readonly"; +class Google_Service_AdExchangeSeller extends Google_Service { + /** View and manage your Ad Exchange data. */ + const ADEXCHANGE_SELLER = "https://www.googleapis.com/auth/adexchange.seller"; + /** View your Ad Exchange data. */ + const ADEXCHANGE_SELLER_READONLY = "https://www.googleapis.com/auth/adexchange.seller.readonly"; - public $accounts; - public $adclients; - public $adunits; - public $adunits_customchannels; - public $alerts; - public $customchannels; - public $customchannels_adunits; - public $metadata_dimensions; - public $metadata_metrics; - public $preferreddeals; - public $reports; - public $reports_saved; - public $urlchannels; - + public $accounts; + public $adclients; + public $adunits; + public $adunits_customchannels; + public $alerts; + public $customchannels; + public $customchannels_adunits; + public $metadata_dimensions; + public $metadata_metrics; + public $preferreddeals; + public $reports; + public $reports_saved; + public $urlchannels; - /** - * Constructs the internal representation of the AdExchangeSeller service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'adexchangeseller/v1.1/'; - $this->version = 'v1.1'; - $this->serviceName = 'adexchangeseller'; - $this->accounts = new Google_Service_AdExchangeSeller_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->adclients = new Google_Service_AdExchangeSeller_Adclients_Resource( - $this, - $this->serviceName, - 'adclients', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->adunits = new Google_Service_AdExchangeSeller_Adunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'get' => array( - 'path' => 'adclients/{adClientId}/adunits/{adUnitId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients/{adClientId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->adunits_customchannels = new Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->alerts = new Google_Service_AdExchangeSeller_Alerts_Resource( - $this, - $this->serviceName, - 'alerts', - array( - 'methods' => array( - 'list' => array( - 'path' => 'alerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->customchannels = new Google_Service_AdExchangeSeller_Customchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'get' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients/{adClientId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->customchannels_adunits = new Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->metadata_dimensions = new Google_Service_AdExchangeSeller_MetadataDimensions_Resource( - $this, - $this->serviceName, - 'dimensions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'metadata/dimensions', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->metadata_metrics = new Google_Service_AdExchangeSeller_MetadataMetrics_Resource( - $this, - $this->serviceName, - 'metrics', - array( - 'methods' => array( - 'list' => array( - 'path' => 'metadata/metrics', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->preferreddeals = new Google_Service_AdExchangeSeller_Preferreddeals_Resource( - $this, - $this->serviceName, - 'preferreddeals', - array( - 'methods' => array( - 'get' => array( - 'path' => 'preferreddeals/{dealId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'dealId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'preferreddeals', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->reports = new Google_Service_AdExchangeSeller_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'metric' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'dimension' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->reports_saved = new Google_Service_AdExchangeSeller_ReportsSaved_Resource( - $this, - $this->serviceName, - 'saved', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'reports/{savedReportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'savedReportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'reports/saved', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->urlchannels = new Google_Service_AdExchangeSeller_Urlchannels_Resource( - $this, - $this->serviceName, - 'urlchannels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients/{adClientId}/urlchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the AdExchangeSeller service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'adexchangeseller/v1.1/'; + $this->version = 'v1.1'; + $this->serviceName = 'adexchangeseller'; + + $this->accounts = new Google_Service_AdExchangeSeller_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'accounts/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->adclients = new Google_Service_AdExchangeSeller_Adclients_Resource( + $this, + $this->serviceName, + 'adclients', + array( + 'methods' => array( + 'list' => array( + 'path' => 'adclients', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->adunits = new Google_Service_AdExchangeSeller_Adunits_Resource( + $this, + $this->serviceName, + 'adunits', + array( + 'methods' => array( + 'get' => array( + 'path' => 'adclients/{adClientId}/adunits/{adUnitId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'adclients/{adClientId}/adunits', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeInactive' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->adunits_customchannels = new Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource( + $this, + $this->serviceName, + 'customchannels', + array( + 'methods' => array( + 'list' => array( + 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->alerts = new Google_Service_AdExchangeSeller_Alerts_Resource( + $this, + $this->serviceName, + 'alerts', + array( + 'methods' => array( + 'list' => array( + 'path' => 'alerts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->customchannels = new Google_Service_AdExchangeSeller_Customchannels_Resource( + $this, + $this->serviceName, + 'customchannels', + array( + 'methods' => array( + 'get' => array( + 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customChannelId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'adclients/{adClientId}/customchannels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->customchannels_adunits = new Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource( + $this, + $this->serviceName, + 'adunits', + array( + 'methods' => array( + 'list' => array( + 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customChannelId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeInactive' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->metadata_dimensions = new Google_Service_AdExchangeSeller_MetadataDimensions_Resource( + $this, + $this->serviceName, + 'dimensions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'metadata/dimensions', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->metadata_metrics = new Google_Service_AdExchangeSeller_MetadataMetrics_Resource( + $this, + $this->serviceName, + 'metrics', + array( + 'methods' => array( + 'list' => array( + 'path' => 'metadata/metrics', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->preferreddeals = new Google_Service_AdExchangeSeller_Preferreddeals_Resource( + $this, + $this->serviceName, + 'preferreddeals', + array( + 'methods' => array( + 'get' => array( + 'path' => 'preferreddeals/{dealId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'dealId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'preferreddeals', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->reports = new Google_Service_AdExchangeSeller_Reports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'generate' => array( + 'path' => 'reports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sort' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'metric' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'dimension' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->reports_saved = new Google_Service_AdExchangeSeller_ReportsSaved_Resource( + $this, + $this->serviceName, + 'saved', + array( + 'methods' => array( + 'generate' => array( + 'path' => 'reports/{savedReportId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'savedReportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'list' => array( + 'path' => 'reports/saved', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->urlchannels = new Google_Service_AdExchangeSeller_Urlchannels_Resource( + $this, + $this->serviceName, + 'urlchannels', + array( + 'methods' => array( + 'list' => array( + 'path' => 'adclients/{adClientId}/urlchannels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } } @@ -479,23 +477,21 @@ class Google_Service_AdExchangeSeller extends Google_Service * $accounts = $adexchangesellerService->accounts; * */ -class Google_Service_AdExchangeSeller_Accounts_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_Accounts_Resource extends Google_Service_Resource { - /** - * Get information about the selected Ad Exchange account. (accounts.get) - * - * @param string $accountId - * Account to get information about. Tip: 'myaccount' is a valid ID. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_Account - */ - public function get($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeSeller_Account"); - } + /** + * Get information about the selected Ad Exchange account. (accounts.get) + * + * @param string $accountId + * Account to get information about. Tip: 'myaccount' is a valid ID. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeSeller_Account + */ + public function get($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeSeller_Account"); + } } /** @@ -506,27 +502,25 @@ class Google_Service_AdExchangeSeller_Accounts_Resource extends Google_Service_R * $adclients = $adexchangesellerService->adclients; * */ -class Google_Service_AdExchangeSeller_Adclients_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_Adclients_Resource extends Google_Service_Resource { - /** - * List all ad clients in this Ad Exchange account. (adclients.listAdclients) - * - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param string maxResults - * The maximum number of ad clients to include in the response, used for paging. - * @return Google_Service_AdExchangeSeller_AdClients - */ - public function listAdclients($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdClients"); - } + /** + * List all ad clients in this Ad Exchange account. (adclients.listAdclients) + * + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param string maxResults + * The maximum number of ad clients to include in the response, used for paging. + * @return Google_Service_AdExchangeSeller_AdClients + */ + public function listAdclients($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdClients"); + } } /** @@ -537,48 +531,46 @@ class Google_Service_AdExchangeSeller_Adclients_Resource extends Google_Service_ * $adunits = $adexchangesellerService->adunits; * */ -class Google_Service_AdExchangeSeller_Adunits_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_Adunits_Resource extends Google_Service_Resource { - /** - * Gets the specified ad unit in the specified ad client. (adunits.get) - * - * @param string $adClientId - * Ad client for which to get the ad unit. - * @param string $adUnitId - * Ad unit to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_AdUnit - */ - public function get($adClientId, $adUnitId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeSeller_AdUnit"); - } - /** - * List all ad units in the specified ad client for this Ad Exchange account. - * (adunits.listAdunits) - * - * @param string $adClientId - * Ad client for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param 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. - * @opt_param string maxResults - * The maximum number of ad units to include in the response, used for paging. - * @return Google_Service_AdExchangeSeller_AdUnits - */ - public function listAdunits($adClientId, $optParams = array()) - { - $params = array('adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdUnits"); - } + /** + * Gets the specified ad unit in the specified ad client. (adunits.get) + * + * @param string $adClientId + * Ad client for which to get the ad unit. + * @param string $adUnitId + * Ad unit to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeSeller_AdUnit + */ + public function get($adClientId, $adUnitId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeSeller_AdUnit"); + } + + /** + * List all ad units in the specified ad client for this Ad Exchange account. + * (adunits.listAdunits) + * + * @param string $adClientId + * Ad client for which to list ad units. + * @param array $optParams Optional parameters. + * + * @opt_param bool includeInactive + * Whether to include inactive ad units. Default: true. + * @opt_param 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. + * @opt_param string maxResults + * The maximum number of ad units to include in the response, used for paging. + * @return Google_Service_AdExchangeSeller_AdUnits + */ + public function listAdunits($adClientId, $optParams = array()) { + $params = array('adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdUnits"); + } } /** @@ -589,32 +581,30 @@ class Google_Service_AdExchangeSeller_Adunits_Resource extends Google_Service_Re * $customchannels = $adexchangesellerService->customchannels; * */ -class Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource extends Google_Service_Resource { - /** - * List all custom channels which the specified ad unit belongs to. - * (customchannels.listAdunitsCustomchannels) - * - * @param string $adClientId - * Ad client which contains the ad unit. - * @param string $adUnitId - * Ad unit for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @opt_param 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. - * @opt_param string maxResults - * The maximum number of custom channels to include in the response, used for paging. - * @return Google_Service_AdExchangeSeller_CustomChannels - */ - public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_CustomChannels"); - } + /** + * List all custom channels which the specified ad unit belongs to. + * (customchannels.listAdunitsCustomchannels) + * + * @param string $adClientId + * Ad client which contains the ad unit. + * @param string $adUnitId + * Ad unit for which to list custom channels. + * @param array $optParams Optional parameters. + * + * @opt_param 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. + * @opt_param string maxResults + * The maximum number of custom channels to include in the response, used for paging. + * @return Google_Service_AdExchangeSeller_CustomChannels + */ + public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_CustomChannels"); + } } /** @@ -625,26 +615,24 @@ class Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource extends Goo * $alerts = $adexchangesellerService->alerts; * */ -class Google_Service_AdExchangeSeller_Alerts_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_Alerts_Resource extends Google_Service_Resource { - /** - * List the alerts for this Ad Exchange account. (alerts.listAlerts) - * - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * The locale to use for translating alert messages. The account locale will be used if this is not - * supplied. The AdSense default (English) will be used if the supplied locale is invalid or - * unsupported. - * @return Google_Service_AdExchangeSeller_Alerts - */ - public function listAlerts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Alerts"); - } + /** + * List the alerts for this Ad Exchange account. (alerts.listAlerts) + * + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * The locale to use for translating alert messages. The account locale will be used if this is not + * supplied. The AdSense default (English) will be used if the supplied locale is invalid or + * unsupported. + * @return Google_Service_AdExchangeSeller_Alerts + */ + public function listAlerts($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Alerts"); + } } /** @@ -655,47 +643,45 @@ class Google_Service_AdExchangeSeller_Alerts_Resource extends Google_Service_Res * $customchannels = $adexchangesellerService->customchannels; * */ -class Google_Service_AdExchangeSeller_Customchannels_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_Customchannels_Resource extends Google_Service_Resource { - /** - * Get the specified custom channel from the specified ad client. - * (customchannels.get) - * - * @param string $adClientId - * Ad client which contains the custom channel. - * @param string $customChannelId - * Custom channel to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_CustomChannel - */ - public function get($adClientId, $customChannelId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeSeller_CustomChannel"); - } - /** - * List all custom channels in the specified ad client for this Ad Exchange - * account. (customchannels.listCustomchannels) - * - * @param string $adClientId - * Ad client for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param string maxResults - * The maximum number of custom channels to include in the response, used for paging. - * @return Google_Service_AdExchangeSeller_CustomChannels - */ - public function listCustomchannels($adClientId, $optParams = array()) - { - $params = array('adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_CustomChannels"); - } + /** + * Get the specified custom channel from the specified ad client. + * (customchannels.get) + * + * @param string $adClientId + * Ad client which contains the custom channel. + * @param string $customChannelId + * Custom channel to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeSeller_CustomChannel + */ + public function get($adClientId, $customChannelId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeSeller_CustomChannel"); + } + + /** + * List all custom channels in the specified ad client for this Ad Exchange + * account. (customchannels.listCustomchannels) + * + * @param string $adClientId + * Ad client for which to list custom channels. + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param string maxResults + * The maximum number of custom channels to include in the response, used for paging. + * @return Google_Service_AdExchangeSeller_CustomChannels + */ + public function listCustomchannels($adClientId, $optParams = array()) { + $params = array('adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_CustomChannels"); + } } /** @@ -706,34 +692,32 @@ class Google_Service_AdExchangeSeller_Customchannels_Resource extends Google_Ser * $adunits = $adexchangesellerService->adunits; * */ -class Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource extends Google_Service_Resource { - /** - * List all ad units in the specified custom channel. - * (adunits.listCustomchannelsAdunits) - * - * @param string $adClientId - * Ad client which contains the custom channel. - * @param string $customChannelId - * Custom channel for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param 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. - * @opt_param string maxResults - * The maximum number of ad units to include in the response, used for paging. - * @return Google_Service_AdExchangeSeller_AdUnits - */ - public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdUnits"); - } + /** + * List all ad units in the specified custom channel. + * (adunits.listCustomchannelsAdunits) + * + * @param string $adClientId + * Ad client which contains the custom channel. + * @param string $customChannelId + * Custom channel for which to list ad units. + * @param array $optParams Optional parameters. + * + * @opt_param bool includeInactive + * Whether to include inactive ad units. Default: true. + * @opt_param 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. + * @opt_param string maxResults + * The maximum number of ad units to include in the response, used for paging. + * @return Google_Service_AdExchangeSeller_AdUnits + */ + public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdUnits"); + } } /** @@ -744,8 +728,7 @@ class Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource extends Goo * $metadata = $adexchangesellerService->metadata; * */ -class Google_Service_AdExchangeSeller_Metadata_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_Metadata_Resource extends Google_Service_Resource { } @@ -757,23 +740,22 @@ class Google_Service_AdExchangeSeller_Metadata_Resource extends Google_Service_R * $dimensions = $adexchangesellerService->dimensions; * */ -class Google_Service_AdExchangeSeller_MetadataDimensions_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_MetadataDimensions_Resource extends Google_Service_Resource { - /** - * List the metadata for the dimensions available to this AdExchange account. - * (dimensions.listMetadataDimensions) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_Metadata - */ - public function listMetadataDimensions($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata"); - } + /** + * List the metadata for the dimensions available to this AdExchange account. + * (dimensions.listMetadataDimensions) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeSeller_Metadata + */ + public function listMetadataDimensions($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata"); + } } + /** * The "metrics" collection of methods. * Typical usage is: @@ -782,22 +764,20 @@ class Google_Service_AdExchangeSeller_MetadataDimensions_Resource extends Google * $metrics = $adexchangesellerService->metrics; * */ -class Google_Service_AdExchangeSeller_MetadataMetrics_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_MetadataMetrics_Resource extends Google_Service_Resource { - /** - * List the metadata for the metrics available to this AdExchange account. - * (metrics.listMetadataMetrics) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_Metadata - */ - public function listMetadataMetrics($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata"); - } + /** + * List the metadata for the metrics available to this AdExchange account. + * (metrics.listMetadataMetrics) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeSeller_Metadata + */ + public function listMetadataMetrics($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata"); + } } /** @@ -808,37 +788,35 @@ class Google_Service_AdExchangeSeller_MetadataMetrics_Resource extends Google_Se * $preferreddeals = $adexchangesellerService->preferreddeals; * */ -class Google_Service_AdExchangeSeller_Preferreddeals_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_Preferreddeals_Resource extends Google_Service_Resource { - /** - * Get information about the selected Ad Exchange Preferred Deal. - * (preferreddeals.get) - * - * @param string $dealId - * Preferred deal to get information about. - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_PreferredDeal - */ - public function get($dealId, $optParams = array()) - { - $params = array('dealId' => $dealId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdExchangeSeller_PreferredDeal"); - } - /** - * List the preferred deals for this Ad Exchange account. - * (preferreddeals.listPreferreddeals) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdExchangeSeller_PreferredDeals - */ - public function listPreferreddeals($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_PreferredDeals"); - } + /** + * Get information about the selected Ad Exchange Preferred Deal. + * (preferreddeals.get) + * + * @param string $dealId + * Preferred deal to get information about. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeSeller_PreferredDeal + */ + public function get($dealId, $optParams = array()) { + $params = array('dealId' => $dealId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeSeller_PreferredDeal"); + } + + /** + * List the preferred deals for this Ad Exchange account. + * (preferreddeals.listPreferreddeals) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeSeller_PreferredDeals + */ + public function listPreferreddeals($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_PreferredDeals"); + } } /** @@ -849,45 +827,43 @@ class Google_Service_AdExchangeSeller_Preferreddeals_Resource extends Google_Ser * $reports = $adexchangesellerService->reports; * */ -class Google_Service_AdExchangeSeller_Reports_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_Reports_Resource extends Google_Service_Resource { - /** - * Generate an Ad Exchange report based on the report request sent in the query - * parameters. Returns the result as JSON; to retrieve output in CSV format - * specify "alt=csv" as a query parameter. (reports.generate) - * - * @param string $startDate - * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. - * @param string $endDate - * End of the date range to report on in "YYYY-MM-DD" format, inclusive. - * @param array $optParams Optional parameters. - * - * @opt_param string sort - * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" - * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted - * ascending. - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param string metric - * Numeric columns to include in the report. - * @opt_param string maxResults - * The maximum number of rows of report data to return. - * @opt_param string filter - * Filters to be run on the report. - * @opt_param string startIndex - * Index of the first row of report data to return. - * @opt_param string dimension - * Dimensions to base the report on. - * @return Google_Service_AdExchangeSeller_Report - */ - public function generate($startDate, $endDate, $optParams = array()) - { - $params = array('startDate' => $startDate, 'endDate' => $endDate); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report"); - } + /** + * Generate an Ad Exchange report based on the report request sent in the query + * parameters. Returns the result as JSON; to retrieve output in CSV format + * specify "alt=csv" as a query parameter. (reports.generate) + * + * @param string $startDate + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + * @param string $endDate + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + * @param array $optParams Optional parameters. + * + * @opt_param string sort + * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" + * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted + * ascending. + * @opt_param string locale + * Optional locale to use for translating report output to a local language. Defaults to "en_US" if + * not specified. + * @opt_param string metric + * Numeric columns to include in the report. + * @opt_param string maxResults + * The maximum number of rows of report data to return. + * @opt_param string filter + * Filters to be run on the report. + * @opt_param string startIndex + * Index of the first row of report data to return. + * @opt_param string dimension + * Dimensions to base the report on. + * @return Google_Service_AdExchangeSeller_Report + */ + public function generate($startDate, $endDate, $optParams = array()) { + $params = array('startDate' => $startDate, 'endDate' => $endDate); + $params = array_merge($params, $optParams); + return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report"); + } } /** @@ -898,50 +874,48 @@ class Google_Service_AdExchangeSeller_Reports_Resource extends Google_Service_Re * $saved = $adexchangesellerService->saved; * */ -class Google_Service_AdExchangeSeller_ReportsSaved_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_ReportsSaved_Resource extends Google_Service_Resource { - /** - * Generate an Ad Exchange report based on the saved report ID sent in the query - * parameters. (saved.generate) - * - * @param string $savedReportId - * The saved report to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param int startIndex - * Index of the first row of report data to return. - * @opt_param int maxResults - * The maximum number of rows of report data to return. - * @return Google_Service_AdExchangeSeller_Report - */ - public function generate($savedReportId, $optParams = array()) - { - $params = array('savedReportId' => $savedReportId); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report"); - } - /** - * List all saved reports in this Ad Exchange account. (saved.listReportsSaved) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token, used to page through saved reports. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of saved reports to include in the response, used for paging. - * @return Google_Service_AdExchangeSeller_SavedReports - */ - public function listReportsSaved($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_SavedReports"); - } + /** + * Generate an Ad Exchange report based on the saved report ID sent in the query + * parameters. (saved.generate) + * + * @param string $savedReportId + * The saved report to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * Optional locale to use for translating report output to a local language. Defaults to "en_US" if + * not specified. + * @opt_param int startIndex + * Index of the first row of report data to return. + * @opt_param int maxResults + * The maximum number of rows of report data to return. + * @return Google_Service_AdExchangeSeller_Report + */ + public function generate($savedReportId, $optParams = array()) { + $params = array('savedReportId' => $savedReportId); + $params = array_merge($params, $optParams); + return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report"); + } + + /** + * List all saved reports in this Ad Exchange account. (saved.listReportsSaved) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token, used to page through saved reports. To retrieve the next page, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param int maxResults + * The maximum number of saved reports to include in the response, used for paging. + * @return Google_Service_AdExchangeSeller_SavedReports + */ + public function listReportsSaved($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_SavedReports"); + } } /** @@ -952,1045 +926,853 @@ class Google_Service_AdExchangeSeller_ReportsSaved_Resource extends Google_Servi * $urlchannels = $adexchangesellerService->urlchannels; * */ -class Google_Service_AdExchangeSeller_Urlchannels_Resource extends Google_Service_Resource -{ +class Google_Service_AdExchangeSeller_Urlchannels_Resource extends Google_Service_Resource { - /** - * List all URL channels in the specified ad client for this Ad Exchange - * account. (urlchannels.listUrlchannels) - * - * @param string $adClientId - * Ad client for which to list URL channels. - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param string maxResults - * The maximum number of URL channels to include in the response, used for paging. - * @return Google_Service_AdExchangeSeller_UrlChannels - */ - public function listUrlchannels($adClientId, $optParams = array()) - { - $params = array('adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdExchangeSeller_UrlChannels"); - } + /** + * List all URL channels in the specified ad client for this Ad Exchange + * account. (urlchannels.listUrlchannels) + * + * @param string $adClientId + * Ad client for which to list URL channels. + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param string maxResults + * The maximum number of URL channels to include in the response, used for paging. + * @return Google_Service_AdExchangeSeller_UrlChannels + */ + public function listUrlchannels($adClientId, $optParams = array()) { + $params = array('adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdExchangeSeller_UrlChannels"); + } } +class Google_Service_AdExchangeSeller_Account extends Google_Model { + public $id; + public $kind; + public $name; + public function setId($id) { + $this->id = $id; + } -class Google_Service_AdExchangeSeller_Account extends Google_Model -{ - public $id; - public $kind; - public $name; + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setName($name) { + $this->name = $name; + } - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_AdExchangeSeller_AdClient extends Google_Model -{ - public $arcOptIn; - public $id; - public $kind; - public $productCode; - public $supportsReporting; +class Google_Service_AdExchangeSeller_AdClient extends Google_Model { + public $arcOptIn; + public $id; + public $kind; + public $productCode; + public $supportsReporting; - public function setArcOptIn($arcOptIn) - { - $this->arcOptIn = $arcOptIn; - } + public function setArcOptIn($arcOptIn) { + $this->arcOptIn = $arcOptIn; + } - public function getArcOptIn() - { - return $this->arcOptIn; - } + public function getArcOptIn() { + return $this->arcOptIn; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setProductCode($productCode) - { - $this->productCode = $productCode; - } + public function setProductCode($productCode) { + $this->productCode = $productCode; + } - public function getProductCode() - { - return $this->productCode; - } + public function getProductCode() { + return $this->productCode; + } - public function setSupportsReporting($supportsReporting) - { - $this->supportsReporting = $supportsReporting; - } + public function setSupportsReporting($supportsReporting) { + $this->supportsReporting = $supportsReporting; + } - public function getSupportsReporting() - { - return $this->supportsReporting; - } + public function getSupportsReporting() { + return $this->supportsReporting; + } } -class Google_Service_AdExchangeSeller_AdClients extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_AdClient'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdExchangeSeller_AdClients extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdExchangeSeller_AdClient'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdExchangeSeller_AdUnit extends Google_Model -{ - public $code; - public $id; - public $kind; - public $name; - public $status; +class Google_Service_AdExchangeSeller_AdUnit extends Google_Model { + public $code; + public $id; + public $kind; + public $name; + public $status; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_AdExchangeSeller_AdUnits extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_AdUnit'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdExchangeSeller_AdUnits extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdExchangeSeller_AdUnit'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdExchangeSeller_Alert extends Google_Model -{ - public $id; - public $kind; - public $message; - public $severity; - public $type; +class Google_Service_AdExchangeSeller_Alert extends Google_Model { + public $id; + public $kind; + public $message; + public $severity; + public $type; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMessage($message) - { - $this->message = $message; - } + public function setMessage($message) { + $this->message = $message; + } - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } - public function setSeverity($severity) - { - $this->severity = $severity; - } + public function setSeverity($severity) { + $this->severity = $severity; + } - public function getSeverity() - { - return $this->severity; - } + public function getSeverity() { + return $this->severity; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_AdExchangeSeller_Alerts extends Google_Collection -{ - protected $itemsType = 'Google_Service_AdExchangeSeller_Alert'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_AdExchangeSeller_Alerts extends Google_Collection { + protected $itemsType = 'Google_Service_AdExchangeSeller_Alert'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdExchangeSeller_CustomChannel extends Google_Model -{ - public $code; - public $id; - public $kind; - public $name; - protected $targetingInfoType = 'Google_Service_AdExchangeSeller_CustomChannelTargetingInfo'; - protected $targetingInfoDataType = ''; +class Google_Service_AdExchangeSeller_CustomChannel extends Google_Model { + public $code; + public $id; + public $kind; + public $name; + protected $targetingInfoType = 'Google_Service_AdExchangeSeller_CustomChannelTargetingInfo'; + protected $targetingInfoDataType = ''; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setTargetingInfo(Google_Service_AdExchangeSeller_CustomChannelTargetingInfo $targetingInfo) - { - $this->targetingInfo = $targetingInfo; - } + public function setTargetingInfo(Google_Service_AdExchangeSeller_CustomChannelTargetingInfo $targetingInfo) { + $this->targetingInfo = $targetingInfo; + } - public function getTargetingInfo() - { - return $this->targetingInfo; - } + public function getTargetingInfo() { + return $this->targetingInfo; + } } -class Google_Service_AdExchangeSeller_CustomChannelTargetingInfo extends Google_Model -{ - public $adsAppearOn; - public $description; - public $location; - public $siteLanguage; +class Google_Service_AdExchangeSeller_CustomChannelTargetingInfo extends Google_Model { + public $adsAppearOn; + public $description; + public $location; + public $siteLanguage; - public function setAdsAppearOn($adsAppearOn) - { - $this->adsAppearOn = $adsAppearOn; - } + public function setAdsAppearOn($adsAppearOn) { + $this->adsAppearOn = $adsAppearOn; + } - public function getAdsAppearOn() - { - return $this->adsAppearOn; - } + public function getAdsAppearOn() { + return $this->adsAppearOn; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setLocation($location) - { - $this->location = $location; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setSiteLanguage($siteLanguage) - { - $this->siteLanguage = $siteLanguage; - } + public function setSiteLanguage($siteLanguage) { + $this->siteLanguage = $siteLanguage; + } - public function getSiteLanguage() - { - return $this->siteLanguage; - } + public function getSiteLanguage() { + return $this->siteLanguage; + } } -class Google_Service_AdExchangeSeller_CustomChannels extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_CustomChannel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdExchangeSeller_CustomChannels extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdExchangeSeller_CustomChannel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdExchangeSeller_Metadata extends Google_Collection -{ - protected $itemsType = 'Google_Service_AdExchangeSeller_ReportingMetadataEntry'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_AdExchangeSeller_Metadata extends Google_Collection { + protected $itemsType = 'Google_Service_AdExchangeSeller_ReportingMetadataEntry'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdExchangeSeller_PreferredDeal extends Google_Model -{ - public $advertiserName; - public $buyerNetworkName; - public $currencyCode; - public $endTime; - public $fixedCpm; - public $id; - public $kind; - public $startTime; +class Google_Service_AdExchangeSeller_PreferredDeal extends Google_Model { + public $advertiserName; + public $buyerNetworkName; + public $currencyCode; + public $endTime; + public $fixedCpm; + public $id; + public $kind; + public $startTime; - public function setAdvertiserName($advertiserName) - { - $this->advertiserName = $advertiserName; - } + public function setAdvertiserName($advertiserName) { + $this->advertiserName = $advertiserName; + } - public function getAdvertiserName() - { - return $this->advertiserName; - } + public function getAdvertiserName() { + return $this->advertiserName; + } - public function setBuyerNetworkName($buyerNetworkName) - { - $this->buyerNetworkName = $buyerNetworkName; - } + public function setBuyerNetworkName($buyerNetworkName) { + $this->buyerNetworkName = $buyerNetworkName; + } - public function getBuyerNetworkName() - { - return $this->buyerNetworkName; - } + public function getBuyerNetworkName() { + return $this->buyerNetworkName; + } - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } + public function setCurrencyCode($currencyCode) { + $this->currencyCode = $currencyCode; + } - public function getCurrencyCode() - { - return $this->currencyCode; - } + public function getCurrencyCode() { + return $this->currencyCode; + } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } + public function setEndTime($endTime) { + $this->endTime = $endTime; + } - public function getEndTime() - { - return $this->endTime; - } + public function getEndTime() { + return $this->endTime; + } - public function setFixedCpm($fixedCpm) - { - $this->fixedCpm = $fixedCpm; - } + public function setFixedCpm($fixedCpm) { + $this->fixedCpm = $fixedCpm; + } - public function getFixedCpm() - { - return $this->fixedCpm; - } + public function getFixedCpm() { + return $this->fixedCpm; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getStartTime() - { - return $this->startTime; - } + public function getStartTime() { + return $this->startTime; + } } -class Google_Service_AdExchangeSeller_PreferredDeals extends Google_Collection -{ - protected $itemsType = 'Google_Service_AdExchangeSeller_PreferredDeal'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_AdExchangeSeller_PreferredDeals extends Google_Collection { + protected $itemsType = 'Google_Service_AdExchangeSeller_PreferredDeal'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdExchangeSeller_Report extends Google_Collection -{ - public $averages; - protected $headersType = 'Google_Service_AdExchangeSeller_ReportHeaders'; - protected $headersDataType = 'array'; - public $kind; - public $rows; - public $totalMatchedRows; - public $totals; - public $warnings; +class Google_Service_AdExchangeSeller_Report extends Google_Collection { + public $averages; + protected $headersType = 'Google_Service_AdExchangeSeller_ReportHeaders'; + protected $headersDataType = 'array'; + public $kind; + public $rows; + public $totalMatchedRows; + public $totals; + public $warnings; - public function setAverages($averages) - { - $this->averages = $averages; - } + public function setAverages($averages) { + $this->averages = $averages; + } - public function getAverages() - { - return $this->averages; - } + public function getAverages() { + return $this->averages; + } - public function setHeaders($headers) - { - $this->headers = $headers; - } + public function setHeaders($headers) { + $this->headers = $headers; + } - public function getHeaders() - { - return $this->headers; - } + public function getHeaders() { + return $this->headers; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRows($rows) - { - $this->rows = $rows; - } + public function setRows($rows) { + $this->rows = $rows; + } - public function getRows() - { - return $this->rows; - } + public function getRows() { + return $this->rows; + } - public function setTotalMatchedRows($totalMatchedRows) - { - $this->totalMatchedRows = $totalMatchedRows; - } + public function setTotalMatchedRows($totalMatchedRows) { + $this->totalMatchedRows = $totalMatchedRows; + } - public function getTotalMatchedRows() - { - return $this->totalMatchedRows; - } + public function getTotalMatchedRows() { + return $this->totalMatchedRows; + } - public function setTotals($totals) - { - $this->totals = $totals; - } + public function setTotals($totals) { + $this->totals = $totals; + } - public function getTotals() - { - return $this->totals; - } + public function getTotals() { + return $this->totals; + } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } + public function setWarnings($warnings) { + $this->warnings = $warnings; + } - public function getWarnings() - { - return $this->warnings; - } + public function getWarnings() { + return $this->warnings; + } } -class Google_Service_AdExchangeSeller_ReportHeaders extends Google_Model -{ - public $currency; - public $name; - public $type; +class Google_Service_AdExchangeSeller_ReportHeaders extends Google_Model { + public $currency; + public $name; + public $type; - public function setCurrency($currency) - { - $this->currency = $currency; - } + public function setCurrency($currency) { + $this->currency = $currency; + } - public function getCurrency() - { - return $this->currency; - } + public function getCurrency() { + return $this->currency; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_AdExchangeSeller_ReportingMetadataEntry extends Google_Collection -{ - public $compatibleDimensions; - public $compatibleMetrics; - public $id; - public $kind; - public $requiredDimensions; - public $requiredMetrics; - public $supportedProducts; +class Google_Service_AdExchangeSeller_ReportingMetadataEntry extends Google_Collection { + public $compatibleDimensions; + public $compatibleMetrics; + public $id; + public $kind; + public $requiredDimensions; + public $requiredMetrics; + public $supportedProducts; - public function setCompatibleDimensions($compatibleDimensions) - { - $this->compatibleDimensions = $compatibleDimensions; - } + public function setCompatibleDimensions($compatibleDimensions) { + $this->compatibleDimensions = $compatibleDimensions; + } - public function getCompatibleDimensions() - { - return $this->compatibleDimensions; - } + public function getCompatibleDimensions() { + return $this->compatibleDimensions; + } - public function setCompatibleMetrics($compatibleMetrics) - { - $this->compatibleMetrics = $compatibleMetrics; - } + public function setCompatibleMetrics($compatibleMetrics) { + $this->compatibleMetrics = $compatibleMetrics; + } - public function getCompatibleMetrics() - { - return $this->compatibleMetrics; - } + public function getCompatibleMetrics() { + return $this->compatibleMetrics; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRequiredDimensions($requiredDimensions) - { - $this->requiredDimensions = $requiredDimensions; - } + public function setRequiredDimensions($requiredDimensions) { + $this->requiredDimensions = $requiredDimensions; + } - public function getRequiredDimensions() - { - return $this->requiredDimensions; - } + public function getRequiredDimensions() { + return $this->requiredDimensions; + } - public function setRequiredMetrics($requiredMetrics) - { - $this->requiredMetrics = $requiredMetrics; - } + public function setRequiredMetrics($requiredMetrics) { + $this->requiredMetrics = $requiredMetrics; + } - public function getRequiredMetrics() - { - return $this->requiredMetrics; - } + public function getRequiredMetrics() { + return $this->requiredMetrics; + } - public function setSupportedProducts($supportedProducts) - { - $this->supportedProducts = $supportedProducts; - } + public function setSupportedProducts($supportedProducts) { + $this->supportedProducts = $supportedProducts; + } - public function getSupportedProducts() - { - return $this->supportedProducts; - } + public function getSupportedProducts() { + return $this->supportedProducts; + } } -class Google_Service_AdExchangeSeller_SavedReport extends Google_Model -{ - public $id; - public $kind; - public $name; +class Google_Service_AdExchangeSeller_SavedReport extends Google_Model { + public $id; + public $kind; + public $name; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_AdExchangeSeller_SavedReports extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_SavedReport'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdExchangeSeller_SavedReports extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdExchangeSeller_SavedReport'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdExchangeSeller_UrlChannel extends Google_Model -{ - public $id; - public $kind; - public $urlPattern; +class Google_Service_AdExchangeSeller_UrlChannel extends Google_Model { + public $id; + public $kind; + public $urlPattern; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setUrlPattern($urlPattern) - { - $this->urlPattern = $urlPattern; - } + public function setUrlPattern($urlPattern) { + $this->urlPattern = $urlPattern; + } - public function getUrlPattern() - { - return $this->urlPattern; - } + public function getUrlPattern() { + return $this->urlPattern; + } } -class Google_Service_AdExchangeSeller_UrlChannels extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdExchangeSeller_UrlChannel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdExchangeSeller_UrlChannels extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdExchangeSeller_UrlChannel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } diff --git a/oauth/Google/Service/AdSense.php b/oauth/Google/Service/AdSense.php index f33c191..dd19651 100644 --- a/oauth/Google/Service/AdSense.php +++ b/oauth/Google/Service/AdSense.php @@ -29,1033 +29,1031 @@ * * @author Google, Inc. */ -class Google_Service_AdSense extends Google_Service -{ - /** View and manage your AdSense data. */ - const ADSENSE = "https://www.googleapis.com/auth/adsense"; - /** View your AdSense data. */ - const ADSENSE_READONLY = "https://www.googleapis.com/auth/adsense.readonly"; +class Google_Service_AdSense extends Google_Service { + /** View and manage your AdSense data. */ + const ADSENSE = "https://www.googleapis.com/auth/adsense"; + /** View your AdSense data. */ + const ADSENSE_READONLY = "https://www.googleapis.com/auth/adsense.readonly"; - public $accounts; - public $accounts_adclients; - public $accounts_adunits; - public $accounts_adunits_customchannels; - public $accounts_alerts; - public $accounts_customchannels; - public $accounts_customchannels_adunits; - public $accounts_payments; - public $accounts_reports; - public $accounts_reports_saved; - public $accounts_savedadstyles; - public $accounts_urlchannels; - public $adclients; - public $adunits; - public $adunits_customchannels; - public $alerts; - public $customchannels; - public $customchannels_adunits; - public $metadata_dimensions; - public $metadata_metrics; - public $payments; - public $reports; - public $reports_saved; - public $savedadstyles; - public $urlchannels; - + public $accounts; + public $accounts_adclients; + public $accounts_adunits; + public $accounts_adunits_customchannels; + public $accounts_alerts; + public $accounts_customchannels; + public $accounts_customchannels_adunits; + public $accounts_payments; + public $accounts_reports; + public $accounts_reports_saved; + public $accounts_savedadstyles; + public $accounts_urlchannels; + public $adclients; + public $adunits; + public $adunits_customchannels; + public $alerts; + public $customchannels; + public $customchannels_adunits; + public $metadata_dimensions; + public $metadata_metrics; + public $payments; + public $reports; + public $reports_saved; + public $savedadstyles; + public $urlchannels; - /** - * Constructs the internal representation of the AdSense service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'adsense/v1.4/'; - $this->version = 'v1.4'; - $this->serviceName = 'adsense'; - $this->accounts = new Google_Service_AdSense_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tree' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->accounts_adclients = new Google_Service_AdSense_AccountsAdclients_Resource( - $this, - $this->serviceName, - 'adclients', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/adclients', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->accounts_adunits = new Google_Service_AdSense_AccountsAdunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getAdCode' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->accounts_adunits_customchannels = new Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->accounts_alerts = new Google_Service_AdSense_AccountsAlerts_Resource( - $this, - $this->serviceName, - 'alerts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'accounts/{accountId}/alerts/{alertId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alertId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/alerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_customchannels = new Google_Service_AdSense_AccountsCustomchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->accounts_customchannels_adunits = new Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->accounts_payments = new Google_Service_AdSense_AccountsPayments_Resource( - $this, - $this->serviceName, - 'payments', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/payments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_reports = new Google_Service_AdSense_AccountsReports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'accounts/{accountId}/reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'metric' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'currency' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'useTimezoneReporting' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'dimension' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_reports_saved = new Google_Service_AdSense_AccountsReportsSaved_Resource( - $this, - $this->serviceName, - 'saved', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'accounts/{accountId}/reports/{savedReportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'savedReportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/reports/saved', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->accounts_savedadstyles = new Google_Service_AdSense_AccountsSavedadstyles_Resource( - $this, - $this->serviceName, - 'savedadstyles', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}/savedadstyles/{savedAdStyleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'savedAdStyleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/savedadstyles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->accounts_urlchannels = new Google_Service_AdSense_AccountsUrlchannels_Resource( - $this, - $this->serviceName, - 'urlchannels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->adclients = new Google_Service_AdSense_Adclients_Resource( - $this, - $this->serviceName, - 'adclients', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->adunits = new Google_Service_AdSense_Adunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'get' => array( - 'path' => 'adclients/{adClientId}/adunits/{adUnitId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getAdCode' => array( - 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/adcode', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients/{adClientId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->adunits_customchannels = new Google_Service_AdSense_AdunitsCustomchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->alerts = new Google_Service_AdSense_Alerts_Resource( - $this, - $this->serviceName, - 'alerts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'alerts/{alertId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'alertId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'alerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->customchannels = new Google_Service_AdSense_Customchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'get' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients/{adClientId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->customchannels_adunits = new Google_Service_AdSense_CustomchannelsAdunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->metadata_dimensions = new Google_Service_AdSense_MetadataDimensions_Resource( - $this, - $this->serviceName, - 'dimensions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'metadata/dimensions', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->metadata_metrics = new Google_Service_AdSense_MetadataMetrics_Resource( - $this, - $this->serviceName, - 'metrics', - array( - 'methods' => array( - 'list' => array( - 'path' => 'metadata/metrics', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->payments = new Google_Service_AdSense_Payments_Resource( - $this, - $this->serviceName, - 'payments', - array( - 'methods' => array( - 'list' => array( - 'path' => 'payments', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->reports = new Google_Service_AdSense_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'metric' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'currency' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'useTimezoneReporting' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'dimension' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'accountId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->reports_saved = new Google_Service_AdSense_ReportsSaved_Resource( - $this, - $this->serviceName, - 'saved', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'reports/{savedReportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'savedReportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'reports/saved', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->savedadstyles = new Google_Service_AdSense_Savedadstyles_Resource( - $this, - $this->serviceName, - 'savedadstyles', - array( - 'methods' => array( - 'get' => array( - 'path' => 'savedadstyles/{savedAdStyleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'savedAdStyleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'savedadstyles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->urlchannels = new Google_Service_AdSense_Urlchannels_Resource( - $this, - $this->serviceName, - 'urlchannels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'adclients/{adClientId}/urlchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the AdSense service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'adsense/v1.4/'; + $this->version = 'v1.4'; + $this->serviceName = 'adsense'; + + $this->accounts = new Google_Service_AdSense_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'accounts/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tree' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => 'accounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->accounts_adclients = new Google_Service_AdSense_AccountsAdclients_Resource( + $this, + $this->serviceName, + 'adclients', + array( + 'methods' => array( + 'list' => array( + 'path' => 'accounts/{accountId}/adclients', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->accounts_adunits = new Google_Service_AdSense_AccountsAdunits_Resource( + $this, + $this->serviceName, + 'adunits', + array( + 'methods' => array( + 'get' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getAdCode' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeInactive' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->accounts_adunits_customchannels = new Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource( + $this, + $this->serviceName, + 'customchannels', + array( + 'methods' => array( + 'list' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->accounts_alerts = new Google_Service_AdSense_AccountsAlerts_Resource( + $this, + $this->serviceName, + 'alerts', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'accounts/{accountId}/alerts/{alertId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'alertId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'accounts/{accountId}/alerts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_customchannels = new Google_Service_AdSense_AccountsCustomchannels_Resource( + $this, + $this->serviceName, + 'customchannels', + array( + 'methods' => array( + 'get' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customChannelId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->accounts_customchannels_adunits = new Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource( + $this, + $this->serviceName, + 'adunits', + array( + 'methods' => array( + 'list' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customChannelId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeInactive' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->accounts_payments = new Google_Service_AdSense_AccountsPayments_Resource( + $this, + $this->serviceName, + 'payments', + array( + 'methods' => array( + 'list' => array( + 'path' => 'accounts/{accountId}/payments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accounts_reports = new Google_Service_AdSense_AccountsReports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'generate' => array( + 'path' => 'accounts/{accountId}/reports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sort' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'metric' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'currency' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'useTimezoneReporting' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'dimension' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->accounts_reports_saved = new Google_Service_AdSense_AccountsReportsSaved_Resource( + $this, + $this->serviceName, + 'saved', + array( + 'methods' => array( + 'generate' => array( + 'path' => 'accounts/{accountId}/reports/{savedReportId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'savedReportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'list' => array( + 'path' => 'accounts/{accountId}/reports/saved', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->accounts_savedadstyles = new Google_Service_AdSense_AccountsSavedadstyles_Resource( + $this, + $this->serviceName, + 'savedadstyles', + array( + 'methods' => array( + 'get' => array( + 'path' => 'accounts/{accountId}/savedadstyles/{savedAdStyleId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'savedAdStyleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'accounts/{accountId}/savedadstyles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->accounts_urlchannels = new Google_Service_AdSense_AccountsUrlchannels_Resource( + $this, + $this->serviceName, + 'urlchannels', + array( + 'methods' => array( + 'list' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->adclients = new Google_Service_AdSense_Adclients_Resource( + $this, + $this->serviceName, + 'adclients', + array( + 'methods' => array( + 'list' => array( + 'path' => 'adclients', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->adunits = new Google_Service_AdSense_Adunits_Resource( + $this, + $this->serviceName, + 'adunits', + array( + 'methods' => array( + 'get' => array( + 'path' => 'adclients/{adClientId}/adunits/{adUnitId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getAdCode' => array( + 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/adcode', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'adclients/{adClientId}/adunits', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeInactive' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->adunits_customchannels = new Google_Service_AdSense_AdunitsCustomchannels_Resource( + $this, + $this->serviceName, + 'customchannels', + array( + 'methods' => array( + 'list' => array( + 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->alerts = new Google_Service_AdSense_Alerts_Resource( + $this, + $this->serviceName, + 'alerts', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'alerts/{alertId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'alertId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'alerts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->customchannels = new Google_Service_AdSense_Customchannels_Resource( + $this, + $this->serviceName, + 'customchannels', + array( + 'methods' => array( + 'get' => array( + 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customChannelId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'adclients/{adClientId}/customchannels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->customchannels_adunits = new Google_Service_AdSense_CustomchannelsAdunits_Resource( + $this, + $this->serviceName, + 'adunits', + array( + 'methods' => array( + 'list' => array( + 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customChannelId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeInactive' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->metadata_dimensions = new Google_Service_AdSense_MetadataDimensions_Resource( + $this, + $this->serviceName, + 'dimensions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'metadata/dimensions', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->metadata_metrics = new Google_Service_AdSense_MetadataMetrics_Resource( + $this, + $this->serviceName, + 'metrics', + array( + 'methods' => array( + 'list' => array( + 'path' => 'metadata/metrics', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->payments = new Google_Service_AdSense_Payments_Resource( + $this, + $this->serviceName, + 'payments', + array( + 'methods' => array( + 'list' => array( + 'path' => 'payments', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->reports = new Google_Service_AdSense_Reports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'generate' => array( + 'path' => 'reports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sort' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'metric' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'currency' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'useTimezoneReporting' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'dimension' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'accountId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->reports_saved = new Google_Service_AdSense_ReportsSaved_Resource( + $this, + $this->serviceName, + 'saved', + array( + 'methods' => array( + 'generate' => array( + 'path' => 'reports/{savedReportId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'savedReportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'list' => array( + 'path' => 'reports/saved', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->savedadstyles = new Google_Service_AdSense_Savedadstyles_Resource( + $this, + $this->serviceName, + 'savedadstyles', + array( + 'methods' => array( + 'get' => array( + 'path' => 'savedadstyles/{savedAdStyleId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'savedAdStyleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'savedadstyles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->urlchannels = new Google_Service_AdSense_Urlchannels_Resource( + $this, + $this->serviceName, + 'urlchannels', + array( + 'methods' => array( + 'list' => array( + 'path' => 'adclients/{adClientId}/urlchannels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } } @@ -1067,44 +1065,42 @@ class Google_Service_AdSense extends Google_Service * $accounts = $adsenseService->accounts; * */ -class Google_Service_AdSense_Accounts_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_Accounts_Resource extends Google_Service_Resource { - /** - * Get information about the selected AdSense account. (accounts.get) - * - * @param string $accountId - * Account to get information about. - * @param array $optParams Optional parameters. - * - * @opt_param bool tree - * Whether the tree of sub accounts should be returned. - * @return Google_Service_AdSense_Account - */ - public function get($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSense_Account"); - } - /** - * List all accounts available to this AdSense account. (accounts.listAccounts) - * - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param int maxResults - * The maximum number of accounts to include in the response, used for paging. - * @return Google_Service_AdSense_Accounts - */ - public function listAccounts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Accounts"); - } + /** + * Get information about the selected AdSense account. (accounts.get) + * + * @param string $accountId + * Account to get information about. + * @param array $optParams Optional parameters. + * + * @opt_param bool tree + * Whether the tree of sub accounts should be returned. + * @return Google_Service_AdSense_Account + */ + public function get($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSense_Account"); + } + + /** + * List all accounts available to this AdSense account. (accounts.listAccounts) + * + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param int maxResults + * The maximum number of accounts to include in the response, used for paging. + * @return Google_Service_AdSense_Accounts + */ + public function listAccounts($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_Accounts"); + } } /** @@ -1115,31 +1111,30 @@ class Google_Service_AdSense_Accounts_Resource extends Google_Service_Resource * $adclients = $adsenseService->adclients; * */ -class Google_Service_AdSense_AccountsAdclients_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AccountsAdclients_Resource extends Google_Service_Resource { - /** - * List all ad clients in the specified account. - * (adclients.listAccountsAdclients) - * - * @param string $accountId - * Account for which to list ad clients. - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param int maxResults - * The maximum number of ad clients to include in the response, used for paging. - * @return Google_Service_AdSense_AdClients - */ - public function listAccountsAdclients($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_AdClients"); - } + /** + * List all ad clients in the specified account. + * (adclients.listAccountsAdclients) + * + * @param string $accountId + * Account for which to list ad clients. + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param int maxResults + * The maximum number of ad clients to include in the response, used for paging. + * @return Google_Service_AdSense_AdClients + */ + public function listAccountsAdclients($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_AdClients"); + } } + /** * The "adunits" collection of methods. * Typical usage is: @@ -1148,71 +1143,69 @@ class Google_Service_AdSense_AccountsAdclients_Resource extends Google_Service_R * $adunits = $adsenseService->adunits; * */ -class Google_Service_AdSense_AccountsAdunits_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AccountsAdunits_Resource extends Google_Service_Resource { - /** - * Gets the specified ad unit in the specified ad client for the specified - * account. (adunits.get) - * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client for which to get the ad unit. - * @param string $adUnitId - * Ad unit to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_AdUnit - */ - public function get($accountId, $adClientId, $adUnitId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSense_AdUnit"); - } - /** - * Get ad code for the specified ad unit. (adunits.getAdCode) - * - * @param string $accountId - * Account which contains the ad client. - * @param string $adClientId - * Ad client with contains the ad unit. - * @param string $adUnitId - * Ad unit to get the code for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_AdCode - */ - public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode"); - } - /** - * List all ad units in the specified ad client for the specified account. - * (adunits.listAccountsAdunits) - * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param 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. - * @opt_param int maxResults - * The maximum number of ad units to include in the response, used for paging. - * @return Google_Service_AdSense_AdUnits - */ - public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); - } + /** + * Gets the specified ad unit in the specified ad client for the specified + * account. (adunits.get) + * + * @param string $accountId + * Account to which the ad client belongs. + * @param string $adClientId + * Ad client for which to get the ad unit. + * @param string $adUnitId + * Ad unit to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_AdUnit + */ + public function get($accountId, $adClientId, $adUnitId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSense_AdUnit"); + } + + /** + * Get ad code for the specified ad unit. (adunits.getAdCode) + * + * @param string $accountId + * Account which contains the ad client. + * @param string $adClientId + * Ad client with contains the ad unit. + * @param string $adUnitId + * Ad unit to get the code for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_AdCode + */ + public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array_merge($params, $optParams); + return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode"); + } + + /** + * List all ad units in the specified ad client for the specified account. + * (adunits.listAccountsAdunits) + * + * @param string $accountId + * Account to which the ad client belongs. + * @param string $adClientId + * Ad client for which to list ad units. + * @param array $optParams Optional parameters. + * + * @opt_param bool includeInactive + * Whether to include inactive ad units. Default: true. + * @opt_param 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. + * @opt_param int maxResults + * The maximum number of ad units to include in the response, used for paging. + * @return Google_Service_AdSense_AdUnits + */ + public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); + } } /** @@ -1223,35 +1216,34 @@ class Google_Service_AdSense_AccountsAdunits_Resource extends Google_Service_Res * $customchannels = $adsenseService->customchannels; * */ -class Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource extends Google_Service_Resource { - /** - * List all custom channels which the specified ad unit belongs to. - * (customchannels.listAccountsAdunitsCustomchannels) - * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client which contains the ad unit. - * @param string $adUnitId - * Ad unit for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @opt_param 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. - * @opt_param int maxResults - * The maximum number of custom channels to include in the response, used for paging. - * @return Google_Service_AdSense_CustomChannels - */ - public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); - } + /** + * List all custom channels which the specified ad unit belongs to. + * (customchannels.listAccountsAdunitsCustomchannels) + * + * @param string $accountId + * Account to which the ad client belongs. + * @param string $adClientId + * Ad client which contains the ad unit. + * @param string $adUnitId + * Ad unit for which to list custom channels. + * @param array $optParams Optional parameters. + * + * @opt_param 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. + * @opt_param int maxResults + * The maximum number of custom channels to include in the response, used for paging. + * @return Google_Service_AdSense_CustomChannels + */ + public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); + } } + /** * The "alerts" collection of methods. * Typical usage is: @@ -1260,46 +1252,45 @@ class Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource extends Goog * $alerts = $adsenseService->alerts; * */ -class Google_Service_AdSense_AccountsAlerts_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AccountsAlerts_Resource extends Google_Service_Resource { - /** - * Dismiss (delete) the specified alert from the specified publisher AdSense - * account. (alerts.delete) - * - * @param string $accountId - * Account which contains the ad unit. - * @param string $alertId - * Alert to delete. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $alertId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'alertId' => $alertId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * List the alerts for the specified AdSense account. - * (alerts.listAccountsAlerts) - * - * @param string $accountId - * Account for which to retrieve the alerts. - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * The locale to use for translating alert messages. The account locale will be used if this is not - * supplied. The AdSense default (English) will be used if the supplied locale is invalid or - * unsupported. - * @return Google_Service_AdSense_Alerts - */ - public function listAccountsAlerts($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Alerts"); - } + /** + * Dismiss (delete) the specified alert from the specified publisher AdSense + * account. (alerts.delete) + * + * @param string $accountId + * Account which contains the ad unit. + * @param string $alertId + * Alert to delete. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $alertId, $optParams = array()) { + $params = array('accountId' => $accountId, 'alertId' => $alertId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * List the alerts for the specified AdSense account. + * (alerts.listAccountsAlerts) + * + * @param string $accountId + * Account for which to retrieve the alerts. + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * The locale to use for translating alert messages. The account locale will be used if this is not + * supplied. The AdSense default (English) will be used if the supplied locale is invalid or + * unsupported. + * @return Google_Service_AdSense_Alerts + */ + public function listAccountsAlerts($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_Alerts"); + } } + /** * The "customchannels" collection of methods. * Typical usage is: @@ -1308,51 +1299,49 @@ class Google_Service_AdSense_AccountsAlerts_Resource extends Google_Service_Reso * $customchannels = $adsenseService->customchannels; * */ -class Google_Service_AdSense_AccountsCustomchannels_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AccountsCustomchannels_Resource extends Google_Service_Resource { - /** - * Get the specified custom channel from the specified ad client for the - * specified account. (customchannels.get) - * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client which contains the custom channel. - * @param string $customChannelId - * Custom channel to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_CustomChannel - */ - public function get($accountId, $adClientId, $customChannelId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel"); - } - /** - * List all custom channels in the specified ad client for the specified - * account. (customchannels.listAccountsCustomchannels) - * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @opt_param 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. - * @opt_param int maxResults - * The maximum number of custom channels to include in the response, used for paging. - * @return Google_Service_AdSense_CustomChannels - */ - public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); - } + /** + * Get the specified custom channel from the specified ad client for the + * specified account. (customchannels.get) + * + * @param string $accountId + * Account to which the ad client belongs. + * @param string $adClientId + * Ad client which contains the custom channel. + * @param string $customChannelId + * Custom channel to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_CustomChannel + */ + public function get($accountId, $adClientId, $customChannelId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel"); + } + + /** + * List all custom channels in the specified ad client for the specified + * account. (customchannels.listAccountsCustomchannels) + * + * @param string $accountId + * Account to which the ad client belongs. + * @param string $adClientId + * Ad client for which to list custom channels. + * @param array $optParams Optional parameters. + * + * @opt_param 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. + * @opt_param int maxResults + * The maximum number of custom channels to include in the response, used for paging. + * @return Google_Service_AdSense_CustomChannels + */ + public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); + } } /** @@ -1363,37 +1352,36 @@ class Google_Service_AdSense_AccountsCustomchannels_Resource extends Google_Serv * $adunits = $adsenseService->adunits; * */ -class Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource extends Google_Service_Resource { - /** - * List all ad units in the specified custom channel. - * (adunits.listAccountsCustomchannelsAdunits) - * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client which contains the custom channel. - * @param string $customChannelId - * Custom channel for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param int maxResults - * The maximum number of ad units to include in the response, used for paging. - * @opt_param string pageToken - * A continuation token, used to page through ad units. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @return Google_Service_AdSense_AdUnits - */ - public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); - } + /** + * List all ad units in the specified custom channel. + * (adunits.listAccountsCustomchannelsAdunits) + * + * @param string $accountId + * Account to which the ad client belongs. + * @param string $adClientId + * Ad client which contains the custom channel. + * @param string $customChannelId + * Custom channel for which to list ad units. + * @param array $optParams Optional parameters. + * + * @opt_param bool includeInactive + * Whether to include inactive ad units. Default: true. + * @opt_param int maxResults + * The maximum number of ad units to include in the response, used for paging. + * @opt_param string pageToken + * A continuation token, used to page through ad units. To retrieve the next page, set this + * parameter to the value of "nextPageToken" from the previous response. + * @return Google_Service_AdSense_AdUnits + */ + public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); + } } + /** * The "payments" collection of methods. * Typical usage is: @@ -1402,25 +1390,24 @@ class Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource extends Goog * $payments = $adsenseService->payments; * */ -class Google_Service_AdSense_AccountsPayments_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AccountsPayments_Resource extends Google_Service_Resource { - /** - * List the payments for the specified AdSense account. - * (payments.listAccountsPayments) - * - * @param string $accountId - * Account for which to retrieve the payments. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_Payments - */ - public function listAccountsPayments($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Payments"); - } + /** + * List the payments for the specified AdSense account. + * (payments.listAccountsPayments) + * + * @param string $accountId + * Account for which to retrieve the payments. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_Payments + */ + public function listAccountsPayments($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_Payments"); + } } + /** * The "reports" collection of methods. * Typical usage is: @@ -1429,53 +1416,51 @@ class Google_Service_AdSense_AccountsPayments_Resource extends Google_Service_Re * $reports = $adsenseService->reports; * */ -class Google_Service_AdSense_AccountsReports_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AccountsReports_Resource extends Google_Service_Resource { - /** - * Generate an AdSense report based on the report request sent in the query - * parameters. Returns the result as JSON; to retrieve output in CSV format - * specify "alt=csv" as a query parameter. (reports.generate) - * - * @param string $accountId - * Account upon which to report. - * @param string $startDate - * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. - * @param string $endDate - * End of the date range to report on in "YYYY-MM-DD" format, inclusive. - * @param array $optParams Optional parameters. - * - * @opt_param string sort - * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" - * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted - * ascending. - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param string metric - * Numeric columns to include in the report. - * @opt_param int maxResults - * The maximum number of rows of report data to return. - * @opt_param string filter - * Filters to be run on the report. - * @opt_param string currency - * Optional currency to use when reporting on monetary metrics. Defaults to the account's currency - * if not set. - * @opt_param int startIndex - * Index of the first row of report data to return. - * @opt_param bool useTimezoneReporting - * Whether the report should be generated in the AdSense account's local timezone. If false default - * PST/PDT timezone will be used. - * @opt_param string dimension - * Dimensions to base the report on. - * @return Google_Service_AdSense_AdsenseReportsGenerateResponse - */ - public function generate($accountId, $startDate, $endDate, $optParams = array()) - { - $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); - } + /** + * Generate an AdSense report based on the report request sent in the query + * parameters. Returns the result as JSON; to retrieve output in CSV format + * specify "alt=csv" as a query parameter. (reports.generate) + * + * @param string $accountId + * Account upon which to report. + * @param string $startDate + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + * @param string $endDate + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + * @param array $optParams Optional parameters. + * + * @opt_param string sort + * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" + * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted + * ascending. + * @opt_param string locale + * Optional locale to use for translating report output to a local language. Defaults to "en_US" if + * not specified. + * @opt_param string metric + * Numeric columns to include in the report. + * @opt_param int maxResults + * The maximum number of rows of report data to return. + * @opt_param string filter + * Filters to be run on the report. + * @opt_param string currency + * Optional currency to use when reporting on monetary metrics. Defaults to the account's currency + * if not set. + * @opt_param int startIndex + * Index of the first row of report data to return. + * @opt_param bool useTimezoneReporting + * Whether the report should be generated in the AdSense account's local timezone. If false default + * PST/PDT timezone will be used. + * @opt_param string dimension + * Dimensions to base the report on. + * @return Google_Service_AdSense_AdsenseReportsGenerateResponse + */ + public function generate($accountId, $startDate, $endDate, $optParams = array()) { + $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate); + $params = array_merge($params, $optParams); + return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); + } } /** @@ -1486,56 +1471,55 @@ class Google_Service_AdSense_AccountsReports_Resource extends Google_Service_Res * $saved = $adsenseService->saved; * */ -class Google_Service_AdSense_AccountsReportsSaved_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AccountsReportsSaved_Resource extends Google_Service_Resource { - /** - * Generate an AdSense report based on the saved report ID sent in the query - * parameters. (saved.generate) - * - * @param string $accountId - * Account to which the saved reports belong. - * @param string $savedReportId - * The saved report to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param int startIndex - * Index of the first row of report data to return. - * @opt_param int maxResults - * The maximum number of rows of report data to return. - * @return Google_Service_AdSense_AdsenseReportsGenerateResponse - */ - public function generate($accountId, $savedReportId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); - } - /** - * List all saved reports in the specified AdSense account. - * (saved.listAccountsReportsSaved) - * - * @param string $accountId - * Account to which the saved reports belong. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token, used to page through saved reports. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of saved reports to include in the response, used for paging. - * @return Google_Service_AdSense_SavedReports - */ - public function listAccountsReportsSaved($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_SavedReports"); - } + /** + * Generate an AdSense report based on the saved report ID sent in the query + * parameters. (saved.generate) + * + * @param string $accountId + * Account to which the saved reports belong. + * @param string $savedReportId + * The saved report to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * Optional locale to use for translating report output to a local language. Defaults to "en_US" if + * not specified. + * @opt_param int startIndex + * Index of the first row of report data to return. + * @opt_param int maxResults + * The maximum number of rows of report data to return. + * @return Google_Service_AdSense_AdsenseReportsGenerateResponse + */ + public function generate($accountId, $savedReportId, $optParams = array()) { + $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId); + $params = array_merge($params, $optParams); + return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); + } + + /** + * List all saved reports in the specified AdSense account. + * (saved.listAccountsReportsSaved) + * + * @param string $accountId + * Account to which the saved reports belong. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token, used to page through saved reports. To retrieve the next page, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param int maxResults + * The maximum number of saved reports to include in the response, used for paging. + * @return Google_Service_AdSense_SavedReports + */ + public function listAccountsReportsSaved($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_SavedReports"); + } } + /** * The "savedadstyles" collection of methods. * Typical usage is: @@ -1544,47 +1528,46 @@ class Google_Service_AdSense_AccountsReportsSaved_Resource extends Google_Servic * $savedadstyles = $adsenseService->savedadstyles; * */ -class Google_Service_AdSense_AccountsSavedadstyles_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AccountsSavedadstyles_Resource extends Google_Service_Resource { - /** - * List a specific saved ad style for the specified account. (savedadstyles.get) - * - * @param string $accountId - * Account for which to get the saved ad style. - * @param string $savedAdStyleId - * Saved ad style to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_SavedAdStyle - */ - public function get($accountId, $savedAdStyleId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle"); - } - /** - * List all saved ad styles in the specified account. - * (savedadstyles.listAccountsSavedadstyles) - * - * @param string $accountId - * Account for which to list saved ad styles. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token, used to page through saved ad styles. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of saved ad styles to include in the response, used for paging. - * @return Google_Service_AdSense_SavedAdStyles - */ - public function listAccountsSavedadstyles($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles"); - } + /** + * List a specific saved ad style for the specified account. (savedadstyles.get) + * + * @param string $accountId + * Account for which to get the saved ad style. + * @param string $savedAdStyleId + * Saved ad style to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_SavedAdStyle + */ + public function get($accountId, $savedAdStyleId, $optParams = array()) { + $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle"); + } + + /** + * List all saved ad styles in the specified account. + * (savedadstyles.listAccountsSavedadstyles) + * + * @param string $accountId + * Account for which to list saved ad styles. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token, used to page through saved ad styles. To retrieve the next page, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param int maxResults + * The maximum number of saved ad styles to include in the response, used for paging. + * @return Google_Service_AdSense_SavedAdStyles + */ + public function listAccountsSavedadstyles($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles"); + } } + /** * The "urlchannels" collection of methods. * Typical usage is: @@ -1593,32 +1576,30 @@ class Google_Service_AdSense_AccountsSavedadstyles_Resource extends Google_Servi * $urlchannels = $adsenseService->urlchannels; * */ -class Google_Service_AdSense_AccountsUrlchannels_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AccountsUrlchannels_Resource extends Google_Service_Resource { - /** - * List all URL channels in the specified ad client for the specified account. - * (urlchannels.listAccountsUrlchannels) - * - * @param string $accountId - * Account to which the ad client belongs. - * @param string $adClientId - * Ad client for which to list URL channels. - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param int maxResults - * The maximum number of URL channels to include in the response, used for paging. - * @return Google_Service_AdSense_UrlChannels - */ - public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels"); - } + /** + * List all URL channels in the specified ad client for the specified account. + * (urlchannels.listAccountsUrlchannels) + * + * @param string $accountId + * Account to which the ad client belongs. + * @param string $adClientId + * Ad client for which to list URL channels. + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param int maxResults + * The maximum number of URL channels to include in the response, used for paging. + * @return Google_Service_AdSense_UrlChannels + */ + public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels"); + } } /** @@ -1629,27 +1610,25 @@ class Google_Service_AdSense_AccountsUrlchannels_Resource extends Google_Service * $adclients = $adsenseService->adclients; * */ -class Google_Service_AdSense_Adclients_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_Adclients_Resource extends Google_Service_Resource { - /** - * List all ad clients in this AdSense account. (adclients.listAdclients) - * - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param int maxResults - * The maximum number of ad clients to include in the response, used for paging. - * @return Google_Service_AdSense_AdClients - */ - public function listAdclients($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_AdClients"); - } + /** + * List all ad clients in this AdSense account. (adclients.listAdclients) + * + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param int maxResults + * The maximum number of ad clients to include in the response, used for paging. + * @return Google_Service_AdSense_AdClients + */ + public function listAdclients($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_AdClients"); + } } /** @@ -1660,64 +1639,62 @@ class Google_Service_AdSense_Adclients_Resource extends Google_Service_Resource * $adunits = $adsenseService->adunits; * */ -class Google_Service_AdSense_Adunits_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_Adunits_Resource extends Google_Service_Resource { - /** - * Gets the specified ad unit in the specified ad client. (adunits.get) - * - * @param string $adClientId - * Ad client for which to get the ad unit. - * @param string $adUnitId - * Ad unit to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_AdUnit - */ - public function get($adClientId, $adUnitId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSense_AdUnit"); - } - /** - * Get ad code for the specified ad unit. (adunits.getAdCode) - * - * @param string $adClientId - * Ad client with contains the ad unit. - * @param string $adUnitId - * Ad unit to get the code for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_AdCode - */ - public function getAdCode($adClientId, $adUnitId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode"); - } - /** - * List all ad units in the specified ad client for this AdSense account. - * (adunits.listAdunits) - * - * @param string $adClientId - * Ad client for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param 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. - * @opt_param int maxResults - * The maximum number of ad units to include in the response, used for paging. - * @return Google_Service_AdSense_AdUnits - */ - public function listAdunits($adClientId, $optParams = array()) - { - $params = array('adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); - } + /** + * Gets the specified ad unit in the specified ad client. (adunits.get) + * + * @param string $adClientId + * Ad client for which to get the ad unit. + * @param string $adUnitId + * Ad unit to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_AdUnit + */ + public function get($adClientId, $adUnitId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSense_AdUnit"); + } + + /** + * Get ad code for the specified ad unit. (adunits.getAdCode) + * + * @param string $adClientId + * Ad client with contains the ad unit. + * @param string $adUnitId + * Ad unit to get the code for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_AdCode + */ + public function getAdCode($adClientId, $adUnitId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array_merge($params, $optParams); + return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode"); + } + + /** + * List all ad units in the specified ad client for this AdSense account. + * (adunits.listAdunits) + * + * @param string $adClientId + * Ad client for which to list ad units. + * @param array $optParams Optional parameters. + * + * @opt_param bool includeInactive + * Whether to include inactive ad units. Default: true. + * @opt_param 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. + * @opt_param int maxResults + * The maximum number of ad units to include in the response, used for paging. + * @return Google_Service_AdSense_AdUnits + */ + public function listAdunits($adClientId, $optParams = array()) { + $params = array('adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); + } } /** @@ -1728,32 +1705,30 @@ class Google_Service_AdSense_Adunits_Resource extends Google_Service_Resource * $customchannels = $adsenseService->customchannels; * */ -class Google_Service_AdSense_AdunitsCustomchannels_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_AdunitsCustomchannels_Resource extends Google_Service_Resource { - /** - * List all custom channels which the specified ad unit belongs to. - * (customchannels.listAdunitsCustomchannels) - * - * @param string $adClientId - * Ad client which contains the ad unit. - * @param string $adUnitId - * Ad unit for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @opt_param 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. - * @opt_param int maxResults - * The maximum number of custom channels to include in the response, used for paging. - * @return Google_Service_AdSense_CustomChannels - */ - public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); - } + /** + * List all custom channels which the specified ad unit belongs to. + * (customchannels.listAdunitsCustomchannels) + * + * @param string $adClientId + * Ad client which contains the ad unit. + * @param string $adUnitId + * Ad unit for which to list custom channels. + * @param array $optParams Optional parameters. + * + * @opt_param 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. + * @opt_param int maxResults + * The maximum number of custom channels to include in the response, used for paging. + * @return Google_Service_AdSense_CustomChannels + */ + public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); + } } /** @@ -1764,40 +1739,38 @@ class Google_Service_AdSense_AdunitsCustomchannels_Resource extends Google_Servi * $alerts = $adsenseService->alerts; * */ -class Google_Service_AdSense_Alerts_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_Alerts_Resource extends Google_Service_Resource { - /** - * Dismiss (delete) the specified alert from the publisher's AdSense account. - * (alerts.delete) - * - * @param string $alertId - * Alert to delete. - * @param array $optParams Optional parameters. - */ - public function delete($alertId, $optParams = array()) - { - $params = array('alertId' => $alertId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * List the alerts for this AdSense account. (alerts.listAlerts) - * - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * The locale to use for translating alert messages. The account locale will be used if this is not - * supplied. The AdSense default (English) will be used if the supplied locale is invalid or - * unsupported. - * @return Google_Service_AdSense_Alerts - */ - public function listAlerts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Alerts"); - } + /** + * Dismiss (delete) the specified alert from the publisher's AdSense account. + * (alerts.delete) + * + * @param string $alertId + * Alert to delete. + * @param array $optParams Optional parameters. + */ + public function delete($alertId, $optParams = array()) { + $params = array('alertId' => $alertId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * List the alerts for this AdSense account. (alerts.listAlerts) + * + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * The locale to use for translating alert messages. The account locale will be used if this is not + * supplied. The AdSense default (English) will be used if the supplied locale is invalid or + * unsupported. + * @return Google_Service_AdSense_Alerts + */ + public function listAlerts($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_Alerts"); + } } /** @@ -1808,47 +1781,45 @@ class Google_Service_AdSense_Alerts_Resource extends Google_Service_Resource * $customchannels = $adsenseService->customchannels; * */ -class Google_Service_AdSense_Customchannels_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_Customchannels_Resource extends Google_Service_Resource { - /** - * Get the specified custom channel from the specified ad client. - * (customchannels.get) - * - * @param string $adClientId - * Ad client which contains the custom channel. - * @param string $customChannelId - * Custom channel to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_CustomChannel - */ - public function get($adClientId, $customChannelId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel"); - } - /** - * List all custom channels in the specified ad client for this AdSense account. - * (customchannels.listCustomchannels) - * - * @param string $adClientId - * Ad client for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param int maxResults - * The maximum number of custom channels to include in the response, used for paging. - * @return Google_Service_AdSense_CustomChannels - */ - public function listCustomchannels($adClientId, $optParams = array()) - { - $params = array('adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); - } + /** + * Get the specified custom channel from the specified ad client. + * (customchannels.get) + * + * @param string $adClientId + * Ad client which contains the custom channel. + * @param string $customChannelId + * Custom channel to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_CustomChannel + */ + public function get($adClientId, $customChannelId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel"); + } + + /** + * List all custom channels in the specified ad client for this AdSense account. + * (customchannels.listCustomchannels) + * + * @param string $adClientId + * Ad client for which to list custom channels. + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param int maxResults + * The maximum number of custom channels to include in the response, used for paging. + * @return Google_Service_AdSense_CustomChannels + */ + public function listCustomchannels($adClientId, $optParams = array()) { + $params = array('adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels"); + } } /** @@ -1859,34 +1830,32 @@ class Google_Service_AdSense_Customchannels_Resource extends Google_Service_Reso * $adunits = $adsenseService->adunits; * */ -class Google_Service_AdSense_CustomchannelsAdunits_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_CustomchannelsAdunits_Resource extends Google_Service_Resource { - /** - * List all ad units in the specified custom channel. - * (adunits.listCustomchannelsAdunits) - * - * @param string $adClientId - * Ad client which contains the custom channel. - * @param string $customChannelId - * Custom channel for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param 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. - * @opt_param int maxResults - * The maximum number of ad units to include in the response, used for paging. - * @return Google_Service_AdSense_AdUnits - */ - public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); - } + /** + * List all ad units in the specified custom channel. + * (adunits.listCustomchannelsAdunits) + * + * @param string $adClientId + * Ad client which contains the custom channel. + * @param string $customChannelId + * Custom channel for which to list ad units. + * @param array $optParams Optional parameters. + * + * @opt_param bool includeInactive + * Whether to include inactive ad units. Default: true. + * @opt_param 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. + * @opt_param int maxResults + * The maximum number of ad units to include in the response, used for paging. + * @return Google_Service_AdSense_AdUnits + */ + public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_AdUnits"); + } } /** @@ -1897,8 +1866,7 @@ class Google_Service_AdSense_CustomchannelsAdunits_Resource extends Google_Servi * $metadata = $adsenseService->metadata; * */ -class Google_Service_AdSense_Metadata_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_Metadata_Resource extends Google_Service_Resource { } @@ -1910,23 +1878,22 @@ class Google_Service_AdSense_Metadata_Resource extends Google_Service_Resource * $dimensions = $adsenseService->dimensions; * */ -class Google_Service_AdSense_MetadataDimensions_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_MetadataDimensions_Resource extends Google_Service_Resource { - /** - * List the metadata for the dimensions available to this AdSense account. - * (dimensions.listMetadataDimensions) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_Metadata - */ - public function listMetadataDimensions($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Metadata"); - } + /** + * List the metadata for the dimensions available to this AdSense account. + * (dimensions.listMetadataDimensions) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_Metadata + */ + public function listMetadataDimensions($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_Metadata"); + } } + /** * The "metrics" collection of methods. * Typical usage is: @@ -1935,22 +1902,20 @@ class Google_Service_AdSense_MetadataDimensions_Resource extends Google_Service_ * $metrics = $adsenseService->metrics; * */ -class Google_Service_AdSense_MetadataMetrics_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_MetadataMetrics_Resource extends Google_Service_Resource { - /** - * List the metadata for the metrics available to this AdSense account. - * (metrics.listMetadataMetrics) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_Metadata - */ - public function listMetadataMetrics($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Metadata"); - } + /** + * List the metadata for the metrics available to this AdSense account. + * (metrics.listMetadataMetrics) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_Metadata + */ + public function listMetadataMetrics($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_Metadata"); + } } /** @@ -1961,21 +1926,19 @@ class Google_Service_AdSense_MetadataMetrics_Resource extends Google_Service_Res * $payments = $adsenseService->payments; * */ -class Google_Service_AdSense_Payments_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_Payments_Resource extends Google_Service_Resource { - /** - * List the payments for this AdSense account. (payments.listPayments) - * - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_Payments - */ - public function listPayments($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_Payments"); - } + /** + * List the payments for this AdSense account. (payments.listPayments) + * + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_Payments + */ + public function listPayments($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_Payments"); + } } /** @@ -1986,53 +1949,51 @@ class Google_Service_AdSense_Payments_Resource extends Google_Service_Resource * $reports = $adsenseService->reports; * */ -class Google_Service_AdSense_Reports_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_Reports_Resource extends Google_Service_Resource { - /** - * Generate an AdSense report based on the report request sent in the query - * parameters. Returns the result as JSON; to retrieve output in CSV format - * specify "alt=csv" as a query parameter. (reports.generate) - * - * @param string $startDate - * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. - * @param string $endDate - * End of the date range to report on in "YYYY-MM-DD" format, inclusive. - * @param array $optParams Optional parameters. - * - * @opt_param string sort - * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" - * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted - * ascending. - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param string metric - * Numeric columns to include in the report. - * @opt_param int maxResults - * The maximum number of rows of report data to return. - * @opt_param string filter - * Filters to be run on the report. - * @opt_param string currency - * Optional currency to use when reporting on monetary metrics. Defaults to the account's currency - * if not set. - * @opt_param int startIndex - * Index of the first row of report data to return. - * @opt_param bool useTimezoneReporting - * Whether the report should be generated in the AdSense account's local timezone. If false default - * PST/PDT timezone will be used. - * @opt_param string dimension - * Dimensions to base the report on. - * @opt_param string accountId - * Accounts upon which to report. - * @return Google_Service_AdSense_AdsenseReportsGenerateResponse - */ - public function generate($startDate, $endDate, $optParams = array()) - { - $params = array('startDate' => $startDate, 'endDate' => $endDate); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); - } + /** + * Generate an AdSense report based on the report request sent in the query + * parameters. Returns the result as JSON; to retrieve output in CSV format + * specify "alt=csv" as a query parameter. (reports.generate) + * + * @param string $startDate + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + * @param string $endDate + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + * @param array $optParams Optional parameters. + * + * @opt_param string sort + * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" + * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted + * ascending. + * @opt_param string locale + * Optional locale to use for translating report output to a local language. Defaults to "en_US" if + * not specified. + * @opt_param string metric + * Numeric columns to include in the report. + * @opt_param int maxResults + * The maximum number of rows of report data to return. + * @opt_param string filter + * Filters to be run on the report. + * @opt_param string currency + * Optional currency to use when reporting on monetary metrics. Defaults to the account's currency + * if not set. + * @opt_param int startIndex + * Index of the first row of report data to return. + * @opt_param bool useTimezoneReporting + * Whether the report should be generated in the AdSense account's local timezone. If false default + * PST/PDT timezone will be used. + * @opt_param string dimension + * Dimensions to base the report on. + * @opt_param string accountId + * Accounts upon which to report. + * @return Google_Service_AdSense_AdsenseReportsGenerateResponse + */ + public function generate($startDate, $endDate, $optParams = array()) { + $params = array('startDate' => $startDate, 'endDate' => $endDate); + $params = array_merge($params, $optParams); + return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); + } } /** @@ -2043,50 +2004,48 @@ class Google_Service_AdSense_Reports_Resource extends Google_Service_Resource * $saved = $adsenseService->saved; * */ -class Google_Service_AdSense_ReportsSaved_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_ReportsSaved_Resource extends Google_Service_Resource { - /** - * Generate an AdSense report based on the saved report ID sent in the query - * parameters. (saved.generate) - * - * @param string $savedReportId - * The saved report to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param int startIndex - * Index of the first row of report data to return. - * @opt_param int maxResults - * The maximum number of rows of report data to return. - * @return Google_Service_AdSense_AdsenseReportsGenerateResponse - */ - public function generate($savedReportId, $optParams = array()) - { - $params = array('savedReportId' => $savedReportId); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); - } - /** - * List all saved reports in this AdSense account. (saved.listReportsSaved) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token, used to page through saved reports. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of saved reports to include in the response, used for paging. - * @return Google_Service_AdSense_SavedReports - */ - public function listReportsSaved($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_SavedReports"); - } + /** + * Generate an AdSense report based on the saved report ID sent in the query + * parameters. (saved.generate) + * + * @param string $savedReportId + * The saved report to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * Optional locale to use for translating report output to a local language. Defaults to "en_US" if + * not specified. + * @opt_param int startIndex + * Index of the first row of report data to return. + * @opt_param int maxResults + * The maximum number of rows of report data to return. + * @return Google_Service_AdSense_AdsenseReportsGenerateResponse + */ + public function generate($savedReportId, $optParams = array()) { + $params = array('savedReportId' => $savedReportId); + $params = array_merge($params, $optParams); + return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse"); + } + + /** + * List all saved reports in this AdSense account. (saved.listReportsSaved) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token, used to page through saved reports. To retrieve the next page, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param int maxResults + * The maximum number of saved reports to include in the response, used for paging. + * @return Google_Service_AdSense_SavedReports + */ + public function listReportsSaved($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_SavedReports"); + } } /** @@ -2097,42 +2056,40 @@ class Google_Service_AdSense_ReportsSaved_Resource extends Google_Service_Resour * $savedadstyles = $adsenseService->savedadstyles; * */ -class Google_Service_AdSense_Savedadstyles_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_Savedadstyles_Resource extends Google_Service_Resource { - /** - * Get a specific saved ad style from the user's account. (savedadstyles.get) - * - * @param string $savedAdStyleId - * Saved ad style to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSense_SavedAdStyle - */ - public function get($savedAdStyleId, $optParams = array()) - { - $params = array('savedAdStyleId' => $savedAdStyleId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle"); - } - /** - * List all saved ad styles in the user's account. - * (savedadstyles.listSavedadstyles) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token, used to page through saved ad styles. To retrieve the next page, set this - * parameter to the value of "nextPageToken" from the previous response. - * @opt_param int maxResults - * The maximum number of saved ad styles to include in the response, used for paging. - * @return Google_Service_AdSense_SavedAdStyles - */ - public function listSavedadstyles($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles"); - } + /** + * Get a specific saved ad style from the user's account. (savedadstyles.get) + * + * @param string $savedAdStyleId + * Saved ad style to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSense_SavedAdStyle + */ + public function get($savedAdStyleId, $optParams = array()) { + $params = array('savedAdStyleId' => $savedAdStyleId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle"); + } + + /** + * List all saved ad styles in the user's account. + * (savedadstyles.listSavedadstyles) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token, used to page through saved ad styles. To retrieve the next page, set this + * parameter to the value of "nextPageToken" from the previous response. + * @opt_param int maxResults + * The maximum number of saved ad styles to include in the response, used for paging. + * @return Google_Service_AdSense_SavedAdStyles + */ + public function listSavedadstyles($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles"); + } } /** @@ -2143,1628 +2100,1329 @@ class Google_Service_AdSense_Savedadstyles_Resource extends Google_Service_Resou * $urlchannels = $adsenseService->urlchannels; * */ -class Google_Service_AdSense_Urlchannels_Resource extends Google_Service_Resource -{ +class Google_Service_AdSense_Urlchannels_Resource extends Google_Service_Resource { - /** - * List all URL channels in the specified ad client for this AdSense account. - * (urlchannels.listUrlchannels) - * - * @param string $adClientId - * Ad client for which to list URL channels. - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param int maxResults - * The maximum number of URL channels to include in the response, used for paging. - * @return Google_Service_AdSense_UrlChannels - */ - public function listUrlchannels($adClientId, $optParams = array()) - { - $params = array('adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels"); - } + /** + * List all URL channels in the specified ad client for this AdSense account. + * (urlchannels.listUrlchannels) + * + * @param string $adClientId + * Ad client for which to list URL channels. + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param int maxResults + * The maximum number of URL channels to include in the response, used for paging. + * @return Google_Service_AdSense_UrlChannels + */ + public function listUrlchannels($adClientId, $optParams = array()) { + $params = array('adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels"); + } } +class Google_Service_AdSense_Account extends Google_Collection { + public $id; + public $kind; + public $name; + public $premium; + protected $subAccountsType = 'Google_Service_AdSense_Account'; + protected $subAccountsDataType = 'array'; + public $timezone; + public function setId($id) { + $this->id = $id; + } -class Google_Service_AdSense_Account extends Google_Collection -{ - public $id; - public $kind; - public $name; - public $premium; - protected $subAccountsType = 'Google_Service_AdSense_Account'; - protected $subAccountsDataType = 'array'; - public $timezone; + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setName($name) { + $this->name = $name; + } - public function getKind() - { - return $this->kind; - } + public function getName() { + return $this->name; + } - public function setName($name) - { - $this->name = $name; - } + public function setPremium($premium) { + $this->premium = $premium; + } - public function getName() - { - return $this->name; - } + public function getPremium() { + return $this->premium; + } - public function setPremium($premium) - { - $this->premium = $premium; - } + public function setSubAccounts($subAccounts) { + $this->subAccounts = $subAccounts; + } - public function getPremium() - { - return $this->premium; - } + public function getSubAccounts() { + return $this->subAccounts; + } - public function setSubAccounts($subAccounts) - { - $this->subAccounts = $subAccounts; - } + public function setTimezone($timezone) { + $this->timezone = $timezone; + } - public function getSubAccounts() - { - return $this->subAccounts; - } - - public function setTimezone($timezone) - { - $this->timezone = $timezone; - } - - public function getTimezone() - { - return $this->timezone; - } + public function getTimezone() { + return $this->timezone; + } } -class Google_Service_AdSense_Accounts extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSense_Account'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdSense_Accounts extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSense_Account'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdSense_AdClient extends Google_Model -{ - public $arcOptIn; - public $arcReviewMode; - public $id; - public $kind; - public $productCode; - public $supportsReporting; +class Google_Service_AdSense_AdClient extends Google_Model { + public $arcOptIn; + public $arcReviewMode; + public $id; + public $kind; + public $productCode; + public $supportsReporting; - public function setArcOptIn($arcOptIn) - { - $this->arcOptIn = $arcOptIn; - } + public function setArcOptIn($arcOptIn) { + $this->arcOptIn = $arcOptIn; + } - public function getArcOptIn() - { - return $this->arcOptIn; - } + public function getArcOptIn() { + return $this->arcOptIn; + } - public function setArcReviewMode($arcReviewMode) - { - $this->arcReviewMode = $arcReviewMode; - } + public function setArcReviewMode($arcReviewMode) { + $this->arcReviewMode = $arcReviewMode; + } - public function getArcReviewMode() - { - return $this->arcReviewMode; - } + public function getArcReviewMode() { + return $this->arcReviewMode; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setProductCode($productCode) - { - $this->productCode = $productCode; - } + public function setProductCode($productCode) { + $this->productCode = $productCode; + } - public function getProductCode() - { - return $this->productCode; - } + public function getProductCode() { + return $this->productCode; + } - public function setSupportsReporting($supportsReporting) - { - $this->supportsReporting = $supportsReporting; - } + public function setSupportsReporting($supportsReporting) { + $this->supportsReporting = $supportsReporting; + } - public function getSupportsReporting() - { - return $this->supportsReporting; - } + public function getSupportsReporting() { + return $this->supportsReporting; + } } -class Google_Service_AdSense_AdClients extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSense_AdClient'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdSense_AdClients extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSense_AdClient'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdSense_AdCode extends Google_Model -{ - public $adCode; - public $kind; +class Google_Service_AdSense_AdCode extends Google_Model { + public $adCode; + public $kind; - public function setAdCode($adCode) - { - $this->adCode = $adCode; - } + public function setAdCode($adCode) { + $this->adCode = $adCode; + } - public function getAdCode() - { - return $this->adCode; - } + public function getAdCode() { + return $this->adCode; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdSense_AdStyle extends Google_Model -{ - protected $colorsType = 'Google_Service_AdSense_AdStyleColors'; - protected $colorsDataType = ''; - public $corners; - protected $fontType = 'Google_Service_AdSense_AdStyleFont'; - protected $fontDataType = ''; - public $kind; +class Google_Service_AdSense_AdStyle extends Google_Model { + protected $colorsType = 'Google_Service_AdSense_AdStyleColors'; + protected $colorsDataType = ''; + public $corners; + protected $fontType = 'Google_Service_AdSense_AdStyleFont'; + protected $fontDataType = ''; + public $kind; - public function setColors(Google_Service_AdSense_AdStyleColors $colors) - { - $this->colors = $colors; - } + public function setColors(Google_Service_AdSense_AdStyleColors $colors) { + $this->colors = $colors; + } - public function getColors() - { - return $this->colors; - } + public function getColors() { + return $this->colors; + } - public function setCorners($corners) - { - $this->corners = $corners; - } + public function setCorners($corners) { + $this->corners = $corners; + } - public function getCorners() - { - return $this->corners; - } + public function getCorners() { + return $this->corners; + } - public function setFont(Google_Service_AdSense_AdStyleFont $font) - { - $this->font = $font; - } + public function setFont(Google_Service_AdSense_AdStyleFont $font) { + $this->font = $font; + } - public function getFont() - { - return $this->font; - } + public function getFont() { + return $this->font; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdSense_AdStyleColors extends Google_Model -{ - public $background; - public $border; - public $text; - public $title; - public $url; +class Google_Service_AdSense_AdStyleColors extends Google_Model { + public $background; + public $border; + public $text; + public $title; + public $url; - public function setBackground($background) - { - $this->background = $background; - } + public function setBackground($background) { + $this->background = $background; + } - public function getBackground() - { - return $this->background; - } + public function getBackground() { + return $this->background; + } - public function setBorder($border) - { - $this->border = $border; - } + public function setBorder($border) { + $this->border = $border; + } - public function getBorder() - { - return $this->border; - } + public function getBorder() { + return $this->border; + } - public function setText($text) - { - $this->text = $text; - } + public function setText($text) { + $this->text = $text; + } - public function getText() - { - return $this->text; - } + public function getText() { + return $this->text; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_AdSense_AdStyleFont extends Google_Model -{ - public $family; - public $size; +class Google_Service_AdSense_AdStyleFont extends Google_Model { + public $family; + public $size; - public function setFamily($family) - { - $this->family = $family; - } + public function setFamily($family) { + $this->family = $family; + } - public function getFamily() - { - return $this->family; - } + public function getFamily() { + return $this->family; + } - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } } -class Google_Service_AdSense_AdUnit extends Google_Model -{ - public $code; - protected $contentAdsSettingsType = 'Google_Service_AdSense_AdUnitContentAdsSettings'; - protected $contentAdsSettingsDataType = ''; - protected $customStyleType = 'Google_Service_AdSense_AdStyle'; - protected $customStyleDataType = ''; - protected $feedAdsSettingsType = 'Google_Service_AdSense_AdUnitFeedAdsSettings'; - protected $feedAdsSettingsDataType = ''; - public $id; - public $kind; - protected $mobileContentAdsSettingsType = 'Google_Service_AdSense_AdUnitMobileContentAdsSettings'; - protected $mobileContentAdsSettingsDataType = ''; - public $name; - public $savedStyleId; - public $status; +class Google_Service_AdSense_AdUnit extends Google_Model { + public $code; + protected $contentAdsSettingsType = 'Google_Service_AdSense_AdUnitContentAdsSettings'; + protected $contentAdsSettingsDataType = ''; + protected $customStyleType = 'Google_Service_AdSense_AdStyle'; + protected $customStyleDataType = ''; + protected $feedAdsSettingsType = 'Google_Service_AdSense_AdUnitFeedAdsSettings'; + protected $feedAdsSettingsDataType = ''; + public $id; + public $kind; + protected $mobileContentAdsSettingsType = 'Google_Service_AdSense_AdUnitMobileContentAdsSettings'; + protected $mobileContentAdsSettingsDataType = ''; + public $name; + public $savedStyleId; + public $status; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setContentAdsSettings(Google_Service_AdSense_AdUnitContentAdsSettings $contentAdsSettings) - { - $this->contentAdsSettings = $contentAdsSettings; - } + public function setContentAdsSettings(Google_Service_AdSense_AdUnitContentAdsSettings $contentAdsSettings) { + $this->contentAdsSettings = $contentAdsSettings; + } - public function getContentAdsSettings() - { - return $this->contentAdsSettings; - } + public function getContentAdsSettings() { + return $this->contentAdsSettings; + } - public function setCustomStyle(Google_Service_AdSense_AdStyle $customStyle) - { - $this->customStyle = $customStyle; - } + public function setCustomStyle(Google_Service_AdSense_AdStyle $customStyle) { + $this->customStyle = $customStyle; + } - public function getCustomStyle() - { - return $this->customStyle; - } + public function getCustomStyle() { + return $this->customStyle; + } - public function setFeedAdsSettings(Google_Service_AdSense_AdUnitFeedAdsSettings $feedAdsSettings) - { - $this->feedAdsSettings = $feedAdsSettings; - } + public function setFeedAdsSettings(Google_Service_AdSense_AdUnitFeedAdsSettings $feedAdsSettings) { + $this->feedAdsSettings = $feedAdsSettings; + } - public function getFeedAdsSettings() - { - return $this->feedAdsSettings; - } + public function getFeedAdsSettings() { + return $this->feedAdsSettings; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMobileContentAdsSettings(Google_Service_AdSense_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) - { - $this->mobileContentAdsSettings = $mobileContentAdsSettings; - } + public function setMobileContentAdsSettings(Google_Service_AdSense_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) { + $this->mobileContentAdsSettings = $mobileContentAdsSettings; + } - public function getMobileContentAdsSettings() - { - return $this->mobileContentAdsSettings; - } + public function getMobileContentAdsSettings() { + return $this->mobileContentAdsSettings; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setSavedStyleId($savedStyleId) - { - $this->savedStyleId = $savedStyleId; - } + public function setSavedStyleId($savedStyleId) { + $this->savedStyleId = $savedStyleId; + } - public function getSavedStyleId() - { - return $this->savedStyleId; - } + public function getSavedStyleId() { + return $this->savedStyleId; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_AdSense_AdUnitContentAdsSettings extends Google_Model -{ - protected $backupOptionType = 'Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption'; - protected $backupOptionDataType = ''; - public $size; - public $type; +class Google_Service_AdSense_AdUnitContentAdsSettings extends Google_Model { + protected $backupOptionType = 'Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption'; + protected $backupOptionDataType = ''; + public $size; + public $type; - public function setBackupOption(Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption $backupOption) - { - $this->backupOption = $backupOption; - } + public function setBackupOption(Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption $backupOption) { + $this->backupOption = $backupOption; + } - public function getBackupOption() - { - return $this->backupOption; - } + public function getBackupOption() { + return $this->backupOption; + } - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends Google_Model -{ - public $color; - public $type; - public $url; +class Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends Google_Model { + public $color; + public $type; + public $url; - public function setColor($color) - { - $this->color = $color; - } + public function setColor($color) { + $this->color = $color; + } - public function getColor() - { - return $this->color; - } + public function getColor() { + return $this->color; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_AdSense_AdUnitFeedAdsSettings extends Google_Model -{ - public $adPosition; - public $frequency; - public $minimumWordCount; - public $type; +class Google_Service_AdSense_AdUnitFeedAdsSettings extends Google_Model { + public $adPosition; + public $frequency; + public $minimumWordCount; + public $type; - public function setAdPosition($adPosition) - { - $this->adPosition = $adPosition; - } + public function setAdPosition($adPosition) { + $this->adPosition = $adPosition; + } - public function getAdPosition() - { - return $this->adPosition; - } + public function getAdPosition() { + return $this->adPosition; + } - public function setFrequency($frequency) - { - $this->frequency = $frequency; - } + public function setFrequency($frequency) { + $this->frequency = $frequency; + } - public function getFrequency() - { - return $this->frequency; - } + public function getFrequency() { + return $this->frequency; + } - public function setMinimumWordCount($minimumWordCount) - { - $this->minimumWordCount = $minimumWordCount; - } + public function setMinimumWordCount($minimumWordCount) { + $this->minimumWordCount = $minimumWordCount; + } - public function getMinimumWordCount() - { - return $this->minimumWordCount; - } + public function getMinimumWordCount() { + return $this->minimumWordCount; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_AdSense_AdUnitMobileContentAdsSettings extends Google_Model -{ - public $markupLanguage; - public $scriptingLanguage; - public $size; - public $type; +class Google_Service_AdSense_AdUnitMobileContentAdsSettings extends Google_Model { + public $markupLanguage; + public $scriptingLanguage; + public $size; + public $type; - public function setMarkupLanguage($markupLanguage) - { - $this->markupLanguage = $markupLanguage; - } + public function setMarkupLanguage($markupLanguage) { + $this->markupLanguage = $markupLanguage; + } - public function getMarkupLanguage() - { - return $this->markupLanguage; - } + public function getMarkupLanguage() { + return $this->markupLanguage; + } - public function setScriptingLanguage($scriptingLanguage) - { - $this->scriptingLanguage = $scriptingLanguage; - } + public function setScriptingLanguage($scriptingLanguage) { + $this->scriptingLanguage = $scriptingLanguage; + } - public function getScriptingLanguage() - { - return $this->scriptingLanguage; - } + public function getScriptingLanguage() { + return $this->scriptingLanguage; + } - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_AdSense_AdUnits extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSense_AdUnit'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdSense_AdUnits extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSense_AdUnit'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdSense_AdsenseReportsGenerateResponse extends Google_Collection -{ - public $averages; - public $endDate; - protected $headersType = 'Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders'; - protected $headersDataType = 'array'; - public $kind; - public $rows; - public $startDate; - public $totalMatchedRows; - public $totals; - public $warnings; +class Google_Service_AdSense_AdsenseReportsGenerateResponse extends Google_Collection { + public $averages; + public $endDate; + protected $headersType = 'Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders'; + protected $headersDataType = 'array'; + public $kind; + public $rows; + public $startDate; + public $totalMatchedRows; + public $totals; + public $warnings; - public function setAverages($averages) - { - $this->averages = $averages; - } + public function setAverages($averages) { + $this->averages = $averages; + } - public function getAverages() - { - return $this->averages; - } + public function getAverages() { + return $this->averages; + } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } + public function setEndDate($endDate) { + $this->endDate = $endDate; + } - public function getEndDate() - { - return $this->endDate; - } + public function getEndDate() { + return $this->endDate; + } - public function setHeaders($headers) - { - $this->headers = $headers; - } + public function setHeaders($headers) { + $this->headers = $headers; + } - public function getHeaders() - { - return $this->headers; - } + public function getHeaders() { + return $this->headers; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRows($rows) - { - $this->rows = $rows; - } + public function setRows($rows) { + $this->rows = $rows; + } - public function getRows() - { - return $this->rows; - } + public function getRows() { + return $this->rows; + } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } + public function setStartDate($startDate) { + $this->startDate = $startDate; + } - public function getStartDate() - { - return $this->startDate; - } + public function getStartDate() { + return $this->startDate; + } - public function setTotalMatchedRows($totalMatchedRows) - { - $this->totalMatchedRows = $totalMatchedRows; - } + public function setTotalMatchedRows($totalMatchedRows) { + $this->totalMatchedRows = $totalMatchedRows; + } - public function getTotalMatchedRows() - { - return $this->totalMatchedRows; - } + public function getTotalMatchedRows() { + return $this->totalMatchedRows; + } - public function setTotals($totals) - { - $this->totals = $totals; - } + public function setTotals($totals) { + $this->totals = $totals; + } - public function getTotals() - { - return $this->totals; - } + public function getTotals() { + return $this->totals; + } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } + public function setWarnings($warnings) { + $this->warnings = $warnings; + } - public function getWarnings() - { - return $this->warnings; - } + public function getWarnings() { + return $this->warnings; + } } -class Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends Google_Model -{ - public $currency; - public $name; - public $type; +class Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends Google_Model { + public $currency; + public $name; + public $type; - public function setCurrency($currency) - { - $this->currency = $currency; - } + public function setCurrency($currency) { + $this->currency = $currency; + } - public function getCurrency() - { - return $this->currency; - } + public function getCurrency() { + return $this->currency; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_AdSense_Alert extends Google_Model -{ - public $id; - public $isDismissible; - public $kind; - public $message; - public $severity; - public $type; +class Google_Service_AdSense_Alert extends Google_Model { + public $id; + public $isDismissible; + public $kind; + public $message; + public $severity; + public $type; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setIsDismissible($isDismissible) - { - $this->isDismissible = $isDismissible; - } + public function setIsDismissible($isDismissible) { + $this->isDismissible = $isDismissible; + } - public function getIsDismissible() - { - return $this->isDismissible; - } + public function getIsDismissible() { + return $this->isDismissible; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMessage($message) - { - $this->message = $message; - } + public function setMessage($message) { + $this->message = $message; + } - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } - public function setSeverity($severity) - { - $this->severity = $severity; - } + public function setSeverity($severity) { + $this->severity = $severity; + } - public function getSeverity() - { - return $this->severity; - } + public function getSeverity() { + return $this->severity; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_AdSense_Alerts extends Google_Collection -{ - protected $itemsType = 'Google_Service_AdSense_Alert'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_AdSense_Alerts extends Google_Collection { + protected $itemsType = 'Google_Service_AdSense_Alert'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdSense_CustomChannel extends Google_Model -{ - public $code; - public $id; - public $kind; - public $name; - protected $targetingInfoType = 'Google_Service_AdSense_CustomChannelTargetingInfo'; - protected $targetingInfoDataType = ''; +class Google_Service_AdSense_CustomChannel extends Google_Model { + public $code; + public $id; + public $kind; + public $name; + protected $targetingInfoType = 'Google_Service_AdSense_CustomChannelTargetingInfo'; + protected $targetingInfoDataType = ''; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setTargetingInfo(Google_Service_AdSense_CustomChannelTargetingInfo $targetingInfo) - { - $this->targetingInfo = $targetingInfo; - } + public function setTargetingInfo(Google_Service_AdSense_CustomChannelTargetingInfo $targetingInfo) { + $this->targetingInfo = $targetingInfo; + } - public function getTargetingInfo() - { - return $this->targetingInfo; - } + public function getTargetingInfo() { + return $this->targetingInfo; + } } -class Google_Service_AdSense_CustomChannelTargetingInfo extends Google_Model -{ - public $adsAppearOn; - public $description; - public $location; - public $siteLanguage; +class Google_Service_AdSense_CustomChannelTargetingInfo extends Google_Model { + public $adsAppearOn; + public $description; + public $location; + public $siteLanguage; - public function setAdsAppearOn($adsAppearOn) - { - $this->adsAppearOn = $adsAppearOn; - } + public function setAdsAppearOn($adsAppearOn) { + $this->adsAppearOn = $adsAppearOn; + } - public function getAdsAppearOn() - { - return $this->adsAppearOn; - } + public function getAdsAppearOn() { + return $this->adsAppearOn; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setLocation($location) - { - $this->location = $location; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setSiteLanguage($siteLanguage) - { - $this->siteLanguage = $siteLanguage; - } + public function setSiteLanguage($siteLanguage) { + $this->siteLanguage = $siteLanguage; + } - public function getSiteLanguage() - { - return $this->siteLanguage; - } + public function getSiteLanguage() { + return $this->siteLanguage; + } } -class Google_Service_AdSense_CustomChannels extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSense_CustomChannel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdSense_CustomChannels extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSense_CustomChannel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdSense_Metadata extends Google_Collection -{ - protected $itemsType = 'Google_Service_AdSense_ReportingMetadataEntry'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_AdSense_Metadata extends Google_Collection { + protected $itemsType = 'Google_Service_AdSense_ReportingMetadataEntry'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdSense_Payment extends Google_Model -{ - public $id; - public $kind; - public $paymentAmount; - public $paymentAmountCurrencyCode; - public $paymentDate; +class Google_Service_AdSense_Payment extends Google_Model { + public $id; + public $kind; + public $paymentAmount; + public $paymentAmountCurrencyCode; + public $paymentDate; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPaymentAmount($paymentAmount) - { - $this->paymentAmount = $paymentAmount; - } + public function setPaymentAmount($paymentAmount) { + $this->paymentAmount = $paymentAmount; + } - public function getPaymentAmount() - { - return $this->paymentAmount; - } + public function getPaymentAmount() { + return $this->paymentAmount; + } - public function setPaymentAmountCurrencyCode($paymentAmountCurrencyCode) - { - $this->paymentAmountCurrencyCode = $paymentAmountCurrencyCode; - } + public function setPaymentAmountCurrencyCode($paymentAmountCurrencyCode) { + $this->paymentAmountCurrencyCode = $paymentAmountCurrencyCode; + } - public function getPaymentAmountCurrencyCode() - { - return $this->paymentAmountCurrencyCode; - } + public function getPaymentAmountCurrencyCode() { + return $this->paymentAmountCurrencyCode; + } - public function setPaymentDate($paymentDate) - { - $this->paymentDate = $paymentDate; - } + public function setPaymentDate($paymentDate) { + $this->paymentDate = $paymentDate; + } - public function getPaymentDate() - { - return $this->paymentDate; - } + public function getPaymentDate() { + return $this->paymentDate; + } } -class Google_Service_AdSense_Payments extends Google_Collection -{ - protected $itemsType = 'Google_Service_AdSense_Payment'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_AdSense_Payments extends Google_Collection { + protected $itemsType = 'Google_Service_AdSense_Payment'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection -{ - public $compatibleDimensions; - public $compatibleMetrics; - public $id; - public $kind; - public $requiredDimensions; - public $requiredMetrics; - public $supportedProducts; +class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection { + public $compatibleDimensions; + public $compatibleMetrics; + public $id; + public $kind; + public $requiredDimensions; + public $requiredMetrics; + public $supportedProducts; - public function setCompatibleDimensions($compatibleDimensions) - { - $this->compatibleDimensions = $compatibleDimensions; - } + public function setCompatibleDimensions($compatibleDimensions) { + $this->compatibleDimensions = $compatibleDimensions; + } - public function getCompatibleDimensions() - { - return $this->compatibleDimensions; - } + public function getCompatibleDimensions() { + return $this->compatibleDimensions; + } - public function setCompatibleMetrics($compatibleMetrics) - { - $this->compatibleMetrics = $compatibleMetrics; - } + public function setCompatibleMetrics($compatibleMetrics) { + $this->compatibleMetrics = $compatibleMetrics; + } - public function getCompatibleMetrics() - { - return $this->compatibleMetrics; - } + public function getCompatibleMetrics() { + return $this->compatibleMetrics; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRequiredDimensions($requiredDimensions) - { - $this->requiredDimensions = $requiredDimensions; - } + public function setRequiredDimensions($requiredDimensions) { + $this->requiredDimensions = $requiredDimensions; + } - public function getRequiredDimensions() - { - return $this->requiredDimensions; - } + public function getRequiredDimensions() { + return $this->requiredDimensions; + } - public function setRequiredMetrics($requiredMetrics) - { - $this->requiredMetrics = $requiredMetrics; - } + public function setRequiredMetrics($requiredMetrics) { + $this->requiredMetrics = $requiredMetrics; + } - public function getRequiredMetrics() - { - return $this->requiredMetrics; - } + public function getRequiredMetrics() { + return $this->requiredMetrics; + } - public function setSupportedProducts($supportedProducts) - { - $this->supportedProducts = $supportedProducts; - } + public function setSupportedProducts($supportedProducts) { + $this->supportedProducts = $supportedProducts; + } - public function getSupportedProducts() - { - return $this->supportedProducts; - } + public function getSupportedProducts() { + return $this->supportedProducts; + } } -class Google_Service_AdSense_SavedAdStyle extends Google_Model -{ - protected $adStyleType = 'Google_Service_AdSense_AdStyle'; - protected $adStyleDataType = ''; - public $id; - public $kind; - public $name; +class Google_Service_AdSense_SavedAdStyle extends Google_Model { + protected $adStyleType = 'Google_Service_AdSense_AdStyle'; + protected $adStyleDataType = ''; + public $id; + public $kind; + public $name; - public function setAdStyle(Google_Service_AdSense_AdStyle $adStyle) - { - $this->adStyle = $adStyle; - } + public function setAdStyle(Google_Service_AdSense_AdStyle $adStyle) { + $this->adStyle = $adStyle; + } - public function getAdStyle() - { - return $this->adStyle; - } + public function getAdStyle() { + return $this->adStyle; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_AdSense_SavedAdStyles extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSense_SavedAdStyle'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdSense_SavedAdStyles extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSense_SavedAdStyle'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdSense_SavedReport extends Google_Model -{ - public $id; - public $kind; - public $name; +class Google_Service_AdSense_SavedReport extends Google_Model { + public $id; + public $kind; + public $name; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_AdSense_SavedReports extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSense_SavedReport'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdSense_SavedReports extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSense_SavedReport'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdSense_UrlChannel extends Google_Model -{ - public $id; - public $kind; - public $urlPattern; +class Google_Service_AdSense_UrlChannel extends Google_Model { + public $id; + public $kind; + public $urlPattern; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setUrlPattern($urlPattern) - { - $this->urlPattern = $urlPattern; - } + public function setUrlPattern($urlPattern) { + $this->urlPattern = $urlPattern; + } - public function getUrlPattern() - { - return $this->urlPattern; - } + public function getUrlPattern() { + return $this->urlPattern; + } } -class Google_Service_AdSense_UrlChannels extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSense_UrlChannel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdSense_UrlChannels extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSense_UrlChannel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } diff --git a/oauth/Google/Service/AdSenseHost.php b/oauth/Google/Service/AdSenseHost.php index 8c1ca20..4a43cd8 100644 --- a/oauth/Google/Service/AdSenseHost.php +++ b/oauth/Google/Service/AdSenseHost.php @@ -29,603 +29,601 @@ * * @author Google, Inc. */ -class Google_Service_AdSenseHost extends Google_Service -{ - /** View and manage your AdSense host data and associated accounts. */ - const ADSENSEHOST = "https://www.googleapis.com/auth/adsensehost"; +class Google_Service_AdSenseHost extends Google_Service { + /** View and manage your AdSense host data and associated accounts. */ + const ADSENSEHOST = "https://www.googleapis.com/auth/adsensehost"; - public $accounts; - public $accounts_adclients; - public $accounts_adunits; - public $accounts_reports; - public $adclients; - public $associationsessions; - public $customchannels; - public $reports; - public $urlchannels; - + public $accounts; + public $accounts_adclients; + public $accounts_adunits; + public $accounts_reports; + public $adclients; + public $associationsessions; + public $customchannels; + public $reports; + public $urlchannels; - /** - * Constructs the internal representation of the AdSenseHost service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'adsensehost/v4.1/'; - $this->version = 'v4.1'; - $this->serviceName = 'adsensehost'; - $this->accounts = new Google_Service_AdSenseHost_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'filterAdClientId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_adclients = new Google_Service_AdSenseHost_AccountsAdclients_Resource( - $this, - $this->serviceName, - 'adclients', - array( - 'methods' => array( - 'get' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/adclients', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->accounts_adunits = new Google_Service_AdSenseHost_AccountsAdunits_Resource( - $this, - $this->serviceName, - 'adunits', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getAdCode' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hostCustomChannelId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'insert' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeInactive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adUnitId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accounts_reports = new Google_Service_AdSenseHost_AccountsReports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'accounts/{accountId}/reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'metric' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'dimension' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->adclients = new Google_Service_AdSenseHost_Adclients_Resource( - $this, - $this->serviceName, - 'adclients', - array( - 'methods' => array( - 'get' => array( - 'path' => 'adclients/{adClientId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->associationsessions = new Google_Service_AdSenseHost_Associationsessions_Resource( - $this, - $this->serviceName, - 'associationsessions', - array( - 'methods' => array( - 'start' => array( - 'path' => 'associationsessions/start', - 'httpMethod' => 'GET', - 'parameters' => array( - 'productCode' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - 'websiteUrl' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'websiteLocale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userLocale' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'verify' => array( - 'path' => 'associationsessions/verify', - 'httpMethod' => 'GET', - 'parameters' => array( - 'token' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->customchannels = new Google_Service_AdSenseHost_Customchannels_Resource( - $this, - $this->serviceName, - 'customchannels', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'adclients/{adClientId}/customchannels', - 'httpMethod' => 'POST', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients/{adClientId}/customchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'adclients/{adClientId}/customchannels', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customChannelId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'adclients/{adClientId}/customchannels', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports = new Google_Service_AdSenseHost_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'metric' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'dimension' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->urlchannels = new Google_Service_AdSenseHost_Urlchannels_Resource( - $this, - $this->serviceName, - 'urlchannels', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'adclients/{adClientId}/urlchannels/{urlChannelId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlChannelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'adclients/{adClientId}/urlchannels', - 'httpMethod' => 'POST', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'adclients/{adClientId}/urlchannels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'adClientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the AdSenseHost service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'adsensehost/v4.1/'; + $this->version = 'v4.1'; + $this->serviceName = 'adsensehost'; + + $this->accounts = new Google_Service_AdSenseHost_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'accounts/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'accounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'filterAdClientId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accounts_adclients = new Google_Service_AdSenseHost_AccountsAdclients_Resource( + $this, + $this->serviceName, + 'adclients', + array( + 'methods' => array( + 'get' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'accounts/{accountId}/adclients', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->accounts_adunits = new Google_Service_AdSenseHost_AccountsAdunits_Resource( + $this, + $this->serviceName, + 'adunits', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getAdCode' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'hostCustomChannelId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), 'insert' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeInactive' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adUnitId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accounts_reports = new Google_Service_AdSenseHost_AccountsReports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'generate' => array( + 'path' => 'accounts/{accountId}/reports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sort' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'metric' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'dimension' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->adclients = new Google_Service_AdSenseHost_Adclients_Resource( + $this, + $this->serviceName, + 'adclients', + array( + 'methods' => array( + 'get' => array( + 'path' => 'adclients/{adClientId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'adclients', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->associationsessions = new Google_Service_AdSenseHost_Associationsessions_Resource( + $this, + $this->serviceName, + 'associationsessions', + array( + 'methods' => array( + 'start' => array( + 'path' => 'associationsessions/start', + 'httpMethod' => 'GET', + 'parameters' => array( + 'productCode' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + 'required' => true, + ), + 'websiteUrl' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'websiteLocale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userLocale' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'verify' => array( + 'path' => 'associationsessions/verify', + 'httpMethod' => 'GET', + 'parameters' => array( + 'token' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->customchannels = new Google_Service_AdSenseHost_Customchannels_Resource( + $this, + $this->serviceName, + 'customchannels', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customChannelId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customChannelId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'adclients/{adClientId}/customchannels', + 'httpMethod' => 'POST', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'adclients/{adClientId}/customchannels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'adclients/{adClientId}/customchannels', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customChannelId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'adclients/{adClientId}/customchannels', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reports = new Google_Service_AdSenseHost_Reports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'generate' => array( + 'path' => 'reports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sort' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'metric' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'dimension' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->urlchannels = new Google_Service_AdSenseHost_Urlchannels_Resource( + $this, + $this->serviceName, + 'urlchannels', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'adclients/{adClientId}/urlchannels/{urlChannelId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlChannelId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'adclients/{adClientId}/urlchannels', + 'httpMethod' => 'POST', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'adclients/{adClientId}/urlchannels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'adClientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } } @@ -637,38 +635,36 @@ class Google_Service_AdSenseHost extends Google_Service * $accounts = $adsensehostService->accounts; * */ -class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resource -{ +class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resource { - /** - * Get information about the selected associated AdSense account. (accounts.get) - * - * @param string $accountId - * Account to get information about. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_Account - */ - public function get($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSenseHost_Account"); - } - /** - * List hosted accounts associated with this AdSense account by ad client id. - * (accounts.listAccounts) - * - * @param string $filterAdClientId - * Ad clients to list accounts for. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_Accounts - */ - public function listAccounts($filterAdClientId, $optParams = array()) - { - $params = array('filterAdClientId' => $filterAdClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSenseHost_Accounts"); - } + /** + * Get information about the selected associated AdSense account. (accounts.get) + * + * @param string $accountId + * Account to get information about. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_Account + */ + public function get($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSenseHost_Account"); + } + + /** + * List hosted accounts associated with this AdSense account by ad client id. + * (accounts.listAccounts) + * + * @param string $filterAdClientId + * Ad clients to list accounts for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_Accounts + */ + public function listAccounts($filterAdClientId, $optParams = array()) { + $params = array('filterAdClientId' => $filterAdClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSenseHost_Accounts"); + } } /** @@ -679,48 +675,47 @@ class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resour * $adclients = $adsensehostService->adclients; * */ -class Google_Service_AdSenseHost_AccountsAdclients_Resource extends Google_Service_Resource -{ +class Google_Service_AdSenseHost_AccountsAdclients_Resource extends Google_Service_Resource { - /** - * Get information about one of the ad clients in the specified publisher's - * AdSense account. (adclients.get) - * - * @param string $accountId - * Account which contains the ad client. - * @param string $adClientId - * Ad client to get. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AdClient - */ - public function get($accountId, $adClientId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient"); - } - /** - * List all hosted ad clients in the specified hosted account. - * (adclients.listAccountsAdclients) - * - * @param string $accountId - * Account for which to list ad clients. - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param string maxResults - * The maximum number of ad clients to include in the response, used for paging. - * @return Google_Service_AdSenseHost_AdClients - */ - public function listAccountsAdclients($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients"); - } + /** + * Get information about one of the ad clients in the specified publisher's + * AdSense account. (adclients.get) + * + * @param string $accountId + * Account which contains the ad client. + * @param string $adClientId + * Ad client to get. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_AdClient + */ + public function get($accountId, $adClientId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient"); + } + + /** + * List all hosted ad clients in the specified hosted account. + * (adclients.listAccountsAdclients) + * + * @param string $accountId + * Account for which to list ad clients. + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param string maxResults + * The maximum number of ad clients to include in the response, used for paging. + * @return Google_Service_AdSenseHost_AdClients + */ + public function listAccountsAdclients($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients"); + } } + /** * The "adunits" collection of methods. * Typical usage is: @@ -729,150 +724,149 @@ class Google_Service_AdSenseHost_AccountsAdclients_Resource extends Google_Servi * $adunits = $adsensehostService->adunits; * */ -class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service_Resource -{ +class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service_Resource { - /** - * Delete the specified ad unit from the specified publisher AdSense account. - * (adunits.delete) - * - * @param string $accountId - * Account which contains the ad unit. - * @param string $adClientId - * Ad client for which to get ad unit. - * @param string $adUnitId - * Ad unit to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AdUnit - */ - public function delete($accountId, $adClientId, $adUnitId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_AdSenseHost_AdUnit"); - } - /** - * Get the specified host ad unit in this AdSense account. (adunits.get) - * - * @param string $accountId - * Account which contains the ad unit. - * @param string $adClientId - * Ad client for which to get ad unit. - * @param string $adUnitId - * Ad unit to get. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AdUnit - */ - public function get($accountId, $adClientId, $adUnitId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSenseHost_AdUnit"); - } - /** - * Get ad code for the specified ad unit, attaching the specified host custom - * channels. (adunits.getAdCode) - * - * @param string $accountId - * Account which contains the ad client. - * @param string $adClientId - * Ad client with contains the ad unit. - * @param string $adUnitId - * Ad unit to get the code for. - * @param array $optParams Optional parameters. - * - * @opt_param string hostCustomChannelId - * Host custom channel to attach to the ad code. - * @return Google_Service_AdSenseHost_AdCode - */ - public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); - $params = array_merge($params, $optParams); - return $this->call('getAdCode', array($params), "Google_Service_AdSenseHost_AdCode"); - } - /** - * Insert the supplied ad unit into the specified publisher AdSense account. - * (adunits.insert) - * - * @param string $accountId - * Account which will contain the ad unit. - * @param string $adClientId - * Ad client into which to insert the ad unit. - * @param Google_AdUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AdUnit - */ - public function insert($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdSenseHost_AdUnit"); - } - /** - * List all ad units in the specified publisher's AdSense account. - * (adunits.listAccountsAdunits) - * - * @param string $accountId - * Account which contains the ad client. - * @param string $adClientId - * Ad client for which to list ad units. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeInactive - * Whether to include inactive ad units. Default: true. - * @opt_param 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. - * @opt_param string maxResults - * The maximum number of ad units to include in the response, used for paging. - * @return Google_Service_AdSenseHost_AdUnits - */ - public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSenseHost_AdUnits"); - } - /** - * Update the supplied ad unit in the specified publisher AdSense account. This - * method supports patch semantics. (adunits.patch) - * - * @param string $accountId - * Account which contains the ad client. - * @param string $adClientId - * Ad client which contains the ad unit. - * @param string $adUnitId - * Ad unit to get. - * @param Google_AdUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AdUnit - */ - public function patch($accountId, $adClientId, $adUnitId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdSenseHost_AdUnit"); - } - /** - * Update the supplied ad unit in the specified publisher AdSense account. - * (adunits.update) - * - * @param string $accountId - * Account which contains the ad client. - * @param string $adClientId - * Ad client which contains the ad unit. - * @param Google_AdUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AdUnit - */ - public function update($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdSenseHost_AdUnit"); - } + /** + * Delete the specified ad unit from the specified publisher AdSense account. + * (adunits.delete) + * + * @param string $accountId + * Account which contains the ad unit. + * @param string $adClientId + * Ad client for which to get ad unit. + * @param string $adUnitId + * Ad unit to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_AdUnit + */ + public function delete($accountId, $adClientId, $adUnitId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_AdSenseHost_AdUnit"); + } + + /** + * Get the specified host ad unit in this AdSense account. (adunits.get) + * + * @param string $accountId + * Account which contains the ad unit. + * @param string $adClientId + * Ad client for which to get ad unit. + * @param string $adUnitId + * Ad unit to get. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_AdUnit + */ + public function get($accountId, $adClientId, $adUnitId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSenseHost_AdUnit"); + } + + /** + * Get ad code for the specified ad unit, attaching the specified host custom + * channels. (adunits.getAdCode) + * + * @param string $accountId + * Account which contains the ad client. + * @param string $adClientId + * Ad client with contains the ad unit. + * @param string $adUnitId + * Ad unit to get the code for. + * @param array $optParams Optional parameters. + * + * @opt_param string hostCustomChannelId + * Host custom channel to attach to the ad code. + * @return Google_Service_AdSenseHost_AdCode + */ + public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); + $params = array_merge($params, $optParams); + return $this->call('getAdCode', array($params), "Google_Service_AdSenseHost_AdCode"); + } + + /** + * Insert the supplied ad unit into the specified publisher AdSense account. + * (adunits.insert) + * + * @param string $accountId + * Account which will contain the ad unit. + * @param string $adClientId + * Ad client into which to insert the ad unit. + * @param Google_AdUnit $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_AdUnit + */ + public function insert($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdSenseHost_AdUnit"); + } + + /** + * List all ad units in the specified publisher's AdSense account. + * (adunits.listAccountsAdunits) + * + * @param string $accountId + * Account which contains the ad client. + * @param string $adClientId + * Ad client for which to list ad units. + * @param array $optParams Optional parameters. + * + * @opt_param bool includeInactive + * Whether to include inactive ad units. Default: true. + * @opt_param 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. + * @opt_param string maxResults + * The maximum number of ad units to include in the response, used for paging. + * @return Google_Service_AdSenseHost_AdUnits + */ + public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSenseHost_AdUnits"); + } + + /** + * Update the supplied ad unit in the specified publisher AdSense account. This + * method supports patch semantics. (adunits.patch) + * + * @param string $accountId + * Account which contains the ad client. + * @param string $adClientId + * Ad client which contains the ad unit. + * @param string $adUnitId + * Ad unit to get. + * @param Google_AdUnit $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_AdUnit + */ + public function patch($accountId, $adClientId, $adUnitId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AdSenseHost_AdUnit"); + } + + /** + * Update the supplied ad unit in the specified publisher AdSense account. + * (adunits.update) + * + * @param string $accountId + * Account which contains the ad client. + * @param string $adClientId + * Ad client which contains the ad unit. + * @param Google_AdUnit $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_AdUnit + */ + public function update($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdSenseHost_AdUnit"); + } } + /** * The "reports" collection of methods. * Typical usage is: @@ -881,47 +875,45 @@ class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service * $reports = $adsensehostService->reports; * */ -class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service_Resource -{ +class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service_Resource { - /** - * Generate an AdSense report based on the report request sent in the query - * parameters. Returns the result as JSON; to retrieve output in CSV format - * specify "alt=csv" as a query parameter. (reports.generate) - * - * @param string $accountId - * Hosted account upon which to report. - * @param string $startDate - * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. - * @param string $endDate - * End of the date range to report on in "YYYY-MM-DD" format, inclusive. - * @param array $optParams Optional parameters. - * - * @opt_param string sort - * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" - * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted - * ascending. - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param string metric - * Numeric columns to include in the report. - * @opt_param string maxResults - * The maximum number of rows of report data to return. - * @opt_param string filter - * Filters to be run on the report. - * @opt_param string startIndex - * Index of the first row of report data to return. - * @opt_param string dimension - * Dimensions to base the report on. - * @return Google_Service_AdSenseHost_Report - */ - public function generate($accountId, $startDate, $endDate, $optParams = array()) - { - $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report"); - } + /** + * Generate an AdSense report based on the report request sent in the query + * parameters. Returns the result as JSON; to retrieve output in CSV format + * specify "alt=csv" as a query parameter. (reports.generate) + * + * @param string $accountId + * Hosted account upon which to report. + * @param string $startDate + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + * @param string $endDate + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + * @param array $optParams Optional parameters. + * + * @opt_param string sort + * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" + * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted + * ascending. + * @opt_param string locale + * Optional locale to use for translating report output to a local language. Defaults to "en_US" if + * not specified. + * @opt_param string metric + * Numeric columns to include in the report. + * @opt_param string maxResults + * The maximum number of rows of report data to return. + * @opt_param string filter + * Filters to be run on the report. + * @opt_param string startIndex + * Index of the first row of report data to return. + * @opt_param string dimension + * Dimensions to base the report on. + * @return Google_Service_AdSenseHost_Report + */ + public function generate($accountId, $startDate, $endDate, $optParams = array()) { + $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate); + $params = array_merge($params, $optParams); + return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report"); + } } /** @@ -932,42 +924,40 @@ class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service * $adclients = $adsensehostService->adclients; * */ -class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resource -{ +class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resource { - /** - * Get information about one of the ad clients in the Host AdSense account. - * (adclients.get) - * - * @param string $adClientId - * Ad client to get. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AdClient - */ - public function get($adClientId, $optParams = array()) - { - $params = array('adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient"); - } - /** - * List all host ad clients in this AdSense account. (adclients.listAdclients) - * - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param string maxResults - * The maximum number of ad clients to include in the response, used for paging. - * @return Google_Service_AdSenseHost_AdClients - */ - public function listAdclients($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients"); - } + /** + * Get information about one of the ad clients in the Host AdSense account. + * (adclients.get) + * + * @param string $adClientId + * Ad client to get. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_AdClient + */ + public function get($adClientId, $optParams = array()) { + $params = array('adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient"); + } + + /** + * List all host ad clients in this AdSense account. (adclients.listAdclients) + * + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param string maxResults + * The maximum number of ad clients to include in the response, used for paging. + * @return Google_Service_AdSenseHost_AdClients + */ + public function listAdclients($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients"); + } } /** @@ -978,46 +968,44 @@ class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resou * $associationsessions = $adsensehostService->associationsessions; * */ -class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Service_Resource -{ +class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Service_Resource { - /** - * Create an association session for initiating an association with an AdSense - * user. (associationsessions.start) - * - * @param string $productCode - * Products to associate with the user. - * @param string $websiteUrl - * The URL of the user's hosted website. - * @param array $optParams Optional parameters. - * - * @opt_param string websiteLocale - * The locale of the user's hosted website. - * @opt_param string userLocale - * The preferred locale of the user. - * @return Google_Service_AdSenseHost_AssociationSession - */ - public function start($productCode, $websiteUrl, $optParams = array()) - { - $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl); - $params = array_merge($params, $optParams); - return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession"); - } - /** - * Verify an association session after the association callback returns from - * AdSense signup. (associationsessions.verify) - * - * @param string $token - * The token returned to the association callback URL. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_AssociationSession - */ - public function verify($token, $optParams = array()) - { - $params = array('token' => $token); - $params = array_merge($params, $optParams); - return $this->call('verify', array($params), "Google_Service_AdSenseHost_AssociationSession"); - } + /** + * Create an association session for initiating an association with an AdSense + * user. (associationsessions.start) + * + * @param string $productCode + * Products to associate with the user. + * @param string $websiteUrl + * The URL of the user's hosted website. + * @param array $optParams Optional parameters. + * + * @opt_param string websiteLocale + * The locale of the user's hosted website. + * @opt_param string userLocale + * The preferred locale of the user. + * @return Google_Service_AdSenseHost_AssociationSession + */ + public function start($productCode, $websiteUrl, $optParams = array()) { + $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl); + $params = array_merge($params, $optParams); + return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession"); + } + + /** + * Verify an association session after the association callback returns from + * AdSense signup. (associationsessions.verify) + * + * @param string $token + * The token returned to the association callback URL. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_AssociationSession + */ + public function verify($token, $optParams = array()) { + $params = array('token' => $token); + $params = array_merge($params, $optParams); + return $this->call('verify', array($params), "Google_Service_AdSenseHost_AssociationSession"); + } } /** @@ -1028,112 +1016,110 @@ class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Ser * $customchannels = $adsensehostService->customchannels; * */ -class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_Resource -{ +class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_Resource { - /** - * Delete a specific custom channel from the host AdSense account. - * (customchannels.delete) - * - * @param string $adClientId - * Ad client from which to delete the custom channel. - * @param string $customChannelId - * Custom channel to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_CustomChannel - */ - public function delete($adClientId, $customChannelId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_AdSenseHost_CustomChannel"); - } - /** - * Get a specific custom channel from the host AdSense account. - * (customchannels.get) - * - * @param string $adClientId - * Ad client from which to get the custom channel. - * @param string $customChannelId - * Custom channel to get. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_CustomChannel - */ - public function get($adClientId, $customChannelId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AdSenseHost_CustomChannel"); - } - /** - * Add a new custom channel to the host AdSense account. (customchannels.insert) - * - * @param string $adClientId - * Ad client to which the new custom channel will be added. - * @param Google_CustomChannel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_CustomChannel - */ - public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdSenseHost_CustomChannel"); - } - /** - * List all host custom channels in this AdSense account. - * (customchannels.listCustomchannels) - * - * @param string $adClientId - * Ad client for which to list custom channels. - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param string maxResults - * The maximum number of custom channels to include in the response, used for paging. - * @return Google_Service_AdSenseHost_CustomChannels - */ - public function listCustomchannels($adClientId, $optParams = array()) - { - $params = array('adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSenseHost_CustomChannels"); - } - /** - * Update a custom channel in the host AdSense account. This method supports - * patch semantics. (customchannels.patch) - * - * @param string $adClientId - * Ad client in which the custom channel will be updated. - * @param string $customChannelId - * Custom channel to get. - * @param Google_CustomChannel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_CustomChannel - */ - public function patch($adClientId, $customChannelId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AdSenseHost_CustomChannel"); - } - /** - * Update a custom channel in the host AdSense account. (customchannels.update) - * - * @param string $adClientId - * Ad client in which the custom channel will be updated. - * @param Google_CustomChannel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_CustomChannel - */ - public function update($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AdSenseHost_CustomChannel"); - } + /** + * Delete a specific custom channel from the host AdSense account. + * (customchannels.delete) + * + * @param string $adClientId + * Ad client from which to delete the custom channel. + * @param string $customChannelId + * Custom channel to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_CustomChannel + */ + public function delete($adClientId, $customChannelId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_AdSenseHost_CustomChannel"); + } + + /** + * Get a specific custom channel from the host AdSense account. + * (customchannels.get) + * + * @param string $adClientId + * Ad client from which to get the custom channel. + * @param string $customChannelId + * Custom channel to get. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_CustomChannel + */ + public function get($adClientId, $customChannelId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdSenseHost_CustomChannel"); + } + + /** + * Add a new custom channel to the host AdSense account. (customchannels.insert) + * + * @param string $adClientId + * Ad client to which the new custom channel will be added. + * @param Google_CustomChannel $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_CustomChannel + */ + public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdSenseHost_CustomChannel"); + } + + /** + * List all host custom channels in this AdSense account. + * (customchannels.listCustomchannels) + * + * @param string $adClientId + * Ad client for which to list custom channels. + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param string maxResults + * The maximum number of custom channels to include in the response, used for paging. + * @return Google_Service_AdSenseHost_CustomChannels + */ + public function listCustomchannels($adClientId, $optParams = array()) { + $params = array('adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSenseHost_CustomChannels"); + } + + /** + * Update a custom channel in the host AdSense account. This method supports + * patch semantics. (customchannels.patch) + * + * @param string $adClientId + * Ad client in which the custom channel will be updated. + * @param string $customChannelId + * Custom channel to get. + * @param Google_CustomChannel $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_CustomChannel + */ + public function patch($adClientId, $customChannelId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AdSenseHost_CustomChannel"); + } + + /** + * Update a custom channel in the host AdSense account. (customchannels.update) + * + * @param string $adClientId + * Ad client in which the custom channel will be updated. + * @param Google_CustomChannel $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_CustomChannel + */ + public function update($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdSenseHost_CustomChannel"); + } } /** @@ -1144,45 +1130,43 @@ class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_ * $reports = $adsensehostService->reports; * */ -class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resource -{ +class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resource { - /** - * Generate an AdSense report based on the report request sent in the query - * parameters. Returns the result as JSON; to retrieve output in CSV format - * specify "alt=csv" as a query parameter. (reports.generate) - * - * @param string $startDate - * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. - * @param string $endDate - * End of the date range to report on in "YYYY-MM-DD" format, inclusive. - * @param array $optParams Optional parameters. - * - * @opt_param string sort - * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" - * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted - * ascending. - * @opt_param string locale - * Optional locale to use for translating report output to a local language. Defaults to "en_US" if - * not specified. - * @opt_param string metric - * Numeric columns to include in the report. - * @opt_param string maxResults - * The maximum number of rows of report data to return. - * @opt_param string filter - * Filters to be run on the report. - * @opt_param string startIndex - * Index of the first row of report data to return. - * @opt_param string dimension - * Dimensions to base the report on. - * @return Google_Service_AdSenseHost_Report - */ - public function generate($startDate, $endDate, $optParams = array()) - { - $params = array('startDate' => $startDate, 'endDate' => $endDate); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report"); - } + /** + * Generate an AdSense report based on the report request sent in the query + * parameters. Returns the result as JSON; to retrieve output in CSV format + * specify "alt=csv" as a query parameter. (reports.generate) + * + * @param string $startDate + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + * @param string $endDate + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + * @param array $optParams Optional parameters. + * + * @opt_param string sort + * The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" + * to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted + * ascending. + * @opt_param string locale + * Optional locale to use for translating report output to a local language. Defaults to "en_US" if + * not specified. + * @opt_param string metric + * Numeric columns to include in the report. + * @opt_param string maxResults + * The maximum number of rows of report data to return. + * @opt_param string filter + * Filters to be run on the report. + * @opt_param string startIndex + * Index of the first row of report data to return. + * @opt_param string dimension + * Dimensions to base the report on. + * @return Google_Service_AdSenseHost_Report + */ + public function generate($startDate, $endDate, $optParams = array()) { + $params = array('startDate' => $startDate, 'endDate' => $endDate); + $params = array_merge($params, $optParams); + return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report"); + } } /** @@ -1193,1089 +1177,895 @@ class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resourc * $urlchannels = $adsensehostService->urlchannels; * */ -class Google_Service_AdSenseHost_Urlchannels_Resource extends Google_Service_Resource -{ +class Google_Service_AdSenseHost_Urlchannels_Resource extends Google_Service_Resource { - /** - * Delete a URL channel from the host AdSense account. (urlchannels.delete) - * - * @param string $adClientId - * Ad client from which to delete the URL channel. - * @param string $urlChannelId - * URL channel to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_UrlChannel - */ - public function delete($adClientId, $urlChannelId, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_AdSenseHost_UrlChannel"); - } - /** - * Add a new URL channel to the host AdSense account. (urlchannels.insert) - * - * @param string $adClientId - * Ad client to which the new URL channel will be added. - * @param Google_UrlChannel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AdSenseHost_UrlChannel - */ - public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postBody, $optParams = array()) - { - $params = array('adClientId' => $adClientId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AdSenseHost_UrlChannel"); - } - /** - * List all host URL channels in the host AdSense account. - * (urlchannels.listUrlchannels) - * - * @param string $adClientId - * Ad client for which to list URL channels. - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param string maxResults - * The maximum number of URL channels to include in the response, used for paging. - * @return Google_Service_AdSenseHost_UrlChannels - */ - public function listUrlchannels($adClientId, $optParams = array()) - { - $params = array('adClientId' => $adClientId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AdSenseHost_UrlChannels"); - } + /** + * Delete a URL channel from the host AdSense account. (urlchannels.delete) + * + * @param string $adClientId + * Ad client from which to delete the URL channel. + * @param string $urlChannelId + * URL channel to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_UrlChannel + */ + public function delete($adClientId, $urlChannelId, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_AdSenseHost_UrlChannel"); + } + + /** + * Add a new URL channel to the host AdSense account. (urlchannels.insert) + * + * @param string $adClientId + * Ad client to which the new URL channel will be added. + * @param Google_UrlChannel $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdSenseHost_UrlChannel + */ + public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postBody, $optParams = array()) { + $params = array('adClientId' => $adClientId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AdSenseHost_UrlChannel"); + } + + /** + * List all host URL channels in the host AdSense account. + * (urlchannels.listUrlchannels) + * + * @param string $adClientId + * Ad client for which to list URL channels. + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param string maxResults + * The maximum number of URL channels to include in the response, used for paging. + * @return Google_Service_AdSenseHost_UrlChannels + */ + public function listUrlchannels($adClientId, $optParams = array()) { + $params = array('adClientId' => $adClientId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AdSenseHost_UrlChannels"); + } } +class Google_Service_AdSenseHost_Account extends Google_Model { + public $id; + public $kind; + public $name; + public $status; + public function setId($id) { + $this->id = $id; + } -class Google_Service_AdSenseHost_Account extends Google_Model -{ - public $id; - public $kind; - public $name; - public $status; + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setName($name) { + $this->name = $name; + } - public function getKind() - { - return $this->kind; - } + public function getName() { + return $this->name; + } - public function setName($name) - { - $this->name = $name; - } + public function setStatus($status) { + $this->status = $status; + } - public function getName() - { - return $this->name; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_AdSenseHost_Accounts extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSenseHost_Account'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_AdSenseHost_Accounts extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSenseHost_Account'; + protected $itemsDataType = 'array'; + public $kind; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdSenseHost_AdClient extends Google_Model -{ - public $arcOptIn; - public $id; - public $kind; - public $productCode; - public $supportsReporting; +class Google_Service_AdSenseHost_AdClient extends Google_Model { + public $arcOptIn; + public $id; + public $kind; + public $productCode; + public $supportsReporting; - public function setArcOptIn($arcOptIn) - { - $this->arcOptIn = $arcOptIn; - } + public function setArcOptIn($arcOptIn) { + $this->arcOptIn = $arcOptIn; + } - public function getArcOptIn() - { - return $this->arcOptIn; - } + public function getArcOptIn() { + return $this->arcOptIn; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setProductCode($productCode) - { - $this->productCode = $productCode; - } + public function setProductCode($productCode) { + $this->productCode = $productCode; + } - public function getProductCode() - { - return $this->productCode; - } + public function getProductCode() { + return $this->productCode; + } - public function setSupportsReporting($supportsReporting) - { - $this->supportsReporting = $supportsReporting; - } + public function setSupportsReporting($supportsReporting) { + $this->supportsReporting = $supportsReporting; + } - public function getSupportsReporting() - { - return $this->supportsReporting; - } + public function getSupportsReporting() { + return $this->supportsReporting; + } } -class Google_Service_AdSenseHost_AdClients extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSenseHost_AdClient'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdSenseHost_AdClients extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSenseHost_AdClient'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdSenseHost_AdCode extends Google_Model -{ - public $adCode; - public $kind; +class Google_Service_AdSenseHost_AdCode extends Google_Model { + public $adCode; + public $kind; - public function setAdCode($adCode) - { - $this->adCode = $adCode; - } + public function setAdCode($adCode) { + $this->adCode = $adCode; + } - public function getAdCode() - { - return $this->adCode; - } + public function getAdCode() { + return $this->adCode; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdSenseHost_AdStyle extends Google_Model -{ - protected $colorsType = 'Google_Service_AdSenseHost_AdStyleColors'; - protected $colorsDataType = ''; - public $corners; - protected $fontType = 'Google_Service_AdSenseHost_AdStyleFont'; - protected $fontDataType = ''; - public $kind; +class Google_Service_AdSenseHost_AdStyle extends Google_Model { + protected $colorsType = 'Google_Service_AdSenseHost_AdStyleColors'; + protected $colorsDataType = ''; + public $corners; + protected $fontType = 'Google_Service_AdSenseHost_AdStyleFont'; + protected $fontDataType = ''; + public $kind; - public function setColors(Google_Service_AdSenseHost_AdStyleColors $colors) - { - $this->colors = $colors; - } + public function setColors(Google_Service_AdSenseHost_AdStyleColors $colors) { + $this->colors = $colors; + } - public function getColors() - { - return $this->colors; - } + public function getColors() { + return $this->colors; + } - public function setCorners($corners) - { - $this->corners = $corners; - } + public function setCorners($corners) { + $this->corners = $corners; + } - public function getCorners() - { - return $this->corners; - } + public function getCorners() { + return $this->corners; + } - public function setFont(Google_Service_AdSenseHost_AdStyleFont $font) - { - $this->font = $font; - } + public function setFont(Google_Service_AdSenseHost_AdStyleFont $font) { + $this->font = $font; + } - public function getFont() - { - return $this->font; - } + public function getFont() { + return $this->font; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AdSenseHost_AdStyleColors extends Google_Model -{ - public $background; - public $border; - public $text; - public $title; - public $url; +class Google_Service_AdSenseHost_AdStyleColors extends Google_Model { + public $background; + public $border; + public $text; + public $title; + public $url; - public function setBackground($background) - { - $this->background = $background; - } + public function setBackground($background) { + $this->background = $background; + } - public function getBackground() - { - return $this->background; - } + public function getBackground() { + return $this->background; + } - public function setBorder($border) - { - $this->border = $border; - } + public function setBorder($border) { + $this->border = $border; + } - public function getBorder() - { - return $this->border; - } + public function getBorder() { + return $this->border; + } - public function setText($text) - { - $this->text = $text; - } + public function setText($text) { + $this->text = $text; + } - public function getText() - { - return $this->text; - } + public function getText() { + return $this->text; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_AdSenseHost_AdStyleFont extends Google_Model -{ - public $family; - public $size; +class Google_Service_AdSenseHost_AdStyleFont extends Google_Model { + public $family; + public $size; - public function setFamily($family) - { - $this->family = $family; - } + public function setFamily($family) { + $this->family = $family; + } - public function getFamily() - { - return $this->family; - } + public function getFamily() { + return $this->family; + } - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } } -class Google_Service_AdSenseHost_AdUnit extends Google_Model -{ - public $code; - protected $contentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettings'; - protected $contentAdsSettingsDataType = ''; - protected $customStyleType = 'Google_Service_AdSenseHost_AdStyle'; - protected $customStyleDataType = ''; - public $id; - public $kind; - protected $mobileContentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings'; - protected $mobileContentAdsSettingsDataType = ''; - public $name; - public $status; +class Google_Service_AdSenseHost_AdUnit extends Google_Model { + public $code; + protected $contentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettings'; + protected $contentAdsSettingsDataType = ''; + protected $customStyleType = 'Google_Service_AdSenseHost_AdStyle'; + protected $customStyleDataType = ''; + public $id; + public $kind; + protected $mobileContentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings'; + protected $mobileContentAdsSettingsDataType = ''; + public $name; + public $status; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setContentAdsSettings(Google_Service_AdSenseHost_AdUnitContentAdsSettings $contentAdsSettings) - { - $this->contentAdsSettings = $contentAdsSettings; - } + public function setContentAdsSettings(Google_Service_AdSenseHost_AdUnitContentAdsSettings $contentAdsSettings) { + $this->contentAdsSettings = $contentAdsSettings; + } - public function getContentAdsSettings() - { - return $this->contentAdsSettings; - } + public function getContentAdsSettings() { + return $this->contentAdsSettings; + } - public function setCustomStyle(Google_Service_AdSenseHost_AdStyle $customStyle) - { - $this->customStyle = $customStyle; - } + public function setCustomStyle(Google_Service_AdSenseHost_AdStyle $customStyle) { + $this->customStyle = $customStyle; + } - public function getCustomStyle() - { - return $this->customStyle; - } + public function getCustomStyle() { + return $this->customStyle; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMobileContentAdsSettings(Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) - { - $this->mobileContentAdsSettings = $mobileContentAdsSettings; - } + public function setMobileContentAdsSettings(Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) { + $this->mobileContentAdsSettings = $mobileContentAdsSettings; + } - public function getMobileContentAdsSettings() - { - return $this->mobileContentAdsSettings; - } + public function getMobileContentAdsSettings() { + return $this->mobileContentAdsSettings; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model -{ - protected $backupOptionType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption'; - protected $backupOptionDataType = ''; - public $size; - public $type; +class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model { + protected $backupOptionType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption'; + protected $backupOptionDataType = ''; + public $size; + public $type; - public function setBackupOption(Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption $backupOption) - { - $this->backupOption = $backupOption; - } + public function setBackupOption(Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption $backupOption) { + $this->backupOption = $backupOption; + } - public function getBackupOption() - { - return $this->backupOption; - } + public function getBackupOption() { + return $this->backupOption; + } - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Google_Model -{ - public $color; - public $type; - public $url; +class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Google_Model { + public $color; + public $type; + public $url; - public function setColor($color) - { - $this->color = $color; - } + public function setColor($color) { + $this->color = $color; + } - public function getColor() - { - return $this->color; - } + public function getColor() { + return $this->color; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_Model -{ - public $markupLanguage; - public $scriptingLanguage; - public $size; - public $type; +class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_Model { + public $markupLanguage; + public $scriptingLanguage; + public $size; + public $type; - public function setMarkupLanguage($markupLanguage) - { - $this->markupLanguage = $markupLanguage; - } + public function setMarkupLanguage($markupLanguage) { + $this->markupLanguage = $markupLanguage; + } - public function getMarkupLanguage() - { - return $this->markupLanguage; - } + public function getMarkupLanguage() { + return $this->markupLanguage; + } - public function setScriptingLanguage($scriptingLanguage) - { - $this->scriptingLanguage = $scriptingLanguage; - } + public function setScriptingLanguage($scriptingLanguage) { + $this->scriptingLanguage = $scriptingLanguage; + } - public function getScriptingLanguage() - { - return $this->scriptingLanguage; - } + public function getScriptingLanguage() { + return $this->scriptingLanguage; + } - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_AdSenseHost_AdUnits extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSenseHost_AdUnit'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdSenseHost_AdUnits extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSenseHost_AdUnit'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdSenseHost_AssociationSession extends Google_Collection -{ - public $accountId; - public $id; - public $kind; - public $productCodes; - public $redirectUrl; - public $status; - public $userLocale; - public $websiteLocale; - public $websiteUrl; +class Google_Service_AdSenseHost_AssociationSession extends Google_Collection { + public $accountId; + public $id; + public $kind; + public $productCodes; + public $redirectUrl; + public $status; + public $userLocale; + public $websiteLocale; + public $websiteUrl; - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } + public function setAccountId($accountId) { + $this->accountId = $accountId; + } - public function getAccountId() - { - return $this->accountId; - } + public function getAccountId() { + return $this->accountId; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setProductCodes($productCodes) - { - $this->productCodes = $productCodes; - } + public function setProductCodes($productCodes) { + $this->productCodes = $productCodes; + } - public function getProductCodes() - { - return $this->productCodes; - } + public function getProductCodes() { + return $this->productCodes; + } - public function setRedirectUrl($redirectUrl) - { - $this->redirectUrl = $redirectUrl; - } + public function setRedirectUrl($redirectUrl) { + $this->redirectUrl = $redirectUrl; + } - public function getRedirectUrl() - { - return $this->redirectUrl; - } + public function getRedirectUrl() { + return $this->redirectUrl; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setUserLocale($userLocale) - { - $this->userLocale = $userLocale; - } + public function setUserLocale($userLocale) { + $this->userLocale = $userLocale; + } - public function getUserLocale() - { - return $this->userLocale; - } + public function getUserLocale() { + return $this->userLocale; + } - public function setWebsiteLocale($websiteLocale) - { - $this->websiteLocale = $websiteLocale; - } + public function setWebsiteLocale($websiteLocale) { + $this->websiteLocale = $websiteLocale; + } - public function getWebsiteLocale() - { - return $this->websiteLocale; - } + public function getWebsiteLocale() { + return $this->websiteLocale; + } - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } + public function setWebsiteUrl($websiteUrl) { + $this->websiteUrl = $websiteUrl; + } - public function getWebsiteUrl() - { - return $this->websiteUrl; - } + public function getWebsiteUrl() { + return $this->websiteUrl; + } } -class Google_Service_AdSenseHost_CustomChannel extends Google_Model -{ - public $code; - public $id; - public $kind; - public $name; +class Google_Service_AdSenseHost_CustomChannel extends Google_Model { + public $code; + public $id; + public $kind; + public $name; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_AdSenseHost_CustomChannels extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSenseHost_CustomChannel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdSenseHost_CustomChannels extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSenseHost_CustomChannel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_AdSenseHost_Report extends Google_Collection -{ - public $averages; - protected $headersType = 'Google_Service_AdSenseHost_ReportHeaders'; - protected $headersDataType = 'array'; - public $kind; - public $rows; - public $totalMatchedRows; - public $totals; - public $warnings; +class Google_Service_AdSenseHost_Report extends Google_Collection { + public $averages; + protected $headersType = 'Google_Service_AdSenseHost_ReportHeaders'; + protected $headersDataType = 'array'; + public $kind; + public $rows; + public $totalMatchedRows; + public $totals; + public $warnings; - public function setAverages($averages) - { - $this->averages = $averages; - } + public function setAverages($averages) { + $this->averages = $averages; + } - public function getAverages() - { - return $this->averages; - } + public function getAverages() { + return $this->averages; + } - public function setHeaders($headers) - { - $this->headers = $headers; - } + public function setHeaders($headers) { + $this->headers = $headers; + } - public function getHeaders() - { - return $this->headers; - } + public function getHeaders() { + return $this->headers; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRows($rows) - { - $this->rows = $rows; - } + public function setRows($rows) { + $this->rows = $rows; + } - public function getRows() - { - return $this->rows; - } + public function getRows() { + return $this->rows; + } - public function setTotalMatchedRows($totalMatchedRows) - { - $this->totalMatchedRows = $totalMatchedRows; - } + public function setTotalMatchedRows($totalMatchedRows) { + $this->totalMatchedRows = $totalMatchedRows; + } - public function getTotalMatchedRows() - { - return $this->totalMatchedRows; - } + public function getTotalMatchedRows() { + return $this->totalMatchedRows; + } - public function setTotals($totals) - { - $this->totals = $totals; - } + public function setTotals($totals) { + $this->totals = $totals; + } - public function getTotals() - { - return $this->totals; - } + public function getTotals() { + return $this->totals; + } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } + public function setWarnings($warnings) { + $this->warnings = $warnings; + } - public function getWarnings() - { - return $this->warnings; - } + public function getWarnings() { + return $this->warnings; + } } -class Google_Service_AdSenseHost_ReportHeaders extends Google_Model -{ - public $currency; - public $name; - public $type; +class Google_Service_AdSenseHost_ReportHeaders extends Google_Model { + public $currency; + public $name; + public $type; - public function setCurrency($currency) - { - $this->currency = $currency; - } + public function setCurrency($currency) { + $this->currency = $currency; + } - public function getCurrency() - { - return $this->currency; - } + public function getCurrency() { + return $this->currency; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_AdSenseHost_UrlChannel extends Google_Model -{ - public $id; - public $kind; - public $urlPattern; +class Google_Service_AdSenseHost_UrlChannel extends Google_Model { + public $id; + public $kind; + public $urlPattern; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setUrlPattern($urlPattern) - { - $this->urlPattern = $urlPattern; - } + public function setUrlPattern($urlPattern) { + $this->urlPattern = $urlPattern; + } - public function getUrlPattern() - { - return $this->urlPattern; - } + public function getUrlPattern() { + return $this->urlPattern; + } } -class Google_Service_AdSenseHost_UrlChannels extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_AdSenseHost_UrlChannel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_AdSenseHost_UrlChannels extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_AdSenseHost_UrlChannel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } diff --git a/oauth/Google/Service/Admin.php b/oauth/Google/Service/Admin.php index 56fdc9a..2f16367 100644 --- a/oauth/Google/Service/Admin.php +++ b/oauth/Google/Service/Admin.php @@ -29,47 +29,45 @@ * * @author Google, Inc. */ -class Google_Service_Admin extends Google_Service -{ - /** Manage email messages of users on your domain. */ - const EMAIL_MIGRATION = "https://www.googleapis.com/auth/email.migration"; +class Google_Service_Admin extends Google_Service { + /** Manage email messages of users on your domain. */ + const EMAIL_MIGRATION = "https://www.googleapis.com/auth/email.migration"; - public $mail; - + public $mail; - /** - * Constructs the internal representation of the Admin service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'email/v2/users/'; - $this->version = 'email_migration_v2'; - $this->serviceName = 'admin'; - $this->mail = new Google_Service_Admin_Mail_Resource( - $this, - $this->serviceName, - 'mail', - array( - 'methods' => array( - 'insert' => array( - 'path' => '{userKey}/mail', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Admin service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'email/v2/users/'; + $this->version = 'email_migration_v2'; + $this->serviceName = 'admin'; + + $this->mail = new Google_Service_Admin_Mail_Resource( + $this, + $this->serviceName, + 'mail', + array( + 'methods' => array( + 'insert' => array( + 'path' => '{userKey}/mail', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -81,127 +79,104 @@ class Google_Service_Admin extends Google_Service * $mail = $adminService->mail; * */ -class Google_Service_Admin_Mail_Resource extends Google_Service_Resource -{ +class Google_Service_Admin_Mail_Resource extends Google_Service_Resource { - /** - * Insert Mail into Google's Gmail backends (mail.insert) - * - * @param string $userKey - * The email or immutable id of the user - * @param Google_MailItem $postBody - * @param array $optParams Optional parameters. - */ - public function insert($userKey, Google_Service_Admin_MailItem $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params)); - } + /** + * Insert Mail into Google's Gmail backends (mail.insert) + * + * @param string $userKey + * The email or immutable id of the user + * @param Google_MailItem $postBody + * @param array $optParams Optional parameters. + */ + public function insert($userKey, Google_Service_Admin_MailItem $postBody, $optParams = array()) { + $params = array('userKey' => $userKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params)); + } } +class Google_Service_Admin_MailItem extends Google_Collection { + public $isDeleted; + public $isDraft; + public $isInbox; + public $isSent; + public $isStarred; + public $isTrash; + public $isUnread; + public $kind; + public $labels; + public function setIsDeleted($isDeleted) { + $this->isDeleted = $isDeleted; + } -class Google_Service_Admin_MailItem extends Google_Collection -{ - public $isDeleted; - public $isDraft; - public $isInbox; - public $isSent; - public $isStarred; - public $isTrash; - public $isUnread; - public $kind; - public $labels; + public function getIsDeleted() { + return $this->isDeleted; + } - public function setIsDeleted($isDeleted) - { - $this->isDeleted = $isDeleted; - } + public function setIsDraft($isDraft) { + $this->isDraft = $isDraft; + } - public function getIsDeleted() - { - return $this->isDeleted; - } + public function getIsDraft() { + return $this->isDraft; + } - public function setIsDraft($isDraft) - { - $this->isDraft = $isDraft; - } + public function setIsInbox($isInbox) { + $this->isInbox = $isInbox; + } - public function getIsDraft() - { - return $this->isDraft; - } + public function getIsInbox() { + return $this->isInbox; + } - public function setIsInbox($isInbox) - { - $this->isInbox = $isInbox; - } + public function setIsSent($isSent) { + $this->isSent = $isSent; + } - public function getIsInbox() - { - return $this->isInbox; - } + public function getIsSent() { + return $this->isSent; + } - public function setIsSent($isSent) - { - $this->isSent = $isSent; - } + public function setIsStarred($isStarred) { + $this->isStarred = $isStarred; + } - public function getIsSent() - { - return $this->isSent; - } + public function getIsStarred() { + return $this->isStarred; + } - public function setIsStarred($isStarred) - { - $this->isStarred = $isStarred; - } + public function setIsTrash($isTrash) { + $this->isTrash = $isTrash; + } - public function getIsStarred() - { - return $this->isStarred; - } + public function getIsTrash() { + return $this->isTrash; + } - public function setIsTrash($isTrash) - { - $this->isTrash = $isTrash; - } + public function setIsUnread($isUnread) { + $this->isUnread = $isUnread; + } - public function getIsTrash() - { - return $this->isTrash; - } + public function getIsUnread() { + return $this->isUnread; + } - public function setIsUnread($isUnread) - { - $this->isUnread = $isUnread; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getIsUnread() - { - return $this->isUnread; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setLabels($labels) { + $this->labels = $labels; + } - public function getKind() - { - return $this->kind; - } - - public function setLabels($labels) - { - $this->labels = $labels; - } - - public function getLabels() - { - return $this->labels; - } + public function getLabels() { + return $this->labels; + } } diff --git a/oauth/Google/Service/Analytics.php b/oauth/Google/Service/Analytics.php index 45c3380..2363574 100644 --- a/oauth/Google/Service/Analytics.php +++ b/oauth/Google/Service/Analytics.php @@ -29,1832 +29,1830 @@ * * @author Google, Inc. */ -class Google_Service_Analytics extends Google_Service -{ - /** View and manage your Google Analytics data. */ - const ANALYTICS = "https://www.googleapis.com/auth/analytics"; - /** Edit Google Analytics management entities. */ - const ANALYTICS_EDIT = "https://www.googleapis.com/auth/analytics.edit"; - /** Manage Google Analytics Account users by email address. */ - const ANALYTICS_MANAGE_USERS = "https://www.googleapis.com/auth/analytics.manage.users"; - /** Create a new Google Analytics account along with its default property and view. */ - const ANALYTICS_PROVISION = "https://www.googleapis.com/auth/analytics.provision"; - /** View your Google Analytics data. */ - const ANALYTICS_READONLY = "https://www.googleapis.com/auth/analytics.readonly"; +class Google_Service_Analytics extends Google_Service { + /** View and manage your Google Analytics data. */ + const ANALYTICS = "https://www.googleapis.com/auth/analytics"; + /** Edit Google Analytics management entities. */ + const ANALYTICS_EDIT = "https://www.googleapis.com/auth/analytics.edit"; + /** Manage Google Analytics Account users by email address. */ + const ANALYTICS_MANAGE_USERS = "https://www.googleapis.com/auth/analytics.manage.users"; + /** Create a new Google Analytics account along with its default property and view. */ + const ANALYTICS_PROVISION = "https://www.googleapis.com/auth/analytics.provision"; + /** View your Google Analytics data. */ + const ANALYTICS_READONLY = "https://www.googleapis.com/auth/analytics.readonly"; - public $data_ga; - public $data_mcf; - public $data_realtime; - public $management_accountSummaries; - public $management_accountUserLinks; - public $management_accounts; - public $management_customDataSources; - public $management_dailyUploads; - public $management_experiments; - public $management_filters; - public $management_goals; - public $management_profileFilterLinks; - public $management_profileUserLinks; - public $management_profiles; - public $management_segments; - public $management_unsampledReports; - public $management_uploads; - public $management_webPropertyAdWordsLinks; - public $management_webproperties; - public $management_webpropertyUserLinks; - public $metadata_columns; - public $provisioning; - + public $data_ga; + public $data_mcf; + public $data_realtime; + public $management_accountSummaries; + public $management_accountUserLinks; + public $management_accounts; + public $management_customDataSources; + public $management_dailyUploads; + public $management_experiments; + public $management_filters; + public $management_goals; + public $management_profileFilterLinks; + public $management_profileUserLinks; + public $management_profiles; + public $management_segments; + public $management_unsampledReports; + public $management_uploads; + public $management_webPropertyAdWordsLinks; + public $management_webproperties; + public $management_webpropertyUserLinks; + public $metadata_columns; + public $provisioning; - /** - * Constructs the internal representation of the Analytics service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'analytics/v3/'; - $this->version = 'v3'; - $this->serviceName = 'analytics'; - $this->data_ga = new Google_Service_Analytics_DataGa_Resource( - $this, - $this->serviceName, - 'ga', - array( - 'methods' => array( - 'get' => array( - 'path' => 'data/ga', - 'httpMethod' => 'GET', - 'parameters' => array( - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'start-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'end-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'metrics' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dimensions' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'segment' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'samplingLevel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'output' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->data_mcf = new Google_Service_Analytics_DataMcf_Resource( - $this, - $this->serviceName, - 'mcf', - array( - 'methods' => array( - 'get' => array( - 'path' => 'data/mcf', - 'httpMethod' => 'GET', - 'parameters' => array( - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'start-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'end-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'metrics' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dimensions' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'samplingLevel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->data_realtime = new Google_Service_Analytics_DataRealtime_Resource( - $this, - $this->serviceName, - 'realtime', - array( - 'methods' => array( - 'get' => array( - 'path' => 'data/realtime', - 'httpMethod' => 'GET', - 'parameters' => array( - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'metrics' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dimensions' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->management_accountSummaries = new Google_Service_Analytics_ManagementAccountSummaries_Resource( - $this, - $this->serviceName, - 'accountSummaries', - array( - 'methods' => array( - 'list' => array( - 'path' => 'management/accountSummaries', - 'httpMethod' => 'GET', - 'parameters' => array( - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->management_accountUserLinks = new Google_Service_Analytics_ManagementAccountUserLinks_Resource( - $this, - $this->serviceName, - 'accountUserLinks', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/entityUserLinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/entityUserLinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_accounts = new Google_Service_Analytics_ManagementAccounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'list' => array( - 'path' => 'management/accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->management_customDataSources = new Google_Service_Analytics_ManagementCustomDataSources_Resource( - $this, - $this->serviceName, - 'customDataSources', - array( - 'methods' => array( - 'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->management_dailyUploads = new Google_Service_Analytics_ManagementDailyUploads_Resource( - $this, - $this->serviceName, - 'dailyUploads', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'date' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'start-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'end-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'upload' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'date' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'appendNumber' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'reset' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->management_experiments = new Google_Service_Analytics_ManagementExperiments_Resource( - $this, - $this->serviceName, - 'experiments', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'experimentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'experimentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'experimentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'experimentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_filters = new Google_Service_Analytics_ManagementFilters_Resource( - $this, - $this->serviceName, - 'filters', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/filters/{filterId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/filters/{filterId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/filters', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/filters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/filters/{filterId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/filters/{filterId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filterId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_goals = new Google_Service_Analytics_ManagementGoals_Resource( - $this, - $this->serviceName, - 'goals', - array( - 'methods' => array( - 'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'goalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'goalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'goalId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_profileFilterLinks = new Google_Service_Analytics_ManagementProfileFilterLinks_Resource( - $this, - $this->serviceName, - 'profileFilterLinks', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_profileUserLinks = new Google_Service_Analytics_ManagementProfileUserLinks_Resource( - $this, - $this->serviceName, - 'profileUserLinks', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_profiles = new Google_Service_Analytics_ManagementProfiles_Resource( - $this, - $this->serviceName, - 'profiles', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_segments = new Google_Service_Analytics_ManagementSegments_Resource( - $this, - $this->serviceName, - 'segments', - array( - 'methods' => array( - 'list' => array( - 'path' => 'management/segments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->management_unsampledReports = new Google_Service_Analytics_ManagementUnsampledReports_Resource( - $this, - $this->serviceName, - 'unsampledReports', - array( - 'methods' => array( - 'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'unsampledReportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->management_uploads = new Google_Service_Analytics_ManagementUploads_Resource( - $this, - $this->serviceName, - 'uploads', - array( - 'methods' => array( - 'deleteUploadData' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'uploadId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'migrateDataImport' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/migrateDataImport', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'uploadData' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_webPropertyAdWordsLinks = new Google_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource( - $this, - $this->serviceName, - 'webPropertyAdWordsLinks', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyAdWordsLinkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyAdWordsLinkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyAdWordsLinkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyAdWordsLinkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_webproperties = new Google_Service_Analytics_ManagementWebproperties_Resource( - $this, - $this->serviceName, - 'webproperties', - array( - 'methods' => array( - 'get' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->management_webpropertyUserLinks = new Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource( - $this, - $this->serviceName, - 'webpropertyUserLinks', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'linkId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->metadata_columns = new Google_Service_Analytics_MetadataColumns_Resource( - $this, - $this->serviceName, - 'columns', - array( - 'methods' => array( - 'list' => array( - 'path' => 'metadata/{reportType}/columns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'reportType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->provisioning = new Google_Service_Analytics_Provisioning_Resource( - $this, - $this->serviceName, - 'provisioning', - array( - 'methods' => array( - 'createAccountTicket' => array( - 'path' => 'provisioning/createAccountTicket', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Analytics service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'analytics/v3/'; + $this->version = 'v3'; + $this->serviceName = 'analytics'; + + $this->data_ga = new Google_Service_Analytics_DataGa_Resource( + $this, + $this->serviceName, + 'ga', + array( + 'methods' => array( + 'get' => array( + 'path' => 'data/ga', + 'httpMethod' => 'GET', + 'parameters' => array( + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'start-date' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'end-date' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'metrics' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'sort' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'dimensions' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'segment' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'samplingLevel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filters' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'output' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->data_mcf = new Google_Service_Analytics_DataMcf_Resource( + $this, + $this->serviceName, + 'mcf', + array( + 'methods' => array( + 'get' => array( + 'path' => 'data/mcf', + 'httpMethod' => 'GET', + 'parameters' => array( + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'start-date' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'end-date' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'metrics' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'sort' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'dimensions' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'samplingLevel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filters' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->data_realtime = new Google_Service_Analytics_DataRealtime_Resource( + $this, + $this->serviceName, + 'realtime', + array( + 'methods' => array( + 'get' => array( + 'path' => 'data/realtime', + 'httpMethod' => 'GET', + 'parameters' => array( + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'metrics' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'sort' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'dimensions' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filters' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->management_accountSummaries = new Google_Service_Analytics_ManagementAccountSummaries_Resource( + $this, + $this->serviceName, + 'accountSummaries', + array( + 'methods' => array( + 'list' => array( + 'path' => 'management/accountSummaries', + 'httpMethod' => 'GET', + 'parameters' => array( + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->management_accountUserLinks = new Google_Service_Analytics_ManagementAccountUserLinks_Resource( + $this, + $this->serviceName, + 'accountUserLinks', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'linkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'management/accounts/{accountId}/entityUserLinks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/entityUserLinks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'update' => array( + 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'linkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->management_accounts = new Google_Service_Analytics_ManagementAccounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'list' => array( + 'path' => 'management/accounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->management_customDataSources = new Google_Service_Analytics_ManagementCustomDataSources_Resource( + $this, + $this->serviceName, + 'customDataSources', + array( + 'methods' => array( + 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->management_dailyUploads = new Google_Service_Analytics_ManagementDailyUploads_Resource( + $this, + $this->serviceName, + 'dailyUploads', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'date' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'start-date' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'end-date' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'upload' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'date' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'appendNumber' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'reset' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->management_experiments = new Google_Service_Analytics_ManagementExperiments_Resource( + $this, + $this->serviceName, + 'experiments', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'experimentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'experimentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'experimentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'experimentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->management_filters = new Google_Service_Analytics_ManagementFilters_Resource( + $this, + $this->serviceName, + 'filters', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'management/accounts/{accountId}/filters/{filterId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'management/accounts/{accountId}/filters/{filterId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'management/accounts/{accountId}/filters', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/filters', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'management/accounts/{accountId}/filters/{filterId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'management/accounts/{accountId}/filters/{filterId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->management_goals = new Google_Service_Analytics_ManagementGoals_Resource( + $this, + $this->serviceName, + 'goals', + array( + 'methods' => array( + 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'goalId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'goalId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'goalId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->management_profileFilterLinks = new Google_Service_Analytics_ManagementProfileFilterLinks_Resource( + $this, + $this->serviceName, + 'profileFilterLinks', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'linkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'linkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'linkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'linkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->management_profileUserLinks = new Google_Service_Analytics_ManagementProfileUserLinks_Resource( + $this, + $this->serviceName, + 'profileUserLinks', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'linkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'linkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->management_profiles = new Google_Service_Analytics_ManagementProfiles_Resource( + $this, + $this->serviceName, + 'profiles', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->management_segments = new Google_Service_Analytics_ManagementSegments_Resource( + $this, + $this->serviceName, + 'segments', + array( + 'methods' => array( + 'list' => array( + 'path' => 'management/segments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->management_unsampledReports = new Google_Service_Analytics_ManagementUnsampledReports_Resource( + $this, + $this->serviceName, + 'unsampledReports', + array( + 'methods' => array( + 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'unsampledReportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->management_uploads = new Google_Service_Analytics_ManagementUploads_Resource( + $this, + $this->serviceName, + 'uploads', + array( + 'methods' => array( + 'deleteUploadData' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'uploadId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'migrateDataImport' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/migrateDataImport', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'uploadData' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->management_webPropertyAdWordsLinks = new Google_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource( + $this, + $this->serviceName, + 'webPropertyAdWordsLinks', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyAdWordsLinkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyAdWordsLinkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyAdWordsLinkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyAdWordsLinkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->management_webproperties = new Google_Service_Analytics_ManagementWebproperties_Resource( + $this, + $this->serviceName, + 'webproperties', + array( + 'methods' => array( + 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->management_webpropertyUserLinks = new Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource( + $this, + $this->serviceName, + 'webpropertyUserLinks', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'linkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'linkId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->metadata_columns = new Google_Service_Analytics_MetadataColumns_Resource( + $this, + $this->serviceName, + 'columns', + array( + 'methods' => array( + 'list' => array( + 'path' => 'metadata/{reportType}/columns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'reportType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->provisioning = new Google_Service_Analytics_Provisioning_Resource( + $this, + $this->serviceName, + 'provisioning', + array( + 'methods' => array( + 'createAccountTicket' => array( + 'path' => 'provisioning/createAccountTicket', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } } @@ -1866,8 +1864,7 @@ class Google_Service_Analytics extends Google_Service * $data = $analyticsService->data; * */ -class Google_Service_Analytics_Data_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_Data_Resource extends Google_Service_Resource { } @@ -1879,54 +1876,53 @@ class Google_Service_Analytics_Data_Resource extends Google_Service_Resource * $ga = $analyticsService->ga; * */ -class Google_Service_Analytics_DataGa_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_DataGa_Resource extends Google_Service_Resource { - /** - * Returns Analytics data for a view (profile). (ga.get) - * - * @param string $ids - * Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is - * the Analytics view (profile) ID. - * @param string $startDate - * Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM- - * DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. - * @param string $endDate - * End date for fetching Analytics data. Request can should specify an end date formatted as YYYY- - * MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is - * yesterday. - * @param string $metrics - * A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one - * metric must be specified. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of entries to include in this feed. - * @opt_param string sort - * A comma-separated list of dimensions or metrics that determine the sort order for Analytics - * data. - * @opt_param string dimensions - * A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'. - * @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. - * @opt_param string segment - * An Analytics segment to be applied to data. - * @opt_param string samplingLevel - * The desired sampling level. - * @opt_param string filters - * A comma-separated list of dimension or metric filters to be applied to Analytics data. - * @opt_param string output - * The selected format for the response. Default format is JSON. - * @return Google_Service_Analytics_GaData - */ - public function get($ids, $startDate, $endDate, $metrics, $optParams = array()) - { - $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_GaData"); - } + /** + * Returns Analytics data for a view (profile). (ga.get) + * + * @param string $ids + * Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is + * the Analytics view (profile) ID. + * @param string $startDate + * Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM- + * DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. + * @param string $endDate + * End date for fetching Analytics data. Request can should specify an end date formatted as YYYY- + * MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is + * yesterday. + * @param string $metrics + * A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one + * metric must be specified. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of entries to include in this feed. + * @opt_param string sort + * A comma-separated list of dimensions or metrics that determine the sort order for Analytics + * data. + * @opt_param string dimensions + * A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'. + * @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. + * @opt_param string segment + * An Analytics segment to be applied to data. + * @opt_param string samplingLevel + * The desired sampling level. + * @opt_param string filters + * A comma-separated list of dimension or metric filters to be applied to Analytics data. + * @opt_param string output + * The selected format for the response. Default format is JSON. + * @return Google_Service_Analytics_GaData + */ + public function get($ids, $startDate, $endDate, $metrics, $optParams = array()) { + $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_GaData"); + } } + /** * The "mcf" collection of methods. * Typical usage is: @@ -1935,49 +1931,48 @@ class Google_Service_Analytics_DataGa_Resource extends Google_Service_Resource * $mcf = $analyticsService->mcf; * */ -class Google_Service_Analytics_DataMcf_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_DataMcf_Resource extends Google_Service_Resource { - /** - * Returns Analytics Multi-Channel Funnels data for a view (profile). (mcf.get) - * - * @param string $ids - * Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is - * the Analytics view (profile) ID. - * @param string $startDate - * Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM- - * DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. - * @param string $endDate - * End date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, - * or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. - * @param string $metrics - * A comma-separated list of Multi-Channel Funnels metrics. E.g., - * 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of entries to include in this feed. - * @opt_param string sort - * A comma-separated list of dimensions or metrics that determine the sort order for the Analytics - * data. - * @opt_param string dimensions - * A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'. - * @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. - * @opt_param string samplingLevel - * The desired sampling level. - * @opt_param string filters - * A comma-separated list of dimension or metric filters to be applied to the Analytics data. - * @return Google_Service_Analytics_McfData - */ - public function get($ids, $startDate, $endDate, $metrics, $optParams = array()) - { - $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_McfData"); - } + /** + * Returns Analytics Multi-Channel Funnels data for a view (profile). (mcf.get) + * + * @param string $ids + * Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is + * the Analytics view (profile) ID. + * @param string $startDate + * Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM- + * DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. + * @param string $endDate + * End date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, + * or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. + * @param string $metrics + * A comma-separated list of Multi-Channel Funnels metrics. E.g., + * 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of entries to include in this feed. + * @opt_param string sort + * A comma-separated list of dimensions or metrics that determine the sort order for the Analytics + * data. + * @opt_param string dimensions + * A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'. + * @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. + * @opt_param string samplingLevel + * The desired sampling level. + * @opt_param string filters + * A comma-separated list of dimension or metric filters to be applied to the Analytics data. + * @return Google_Service_Analytics_McfData + */ + public function get($ids, $startDate, $endDate, $metrics, $optParams = array()) { + $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_McfData"); + } } + /** * The "realtime" collection of methods. * Typical usage is: @@ -1986,37 +1981,35 @@ class Google_Service_Analytics_DataMcf_Resource extends Google_Service_Resource * $realtime = $analyticsService->realtime; * */ -class Google_Service_Analytics_DataRealtime_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_DataRealtime_Resource extends Google_Service_Resource { - /** - * Returns real time data for a view (profile). (realtime.get) - * - * @param string $ids - * Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is - * the Analytics view (profile) ID. - * @param string $metrics - * A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be - * specified. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of entries to include in this feed. - * @opt_param string sort - * A comma-separated list of dimensions or metrics that determine the sort order for real time - * data. - * @opt_param string dimensions - * A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'. - * @opt_param string filters - * A comma-separated list of dimension or metric filters to be applied to real time data. - * @return Google_Service_Analytics_RealtimeData - */ - public function get($ids, $metrics, $optParams = array()) - { - $params = array('ids' => $ids, 'metrics' => $metrics); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_RealtimeData"); - } + /** + * Returns real time data for a view (profile). (realtime.get) + * + * @param string $ids + * Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is + * the Analytics view (profile) ID. + * @param string $metrics + * A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be + * specified. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of entries to include in this feed. + * @opt_param string sort + * A comma-separated list of dimensions or metrics that determine the sort order for real time + * data. + * @opt_param string dimensions + * A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'. + * @opt_param string filters + * A comma-separated list of dimension or metric filters to be applied to real time data. + * @return Google_Service_Analytics_RealtimeData + */ + public function get($ids, $metrics, $optParams = array()) { + $params = array('ids' => $ids, 'metrics' => $metrics); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_RealtimeData"); + } } /** @@ -2027,8 +2020,7 @@ class Google_Service_Analytics_DataRealtime_Resource extends Google_Service_Reso * $management = $analyticsService->management; * */ -class Google_Service_Analytics_Management_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_Management_Resource extends Google_Service_Resource { } @@ -2040,30 +2032,29 @@ class Google_Service_Analytics_Management_Resource extends Google_Service_Resour * $accountSummaries = $analyticsService->accountSummaries; * */ -class Google_Service_Analytics_ManagementAccountSummaries_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementAccountSummaries_Resource extends Google_Service_Resource { - /** - * Lists account summaries (lightweight tree comprised of - * accounts/properties/profiles) to which the user has access. - * (accountSummaries.listManagementAccountSummaries) - * - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of filters to include in this response. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. - * @return Google_Service_Analytics_AccountSummaries - */ - public function listManagementAccountSummaries($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_AccountSummaries"); - } + /** + * Lists account summaries (lightweight tree comprised of + * accounts/properties/profiles) to which the user has access. + * (accountSummaries.listManagementAccountSummaries) + * + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of filters to include in this response. + * @opt_param int start-index + * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along + * with the max-results parameter. + * @return Google_Service_Analytics_AccountSummaries + */ + public function listManagementAccountSummaries($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_AccountSummaries"); + } } + /** * The "accountUserLinks" collection of methods. * Typical usage is: @@ -2072,79 +2063,78 @@ class Google_Service_Analytics_ManagementAccountSummaries_Resource extends Googl * $accountUserLinks = $analyticsService->accountUserLinks; * */ -class Google_Service_Analytics_ManagementAccountUserLinks_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementAccountUserLinks_Resource extends Google_Service_Resource { - /** - * Removes a user from the given account. (accountUserLinks.delete) - * - * @param string $accountId - * Account ID to delete the user link for. - * @param string $linkId - * Link ID to delete the user link for. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $linkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'linkId' => $linkId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Adds a new user to the given account. (accountUserLinks.insert) - * - * @param string $accountId - * Account ID to create the user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function insert($accountId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); - } - /** - * Lists account-user links for a given account. - * (accountUserLinks.listManagementAccountUserLinks) - * - * @param string $accountId - * Account ID to retrieve the user links for. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of account-user links to include in this response. - * @opt_param int start-index - * An index of the first account-user link to retrieve. Use this parameter as a pagination - * mechanism along with the max-results parameter. - * @return Google_Service_Analytics_EntityUserLinks - */ - public function listManagementAccountUserLinks($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); - } - /** - * Updates permissions for an existing user on the given account. - * (accountUserLinks.update) - * - * @param string $accountId - * Account ID to update the account-user link for. - * @param string $linkId - * Link ID to update the account-user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function update($accountId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink"); - } + /** + * Removes a user from the given account. (accountUserLinks.delete) + * + * @param string $accountId + * Account ID to delete the user link for. + * @param string $linkId + * Link ID to delete the user link for. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $linkId, $optParams = array()) { + $params = array('accountId' => $accountId, 'linkId' => $linkId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a new user to the given account. (accountUserLinks.insert) + * + * @param string $accountId + * Account ID to create the user link for. + * @param Google_EntityUserLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_EntityUserLink + */ + public function insert($accountId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); + } + + /** + * Lists account-user links for a given account. + * (accountUserLinks.listManagementAccountUserLinks) + * + * @param string $accountId + * Account ID to retrieve the user links for. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of account-user links to include in this response. + * @opt_param int start-index + * An index of the first account-user link to retrieve. Use this parameter as a pagination + * mechanism along with the max-results parameter. + * @return Google_Service_Analytics_EntityUserLinks + */ + public function listManagementAccountUserLinks($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); + } + + /** + * Updates permissions for an existing user on the given account. + * (accountUserLinks.update) + * + * @param string $accountId + * Account ID to update the account-user link for. + * @param string $linkId + * Link ID to update the account-user link for. + * @param Google_EntityUserLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_EntityUserLink + */ + public function update($accountId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink"); + } } + /** * The "accounts" collection of methods. * Typical usage is: @@ -2153,29 +2143,28 @@ class Google_Service_Analytics_ManagementAccountUserLinks_Resource extends Googl * $accounts = $analyticsService->accounts; * */ -class Google_Service_Analytics_ManagementAccounts_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementAccounts_Resource extends Google_Service_Resource { - /** - * Lists all accounts to which the user has access. - * (accounts.listManagementAccounts) - * - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of accounts to include in this response. - * @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. - * @return Google_Service_Analytics_Accounts - */ - public function listManagementAccounts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Accounts"); - } + /** + * Lists all accounts to which the user has access. + * (accounts.listManagementAccounts) + * + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of accounts to include in this response. + * @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. + * @return Google_Service_Analytics_Accounts + */ + public function listManagementAccounts($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_Accounts"); + } } + /** * The "customDataSources" collection of methods. * Typical usage is: @@ -2184,33 +2173,32 @@ class Google_Service_Analytics_ManagementAccounts_Resource extends Google_Servic * $customDataSources = $analyticsService->customDataSources; * */ -class Google_Service_Analytics_ManagementCustomDataSources_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementCustomDataSources_Resource extends Google_Service_Resource { - /** - * List custom data sources to which the user has access. - * (customDataSources.listManagementCustomDataSources) - * - * @param string $accountId - * Account Id for the custom data sources to retrieve. - * @param string $webPropertyId - * Web property Id for the custom data sources to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of custom data sources to include in this response. - * @opt_param int start-index - * A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination - * mechanism along with the max-results parameter. - * @return Google_Service_Analytics_CustomDataSources - */ - public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_CustomDataSources"); - } + /** + * List custom data sources to which the user has access. + * (customDataSources.listManagementCustomDataSources) + * + * @param string $accountId + * Account Id for the custom data sources to retrieve. + * @param string $webPropertyId + * Web property Id for the custom data sources to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of custom data sources to include in this response. + * @opt_param int start-index + * A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination + * mechanism along with the max-results parameter. + * @return Google_Service_Analytics_CustomDataSources + */ + public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_CustomDataSources"); + } } + /** * The "dailyUploads" collection of methods. * Typical usage is: @@ -2219,88 +2207,87 @@ class Google_Service_Analytics_ManagementCustomDataSources_Resource extends Goog * $dailyUploads = $analyticsService->dailyUploads; * */ -class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Service_Resource { - /** - * Delete uploaded data for the given date. (dailyUploads.delete) - * - * @param string $accountId - * Account Id associated with daily upload delete. - * @param string $webPropertyId - * Web property Id associated with daily upload delete. - * @param string $customDataSourceId - * Custom data source Id associated with daily upload delete. - * @param string $date - * Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD. - * @param string $type - * Type of data for this delete. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * List daily uploads to which the user has access. - * (dailyUploads.listManagementDailyUploads) - * - * @param string $accountId - * Account Id for the daily uploads to retrieve. - * @param string $webPropertyId - * Web property Id for the daily uploads to retrieve. - * @param string $customDataSourceId - * Custom data source Id for daily uploads to retrieve. - * @param string $startDate - * Start date of the form YYYY-MM-DD. - * @param string $endDate - * End date of the form YYYY-MM-DD. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of custom data sources to include in this response. - * @opt_param int start-index - * A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination - * mechanism along with the max-results parameter. - * @return Google_Service_Analytics_DailyUploads - */ - public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads"); - } - /** - * Update/Overwrite data for a custom data source. (dailyUploads.upload) - * - * @param string $accountId - * Account Id associated with daily upload. - * @param string $webPropertyId - * Web property Id associated with daily upload. - * @param string $customDataSourceId - * Custom data source Id to which the data being uploaded belongs. - * @param string $date - * Date for which data is uploaded. Date should be formatted as YYYY-MM-DD. - * @param int $appendNumber - * Append number for this upload indexed from 1. - * @param string $type - * Type of data for this upload. - * @param array $optParams Optional parameters. - * - * @opt_param bool reset - * Reset/Overwrite all previous appends for this date and start over with this file as the first - * upload. - * @return Google_Service_Analytics_DailyUploadAppend - */ - public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_Analytics_DailyUploadAppend"); - } + /** + * Delete uploaded data for the given date. (dailyUploads.delete) + * + * @param string $accountId + * Account Id associated with daily upload delete. + * @param string $webPropertyId + * Web property Id associated with daily upload delete. + * @param string $customDataSourceId + * Custom data source Id associated with daily upload delete. + * @param string $date + * Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD. + * @param string $type + * Type of data for this delete. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * List daily uploads to which the user has access. + * (dailyUploads.listManagementDailyUploads) + * + * @param string $accountId + * Account Id for the daily uploads to retrieve. + * @param string $webPropertyId + * Web property Id for the daily uploads to retrieve. + * @param string $customDataSourceId + * Custom data source Id for daily uploads to retrieve. + * @param string $startDate + * Start date of the form YYYY-MM-DD. + * @param string $endDate + * End date of the form YYYY-MM-DD. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of custom data sources to include in this response. + * @opt_param int start-index + * A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination + * mechanism along with the max-results parameter. + * @return Google_Service_Analytics_DailyUploads + */ + public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads"); + } + + /** + * Update/Overwrite data for a custom data source. (dailyUploads.upload) + * + * @param string $accountId + * Account Id associated with daily upload. + * @param string $webPropertyId + * Web property Id associated with daily upload. + * @param string $customDataSourceId + * Custom data source Id to which the data being uploaded belongs. + * @param string $date + * Date for which data is uploaded. Date should be formatted as YYYY-MM-DD. + * @param int $appendNumber + * Append number for this upload indexed from 1. + * @param string $type + * Type of data for this upload. + * @param array $optParams Optional parameters. + * + * @opt_param bool reset + * Reset/Overwrite all previous appends for this date and start over with this file as the first + * upload. + * @return Google_Service_Analytics_DailyUploadAppend + */ + public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_Analytics_DailyUploadAppend"); + } } + /** * The "experiments" collection of methods. * Typical usage is: @@ -2309,136 +2296,135 @@ class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Se * $experiments = $analyticsService->experiments; * */ -class Google_Service_Analytics_ManagementExperiments_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementExperiments_Resource extends Google_Service_Resource { - /** - * Delete an experiment. (experiments.delete) - * - * @param string $accountId - * Account ID to which the experiment belongs - * @param string $webPropertyId - * Web property ID to which the experiment belongs - * @param string $profileId - * View (Profile) ID to which the experiment belongs - * @param string $experimentId - * ID of the experiment to delete - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns an experiment to which the user has access. (experiments.get) - * - * @param string $accountId - * Account ID to retrieve the experiment for. - * @param string $webPropertyId - * Web property ID to retrieve the experiment for. - * @param string $profileId - * View (Profile) ID to retrieve the experiment for. - * @param string $experimentId - * Experiment ID to retrieve the experiment for. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Experiment - */ - public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Experiment"); - } - /** - * Create a new experiment. (experiments.insert) - * - * @param string $accountId - * Account ID to create the experiment for. - * @param string $webPropertyId - * Web property ID to create the experiment for. - * @param string $profileId - * View (Profile) ID to create the experiment for. - * @param Google_Experiment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Experiment - */ - public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_Experiment"); - } - /** - * Lists experiments to which the user has access. - * (experiments.listManagementExperiments) - * - * @param string $accountId - * Account ID to retrieve experiments for. - * @param string $webPropertyId - * Web property ID to retrieve experiments for. - * @param string $profileId - * View (Profile) ID to retrieve experiments for. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of experiments to include in this response. - * @opt_param int start-index - * An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. - * @return Google_Service_Analytics_Experiments - */ - public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Experiments"); - } - /** - * Update an existing experiment. This method supports patch semantics. - * (experiments.patch) - * - * @param string $accountId - * Account ID of the experiment to update. - * @param string $webPropertyId - * Web property ID of the experiment to update. - * @param string $profileId - * View (Profile) ID of the experiment to update. - * @param string $experimentId - * Experiment ID of the experiment to update. - * @param Google_Experiment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Experiment - */ - public function patch($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_Experiment"); - } - /** - * Update an existing experiment. (experiments.update) - * - * @param string $accountId - * Account ID of the experiment to update. - * @param string $webPropertyId - * Web property ID of the experiment to update. - * @param string $profileId - * View (Profile) ID of the experiment to update. - * @param string $experimentId - * Experiment ID of the experiment to update. - * @param Google_Experiment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Experiment - */ - public function update($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_Experiment"); - } + /** + * Delete an experiment. (experiments.delete) + * + * @param string $accountId + * Account ID to which the experiment belongs + * @param string $webPropertyId + * Web property ID to which the experiment belongs + * @param string $profileId + * View (Profile) ID to which the experiment belongs + * @param string $experimentId + * ID of the experiment to delete + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns an experiment to which the user has access. (experiments.get) + * + * @param string $accountId + * Account ID to retrieve the experiment for. + * @param string $webPropertyId + * Web property ID to retrieve the experiment for. + * @param string $profileId + * View (Profile) ID to retrieve the experiment for. + * @param string $experimentId + * Experiment ID to retrieve the experiment for. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Experiment + */ + public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_Experiment"); + } + + /** + * Create a new experiment. (experiments.insert) + * + * @param string $accountId + * Account ID to create the experiment for. + * @param string $webPropertyId + * Web property ID to create the experiment for. + * @param string $profileId + * View (Profile) ID to create the experiment for. + * @param Google_Experiment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Experiment + */ + public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_Experiment"); + } + + /** + * Lists experiments to which the user has access. + * (experiments.listManagementExperiments) + * + * @param string $accountId + * Account ID to retrieve experiments for. + * @param string $webPropertyId + * Web property ID to retrieve experiments for. + * @param string $profileId + * View (Profile) ID to retrieve experiments for. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of experiments to include in this response. + * @opt_param int start-index + * An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along + * with the max-results parameter. + * @return Google_Service_Analytics_Experiments + */ + public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_Experiments"); + } + + /** + * Update an existing experiment. This method supports patch semantics. + * (experiments.patch) + * + * @param string $accountId + * Account ID of the experiment to update. + * @param string $webPropertyId + * Web property ID of the experiment to update. + * @param string $profileId + * View (Profile) ID of the experiment to update. + * @param string $experimentId + * Experiment ID of the experiment to update. + * @param Google_Experiment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Experiment + */ + public function patch($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Analytics_Experiment"); + } + + /** + * Update an existing experiment. (experiments.update) + * + * @param string $accountId + * Account ID of the experiment to update. + * @param string $webPropertyId + * Web property ID of the experiment to update. + * @param string $profileId + * View (Profile) ID of the experiment to update. + * @param string $experimentId + * Experiment ID of the experiment to update. + * @param Google_Experiment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Experiment + */ + public function update($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_Experiment"); + } } + /** * The "filters" collection of methods. * Typical usage is: @@ -2447,112 +2433,111 @@ class Google_Service_Analytics_ManagementExperiments_Resource extends Google_Ser * $filters = $analyticsService->filters; * */ -class Google_Service_Analytics_ManagementFilters_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementFilters_Resource extends Google_Service_Resource { - /** - * Delete a filter. (filters.delete) - * - * @param string $accountId - * Account ID to delete the filter for. - * @param string $filterId - * ID of the filter to be deleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Filter - */ - public function delete($accountId, $filterId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'filterId' => $filterId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Analytics_Filter"); - } - /** - * Returns a filters to which the user has access. (filters.get) - * - * @param string $accountId - * Account ID to retrieve filters for. - * @param string $filterId - * Filter ID to retrieve filters for. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Filter - */ - public function get($accountId, $filterId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'filterId' => $filterId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Filter"); - } - /** - * Create a new filter. (filters.insert) - * - * @param string $accountId - * Account ID to create filter for. - * @param Google_Filter $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Filter - */ - public function insert($accountId, Google_Service_Analytics_Filter $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_Filter"); - } - /** - * Lists all filters for an account (filters.listManagementFilters) - * - * @param string $accountId - * Account ID to retrieve filters for. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of filters to include in this response. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. - * @return Google_Service_Analytics_Filters - */ - public function listManagementFilters($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Filters"); - } - /** - * Updates an existing filter. This method supports patch semantics. - * (filters.patch) - * - * @param string $accountId - * Account ID to which the filter belongs. - * @param string $filterId - * ID of the filter to be updated. - * @param Google_Filter $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Filter - */ - public function patch($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_Filter"); - } - /** - * Updates an existing filter. (filters.update) - * - * @param string $accountId - * Account ID to which the filter belongs. - * @param string $filterId - * ID of the filter to be updated. - * @param Google_Filter $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Filter - */ - public function update($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_Filter"); - } + /** + * Delete a filter. (filters.delete) + * + * @param string $accountId + * Account ID to delete the filter for. + * @param string $filterId + * ID of the filter to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Filter + */ + public function delete($accountId, $filterId, $optParams = array()) { + $params = array('accountId' => $accountId, 'filterId' => $filterId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Analytics_Filter"); + } + + /** + * Returns a filters to which the user has access. (filters.get) + * + * @param string $accountId + * Account ID to retrieve filters for. + * @param string $filterId + * Filter ID to retrieve filters for. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Filter + */ + public function get($accountId, $filterId, $optParams = array()) { + $params = array('accountId' => $accountId, 'filterId' => $filterId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_Filter"); + } + + /** + * Create a new filter. (filters.insert) + * + * @param string $accountId + * Account ID to create filter for. + * @param Google_Filter $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Filter + */ + public function insert($accountId, Google_Service_Analytics_Filter $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_Filter"); + } + + /** + * Lists all filters for an account (filters.listManagementFilters) + * + * @param string $accountId + * Account ID to retrieve filters for. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of filters to include in this response. + * @opt_param int start-index + * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along + * with the max-results parameter. + * @return Google_Service_Analytics_Filters + */ + public function listManagementFilters($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_Filters"); + } + + /** + * Updates an existing filter. This method supports patch semantics. + * (filters.patch) + * + * @param string $accountId + * Account ID to which the filter belongs. + * @param string $filterId + * ID of the filter to be updated. + * @param Google_Filter $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Filter + */ + public function patch($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Analytics_Filter"); + } + + /** + * Updates an existing filter. (filters.update) + * + * @param string $accountId + * Account ID to which the filter belongs. + * @param string $filterId + * ID of the filter to be updated. + * @param Google_Filter $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Filter + */ + public function update($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_Filter"); + } } + /** * The "goals" collection of methods. * Typical usage is: @@ -2561,119 +2546,118 @@ class Google_Service_Analytics_ManagementFilters_Resource extends Google_Service * $goals = $analyticsService->goals; * */ -class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_Resource { - /** - * Gets a goal to which the user has access. (goals.get) - * - * @param string $accountId - * Account ID to retrieve the goal for. - * @param string $webPropertyId - * Web property ID to retrieve the goal for. - * @param string $profileId - * View (Profile) ID to retrieve the goal for. - * @param string $goalId - * Goal ID to retrieve the goal for. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Goal - */ - public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Goal"); - } - /** - * Create a new goal. (goals.insert) - * - * @param string $accountId - * Account ID to create the goal for. - * @param string $webPropertyId - * Web property ID to create the goal for. - * @param string $profileId - * View (Profile) ID to create the goal for. - * @param Google_Goal $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Goal - */ - public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Goal $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_Goal"); - } - /** - * Lists goals to which the user has access. (goals.listManagementGoals) - * - * @param string $accountId - * Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to - * all the accounts that user has access to. - * @param string $webPropertyId - * Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which - * refers to all the web properties that user has access to. - * @param string $profileId - * View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', - * which refers to all the views (profiles) that user has access to. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of goals to include in this response. - * @opt_param int start-index - * An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with - * the max-results parameter. - * @return Google_Service_Analytics_Goals - */ - public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Goals"); - } - /** - * Updates an existing view (profile). This method supports patch semantics. - * (goals.patch) - * - * @param string $accountId - * Account ID to update the goal. - * @param string $webPropertyId - * Web property ID to update the goal. - * @param string $profileId - * View (Profile) ID to update the goal. - * @param string $goalId - * Index of the goal to be updated. - * @param Google_Goal $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Goal - */ - public function patch($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_Goal"); - } - /** - * Updates an existing view (profile). (goals.update) - * - * @param string $accountId - * Account ID to update the goal. - * @param string $webPropertyId - * Web property ID to update the goal. - * @param string $profileId - * View (Profile) ID to update the goal. - * @param string $goalId - * Index of the goal to be updated. - * @param Google_Goal $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Goal - */ - public function update($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_Goal"); - } + /** + * Gets a goal to which the user has access. (goals.get) + * + * @param string $accountId + * Account ID to retrieve the goal for. + * @param string $webPropertyId + * Web property ID to retrieve the goal for. + * @param string $profileId + * View (Profile) ID to retrieve the goal for. + * @param string $goalId + * Goal ID to retrieve the goal for. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Goal + */ + public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_Goal"); + } + + /** + * Create a new goal. (goals.insert) + * + * @param string $accountId + * Account ID to create the goal for. + * @param string $webPropertyId + * Web property ID to create the goal for. + * @param string $profileId + * View (Profile) ID to create the goal for. + * @param Google_Goal $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Goal + */ + public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Goal $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_Goal"); + } + + /** + * Lists goals to which the user has access. (goals.listManagementGoals) + * + * @param string $accountId + * Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to + * all the accounts that user has access to. + * @param string $webPropertyId + * Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which + * refers to all the web properties that user has access to. + * @param string $profileId + * View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', + * which refers to all the views (profiles) that user has access to. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of goals to include in this response. + * @opt_param int start-index + * An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with + * the max-results parameter. + * @return Google_Service_Analytics_Goals + */ + public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_Goals"); + } + + /** + * Updates an existing view (profile). This method supports patch semantics. + * (goals.patch) + * + * @param string $accountId + * Account ID to update the goal. + * @param string $webPropertyId + * Web property ID to update the goal. + * @param string $profileId + * View (Profile) ID to update the goal. + * @param string $goalId + * Index of the goal to be updated. + * @param Google_Goal $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Goal + */ + public function patch($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Analytics_Goal"); + } + + /** + * Updates an existing view (profile). (goals.update) + * + * @param string $accountId + * Account ID to update the goal. + * @param string $webPropertyId + * Web property ID to update the goal. + * @param string $profileId + * View (Profile) ID to update the goal. + * @param string $goalId + * Index of the goal to be updated. + * @param Google_Goal $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Goal + */ + public function update($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_Goal"); + } } + /** * The "profileFilterLinks" collection of methods. * Typical usage is: @@ -2682,138 +2666,137 @@ class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_R * $profileFilterLinks = $analyticsService->profileFilterLinks; * */ -class Google_Service_Analytics_ManagementProfileFilterLinks_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementProfileFilterLinks_Resource extends Google_Service_Resource { - /** - * Delete a profile filter link. (profileFilterLinks.delete) - * - * @param string $accountId - * Account ID to which the profile filter link belongs. - * @param string $webPropertyId - * Web property Id to which the profile filter link belongs. - * @param string $profileId - * Profile ID to which the filter link belongs. - * @param string $linkId - * ID of the profile filter link to delete. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns a single profile filter link. (profileFilterLinks.get) - * - * @param string $accountId - * Account ID to retrieve profile filter link for. - * @param string $webPropertyId - * Web property Id to retrieve profile filter link for. - * @param string $profileId - * Profile ID to retrieve filter link for. - * @param string $linkId - * ID of the profile filter link. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_ProfileFilterLink - */ - public function get($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_ProfileFilterLink"); - } - /** - * Create a new profile filter link. (profileFilterLinks.insert) - * - * @param string $accountId - * Account ID to create profile filter link for. - * @param string $webPropertyId - * Web property Id to create profile filter link for. - * @param string $profileId - * Profile ID to create filter link for. - * @param Google_ProfileFilterLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_ProfileFilterLink - */ - public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_ProfileFilterLink"); - } - /** - * Lists all profile filter links for a profile. - * (profileFilterLinks.listManagementProfileFilterLinks) - * - * @param string $accountId - * Account ID to retrieve profile filter links for. - * @param string $webPropertyId - * Web property Id for profile filter links for. Can either be a specific web property ID or - * '~all', which refers to all the web properties that user has access to. - * @param string $profileId - * Profile ID to retrieve filter links for. Can either be a specific profile ID or '~all', which - * refers to all the profiles that user has access to. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of profile filter links to include in this response. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. - * @return Google_Service_Analytics_ProfileFilterLinks - */ - public function listManagementProfileFilterLinks($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_ProfileFilterLinks"); - } - /** - * Update an existing profile filter link. This method supports patch semantics. - * (profileFilterLinks.patch) - * - * @param string $accountId - * Account ID to which profile filter link belongs. - * @param string $webPropertyId - * Web property Id to which profile filter link belongs - * @param string $profileId - * Profile ID to which filter link belongs - * @param string $linkId - * ID of the profile filter link to be updated. - * @param Google_ProfileFilterLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_ProfileFilterLink - */ - public function patch($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_ProfileFilterLink"); - } - /** - * Update an existing profile filter link. (profileFilterLinks.update) - * - * @param string $accountId - * Account ID to which profile filter link belongs. - * @param string $webPropertyId - * Web property Id to which profile filter link belongs - * @param string $profileId - * Profile ID to which filter link belongs - * @param string $linkId - * ID of the profile filter link to be updated. - * @param Google_ProfileFilterLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_ProfileFilterLink - */ - public function update($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_ProfileFilterLink"); - } + /** + * Delete a profile filter link. (profileFilterLinks.delete) + * + * @param string $accountId + * Account ID to which the profile filter link belongs. + * @param string $webPropertyId + * Web property Id to which the profile filter link belongs. + * @param string $profileId + * Profile ID to which the filter link belongs. + * @param string $linkId + * ID of the profile filter link to delete. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns a single profile filter link. (profileFilterLinks.get) + * + * @param string $accountId + * Account ID to retrieve profile filter link for. + * @param string $webPropertyId + * Web property Id to retrieve profile filter link for. + * @param string $profileId + * Profile ID to retrieve filter link for. + * @param string $linkId + * ID of the profile filter link. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_ProfileFilterLink + */ + public function get($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_ProfileFilterLink"); + } + + /** + * Create a new profile filter link. (profileFilterLinks.insert) + * + * @param string $accountId + * Account ID to create profile filter link for. + * @param string $webPropertyId + * Web property Id to create profile filter link for. + * @param string $profileId + * Profile ID to create filter link for. + * @param Google_ProfileFilterLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_ProfileFilterLink + */ + public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_ProfileFilterLink"); + } + + /** + * Lists all profile filter links for a profile. + * (profileFilterLinks.listManagementProfileFilterLinks) + * + * @param string $accountId + * Account ID to retrieve profile filter links for. + * @param string $webPropertyId + * Web property Id for profile filter links for. Can either be a specific web property ID or + * '~all', which refers to all the web properties that user has access to. + * @param string $profileId + * Profile ID to retrieve filter links for. Can either be a specific profile ID or '~all', which + * refers to all the profiles that user has access to. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of profile filter links to include in this response. + * @opt_param int start-index + * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along + * with the max-results parameter. + * @return Google_Service_Analytics_ProfileFilterLinks + */ + public function listManagementProfileFilterLinks($accountId, $webPropertyId, $profileId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_ProfileFilterLinks"); + } + + /** + * Update an existing profile filter link. This method supports patch semantics. + * (profileFilterLinks.patch) + * + * @param string $accountId + * Account ID to which profile filter link belongs. + * @param string $webPropertyId + * Web property Id to which profile filter link belongs + * @param string $profileId + * Profile ID to which filter link belongs + * @param string $linkId + * ID of the profile filter link to be updated. + * @param Google_ProfileFilterLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_ProfileFilterLink + */ + public function patch($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Analytics_ProfileFilterLink"); + } + + /** + * Update an existing profile filter link. (profileFilterLinks.update) + * + * @param string $accountId + * Account ID to which profile filter link belongs. + * @param string $webPropertyId + * Web property Id to which profile filter link belongs + * @param string $profileId + * Profile ID to which filter link belongs + * @param string $linkId + * ID of the profile filter link to be updated. + * @param Google_ProfileFilterLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_ProfileFilterLink + */ + public function update($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_ProfileFilterLink"); + } } + /** * The "profileUserLinks" collection of methods. * Typical usage is: @@ -2822,97 +2805,96 @@ class Google_Service_Analytics_ManagementProfileFilterLinks_Resource extends Goo * $profileUserLinks = $analyticsService->profileUserLinks; * */ -class Google_Service_Analytics_ManagementProfileUserLinks_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementProfileUserLinks_Resource extends Google_Service_Resource { - /** - * Removes a user from the given view (profile). (profileUserLinks.delete) - * - * @param string $accountId - * Account ID to delete the user link for. - * @param string $webPropertyId - * Web Property ID to delete the user link for. - * @param string $profileId - * View (Profile) ID to delete the user link for. - * @param string $linkId - * Link ID to delete the user link for. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Adds a new user to the given view (profile). (profileUserLinks.insert) - * - * @param string $accountId - * Account ID to create the user link for. - * @param string $webPropertyId - * Web Property ID to create the user link for. - * @param string $profileId - * View (Profile) ID to create the user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); - } - /** - * Lists profile-user links for a given view (profile). - * (profileUserLinks.listManagementProfileUserLinks) - * - * @param string $accountId - * Account ID which the given view (profile) belongs to. - * @param string $webPropertyId - * Web Property ID which the given view (profile) belongs to. Can either be a specific web property - * ID or '~all', which refers to all the web properties that user has access to. - * @param string $profileId - * View (Profile) ID to retrieve the profile-user links for. Can either be a specific profile ID or - * '~all', which refers to all the profiles that user has access to. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of profile-user links to include in this response. - * @opt_param int start-index - * An index of the first profile-user link to retrieve. Use this parameter as a pagination - * mechanism along with the max-results parameter. - * @return Google_Service_Analytics_EntityUserLinks - */ - public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); - } - /** - * Updates permissions for an existing user on the given view (profile). - * (profileUserLinks.update) - * - * @param string $accountId - * Account ID to update the user link for. - * @param string $webPropertyId - * Web Property ID to update the user link for. - * @param string $profileId - * View (Profile ID) to update the user link for. - * @param string $linkId - * Link ID to update the user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function update($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink"); - } + /** + * Removes a user from the given view (profile). (profileUserLinks.delete) + * + * @param string $accountId + * Account ID to delete the user link for. + * @param string $webPropertyId + * Web Property ID to delete the user link for. + * @param string $profileId + * View (Profile) ID to delete the user link for. + * @param string $linkId + * Link ID to delete the user link for. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a new user to the given view (profile). (profileUserLinks.insert) + * + * @param string $accountId + * Account ID to create the user link for. + * @param string $webPropertyId + * Web Property ID to create the user link for. + * @param string $profileId + * View (Profile) ID to create the user link for. + * @param Google_EntityUserLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_EntityUserLink + */ + public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); + } + + /** + * Lists profile-user links for a given view (profile). + * (profileUserLinks.listManagementProfileUserLinks) + * + * @param string $accountId + * Account ID which the given view (profile) belongs to. + * @param string $webPropertyId + * Web Property ID which the given view (profile) belongs to. Can either be a specific web property + * ID or '~all', which refers to all the web properties that user has access to. + * @param string $profileId + * View (Profile) ID to retrieve the profile-user links for. Can either be a specific profile ID or + * '~all', which refers to all the profiles that user has access to. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of profile-user links to include in this response. + * @opt_param int start-index + * An index of the first profile-user link to retrieve. Use this parameter as a pagination + * mechanism along with the max-results parameter. + * @return Google_Service_Analytics_EntityUserLinks + */ + public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); + } + + /** + * Updates permissions for an existing user on the given view (profile). + * (profileUserLinks.update) + * + * @param string $accountId + * Account ID to update the user link for. + * @param string $webPropertyId + * Web Property ID to update the user link for. + * @param string $profileId + * View (Profile ID) to update the user link for. + * @param string $linkId + * Link ID to update the user link for. + * @param Google_EntityUserLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_EntityUserLink + */ + public function update($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink"); + } } + /** * The "profiles" collection of methods. * Typical usage is: @@ -2921,126 +2903,125 @@ class Google_Service_Analytics_ManagementProfileUserLinks_Resource extends Googl * $profiles = $analyticsService->profiles; * */ -class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Service_Resource { - /** - * Deletes a view (profile). (profiles.delete) - * - * @param string $accountId - * Account ID to delete the view (profile) for. - * @param string $webPropertyId - * Web property ID to delete the view (profile) for. - * @param string $profileId - * ID of the view (profile) to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a view (profile) to which the user has access. (profiles.get) - * - * @param string $accountId - * Account ID to retrieve the goal for. - * @param string $webPropertyId - * Web property ID to retrieve the goal for. - * @param string $profileId - * View (Profile) ID to retrieve the goal for. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Profile - */ - public function get($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Profile"); - } - /** - * Create a new view (profile). (profiles.insert) - * - * @param string $accountId - * Account ID to create the view (profile) for. - * @param string $webPropertyId - * Web property ID to create the view (profile) for. - * @param Google_Profile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Profile - */ - public function insert($accountId, $webPropertyId, Google_Service_Analytics_Profile $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_Profile"); - } - /** - * Lists views (profiles) to which the user has access. - * (profiles.listManagementProfiles) - * - * @param string $accountId - * Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', - * which refers to all the accounts to which the user has access. - * @param string $webPropertyId - * Web property ID for the views (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. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of views (profiles) to include in this response. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. - * @return Google_Service_Analytics_Profiles - */ - public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Profiles"); - } - /** - * Updates an existing view (profile). This method supports patch semantics. - * (profiles.patch) - * - * @param string $accountId - * Account ID to which the view (profile) belongs - * @param string $webPropertyId - * Web property ID to which the view (profile) belongs - * @param string $profileId - * ID of the view (profile) to be updated. - * @param Google_Profile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Profile - */ - public function patch($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_Profile"); - } - /** - * Updates an existing view (profile). (profiles.update) - * - * @param string $accountId - * Account ID to which the view (profile) belongs - * @param string $webPropertyId - * Web property ID to which the view (profile) belongs - * @param string $profileId - * ID of the view (profile) to be updated. - * @param Google_Profile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Profile - */ - public function update($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_Profile"); - } + /** + * Deletes a view (profile). (profiles.delete) + * + * @param string $accountId + * Account ID to delete the view (profile) for. + * @param string $webPropertyId + * Web property ID to delete the view (profile) for. + * @param string $profileId + * ID of the view (profile) to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $webPropertyId, $profileId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a view (profile) to which the user has access. (profiles.get) + * + * @param string $accountId + * Account ID to retrieve the goal for. + * @param string $webPropertyId + * Web property ID to retrieve the goal for. + * @param string $profileId + * View (Profile) ID to retrieve the goal for. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Profile + */ + public function get($accountId, $webPropertyId, $profileId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_Profile"); + } + + /** + * Create a new view (profile). (profiles.insert) + * + * @param string $accountId + * Account ID to create the view (profile) for. + * @param string $webPropertyId + * Web property ID to create the view (profile) for. + * @param Google_Profile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Profile + */ + public function insert($accountId, $webPropertyId, Google_Service_Analytics_Profile $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_Profile"); + } + + /** + * Lists views (profiles) to which the user has access. + * (profiles.listManagementProfiles) + * + * @param string $accountId + * Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', + * which refers to all the accounts to which the user has access. + * @param string $webPropertyId + * Web property ID for the views (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. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of views (profiles) to include in this response. + * @opt_param int start-index + * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along + * with the max-results parameter. + * @return Google_Service_Analytics_Profiles + */ + public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_Profiles"); + } + + /** + * Updates an existing view (profile). This method supports patch semantics. + * (profiles.patch) + * + * @param string $accountId + * Account ID to which the view (profile) belongs + * @param string $webPropertyId + * Web property ID to which the view (profile) belongs + * @param string $profileId + * ID of the view (profile) to be updated. + * @param Google_Profile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Profile + */ + public function patch($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Analytics_Profile"); + } + + /** + * Updates an existing view (profile). (profiles.update) + * + * @param string $accountId + * Account ID to which the view (profile) belongs + * @param string $webPropertyId + * Web property ID to which the view (profile) belongs + * @param string $profileId + * ID of the view (profile) to be updated. + * @param Google_Profile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Profile + */ + public function update($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_Profile"); + } } + /** * The "segments" collection of methods. * Typical usage is: @@ -3049,29 +3030,28 @@ class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Servic * $segments = $analyticsService->segments; * */ -class Google_Service_Analytics_ManagementSegments_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementSegments_Resource extends Google_Service_Resource { - /** - * Lists segments to which the user has access. - * (segments.listManagementSegments) - * - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of segments to include in this response. - * @opt_param int start-index - * An index of the first segment to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. - * @return Google_Service_Analytics_Segments - */ - public function listManagementSegments($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Segments"); - } + /** + * Lists segments to which the user has access. + * (segments.listManagementSegments) + * + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of segments to include in this response. + * @opt_param int start-index + * An index of the first segment to retrieve. Use this parameter as a pagination mechanism along + * with the max-results parameter. + * @return Google_Service_Analytics_Segments + */ + public function listManagementSegments($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_Segments"); + } } + /** * The "unsampledReports" collection of methods. * Typical usage is: @@ -3080,77 +3060,76 @@ class Google_Service_Analytics_ManagementSegments_Resource extends Google_Servic * $unsampledReports = $analyticsService->unsampledReports; * */ -class Google_Service_Analytics_ManagementUnsampledReports_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementUnsampledReports_Resource extends Google_Service_Resource { - /** - * Returns a single unsampled report. (unsampledReports.get) - * - * @param string $accountId - * Account ID to retrieve unsampled report for. - * @param string $webPropertyId - * Web property ID to retrieve unsampled reports for. - * @param string $profileId - * View (Profile) ID to retrieve unsampled report for. - * @param string $unsampledReportId - * ID of the unsampled report to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_UnsampledReport - */ - public function get($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_UnsampledReport"); - } - /** - * Create a new unsampled report. (unsampledReports.insert) - * - * @param string $accountId - * Account ID to create the unsampled report for. - * @param string $webPropertyId - * Web property ID to create the unsampled report for. - * @param string $profileId - * View (Profile) ID to create the unsampled report for. - * @param Google_UnsampledReport $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_UnsampledReport - */ - public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_UnsampledReport $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_UnsampledReport"); - } - /** - * Lists unsampled reports to which the user has access. - * (unsampledReports.listManagementUnsampledReports) - * - * @param string $accountId - * Account ID to retrieve unsampled reports for. Must be a specific account ID, ~all is not - * supported. - * @param string $webPropertyId - * Web property ID to retrieve unsampled reports for. Must be a specific web property ID, ~all is - * not supported. - * @param string $profileId - * View (Profile) ID to retrieve unsampled reports for. Must be a specific view (profile) ID, ~all - * is not supported. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of unsampled reports to include in this response. - * @opt_param int start-index - * An index of the first unsampled report to retrieve. Use this parameter as a pagination mechanism - * along with the max-results parameter. - * @return Google_Service_Analytics_UnsampledReports - */ - public function listManagementUnsampledReports($accountId, $webPropertyId, $profileId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_UnsampledReports"); - } + /** + * Returns a single unsampled report. (unsampledReports.get) + * + * @param string $accountId + * Account ID to retrieve unsampled report for. + * @param string $webPropertyId + * Web property ID to retrieve unsampled reports for. + * @param string $profileId + * View (Profile) ID to retrieve unsampled report for. + * @param string $unsampledReportId + * ID of the unsampled report to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_UnsampledReport + */ + public function get($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_UnsampledReport"); + } + + /** + * Create a new unsampled report. (unsampledReports.insert) + * + * @param string $accountId + * Account ID to create the unsampled report for. + * @param string $webPropertyId + * Web property ID to create the unsampled report for. + * @param string $profileId + * View (Profile) ID to create the unsampled report for. + * @param Google_UnsampledReport $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_UnsampledReport + */ + public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_UnsampledReport $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_UnsampledReport"); + } + + /** + * Lists unsampled reports to which the user has access. + * (unsampledReports.listManagementUnsampledReports) + * + * @param string $accountId + * Account ID to retrieve unsampled reports for. Must be a specific account ID, ~all is not + * supported. + * @param string $webPropertyId + * Web property ID to retrieve unsampled reports for. Must be a specific web property ID, ~all is + * not supported. + * @param string $profileId + * View (Profile) ID to retrieve unsampled reports for. Must be a specific view (profile) ID, ~all + * is not supported. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of unsampled reports to include in this response. + * @opt_param int start-index + * An index of the first unsampled report to retrieve. Use this parameter as a pagination mechanism + * along with the max-results parameter. + * @return Google_Service_Analytics_UnsampledReports + */ + public function listManagementUnsampledReports($accountId, $webPropertyId, $profileId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_UnsampledReports"); + } } + /** * The "uploads" collection of methods. * Typical usage is: @@ -3159,108 +3138,107 @@ class Google_Service_Analytics_ManagementUnsampledReports_Resource extends Googl * $uploads = $analyticsService->uploads; * */ -class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service_Resource { - /** - * Delete data associated with a previous upload. (uploads.deleteUploadData) - * - * @param string $accountId - * Account Id for the uploads to be deleted. - * @param string $webPropertyId - * Web property Id for the uploads to be deleted. - * @param string $customDataSourceId - * Custom data source Id for the uploads to be deleted. - * @param Google_AnalyticsDataimportDeleteUploadDataRequest $postBody - * @param array $optParams Optional parameters. - */ - public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('deleteUploadData', array($params)); - } - /** - * List uploads to which the user has access. (uploads.get) - * - * @param string $accountId - * Account Id for the upload to retrieve. - * @param string $webPropertyId - * Web property Id for the upload to retrieve. - * @param string $customDataSourceId - * Custom data source Id for upload to retrieve. - * @param string $uploadId - * Upload Id to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Upload - */ - public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Upload"); - } - /** - * List uploads to which the user has access. (uploads.listManagementUploads) - * - * @param string $accountId - * Account Id for the uploads to retrieve. - * @param string $webPropertyId - * Web property Id for the uploads to retrieve. - * @param string $customDataSourceId - * Custom data source Id for uploads to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of uploads to include in this response. - * @opt_param int start-index - * A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism - * along with the max-results parameter. - * @return Google_Service_Analytics_Uploads - */ - public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Uploads"); - } - /** - * Migrate custom data source and data imports to latest version. - * (uploads.migrateDataImport) - * - * @param string $accountId - * Account Id for migration. - * @param string $webPropertyId - * Web property Id for migration. - * @param string $customDataSourceId - * Custom data source Id for migration. - * @param array $optParams Optional parameters. - */ - public function migrateDataImport($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); - $params = array_merge($params, $optParams); - return $this->call('migrateDataImport', array($params)); - } - /** - * Upload data for a custom data source. (uploads.uploadData) - * - * @param string $accountId - * Account Id associated with the upload. - * @param string $webPropertyId - * Web property UA-string associated with the upload. - * @param string $customDataSourceId - * Custom data source Id to which the data being uploaded belongs. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Upload - */ - public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); - $params = array_merge($params, $optParams); - return $this->call('uploadData', array($params), "Google_Service_Analytics_Upload"); - } + /** + * Delete data associated with a previous upload. (uploads.deleteUploadData) + * + * @param string $accountId + * Account Id for the uploads to be deleted. + * @param string $webPropertyId + * Web property Id for the uploads to be deleted. + * @param string $customDataSourceId + * Custom data source Id for the uploads to be deleted. + * @param Google_AnalyticsDataimportDeleteUploadDataRequest $postBody + * @param array $optParams Optional parameters. + */ + public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('deleteUploadData', array($params)); + } + + /** + * List uploads to which the user has access. (uploads.get) + * + * @param string $accountId + * Account Id for the upload to retrieve. + * @param string $webPropertyId + * Web property Id for the upload to retrieve. + * @param string $customDataSourceId + * Custom data source Id for upload to retrieve. + * @param string $uploadId + * Upload Id to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Upload + */ + public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_Upload"); + } + + /** + * List uploads to which the user has access. (uploads.listManagementUploads) + * + * @param string $accountId + * Account Id for the uploads to retrieve. + * @param string $webPropertyId + * Web property Id for the uploads to retrieve. + * @param string $customDataSourceId + * Custom data source Id for uploads to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of uploads to include in this response. + * @opt_param int start-index + * A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism + * along with the max-results parameter. + * @return Google_Service_Analytics_Uploads + */ + public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_Uploads"); + } + + /** + * Migrate custom data source and data imports to latest version. + * (uploads.migrateDataImport) + * + * @param string $accountId + * Account Id for migration. + * @param string $webPropertyId + * Web property Id for migration. + * @param string $customDataSourceId + * Custom data source Id for migration. + * @param array $optParams Optional parameters. + */ + public function migrateDataImport($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); + $params = array_merge($params, $optParams); + return $this->call('migrateDataImport', array($params)); + } + + /** + * Upload data for a custom data source. (uploads.uploadData) + * + * @param string $accountId + * Account Id associated with the upload. + * @param string $webPropertyId + * Web property UA-string associated with the upload. + * @param string $customDataSourceId + * Custom data source Id to which the data being uploaded belongs. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Upload + */ + public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); + $params = array_merge($params, $optParams); + return $this->call('uploadData', array($params), "Google_Service_Analytics_Upload"); + } } + /** * The "webPropertyAdWordsLinks" collection of methods. * Typical usage is: @@ -3269,126 +3247,125 @@ class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service * $webPropertyAdWordsLinks = $analyticsService->webPropertyAdWordsLinks; * */ -class Google_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource extends Google_Service_Resource { - /** - * Deletes a web property-AdWords link. (webPropertyAdWordsLinks.delete) - * - * @param string $accountId - * ID of the account which the given web property belongs to. - * @param string $webPropertyId - * Web property ID to delete the AdWords link for. - * @param string $webPropertyAdWordsLinkId - * Web property AdWords link ID. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns a web property-AdWords link to which the user has access. - * (webPropertyAdWordsLinks.get) - * - * @param string $accountId - * ID of the account which the given web property belongs to. - * @param string $webPropertyId - * Web property ID to retrieve the AdWords link for. - * @param string $webPropertyAdWordsLinkId - * Web property-AdWords link ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityAdWordsLink - */ - public function get($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_EntityAdWordsLink"); - } - /** - * Creates a webProperty-AdWords link. (webPropertyAdWordsLinks.insert) - * - * @param string $accountId - * ID of the Google Analytics account to create the link for. - * @param string $webPropertyId - * Web property ID to create the link for. - * @param Google_EntityAdWordsLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityAdWordsLink - */ - public function insert($accountId, $webPropertyId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_EntityAdWordsLink"); - } - /** - * Lists webProperty-AdWords links for a given web property. - * (webPropertyAdWordsLinks.listManagementWebPropertyAdWordsLinks) - * - * @param string $accountId - * ID of the account which the given web property belongs to. - * @param string $webPropertyId - * Web property ID to retrieve the AdWords links for. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of webProperty-AdWords links to include in this response. - * @opt_param int start-index - * An index of the first webProperty-AdWords link to retrieve. Use this parameter as a pagination - * mechanism along with the max-results parameter. - * @return Google_Service_Analytics_EntityAdWordsLinks - */ - public function listManagementWebPropertyAdWordsLinks($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_EntityAdWordsLinks"); - } - /** - * Updates an existing webProperty-AdWords link. This method supports patch - * semantics. (webPropertyAdWordsLinks.patch) - * - * @param string $accountId - * ID of the account which the given web property belongs to. - * @param string $webPropertyId - * Web property ID to retrieve the AdWords link for. - * @param string $webPropertyAdWordsLinkId - * Web property-AdWords link ID. - * @param Google_EntityAdWordsLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityAdWordsLink - */ - public function patch($accountId, $webPropertyId, $webPropertyAdWordsLinkId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_EntityAdWordsLink"); - } - /** - * Updates an existing webProperty-AdWords link. - * (webPropertyAdWordsLinks.update) - * - * @param string $accountId - * ID of the account which the given web property belongs to. - * @param string $webPropertyId - * Web property ID to retrieve the AdWords link for. - * @param string $webPropertyAdWordsLinkId - * Web property-AdWords link ID. - * @param Google_EntityAdWordsLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityAdWordsLink - */ - public function update($accountId, $webPropertyId, $webPropertyAdWordsLinkId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_EntityAdWordsLink"); - } + /** + * Deletes a web property-AdWords link. (webPropertyAdWordsLinks.delete) + * + * @param string $accountId + * ID of the account which the given web property belongs to. + * @param string $webPropertyId + * Web property ID to delete the AdWords link for. + * @param string $webPropertyAdWordsLinkId + * Web property AdWords link ID. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns a web property-AdWords link to which the user has access. + * (webPropertyAdWordsLinks.get) + * + * @param string $accountId + * ID of the account which the given web property belongs to. + * @param string $webPropertyId + * Web property ID to retrieve the AdWords link for. + * @param string $webPropertyAdWordsLinkId + * Web property-AdWords link ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_EntityAdWordsLink + */ + public function get($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_EntityAdWordsLink"); + } + + /** + * Creates a webProperty-AdWords link. (webPropertyAdWordsLinks.insert) + * + * @param string $accountId + * ID of the Google Analytics account to create the link for. + * @param string $webPropertyId + * Web property ID to create the link for. + * @param Google_EntityAdWordsLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_EntityAdWordsLink + */ + public function insert($accountId, $webPropertyId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_EntityAdWordsLink"); + } + + /** + * Lists webProperty-AdWords links for a given web property. + * (webPropertyAdWordsLinks.listManagementWebPropertyAdWordsLinks) + * + * @param string $accountId + * ID of the account which the given web property belongs to. + * @param string $webPropertyId + * Web property ID to retrieve the AdWords links for. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of webProperty-AdWords links to include in this response. + * @opt_param int start-index + * An index of the first webProperty-AdWords link to retrieve. Use this parameter as a pagination + * mechanism along with the max-results parameter. + * @return Google_Service_Analytics_EntityAdWordsLinks + */ + public function listManagementWebPropertyAdWordsLinks($accountId, $webPropertyId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_EntityAdWordsLinks"); + } + + /** + * Updates an existing webProperty-AdWords link. This method supports patch + * semantics. (webPropertyAdWordsLinks.patch) + * + * @param string $accountId + * ID of the account which the given web property belongs to. + * @param string $webPropertyId + * Web property ID to retrieve the AdWords link for. + * @param string $webPropertyAdWordsLinkId + * Web property-AdWords link ID. + * @param Google_EntityAdWordsLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_EntityAdWordsLink + */ + public function patch($accountId, $webPropertyId, $webPropertyAdWordsLinkId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Analytics_EntityAdWordsLink"); + } + + /** + * Updates an existing webProperty-AdWords link. + * (webPropertyAdWordsLinks.update) + * + * @param string $accountId + * ID of the account which the given web property belongs to. + * @param string $webPropertyId + * Web property ID to retrieve the AdWords link for. + * @param string $webPropertyAdWordsLinkId + * Web property-AdWords link ID. + * @param Google_EntityAdWordsLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_EntityAdWordsLink + */ + public function update($accountId, $webPropertyId, $webPropertyAdWordsLinkId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_EntityAdWordsLink"); + } } + /** * The "webproperties" collection of methods. * Typical usage is: @@ -3397,100 +3374,99 @@ class Google_Service_Analytics_ManagementWebPropertyAdWordsLinks_Resource extend * $webproperties = $analyticsService->webproperties; * */ -class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_Service_Resource { - /** - * Gets a web property to which the user has access. (webproperties.get) - * - * @param string $accountId - * Account ID to retrieve the web property for. - * @param string $webPropertyId - * ID to retrieve the web property for. - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Webproperty - */ - public function get($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Analytics_Webproperty"); - } - /** - * Create a new property if the account has fewer than 20 properties. Web - * properties are visible in the Google Analytics interface only if they have at - * least one profile. (webproperties.insert) - * - * @param string $accountId - * Account ID to create the web property for. - * @param Google_Webproperty $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Webproperty - */ - public function insert($accountId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_Webproperty"); - } - /** - * Lists web properties to which the user has access. - * (webproperties.listManagementWebproperties) - * - * @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. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of web properties to include in this response. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter. - * @return Google_Service_Analytics_Webproperties - */ - public function listManagementWebproperties($accountId, $optParams = array()) - { - $params = array('accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Webproperties"); - } - /** - * Updates an existing web property. This method supports patch semantics. - * (webproperties.patch) - * - * @param string $accountId - * Account ID to which the web property belongs - * @param string $webPropertyId - * Web property ID - * @param Google_Webproperty $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Webproperty - */ - public function patch($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Analytics_Webproperty"); - } - /** - * Updates an existing web property. (webproperties.update) - * - * @param string $accountId - * Account ID to which the web property belongs - * @param string $webPropertyId - * Web property ID - * @param Google_Webproperty $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Webproperty - */ - public function update($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_Webproperty"); - } + /** + * Gets a web property to which the user has access. (webproperties.get) + * + * @param string $accountId + * Account ID to retrieve the web property for. + * @param string $webPropertyId + * ID to retrieve the web property for. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Webproperty + */ + public function get($accountId, $webPropertyId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_Webproperty"); + } + + /** + * Create a new property if the account has fewer than 20 properties. Web + * properties are visible in the Google Analytics interface only if they have at + * least one profile. (webproperties.insert) + * + * @param string $accountId + * Account ID to create the web property for. + * @param Google_Webproperty $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Webproperty + */ + public function insert($accountId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_Webproperty"); + } + + /** + * Lists web properties to which the user has access. + * (webproperties.listManagementWebproperties) + * + * @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. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of web properties to include in this response. + * @opt_param int start-index + * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along + * with the max-results parameter. + * @return Google_Service_Analytics_Webproperties + */ + public function listManagementWebproperties($accountId, $optParams = array()) { + $params = array('accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_Webproperties"); + } + + /** + * Updates an existing web property. This method supports patch semantics. + * (webproperties.patch) + * + * @param string $accountId + * Account ID to which the web property belongs + * @param string $webPropertyId + * Web property ID + * @param Google_Webproperty $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Webproperty + */ + public function patch($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Analytics_Webproperty"); + } + + /** + * Updates an existing web property. (webproperties.update) + * + * @param string $accountId + * Account ID to which the web property belongs + * @param string $webPropertyId + * Web property ID + * @param Google_Webproperty $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Webproperty + */ + public function update($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_Webproperty"); + } } + /** * The "webpropertyUserLinks" collection of methods. * Typical usage is: @@ -3499,87 +3475,85 @@ class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_S * $webpropertyUserLinks = $analyticsService->webpropertyUserLinks; * */ -class Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends Google_Service_Resource { - /** - * Removes a user from the given web property. (webpropertyUserLinks.delete) - * - * @param string $accountId - * Account ID to delete the user link for. - * @param string $webPropertyId - * Web Property ID to delete the user link for. - * @param string $linkId - * Link ID to delete the user link for. - * @param array $optParams Optional parameters. - */ - public function delete($accountId, $webPropertyId, $linkId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Adds a new user to the given web property. (webpropertyUserLinks.insert) - * - * @param string $accountId - * Account ID to create the user link for. - * @param string $webPropertyId - * Web Property ID to create the user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function insert($accountId, $webPropertyId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); - } - /** - * Lists webProperty-user links for a given web property. - * (webpropertyUserLinks.listManagementWebpropertyUserLinks) - * - * @param string $accountId - * Account ID which the given web property belongs to. - * @param string $webPropertyId - * Web Property ID for the webProperty-user links to retrieve. Can either be a specific web - * property ID or '~all', which refers to all the web properties that user has access to. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of webProperty-user Links to include in this response. - * @opt_param int start-index - * An index of the first webProperty-user link to retrieve. Use this parameter as a pagination - * mechanism along with the max-results parameter. - * @return Google_Service_Analytics_EntityUserLinks - */ - public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); - } - /** - * Updates permissions for an existing user on the given web property. - * (webpropertyUserLinks.update) - * - * @param string $accountId - * Account ID to update the account-user link for. - * @param string $webPropertyId - * Web property ID to update the account-user link for. - * @param string $linkId - * Link ID to update the account-user link for. - * @param Google_EntityUserLink $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_EntityUserLink - */ - public function update($accountId, $webPropertyId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink"); - } + /** + * Removes a user from the given web property. (webpropertyUserLinks.delete) + * + * @param string $accountId + * Account ID to delete the user link for. + * @param string $webPropertyId + * Web Property ID to delete the user link for. + * @param string $linkId + * Link ID to delete the user link for. + * @param array $optParams Optional parameters. + */ + public function delete($accountId, $webPropertyId, $linkId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a new user to the given web property. (webpropertyUserLinks.insert) + * + * @param string $accountId + * Account ID to create the user link for. + * @param string $webPropertyId + * Web Property ID to create the user link for. + * @param Google_EntityUserLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_EntityUserLink + */ + public function insert($accountId, $webPropertyId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink"); + } + + /** + * Lists webProperty-user links for a given web property. + * (webpropertyUserLinks.listManagementWebpropertyUserLinks) + * + * @param string $accountId + * Account ID which the given web property belongs to. + * @param string $webPropertyId + * Web Property ID for the webProperty-user links to retrieve. Can either be a specific web + * property ID or '~all', which refers to all the web properties that user has access to. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of webProperty-user Links to include in this response. + * @opt_param int start-index + * An index of the first webProperty-user link to retrieve. Use this parameter as a pagination + * mechanism along with the max-results parameter. + * @return Google_Service_Analytics_EntityUserLinks + */ + public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks"); + } + + /** + * Updates permissions for an existing user on the given web property. + * (webpropertyUserLinks.update) + * + * @param string $accountId + * Account ID to update the account-user link for. + * @param string $webPropertyId + * Web property ID to update the account-user link for. + * @param string $linkId + * Link ID to update the account-user link for. + * @param Google_EntityUserLink $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_EntityUserLink + */ + public function update($accountId, $webPropertyId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array()) { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink"); + } } /** @@ -3590,8 +3564,7 @@ class Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends G * $metadata = $analyticsService->metadata; * */ -class Google_Service_Analytics_Metadata_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_Metadata_Resource extends Google_Service_Resource { } @@ -3603,23 +3576,21 @@ class Google_Service_Analytics_Metadata_Resource extends Google_Service_Resource * $columns = $analyticsService->columns; * */ -class Google_Service_Analytics_MetadataColumns_Resource extends Google_Service_Resource -{ +class Google_Service_Analytics_MetadataColumns_Resource extends Google_Service_Resource { - /** - * Lists all columns for a report type (columns.listMetadataColumns) - * - * @param string $reportType - * Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_Columns - */ - public function listMetadataColumns($reportType, $optParams = array()) - { - $params = array('reportType' => $reportType); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_Columns"); - } + /** + * Lists all columns for a report type (columns.listMetadataColumns) + * + * @param string $reportType + * Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_Columns + */ + public function listMetadataColumns($reportType, $optParams = array()) { + $params = array('reportType' => $reportType); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_Columns"); + } } /** @@ -3630,6608 +3601,5395 @@ class Google_Service_Analytics_MetadataColumns_Resource extends Google_Service_R * $provisioning = $analyticsService->provisioning; * */ -class Google_Service_Analytics_Provisioning_Resource extends Google_Service_Resource -{ - - /** - * Creates an account ticket. (provisioning.createAccountTicket) - * - * @param Google_AccountTicket $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Analytics_AccountTicket - */ - public function createAccountTicket(Google_Service_Analytics_AccountTicket $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createAccountTicket', array($params), "Google_Service_Analytics_AccountTicket"); - } +class Google_Service_Analytics_Provisioning_Resource extends Google_Service_Resource { + + /** + * Creates an account ticket. (provisioning.createAccountTicket) + * + * @param Google_AccountTicket $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_AccountTicket + */ + public function createAccountTicket(Google_Service_Analytics_AccountTicket $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createAccountTicket', array($params), "Google_Service_Analytics_AccountTicket"); + } } +class Google_Service_Analytics_Account extends Google_Model { + protected $childLinkType = 'Google_Service_Analytics_AccountChildLink'; + protected $childLinkDataType = ''; + public $created; + public $id; + public $kind; + public $name; + protected $permissionsType = 'Google_Service_Analytics_AccountPermissions'; + protected $permissionsDataType = ''; + public $selfLink; + public $updated; + + public function setChildLink(Google_Service_Analytics_AccountChildLink $childLink) { + $this->childLink = $childLink; + } + + public function getChildLink() { + return $this->childLink; + } + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setPermissions(Google_Service_Analytics_AccountPermissions $permissions) { + $this->permissions = $permissions; + } + + public function getPermissions() { + return $this->permissions; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } +} +class Google_Service_Analytics_AccountChildLink extends Google_Model { + public $href; + public $type; -class Google_Service_Analytics_Account extends Google_Model -{ - protected $childLinkType = 'Google_Service_Analytics_AccountChildLink'; - protected $childLinkDataType = ''; - public $created; - public $id; - public $kind; - public $name; - protected $permissionsType = 'Google_Service_Analytics_AccountPermissions'; - protected $permissionsDataType = ''; - public $selfLink; - public $updated; - - public function setChildLink(Google_Service_Analytics_AccountChildLink $childLink) - { - $this->childLink = $childLink; - } - - public function getChildLink() - { - return $this->childLink; - } - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPermissions(Google_Service_Analytics_AccountPermissions $permissions) - { - $this->permissions = $permissions; - } - - public function getPermissions() - { - return $this->permissions; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } -} + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } -class Google_Service_Analytics_AccountChildLink extends Google_Model -{ - public $href; - public $type; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_AccountPermissions extends Google_Collection -{ - public $effective; +class Google_Service_Analytics_AccountPermissions extends Google_Collection { + public $effective; - public function setEffective($effective) - { - $this->effective = $effective; - } + public function setEffective($effective) { + $this->effective = $effective; + } - public function getEffective() - { - return $this->effective; - } + public function getEffective() { + return $this->effective; + } } -class Google_Service_Analytics_AccountRef extends Google_Model -{ - public $href; - public $id; - public $kind; - public $name; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } +class Google_Service_Analytics_AccountRef extends Google_Model { + public $href; + public $id; + public $kind; + public $name; + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } } -class Google_Service_Analytics_AccountSummaries extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_AccountSummary'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_AccountSummaries extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_AccountSummary'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_AccountSummary extends Google_Collection -{ - public $id; - public $kind; - public $name; - protected $webPropertiesType = 'Google_Service_Analytics_WebPropertySummary'; - protected $webPropertiesDataType = 'array'; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setWebProperties($webProperties) - { - $this->webProperties = $webProperties; - } - - public function getWebProperties() - { - return $this->webProperties; - } +class Google_Service_Analytics_AccountSummary extends Google_Collection { + public $id; + public $kind; + public $name; + protected $webPropertiesType = 'Google_Service_Analytics_WebPropertySummary'; + protected $webPropertiesDataType = 'array'; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setWebProperties($webProperties) { + $this->webProperties = $webProperties; + } + + public function getWebProperties() { + return $this->webProperties; + } } -class Google_Service_Analytics_AccountTicket extends Google_Model -{ - protected $accountType = 'Google_Service_Analytics_Account'; - protected $accountDataType = ''; - public $id; - public $kind; - protected $profileType = 'Google_Service_Analytics_Profile'; - protected $profileDataType = ''; - public $redirectUri; - protected $webpropertyType = 'Google_Service_Analytics_Webproperty'; - protected $webpropertyDataType = ''; - - public function setAccount(Google_Service_Analytics_Account $account) - { - $this->account = $account; - } - - public function getAccount() - { - return $this->account; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setProfile(Google_Service_Analytics_Profile $profile) - { - $this->profile = $profile; - } - - public function getProfile() - { - return $this->profile; - } - - public function setRedirectUri($redirectUri) - { - $this->redirectUri = $redirectUri; - } - - public function getRedirectUri() - { - return $this->redirectUri; - } - - public function setWebproperty(Google_Service_Analytics_Webproperty $webproperty) - { - $this->webproperty = $webproperty; - } - - public function getWebproperty() - { - return $this->webproperty; - } +class Google_Service_Analytics_AccountTicket extends Google_Model { + protected $accountType = 'Google_Service_Analytics_Account'; + protected $accountDataType = ''; + public $id; + public $kind; + protected $profileType = 'Google_Service_Analytics_Profile'; + protected $profileDataType = ''; + public $redirectUri; + protected $webpropertyType = 'Google_Service_Analytics_Webproperty'; + protected $webpropertyDataType = ''; + + public function setAccount(Google_Service_Analytics_Account $account) { + $this->account = $account; + } + + public function getAccount() { + return $this->account; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setProfile(Google_Service_Analytics_Profile $profile) { + $this->profile = $profile; + } + + public function getProfile() { + return $this->profile; + } + + public function setRedirectUri($redirectUri) { + $this->redirectUri = $redirectUri; + } + + public function getRedirectUri() { + return $this->redirectUri; + } + + public function setWebproperty(Google_Service_Analytics_Webproperty $webproperty) { + $this->webproperty = $webproperty; + } + + public function getWebproperty() { + return $this->webproperty; + } } -class Google_Service_Analytics_Accounts extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_Account'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_Accounts extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_Account'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_AdWordsAccount extends Google_Model -{ - public $autoTaggingEnabled; - public $customerId; - public $kind; - - public function setAutoTaggingEnabled($autoTaggingEnabled) - { - $this->autoTaggingEnabled = $autoTaggingEnabled; - } - - public function getAutoTaggingEnabled() - { - return $this->autoTaggingEnabled; - } - - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } - - public function getCustomerId() - { - return $this->customerId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Analytics_AdWordsAccount extends Google_Model { + public $autoTaggingEnabled; + public $customerId; + public $kind; + + public function setAutoTaggingEnabled($autoTaggingEnabled) { + $this->autoTaggingEnabled = $autoTaggingEnabled; + } + + public function getAutoTaggingEnabled() { + return $this->autoTaggingEnabled; + } + + public function setCustomerId($customerId) { + $this->customerId = $customerId; + } + + public function getCustomerId() { + return $this->customerId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extends Google_Collection -{ - public $customDataImportUids; +class Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extends Google_Collection { + public $customDataImportUids; - public function setCustomDataImportUids($customDataImportUids) - { - $this->customDataImportUids = $customDataImportUids; - } + public function setCustomDataImportUids($customDataImportUids) { + $this->customDataImportUids = $customDataImportUids; + } - public function getCustomDataImportUids() - { - return $this->customDataImportUids; - } + public function getCustomDataImportUids() { + return $this->customDataImportUids; + } } -class Google_Service_Analytics_Column extends Google_Model -{ - public $attributes; - public $id; - public $kind; - - public function setAttributes($attributes) - { - $this->attributes = $attributes; - } - - public function getAttributes() - { - return $this->attributes; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Analytics_Column extends Google_Model { + public $attributes; + public $id; + public $kind; + + public function setAttributes($attributes) { + $this->attributes = $attributes; + } + + public function getAttributes() { + return $this->attributes; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Analytics_ColumnAttributes extends Google_Model -{ +class Google_Service_Analytics_ColumnAttributes extends Google_Model { } -class Google_Service_Analytics_Columns extends Google_Collection -{ - public $attributeNames; - public $etag; - protected $itemsType = 'Google_Service_Analytics_Column'; - protected $itemsDataType = 'array'; - public $kind; - public $totalResults; - - public function setAttributeNames($attributeNames) - { - $this->attributeNames = $attributeNames; - } - - public function getAttributeNames() - { - return $this->attributeNames; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } +class Google_Service_Analytics_Columns extends Google_Collection { + public $attributeNames; + public $etag; + protected $itemsType = 'Google_Service_Analytics_Column'; + protected $itemsDataType = 'array'; + public $kind; + public $totalResults; + + public function setAttributeNames($attributeNames) { + $this->attributeNames = $attributeNames; + } + + public function getAttributeNames() { + return $this->attributeNames; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } } -class Google_Service_Analytics_CustomDataSource extends Google_Collection -{ - public $accountId; - protected $childLinkType = 'Google_Service_Analytics_CustomDataSourceChildLink'; - protected $childLinkDataType = ''; - public $created; - public $description; - public $id; - public $importBehavior; - public $kind; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_CustomDataSourceParentLink'; - protected $parentLinkDataType = ''; - public $profilesLinked; - public $selfLink; - public $type; - public $updated; - public $uploadType; - public $webPropertyId; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setChildLink(Google_Service_Analytics_CustomDataSourceChildLink $childLink) - { - $this->childLink = $childLink; - } - - public function getChildLink() - { - return $this->childLink; - } - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setImportBehavior($importBehavior) - { - $this->importBehavior = $importBehavior; - } - - public function getImportBehavior() - { - return $this->importBehavior; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setParentLink(Google_Service_Analytics_CustomDataSourceParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - - public function getParentLink() - { - return $this->parentLink; - } - - public function setProfilesLinked($profilesLinked) - { - $this->profilesLinked = $profilesLinked; - } - - public function getProfilesLinked() - { - return $this->profilesLinked; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setUploadType($uploadType) - { - $this->uploadType = $uploadType; - } - - public function getUploadType() - { - return $this->uploadType; - } - - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - - public function getWebPropertyId() - { - return $this->webPropertyId; - } +class Google_Service_Analytics_CustomDataSource extends Google_Collection { + public $accountId; + protected $childLinkType = 'Google_Service_Analytics_CustomDataSourceChildLink'; + protected $childLinkDataType = ''; + public $created; + public $description; + public $id; + public $importBehavior; + public $kind; + public $name; + protected $parentLinkType = 'Google_Service_Analytics_CustomDataSourceParentLink'; + protected $parentLinkDataType = ''; + public $profilesLinked; + public $selfLink; + public $type; + public $updated; + public $uploadType; + public $webPropertyId; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setChildLink(Google_Service_Analytics_CustomDataSourceChildLink $childLink) { + $this->childLink = $childLink; + } + + public function getChildLink() { + return $this->childLink; + } + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setImportBehavior($importBehavior) { + $this->importBehavior = $importBehavior; + } + + public function getImportBehavior() { + return $this->importBehavior; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setParentLink(Google_Service_Analytics_CustomDataSourceParentLink $parentLink) { + $this->parentLink = $parentLink; + } + + public function getParentLink() { + return $this->parentLink; + } + + public function setProfilesLinked($profilesLinked) { + $this->profilesLinked = $profilesLinked; + } + + public function getProfilesLinked() { + return $this->profilesLinked; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setUploadType($uploadType) { + $this->uploadType = $uploadType; + } + + public function getUploadType() { + return $this->uploadType; + } + + public function setWebPropertyId($webPropertyId) { + $this->webPropertyId = $webPropertyId; + } + + public function getWebPropertyId() { + return $this->webPropertyId; + } } -class Google_Service_Analytics_CustomDataSourceChildLink extends Google_Model -{ - public $href; - public $type; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_CustomDataSourceChildLink extends Google_Model { + public $href; + public $type; + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_CustomDataSourceParentLink extends Google_Model -{ - public $href; - public $type; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_CustomDataSourceParentLink extends Google_Model { + public $href; + public $type; + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_CustomDataSources extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_CustomDataSource'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_CustomDataSources extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_CustomDataSource'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_DailyUpload extends Google_Collection -{ - public $accountId; - public $appendCount; - public $createdTime; - public $customDataSourceId; - public $date; - public $kind; - public $modifiedTime; - protected $parentLinkType = 'Google_Service_Analytics_DailyUploadParentLink'; - protected $parentLinkDataType = ''; - protected $recentChangesType = 'Google_Service_Analytics_DailyUploadRecentChanges'; - protected $recentChangesDataType = 'array'; - public $selfLink; - public $webPropertyId; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setAppendCount($appendCount) - { - $this->appendCount = $appendCount; - } - - public function getAppendCount() - { - return $this->appendCount; - } - - public function setCreatedTime($createdTime) - { - $this->createdTime = $createdTime; - } - - public function getCreatedTime() - { - return $this->createdTime; - } - - public function setCustomDataSourceId($customDataSourceId) - { - $this->customDataSourceId = $customDataSourceId; - } - - public function getCustomDataSourceId() - { - return $this->customDataSourceId; - } - - public function setDate($date) - { - $this->date = $date; - } - - public function getDate() - { - return $this->date; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setModifiedTime($modifiedTime) - { - $this->modifiedTime = $modifiedTime; - } - - public function getModifiedTime() - { - return $this->modifiedTime; - } - - public function setParentLink(Google_Service_Analytics_DailyUploadParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - - public function getParentLink() - { - return $this->parentLink; - } - - public function setRecentChanges($recentChanges) - { - $this->recentChanges = $recentChanges; - } - - public function getRecentChanges() - { - return $this->recentChanges; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - - public function getWebPropertyId() - { - return $this->webPropertyId; - } +class Google_Service_Analytics_DailyUpload extends Google_Collection { + public $accountId; + public $appendCount; + public $createdTime; + public $customDataSourceId; + public $date; + public $kind; + public $modifiedTime; + protected $parentLinkType = 'Google_Service_Analytics_DailyUploadParentLink'; + protected $parentLinkDataType = ''; + protected $recentChangesType = 'Google_Service_Analytics_DailyUploadRecentChanges'; + protected $recentChangesDataType = 'array'; + public $selfLink; + public $webPropertyId; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setAppendCount($appendCount) { + $this->appendCount = $appendCount; + } + + public function getAppendCount() { + return $this->appendCount; + } + + public function setCreatedTime($createdTime) { + $this->createdTime = $createdTime; + } + + public function getCreatedTime() { + return $this->createdTime; + } + + public function setCustomDataSourceId($customDataSourceId) { + $this->customDataSourceId = $customDataSourceId; + } + + public function getCustomDataSourceId() { + return $this->customDataSourceId; + } + + public function setDate($date) { + $this->date = $date; + } + + public function getDate() { + return $this->date; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setModifiedTime($modifiedTime) { + $this->modifiedTime = $modifiedTime; + } + + public function getModifiedTime() { + return $this->modifiedTime; + } + + public function setParentLink(Google_Service_Analytics_DailyUploadParentLink $parentLink) { + $this->parentLink = $parentLink; + } + + public function getParentLink() { + return $this->parentLink; + } + + public function setRecentChanges($recentChanges) { + $this->recentChanges = $recentChanges; + } + + public function getRecentChanges() { + return $this->recentChanges; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setWebPropertyId($webPropertyId) { + $this->webPropertyId = $webPropertyId; + } + + public function getWebPropertyId() { + return $this->webPropertyId; + } } -class Google_Service_Analytics_DailyUploadAppend extends Google_Model -{ - public $accountId; - public $appendNumber; - public $customDataSourceId; - public $date; - public $kind; - public $nextAppendLink; - public $webPropertyId; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setAppendNumber($appendNumber) - { - $this->appendNumber = $appendNumber; - } - - public function getAppendNumber() - { - return $this->appendNumber; - } - - public function setCustomDataSourceId($customDataSourceId) - { - $this->customDataSourceId = $customDataSourceId; - } - - public function getCustomDataSourceId() - { - return $this->customDataSourceId; - } - - public function setDate($date) - { - $this->date = $date; - } - - public function getDate() - { - return $this->date; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextAppendLink($nextAppendLink) - { - $this->nextAppendLink = $nextAppendLink; - } - - public function getNextAppendLink() - { - return $this->nextAppendLink; - } - - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - - public function getWebPropertyId() - { - return $this->webPropertyId; - } +class Google_Service_Analytics_DailyUploadAppend extends Google_Model { + public $accountId; + public $appendNumber; + public $customDataSourceId; + public $date; + public $kind; + public $nextAppendLink; + public $webPropertyId; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setAppendNumber($appendNumber) { + $this->appendNumber = $appendNumber; + } + + public function getAppendNumber() { + return $this->appendNumber; + } + + public function setCustomDataSourceId($customDataSourceId) { + $this->customDataSourceId = $customDataSourceId; + } + + public function getCustomDataSourceId() { + return $this->customDataSourceId; + } + + public function setDate($date) { + $this->date = $date; + } + + public function getDate() { + return $this->date; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextAppendLink($nextAppendLink) { + $this->nextAppendLink = $nextAppendLink; + } + + public function getNextAppendLink() { + return $this->nextAppendLink; + } + + public function setWebPropertyId($webPropertyId) { + $this->webPropertyId = $webPropertyId; + } + + public function getWebPropertyId() { + return $this->webPropertyId; + } } -class Google_Service_Analytics_DailyUploadParentLink extends Google_Model -{ - public $href; - public $type; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_DailyUploadParentLink extends Google_Model { + public $href; + public $type; + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_DailyUploadRecentChanges extends Google_Model -{ - public $change; - public $time; - - public function setChange($change) - { - $this->change = $change; - } - - public function getChange() - { - return $this->change; - } - - public function setTime($time) - { - $this->time = $time; - } - - public function getTime() - { - return $this->time; - } +class Google_Service_Analytics_DailyUploadRecentChanges extends Google_Model { + public $change; + public $time; + + public function setChange($change) { + $this->change = $change; + } + + public function getChange() { + return $this->change; + } + + public function setTime($time) { + $this->time = $time; + } + + public function getTime() { + return $this->time; + } } -class Google_Service_Analytics_DailyUploads extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_DailyUpload'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_DailyUploads extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_DailyUpload'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_EntityAdWordsLink extends Google_Collection -{ - protected $adWordsAccountsType = 'Google_Service_Analytics_AdWordsAccount'; - protected $adWordsAccountsDataType = 'array'; - protected $entityType = 'Google_Service_Analytics_EntityAdWordsLinkEntity'; - protected $entityDataType = ''; - public $id; - public $kind; - public $name; - public $profileIds; - public $selfLink; - - public function setAdWordsAccounts($adWordsAccounts) - { - $this->adWordsAccounts = $adWordsAccounts; - } - - public function getAdWordsAccounts() - { - return $this->adWordsAccounts; - } - - public function setEntity(Google_Service_Analytics_EntityAdWordsLinkEntity $entity) - { - $this->entity = $entity; - } - - public function getEntity() - { - return $this->entity; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setProfileIds($profileIds) - { - $this->profileIds = $profileIds; - } - - public function getProfileIds() - { - return $this->profileIds; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } +class Google_Service_Analytics_EntityAdWordsLink extends Google_Collection { + protected $adWordsAccountsType = 'Google_Service_Analytics_AdWordsAccount'; + protected $adWordsAccountsDataType = 'array'; + protected $entityType = 'Google_Service_Analytics_EntityAdWordsLinkEntity'; + protected $entityDataType = ''; + public $id; + public $kind; + public $name; + public $profileIds; + public $selfLink; + + public function setAdWordsAccounts($adWordsAccounts) { + $this->adWordsAccounts = $adWordsAccounts; + } + + public function getAdWordsAccounts() { + return $this->adWordsAccounts; + } + + public function setEntity(Google_Service_Analytics_EntityAdWordsLinkEntity $entity) { + $this->entity = $entity; + } + + public function getEntity() { + return $this->entity; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setProfileIds($profileIds) { + $this->profileIds = $profileIds; + } + + public function getProfileIds() { + return $this->profileIds; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Analytics_EntityAdWordsLinkEntity extends Google_Model -{ - protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef'; - protected $webPropertyRefDataType = ''; +class Google_Service_Analytics_EntityAdWordsLinkEntity extends Google_Model { + protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef'; + protected $webPropertyRefDataType = ''; - public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPropertyRef) - { - $this->webPropertyRef = $webPropertyRef; - } + public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPropertyRef) { + $this->webPropertyRef = $webPropertyRef; + } - public function getWebPropertyRef() - { - return $this->webPropertyRef; - } + public function getWebPropertyRef() { + return $this->webPropertyRef; + } } -class Google_Service_Analytics_EntityAdWordsLinks extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_EntityAdWordsLink'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } +class Google_Service_Analytics_EntityAdWordsLinks extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_EntityAdWordsLink'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } } -class Google_Service_Analytics_EntityUserLink extends Google_Model -{ - protected $entityType = 'Google_Service_Analytics_EntityUserLinkEntity'; - protected $entityDataType = ''; - public $id; - public $kind; - protected $permissionsType = 'Google_Service_Analytics_EntityUserLinkPermissions'; - protected $permissionsDataType = ''; - public $selfLink; - protected $userRefType = 'Google_Service_Analytics_UserRef'; - protected $userRefDataType = ''; - - public function setEntity(Google_Service_Analytics_EntityUserLinkEntity $entity) - { - $this->entity = $entity; - } - - public function getEntity() - { - return $this->entity; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPermissions(Google_Service_Analytics_EntityUserLinkPermissions $permissions) - { - $this->permissions = $permissions; - } - - public function getPermissions() - { - return $this->permissions; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setUserRef(Google_Service_Analytics_UserRef $userRef) - { - $this->userRef = $userRef; - } - - public function getUserRef() - { - return $this->userRef; - } +class Google_Service_Analytics_EntityUserLink extends Google_Model { + protected $entityType = 'Google_Service_Analytics_EntityUserLinkEntity'; + protected $entityDataType = ''; + public $id; + public $kind; + protected $permissionsType = 'Google_Service_Analytics_EntityUserLinkPermissions'; + protected $permissionsDataType = ''; + public $selfLink; + protected $userRefType = 'Google_Service_Analytics_UserRef'; + protected $userRefDataType = ''; + + public function setEntity(Google_Service_Analytics_EntityUserLinkEntity $entity) { + $this->entity = $entity; + } + + public function getEntity() { + return $this->entity; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPermissions(Google_Service_Analytics_EntityUserLinkPermissions $permissions) { + $this->permissions = $permissions; + } + + public function getPermissions() { + return $this->permissions; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setUserRef(Google_Service_Analytics_UserRef $userRef) { + $this->userRef = $userRef; + } + + public function getUserRef() { + return $this->userRef; + } } -class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model -{ - protected $accountRefType = 'Google_Service_Analytics_AccountRef'; - protected $accountRefDataType = ''; - protected $profileRefType = 'Google_Service_Analytics_ProfileRef'; - protected $profileRefDataType = ''; - protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef'; - protected $webPropertyRefDataType = ''; - - public function setAccountRef(Google_Service_Analytics_AccountRef $accountRef) - { - $this->accountRef = $accountRef; - } - - public function getAccountRef() - { - return $this->accountRef; - } - - public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef) - { - $this->profileRef = $profileRef; - } - - public function getProfileRef() - { - return $this->profileRef; - } - - public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPropertyRef) - { - $this->webPropertyRef = $webPropertyRef; - } - - public function getWebPropertyRef() - { - return $this->webPropertyRef; - } +class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model { + protected $accountRefType = 'Google_Service_Analytics_AccountRef'; + protected $accountRefDataType = ''; + protected $profileRefType = 'Google_Service_Analytics_ProfileRef'; + protected $profileRefDataType = ''; + protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef'; + protected $webPropertyRefDataType = ''; + + public function setAccountRef(Google_Service_Analytics_AccountRef $accountRef) { + $this->accountRef = $accountRef; + } + + public function getAccountRef() { + return $this->accountRef; + } + + public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef) { + $this->profileRef = $profileRef; + } + + public function getProfileRef() { + return $this->profileRef; + } + + public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPropertyRef) { + $this->webPropertyRef = $webPropertyRef; + } + + public function getWebPropertyRef() { + return $this->webPropertyRef; + } } -class Google_Service_Analytics_EntityUserLinkPermissions extends Google_Collection -{ - public $effective; - public $local; - - public function setEffective($effective) - { - $this->effective = $effective; - } - - public function getEffective() - { - return $this->effective; - } - - public function setLocal($local) - { - $this->local = $local; - } - - public function getLocal() - { - return $this->local; - } +class Google_Service_Analytics_EntityUserLinkPermissions extends Google_Collection { + public $effective; + public $local; + + public function setEffective($effective) { + $this->effective = $effective; + } + + public function getEffective() { + return $this->effective; + } + + public function setLocal($local) { + $this->local = $local; + } + + public function getLocal() { + return $this->local; + } } -class Google_Service_Analytics_EntityUserLinks extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_EntityUserLink'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } +class Google_Service_Analytics_EntityUserLinks extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_EntityUserLink'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } } -class Google_Service_Analytics_Experiment extends Google_Collection -{ - public $accountId; - public $created; - public $description; - public $editableInGaUi; - public $endTime; - public $equalWeighting; - public $id; - public $internalWebPropertyId; - public $kind; - public $minimumExperimentLengthInDays; - public $name; - public $objectiveMetric; - public $optimizationType; - protected $parentLinkType = 'Google_Service_Analytics_ExperimentParentLink'; - protected $parentLinkDataType = ''; - public $profileId; - public $reasonExperimentEnded; - public $rewriteVariationUrlsAsOriginal; - public $selfLink; - public $servingFramework; - public $snippet; - public $startTime; - public $status; - public $trafficCoverage; - public $updated; - protected $variationsType = 'Google_Service_Analytics_ExperimentVariations'; - protected $variationsDataType = 'array'; - public $webPropertyId; - public $winnerConfidenceLevel; - public $winnerFound; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setEditableInGaUi($editableInGaUi) - { - $this->editableInGaUi = $editableInGaUi; - } - - public function getEditableInGaUi() - { - return $this->editableInGaUi; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function getEndTime() - { - return $this->endTime; - } - - public function setEqualWeighting($equalWeighting) - { - $this->equalWeighting = $equalWeighting; - } - - public function getEqualWeighting() - { - return $this->equalWeighting; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMinimumExperimentLengthInDays($minimumExperimentLengthInDays) - { - $this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays; - } - - public function getMinimumExperimentLengthInDays() - { - return $this->minimumExperimentLengthInDays; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setObjectiveMetric($objectiveMetric) - { - $this->objectiveMetric = $objectiveMetric; - } - - public function getObjectiveMetric() - { - return $this->objectiveMetric; - } - - public function setOptimizationType($optimizationType) - { - $this->optimizationType = $optimizationType; - } - - public function getOptimizationType() - { - return $this->optimizationType; - } - - public function setParentLink(Google_Service_Analytics_ExperimentParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - - public function getParentLink() - { - return $this->parentLink; - } - - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - - public function getProfileId() - { - return $this->profileId; - } - - public function setReasonExperimentEnded($reasonExperimentEnded) - { - $this->reasonExperimentEnded = $reasonExperimentEnded; - } - - public function getReasonExperimentEnded() - { - return $this->reasonExperimentEnded; - } - - public function setRewriteVariationUrlsAsOriginal($rewriteVariationUrlsAsOriginal) - { - $this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal; - } - - public function getRewriteVariationUrlsAsOriginal() - { - return $this->rewriteVariationUrlsAsOriginal; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setServingFramework($servingFramework) - { - $this->servingFramework = $servingFramework; - } - - public function getServingFramework() - { - return $this->servingFramework; - } - - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } - - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - - public function getStartTime() - { - return $this->startTime; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setTrafficCoverage($trafficCoverage) - { - $this->trafficCoverage = $trafficCoverage; - } - - public function getTrafficCoverage() - { - return $this->trafficCoverage; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setVariations($variations) - { - $this->variations = $variations; - } - - public function getVariations() - { - return $this->variations; - } - - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - - public function getWebPropertyId() - { - return $this->webPropertyId; - } - - public function setWinnerConfidenceLevel($winnerConfidenceLevel) - { - $this->winnerConfidenceLevel = $winnerConfidenceLevel; - } - - public function getWinnerConfidenceLevel() - { - return $this->winnerConfidenceLevel; - } - - public function setWinnerFound($winnerFound) - { - $this->winnerFound = $winnerFound; - } - - public function getWinnerFound() - { - return $this->winnerFound; - } +class Google_Service_Analytics_Experiment extends Google_Collection { + public $accountId; + public $created; + public $description; + public $editableInGaUi; + public $endTime; + public $equalWeighting; + public $id; + public $internalWebPropertyId; + public $kind; + public $minimumExperimentLengthInDays; + public $name; + public $objectiveMetric; + public $optimizationType; + protected $parentLinkType = 'Google_Service_Analytics_ExperimentParentLink'; + protected $parentLinkDataType = ''; + public $profileId; + public $reasonExperimentEnded; + public $rewriteVariationUrlsAsOriginal; + public $selfLink; + public $servingFramework; + public $snippet; + public $startTime; + public $status; + public $trafficCoverage; + public $updated; + protected $variationsType = 'Google_Service_Analytics_ExperimentVariations'; + protected $variationsDataType = 'array'; + public $webPropertyId; + public $winnerConfidenceLevel; + public $winnerFound; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setEditableInGaUi($editableInGaUi) { + $this->editableInGaUi = $editableInGaUi; + } + + public function getEditableInGaUi() { + return $this->editableInGaUi; + } + + public function setEndTime($endTime) { + $this->endTime = $endTime; + } + + public function getEndTime() { + return $this->endTime; + } + + public function setEqualWeighting($equalWeighting) { + $this->equalWeighting = $equalWeighting; + } + + public function getEqualWeighting() { + return $this->equalWeighting; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInternalWebPropertyId($internalWebPropertyId) { + $this->internalWebPropertyId = $internalWebPropertyId; + } + + public function getInternalWebPropertyId() { + return $this->internalWebPropertyId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMinimumExperimentLengthInDays($minimumExperimentLengthInDays) { + $this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays; + } + + public function getMinimumExperimentLengthInDays() { + return $this->minimumExperimentLengthInDays; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setObjectiveMetric($objectiveMetric) { + $this->objectiveMetric = $objectiveMetric; + } + + public function getObjectiveMetric() { + return $this->objectiveMetric; + } + + public function setOptimizationType($optimizationType) { + $this->optimizationType = $optimizationType; + } + + public function getOptimizationType() { + return $this->optimizationType; + } + + public function setParentLink(Google_Service_Analytics_ExperimentParentLink $parentLink) { + $this->parentLink = $parentLink; + } + + public function getParentLink() { + return $this->parentLink; + } + + public function setProfileId($profileId) { + $this->profileId = $profileId; + } + + public function getProfileId() { + return $this->profileId; + } + + public function setReasonExperimentEnded($reasonExperimentEnded) { + $this->reasonExperimentEnded = $reasonExperimentEnded; + } + + public function getReasonExperimentEnded() { + return $this->reasonExperimentEnded; + } + + public function setRewriteVariationUrlsAsOriginal($rewriteVariationUrlsAsOriginal) { + $this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal; + } + + public function getRewriteVariationUrlsAsOriginal() { + return $this->rewriteVariationUrlsAsOriginal; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setServingFramework($servingFramework) { + $this->servingFramework = $servingFramework; + } + + public function getServingFramework() { + return $this->servingFramework; + } + + public function setSnippet($snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } + + public function setStartTime($startTime) { + $this->startTime = $startTime; + } + + public function getStartTime() { + return $this->startTime; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setTrafficCoverage($trafficCoverage) { + $this->trafficCoverage = $trafficCoverage; + } + + public function getTrafficCoverage() { + return $this->trafficCoverage; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setVariations($variations) { + $this->variations = $variations; + } + + public function getVariations() { + return $this->variations; + } + + public function setWebPropertyId($webPropertyId) { + $this->webPropertyId = $webPropertyId; + } + + public function getWebPropertyId() { + return $this->webPropertyId; + } + + public function setWinnerConfidenceLevel($winnerConfidenceLevel) { + $this->winnerConfidenceLevel = $winnerConfidenceLevel; + } + + public function getWinnerConfidenceLevel() { + return $this->winnerConfidenceLevel; + } + + public function setWinnerFound($winnerFound) { + $this->winnerFound = $winnerFound; + } + + public function getWinnerFound() { + return $this->winnerFound; + } } -class Google_Service_Analytics_ExperimentParentLink extends Google_Model -{ - public $href; - public $type; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_ExperimentParentLink extends Google_Model { + public $href; + public $type; + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_ExperimentVariations extends Google_Model -{ - public $name; - public $status; - public $url; - public $weight; - public $won; - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - - public function getWeight() - { - return $this->weight; - } - - public function setWon($won) - { - $this->won = $won; - } - - public function getWon() - { - return $this->won; - } +class Google_Service_Analytics_ExperimentVariations extends Google_Model { + public $name; + public $status; + public $url; + public $weight; + public $won; + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } + + public function setWeight($weight) { + $this->weight = $weight; + } + + public function getWeight() { + return $this->weight; + } + + public function setWon($won) { + $this->won = $won; + } + + public function getWon() { + return $this->won; + } } -class Google_Service_Analytics_Experiments extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_Experiment'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_Experiments extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_Experiment'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_Filter extends Google_Model -{ - public $accountId; - protected $advancedDetailsType = 'Google_Service_Analytics_FilterAdvancedDetails'; - protected $advancedDetailsDataType = ''; - public $created; - protected $excludeDetailsType = 'Google_Service_Analytics_FilterExpression'; - protected $excludeDetailsDataType = ''; - public $id; - protected $includeDetailsType = 'Google_Service_Analytics_FilterExpression'; - protected $includeDetailsDataType = ''; - public $kind; - protected $lowercaseDetailsType = 'Google_Service_Analytics_FilterLowercaseDetails'; - protected $lowercaseDetailsDataType = ''; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_FilterParentLink'; - protected $parentLinkDataType = ''; - protected $searchAndReplaceDetailsType = 'Google_Service_Analytics_FilterSearchAndReplaceDetails'; - protected $searchAndReplaceDetailsDataType = ''; - public $selfLink; - public $type; - public $updated; - protected $uppercaseDetailsType = 'Google_Service_Analytics_FilterUppercaseDetails'; - protected $uppercaseDetailsDataType = ''; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setAdvancedDetails(Google_Service_Analytics_FilterAdvancedDetails $advancedDetails) - { - $this->advancedDetails = $advancedDetails; - } - - public function getAdvancedDetails() - { - return $this->advancedDetails; - } - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setExcludeDetails(Google_Service_Analytics_FilterExpression $excludeDetails) - { - $this->excludeDetails = $excludeDetails; - } - - public function getExcludeDetails() - { - return $this->excludeDetails; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setIncludeDetails(Google_Service_Analytics_FilterExpression $includeDetails) - { - $this->includeDetails = $includeDetails; - } - - public function getIncludeDetails() - { - return $this->includeDetails; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLowercaseDetails(Google_Service_Analytics_FilterLowercaseDetails $lowercaseDetails) - { - $this->lowercaseDetails = $lowercaseDetails; - } - - public function getLowercaseDetails() - { - return $this->lowercaseDetails; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setParentLink(Google_Service_Analytics_FilterParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - - public function getParentLink() - { - return $this->parentLink; - } - - public function setSearchAndReplaceDetails(Google_Service_Analytics_FilterSearchAndReplaceDetails $searchAndReplaceDetails) - { - $this->searchAndReplaceDetails = $searchAndReplaceDetails; - } - - public function getSearchAndReplaceDetails() - { - return $this->searchAndReplaceDetails; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setUppercaseDetails(Google_Service_Analytics_FilterUppercaseDetails $uppercaseDetails) - { - $this->uppercaseDetails = $uppercaseDetails; - } - - public function getUppercaseDetails() - { - return $this->uppercaseDetails; - } +class Google_Service_Analytics_Filter extends Google_Model { + public $accountId; + protected $advancedDetailsType = 'Google_Service_Analytics_FilterAdvancedDetails'; + protected $advancedDetailsDataType = ''; + public $created; + protected $excludeDetailsType = 'Google_Service_Analytics_FilterExpression'; + protected $excludeDetailsDataType = ''; + public $id; + protected $includeDetailsType = 'Google_Service_Analytics_FilterExpression'; + protected $includeDetailsDataType = ''; + public $kind; + protected $lowercaseDetailsType = 'Google_Service_Analytics_FilterLowercaseDetails'; + protected $lowercaseDetailsDataType = ''; + public $name; + protected $parentLinkType = 'Google_Service_Analytics_FilterParentLink'; + protected $parentLinkDataType = ''; + protected $searchAndReplaceDetailsType = 'Google_Service_Analytics_FilterSearchAndReplaceDetails'; + protected $searchAndReplaceDetailsDataType = ''; + public $selfLink; + public $type; + public $updated; + protected $uppercaseDetailsType = 'Google_Service_Analytics_FilterUppercaseDetails'; + protected $uppercaseDetailsDataType = ''; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setAdvancedDetails(Google_Service_Analytics_FilterAdvancedDetails $advancedDetails) { + $this->advancedDetails = $advancedDetails; + } + + public function getAdvancedDetails() { + return $this->advancedDetails; + } + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setExcludeDetails(Google_Service_Analytics_FilterExpression $excludeDetails) { + $this->excludeDetails = $excludeDetails; + } + + public function getExcludeDetails() { + return $this->excludeDetails; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setIncludeDetails(Google_Service_Analytics_FilterExpression $includeDetails) { + $this->includeDetails = $includeDetails; + } + + public function getIncludeDetails() { + return $this->includeDetails; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLowercaseDetails(Google_Service_Analytics_FilterLowercaseDetails $lowercaseDetails) { + $this->lowercaseDetails = $lowercaseDetails; + } + + public function getLowercaseDetails() { + return $this->lowercaseDetails; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setParentLink(Google_Service_Analytics_FilterParentLink $parentLink) { + $this->parentLink = $parentLink; + } + + public function getParentLink() { + return $this->parentLink; + } + + public function setSearchAndReplaceDetails(Google_Service_Analytics_FilterSearchAndReplaceDetails $searchAndReplaceDetails) { + $this->searchAndReplaceDetails = $searchAndReplaceDetails; + } + + public function getSearchAndReplaceDetails() { + return $this->searchAndReplaceDetails; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setUppercaseDetails(Google_Service_Analytics_FilterUppercaseDetails $uppercaseDetails) { + $this->uppercaseDetails = $uppercaseDetails; + } + + public function getUppercaseDetails() { + return $this->uppercaseDetails; + } } -class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model -{ - public $caseSensitive; - public $extractA; - public $extractB; - public $fieldA; - public $fieldARequired; - public $fieldB; - public $fieldBRequired; - public $outputConstructor; - public $outputToField; - public $overrideOutputField; - - public function setCaseSensitive($caseSensitive) - { - $this->caseSensitive = $caseSensitive; - } - - public function getCaseSensitive() - { - return $this->caseSensitive; - } - - public function setExtractA($extractA) - { - $this->extractA = $extractA; - } - - public function getExtractA() - { - return $this->extractA; - } - - public function setExtractB($extractB) - { - $this->extractB = $extractB; - } - - public function getExtractB() - { - return $this->extractB; - } - - public function setFieldA($fieldA) - { - $this->fieldA = $fieldA; - } - - public function getFieldA() - { - return $this->fieldA; - } - - public function setFieldARequired($fieldARequired) - { - $this->fieldARequired = $fieldARequired; - } - - public function getFieldARequired() - { - return $this->fieldARequired; - } - - public function setFieldB($fieldB) - { - $this->fieldB = $fieldB; - } - - public function getFieldB() - { - return $this->fieldB; - } - - public function setFieldBRequired($fieldBRequired) - { - $this->fieldBRequired = $fieldBRequired; - } - - public function getFieldBRequired() - { - return $this->fieldBRequired; - } - - public function setOutputConstructor($outputConstructor) - { - $this->outputConstructor = $outputConstructor; - } - - public function getOutputConstructor() - { - return $this->outputConstructor; - } - - public function setOutputToField($outputToField) - { - $this->outputToField = $outputToField; - } - - public function getOutputToField() - { - return $this->outputToField; - } - - public function setOverrideOutputField($overrideOutputField) - { - $this->overrideOutputField = $overrideOutputField; - } - - public function getOverrideOutputField() - { - return $this->overrideOutputField; - } +class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model { + public $caseSensitive; + public $extractA; + public $extractB; + public $fieldA; + public $fieldARequired; + public $fieldB; + public $fieldBRequired; + public $outputConstructor; + public $outputToField; + public $overrideOutputField; + + public function setCaseSensitive($caseSensitive) { + $this->caseSensitive = $caseSensitive; + } + + public function getCaseSensitive() { + return $this->caseSensitive; + } + + public function setExtractA($extractA) { + $this->extractA = $extractA; + } + + public function getExtractA() { + return $this->extractA; + } + + public function setExtractB($extractB) { + $this->extractB = $extractB; + } + + public function getExtractB() { + return $this->extractB; + } + + public function setFieldA($fieldA) { + $this->fieldA = $fieldA; + } + + public function getFieldA() { + return $this->fieldA; + } + + public function setFieldARequired($fieldARequired) { + $this->fieldARequired = $fieldARequired; + } + + public function getFieldARequired() { + return $this->fieldARequired; + } + + public function setFieldB($fieldB) { + $this->fieldB = $fieldB; + } + + public function getFieldB() { + return $this->fieldB; + } + + public function setFieldBRequired($fieldBRequired) { + $this->fieldBRequired = $fieldBRequired; + } + + public function getFieldBRequired() { + return $this->fieldBRequired; + } + + public function setOutputConstructor($outputConstructor) { + $this->outputConstructor = $outputConstructor; + } + + public function getOutputConstructor() { + return $this->outputConstructor; + } + + public function setOutputToField($outputToField) { + $this->outputToField = $outputToField; + } + + public function getOutputToField() { + return $this->outputToField; + } + + public function setOverrideOutputField($overrideOutputField) { + $this->overrideOutputField = $overrideOutputField; + } + + public function getOverrideOutputField() { + return $this->overrideOutputField; + } } -class Google_Service_Analytics_FilterExpression extends Google_Model -{ - public $caseSensitive; - public $expressionValue; - public $field; - public $kind; - public $matchType; - - public function setCaseSensitive($caseSensitive) - { - $this->caseSensitive = $caseSensitive; - } - - public function getCaseSensitive() - { - return $this->caseSensitive; - } - - public function setExpressionValue($expressionValue) - { - $this->expressionValue = $expressionValue; - } - - public function getExpressionValue() - { - return $this->expressionValue; - } - - public function setField($field) - { - $this->field = $field; - } - - public function getField() - { - return $this->field; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMatchType($matchType) - { - $this->matchType = $matchType; - } - - public function getMatchType() - { - return $this->matchType; - } +class Google_Service_Analytics_FilterExpression extends Google_Model { + public $caseSensitive; + public $expressionValue; + public $field; + public $kind; + public $matchType; + + public function setCaseSensitive($caseSensitive) { + $this->caseSensitive = $caseSensitive; + } + + public function getCaseSensitive() { + return $this->caseSensitive; + } + + public function setExpressionValue($expressionValue) { + $this->expressionValue = $expressionValue; + } + + public function getExpressionValue() { + return $this->expressionValue; + } + + public function setField($field) { + $this->field = $field; + } + + public function getField() { + return $this->field; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMatchType($matchType) { + $this->matchType = $matchType; + } + + public function getMatchType() { + return $this->matchType; + } } -class Google_Service_Analytics_FilterLowercaseDetails extends Google_Model -{ - public $field; +class Google_Service_Analytics_FilterLowercaseDetails extends Google_Model { + public $field; - public function setField($field) - { - $this->field = $field; - } + public function setField($field) { + $this->field = $field; + } - public function getField() - { - return $this->field; - } + public function getField() { + return $this->field; + } } -class Google_Service_Analytics_FilterParentLink extends Google_Model -{ - public $href; - public $type; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_FilterParentLink extends Google_Model { + public $href; + public $type; + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_FilterRef extends Google_Model -{ - public $accountId; - public $href; - public $id; - public $kind; - public $name; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } +class Google_Service_Analytics_FilterRef extends Google_Model { + public $accountId; + public $href; + public $id; + public $kind; + public $name; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } } -class Google_Service_Analytics_FilterSearchAndReplaceDetails extends Google_Model -{ - public $caseSensitive; - public $field; - public $replaceString; - public $searchString; - - public function setCaseSensitive($caseSensitive) - { - $this->caseSensitive = $caseSensitive; - } - - public function getCaseSensitive() - { - return $this->caseSensitive; - } - - public function setField($field) - { - $this->field = $field; - } - - public function getField() - { - return $this->field; - } - - public function setReplaceString($replaceString) - { - $this->replaceString = $replaceString; - } - - public function getReplaceString() - { - return $this->replaceString; - } - - public function setSearchString($searchString) - { - $this->searchString = $searchString; - } - - public function getSearchString() - { - return $this->searchString; - } +class Google_Service_Analytics_FilterSearchAndReplaceDetails extends Google_Model { + public $caseSensitive; + public $field; + public $replaceString; + public $searchString; + + public function setCaseSensitive($caseSensitive) { + $this->caseSensitive = $caseSensitive; + } + + public function getCaseSensitive() { + return $this->caseSensitive; + } + + public function setField($field) { + $this->field = $field; + } + + public function getField() { + return $this->field; + } + + public function setReplaceString($replaceString) { + $this->replaceString = $replaceString; + } + + public function getReplaceString() { + return $this->replaceString; + } + + public function setSearchString($searchString) { + $this->searchString = $searchString; + } + + public function getSearchString() { + return $this->searchString; + } } -class Google_Service_Analytics_FilterUppercaseDetails extends Google_Model -{ - public $field; +class Google_Service_Analytics_FilterUppercaseDetails extends Google_Model { + public $field; - public function setField($field) - { - $this->field = $field; - } + public function setField($field) { + $this->field = $field; + } - public function getField() - { - return $this->field; - } + public function getField() { + return $this->field; + } } -class Google_Service_Analytics_Filters extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_Filter'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_Filters extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_Filter'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_GaData extends Google_Collection -{ - protected $columnHeadersType = 'Google_Service_Analytics_GaDataColumnHeaders'; - protected $columnHeadersDataType = 'array'; - public $containsSampledData; - protected $dataTableType = 'Google_Service_Analytics_GaDataDataTable'; - protected $dataTableDataType = ''; - public $id; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - protected $profileInfoType = 'Google_Service_Analytics_GaDataProfileInfo'; - protected $profileInfoDataType = ''; - protected $queryType = 'Google_Service_Analytics_GaDataQuery'; - protected $queryDataType = ''; - public $rows; - public $sampleSize; - public $sampleSpace; - public $selfLink; - public $totalResults; - public $totalsForAllResults; - - public function setColumnHeaders($columnHeaders) - { - $this->columnHeaders = $columnHeaders; - } - - public function getColumnHeaders() - { - return $this->columnHeaders; - } - - public function setContainsSampledData($containsSampledData) - { - $this->containsSampledData = $containsSampledData; - } - - public function getContainsSampledData() - { - return $this->containsSampledData; - } - - public function setDataTable(Google_Service_Analytics_GaDataDataTable $dataTable) - { - $this->dataTable = $dataTable; - } - - public function getDataTable() - { - return $this->dataTable; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setProfileInfo(Google_Service_Analytics_GaDataProfileInfo $profileInfo) - { - $this->profileInfo = $profileInfo; - } - - public function getProfileInfo() - { - return $this->profileInfo; - } - - public function setQuery(Google_Service_Analytics_GaDataQuery $query) - { - $this->query = $query; - } - - public function getQuery() - { - return $this->query; - } - - public function setRows($rows) - { - $this->rows = $rows; - } - - public function getRows() - { - return $this->rows; - } - - public function setSampleSize($sampleSize) - { - $this->sampleSize = $sampleSize; - } - - public function getSampleSize() - { - return $this->sampleSize; - } - - public function setSampleSpace($sampleSpace) - { - $this->sampleSpace = $sampleSpace; - } - - public function getSampleSpace() - { - return $this->sampleSpace; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setTotalsForAllResults($totalsForAllResults) - { - $this->totalsForAllResults = $totalsForAllResults; - } - - public function getTotalsForAllResults() - { - return $this->totalsForAllResults; - } +class Google_Service_Analytics_GaData extends Google_Collection { + protected $columnHeadersType = 'Google_Service_Analytics_GaDataColumnHeaders'; + protected $columnHeadersDataType = 'array'; + public $containsSampledData; + protected $dataTableType = 'Google_Service_Analytics_GaDataDataTable'; + protected $dataTableDataType = ''; + public $id; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + protected $profileInfoType = 'Google_Service_Analytics_GaDataProfileInfo'; + protected $profileInfoDataType = ''; + protected $queryType = 'Google_Service_Analytics_GaDataQuery'; + protected $queryDataType = ''; + public $rows; + public $sampleSize; + public $sampleSpace; + public $selfLink; + public $totalResults; + public $totalsForAllResults; + + public function setColumnHeaders($columnHeaders) { + $this->columnHeaders = $columnHeaders; + } + + public function getColumnHeaders() { + return $this->columnHeaders; + } + + public function setContainsSampledData($containsSampledData) { + $this->containsSampledData = $containsSampledData; + } + + public function getContainsSampledData() { + return $this->containsSampledData; + } + + public function setDataTable(Google_Service_Analytics_GaDataDataTable $dataTable) { + $this->dataTable = $dataTable; + } + + public function getDataTable() { + return $this->dataTable; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setProfileInfo(Google_Service_Analytics_GaDataProfileInfo $profileInfo) { + $this->profileInfo = $profileInfo; + } + + public function getProfileInfo() { + return $this->profileInfo; + } + + public function setQuery(Google_Service_Analytics_GaDataQuery $query) { + $this->query = $query; + } + + public function getQuery() { + return $this->query; + } + + public function setRows($rows) { + $this->rows = $rows; + } + + public function getRows() { + return $this->rows; + } + + public function setSampleSize($sampleSize) { + $this->sampleSize = $sampleSize; + } + + public function getSampleSize() { + return $this->sampleSize; + } + + public function setSampleSpace($sampleSpace) { + $this->sampleSpace = $sampleSpace; + } + + public function getSampleSpace() { + return $this->sampleSpace; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setTotalsForAllResults($totalsForAllResults) { + $this->totalsForAllResults = $totalsForAllResults; + } + + public function getTotalsForAllResults() { + return $this->totalsForAllResults; + } } -class Google_Service_Analytics_GaDataColumnHeaders extends Google_Model -{ - public $columnType; - public $dataType; - public $name; - - public function setColumnType($columnType) - { - $this->columnType = $columnType; - } - - public function getColumnType() - { - return $this->columnType; - } - - public function setDataType($dataType) - { - $this->dataType = $dataType; - } - - public function getDataType() - { - return $this->dataType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } +class Google_Service_Analytics_GaDataColumnHeaders extends Google_Model { + public $columnType; + public $dataType; + public $name; + + public function setColumnType($columnType) { + $this->columnType = $columnType; + } + + public function getColumnType() { + return $this->columnType; + } + + public function setDataType($dataType) { + $this->dataType = $dataType; + } + + public function getDataType() { + return $this->dataType; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } } -class Google_Service_Analytics_GaDataDataTable extends Google_Collection -{ - protected $colsType = 'Google_Service_Analytics_GaDataDataTableCols'; - protected $colsDataType = 'array'; - protected $rowsType = 'Google_Service_Analytics_GaDataDataTableRows'; - protected $rowsDataType = 'array'; - - public function setCols($cols) - { - $this->cols = $cols; - } - - public function getCols() - { - return $this->cols; - } - - public function setRows($rows) - { - $this->rows = $rows; - } - - public function getRows() - { - return $this->rows; - } +class Google_Service_Analytics_GaDataDataTable extends Google_Collection { + protected $colsType = 'Google_Service_Analytics_GaDataDataTableCols'; + protected $colsDataType = 'array'; + protected $rowsType = 'Google_Service_Analytics_GaDataDataTableRows'; + protected $rowsDataType = 'array'; + + public function setCols($cols) { + $this->cols = $cols; + } + + public function getCols() { + return $this->cols; + } + + public function setRows($rows) { + $this->rows = $rows; + } + + public function getRows() { + return $this->rows; + } } -class Google_Service_Analytics_GaDataDataTableCols extends Google_Model -{ - public $id; - public $label; - public $type; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setLabel($label) - { - $this->label = $label; - } - - public function getLabel() - { - return $this->label; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_GaDataDataTableCols extends Google_Model { + public $id; + public $label; + public $type; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setLabel($label) { + $this->label = $label; + } + + public function getLabel() { + return $this->label; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_GaDataDataTableRows extends Google_Collection -{ - protected $cType = 'Google_Service_Analytics_GaDataDataTableRowsC'; - protected $cDataType = 'array'; +class Google_Service_Analytics_GaDataDataTableRows extends Google_Collection { + protected $cType = 'Google_Service_Analytics_GaDataDataTableRowsC'; + protected $cDataType = 'array'; - public function setC($c) - { - $this->c = $c; - } + public function setC($c) { + $this->c = $c; + } - public function getC() - { - return $this->c; - } + public function getC() { + return $this->c; + } } -class Google_Service_Analytics_GaDataDataTableRowsC extends Google_Model -{ - public $v; +class Google_Service_Analytics_GaDataDataTableRowsC extends Google_Model { + public $v; - public function setV($v) - { - $this->v = $v; - } + public function setV($v) { + $this->v = $v; + } - public function getV() - { - return $this->v; - } + public function getV() { + return $this->v; + } } -class Google_Service_Analytics_GaDataProfileInfo extends Google_Model -{ - public $accountId; - public $internalWebPropertyId; - public $profileId; - public $profileName; - public $tableId; - public $webPropertyId; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - - public function getProfileId() - { - return $this->profileId; - } - - public function setProfileName($profileName) - { - $this->profileName = $profileName; - } - - public function getProfileName() - { - return $this->profileName; - } - - public function setTableId($tableId) - { - $this->tableId = $tableId; - } - - public function getTableId() - { - return $this->tableId; - } - - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - - public function getWebPropertyId() - { - return $this->webPropertyId; - } +class Google_Service_Analytics_GaDataProfileInfo extends Google_Model { + public $accountId; + public $internalWebPropertyId; + public $profileId; + public $profileName; + public $tableId; + public $webPropertyId; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setInternalWebPropertyId($internalWebPropertyId) { + $this->internalWebPropertyId = $internalWebPropertyId; + } + + public function getInternalWebPropertyId() { + return $this->internalWebPropertyId; + } + + public function setProfileId($profileId) { + $this->profileId = $profileId; + } + + public function getProfileId() { + return $this->profileId; + } + + public function setProfileName($profileName) { + $this->profileName = $profileName; + } + + public function getProfileName() { + return $this->profileName; + } + + public function setTableId($tableId) { + $this->tableId = $tableId; + } + + public function getTableId() { + return $this->tableId; + } + + public function setWebPropertyId($webPropertyId) { + $this->webPropertyId = $webPropertyId; + } + + public function getWebPropertyId() { + return $this->webPropertyId; + } } -class Google_Service_Analytics_GaDataQuery extends Google_Collection -{ - public $dimensions; - public $endDate; - public $filters; - public $ids; - public $maxResults; - public $metrics; - public $samplingLevel; - public $segment; - public $sort; - public $startDate; - public $startIndex; - - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - - public function getDimensions() - { - return $this->dimensions; - } - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - - public function getEndDate() - { - return $this->endDate; - } - - public function setFilters($filters) - { - $this->filters = $filters; - } - - public function getFilters() - { - return $this->filters; - } - - public function setIds($ids) - { - $this->ids = $ids; - } - - public function getIds() - { - return $this->ids; - } - - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } - - public function getMaxResults() - { - return $this->maxResults; - } - - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - - public function getMetrics() - { - return $this->metrics; - } - - public function setSamplingLevel($samplingLevel) - { - $this->samplingLevel = $samplingLevel; - } - - public function getSamplingLevel() - { - return $this->samplingLevel; - } - - public function setSegment($segment) - { - $this->segment = $segment; - } - - public function getSegment() - { - return $this->segment; - } - - public function setSort($sort) - { - $this->sort = $sort; - } - - public function getSort() - { - return $this->sort; - } - - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - - public function getStartDate() - { - return $this->startDate; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } +class Google_Service_Analytics_GaDataQuery extends Google_Collection { + public $dimensions; + public $endDate; + public $filters; + public $ids; + public $maxResults; + public $metrics; + public $samplingLevel; + public $segment; + public $sort; + public $startDate; + public $startIndex; + + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } + + public function getDimensions() { + return $this->dimensions; + } + + public function setEndDate($endDate) { + $this->endDate = $endDate; + } + + public function getEndDate() { + return $this->endDate; + } + + public function setFilters($filters) { + $this->filters = $filters; + } + + public function getFilters() { + return $this->filters; + } + + public function setIds($ids) { + $this->ids = $ids; + } + + public function getIds() { + return $this->ids; + } + + public function setMaxResults($maxResults) { + $this->maxResults = $maxResults; + } + + public function getMaxResults() { + return $this->maxResults; + } + + public function setMetrics($metrics) { + $this->metrics = $metrics; + } + + public function getMetrics() { + return $this->metrics; + } + + public function setSamplingLevel($samplingLevel) { + $this->samplingLevel = $samplingLevel; + } + + public function getSamplingLevel() { + return $this->samplingLevel; + } + + public function setSegment($segment) { + $this->segment = $segment; + } + + public function getSegment() { + return $this->segment; + } + + public function setSort($sort) { + $this->sort = $sort; + } + + public function getSort() { + return $this->sort; + } + + public function setStartDate($startDate) { + $this->startDate = $startDate; + } + + public function getStartDate() { + return $this->startDate; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } } -class Google_Service_Analytics_GaDataTotalsForAllResults extends Google_Model -{ +class Google_Service_Analytics_GaDataTotalsForAllResults extends Google_Model { } -class Google_Service_Analytics_Goal extends Google_Model -{ - public $accountId; - public $active; - public $created; - protected $eventDetailsType = 'Google_Service_Analytics_GoalEventDetails'; - protected $eventDetailsDataType = ''; - public $id; - public $internalWebPropertyId; - public $kind; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_GoalParentLink'; - protected $parentLinkDataType = ''; - public $profileId; - public $selfLink; - public $type; - public $updated; - protected $urlDestinationDetailsType = 'Google_Service_Analytics_GoalUrlDestinationDetails'; - protected $urlDestinationDetailsDataType = ''; - public $value; - protected $visitNumPagesDetailsType = 'Google_Service_Analytics_GoalVisitNumPagesDetails'; - protected $visitNumPagesDetailsDataType = ''; - protected $visitTimeOnSiteDetailsType = 'Google_Service_Analytics_GoalVisitTimeOnSiteDetails'; - protected $visitTimeOnSiteDetailsDataType = ''; - public $webPropertyId; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setActive($active) - { - $this->active = $active; - } - - public function getActive() - { - return $this->active; - } - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setEventDetails(Google_Service_Analytics_GoalEventDetails $eventDetails) - { - $this->eventDetails = $eventDetails; - } - - public function getEventDetails() - { - return $this->eventDetails; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setParentLink(Google_Service_Analytics_GoalParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - - public function getParentLink() - { - return $this->parentLink; - } - - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - - public function getProfileId() - { - return $this->profileId; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setUrlDestinationDetails(Google_Service_Analytics_GoalUrlDestinationDetails $urlDestinationDetails) - { - $this->urlDestinationDetails = $urlDestinationDetails; - } - - public function getUrlDestinationDetails() - { - return $this->urlDestinationDetails; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } - - public function setVisitNumPagesDetails(Google_Service_Analytics_GoalVisitNumPagesDetails $visitNumPagesDetails) - { - $this->visitNumPagesDetails = $visitNumPagesDetails; - } - - public function getVisitNumPagesDetails() - { - return $this->visitNumPagesDetails; - } - - public function setVisitTimeOnSiteDetails(Google_Service_Analytics_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) - { - $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails; - } - - public function getVisitTimeOnSiteDetails() - { - return $this->visitTimeOnSiteDetails; - } - - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - - public function getWebPropertyId() - { - return $this->webPropertyId; - } +class Google_Service_Analytics_Goal extends Google_Model { + public $accountId; + public $active; + public $created; + protected $eventDetailsType = 'Google_Service_Analytics_GoalEventDetails'; + protected $eventDetailsDataType = ''; + public $id; + public $internalWebPropertyId; + public $kind; + public $name; + protected $parentLinkType = 'Google_Service_Analytics_GoalParentLink'; + protected $parentLinkDataType = ''; + public $profileId; + public $selfLink; + public $type; + public $updated; + protected $urlDestinationDetailsType = 'Google_Service_Analytics_GoalUrlDestinationDetails'; + protected $urlDestinationDetailsDataType = ''; + public $value; + protected $visitNumPagesDetailsType = 'Google_Service_Analytics_GoalVisitNumPagesDetails'; + protected $visitNumPagesDetailsDataType = ''; + protected $visitTimeOnSiteDetailsType = 'Google_Service_Analytics_GoalVisitTimeOnSiteDetails'; + protected $visitTimeOnSiteDetailsDataType = ''; + public $webPropertyId; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setActive($active) { + $this->active = $active; + } + + public function getActive() { + return $this->active; + } + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setEventDetails(Google_Service_Analytics_GoalEventDetails $eventDetails) { + $this->eventDetails = $eventDetails; + } + + public function getEventDetails() { + return $this->eventDetails; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInternalWebPropertyId($internalWebPropertyId) { + $this->internalWebPropertyId = $internalWebPropertyId; + } + + public function getInternalWebPropertyId() { + return $this->internalWebPropertyId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setParentLink(Google_Service_Analytics_GoalParentLink $parentLink) { + $this->parentLink = $parentLink; + } + + public function getParentLink() { + return $this->parentLink; + } + + public function setProfileId($profileId) { + $this->profileId = $profileId; + } + + public function getProfileId() { + return $this->profileId; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setUrlDestinationDetails(Google_Service_Analytics_GoalUrlDestinationDetails $urlDestinationDetails) { + $this->urlDestinationDetails = $urlDestinationDetails; + } + + public function getUrlDestinationDetails() { + return $this->urlDestinationDetails; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } + + public function setVisitNumPagesDetails(Google_Service_Analytics_GoalVisitNumPagesDetails $visitNumPagesDetails) { + $this->visitNumPagesDetails = $visitNumPagesDetails; + } + + public function getVisitNumPagesDetails() { + return $this->visitNumPagesDetails; + } + + public function setVisitTimeOnSiteDetails(Google_Service_Analytics_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) { + $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails; + } + + public function getVisitTimeOnSiteDetails() { + return $this->visitTimeOnSiteDetails; + } + + public function setWebPropertyId($webPropertyId) { + $this->webPropertyId = $webPropertyId; + } + + public function getWebPropertyId() { + return $this->webPropertyId; + } } -class Google_Service_Analytics_GoalEventDetails extends Google_Collection -{ - protected $eventConditionsType = 'Google_Service_Analytics_GoalEventDetailsEventConditions'; - protected $eventConditionsDataType = 'array'; - public $useEventValue; - - public function setEventConditions($eventConditions) - { - $this->eventConditions = $eventConditions; - } - - public function getEventConditions() - { - return $this->eventConditions; - } - - public function setUseEventValue($useEventValue) - { - $this->useEventValue = $useEventValue; - } - - public function getUseEventValue() - { - return $this->useEventValue; - } +class Google_Service_Analytics_GoalEventDetails extends Google_Collection { + protected $eventConditionsType = 'Google_Service_Analytics_GoalEventDetailsEventConditions'; + protected $eventConditionsDataType = 'array'; + public $useEventValue; + + public function setEventConditions($eventConditions) { + $this->eventConditions = $eventConditions; + } + + public function getEventConditions() { + return $this->eventConditions; + } + + public function setUseEventValue($useEventValue) { + $this->useEventValue = $useEventValue; + } + + public function getUseEventValue() { + return $this->useEventValue; + } } -class Google_Service_Analytics_GoalEventDetailsEventConditions extends Google_Model -{ - public $comparisonType; - public $comparisonValue; - public $expression; - public $matchType; - public $type; - - public function setComparisonType($comparisonType) - { - $this->comparisonType = $comparisonType; - } - - public function getComparisonType() - { - return $this->comparisonType; - } - - public function setComparisonValue($comparisonValue) - { - $this->comparisonValue = $comparisonValue; - } - - public function getComparisonValue() - { - return $this->comparisonValue; - } - - public function setExpression($expression) - { - $this->expression = $expression; - } - - public function getExpression() - { - return $this->expression; - } - - public function setMatchType($matchType) - { - $this->matchType = $matchType; - } - - public function getMatchType() - { - return $this->matchType; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_GoalEventDetailsEventConditions extends Google_Model { + public $comparisonType; + public $comparisonValue; + public $expression; + public $matchType; + public $type; + + public function setComparisonType($comparisonType) { + $this->comparisonType = $comparisonType; + } + + public function getComparisonType() { + return $this->comparisonType; + } + + public function setComparisonValue($comparisonValue) { + $this->comparisonValue = $comparisonValue; + } + + public function getComparisonValue() { + return $this->comparisonValue; + } + + public function setExpression($expression) { + $this->expression = $expression; + } + + public function getExpression() { + return $this->expression; + } + + public function setMatchType($matchType) { + $this->matchType = $matchType; + } + + public function getMatchType() { + return $this->matchType; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_GoalParentLink extends Google_Model -{ - public $href; - public $type; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_GoalParentLink extends Google_Model { + public $href; + public $type; + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_GoalUrlDestinationDetails extends Google_Collection -{ - public $caseSensitive; - public $firstStepRequired; - public $matchType; - protected $stepsType = 'Google_Service_Analytics_GoalUrlDestinationDetailsSteps'; - protected $stepsDataType = 'array'; - public $url; - - public function setCaseSensitive($caseSensitive) - { - $this->caseSensitive = $caseSensitive; - } - - public function getCaseSensitive() - { - return $this->caseSensitive; - } - - public function setFirstStepRequired($firstStepRequired) - { - $this->firstStepRequired = $firstStepRequired; - } - - public function getFirstStepRequired() - { - return $this->firstStepRequired; - } - - public function setMatchType($matchType) - { - $this->matchType = $matchType; - } - - public function getMatchType() - { - return $this->matchType; - } - - public function setSteps($steps) - { - $this->steps = $steps; - } - - public function getSteps() - { - return $this->steps; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } +class Google_Service_Analytics_GoalUrlDestinationDetails extends Google_Collection { + public $caseSensitive; + public $firstStepRequired; + public $matchType; + protected $stepsType = 'Google_Service_Analytics_GoalUrlDestinationDetailsSteps'; + protected $stepsDataType = 'array'; + public $url; + + public function setCaseSensitive($caseSensitive) { + $this->caseSensitive = $caseSensitive; + } + + public function getCaseSensitive() { + return $this->caseSensitive; + } + + public function setFirstStepRequired($firstStepRequired) { + $this->firstStepRequired = $firstStepRequired; + } + + public function getFirstStepRequired() { + return $this->firstStepRequired; + } + + public function setMatchType($matchType) { + $this->matchType = $matchType; + } + + public function getMatchType() { + return $this->matchType; + } + + public function setSteps($steps) { + $this->steps = $steps; + } + + public function getSteps() { + return $this->steps; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } } -class Google_Service_Analytics_GoalUrlDestinationDetailsSteps extends Google_Model -{ - public $name; - public $number; - public $url; - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setNumber($number) - { - $this->number = $number; - } - - public function getNumber() - { - return $this->number; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } +class Google_Service_Analytics_GoalUrlDestinationDetailsSteps extends Google_Model { + public $name; + public $number; + public $url; + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setNumber($number) { + $this->number = $number; + } + + public function getNumber() { + return $this->number; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } } -class Google_Service_Analytics_GoalVisitNumPagesDetails extends Google_Model -{ - public $comparisonType; - public $comparisonValue; - - public function setComparisonType($comparisonType) - { - $this->comparisonType = $comparisonType; - } - - public function getComparisonType() - { - return $this->comparisonType; - } - - public function setComparisonValue($comparisonValue) - { - $this->comparisonValue = $comparisonValue; - } - - public function getComparisonValue() - { - return $this->comparisonValue; - } +class Google_Service_Analytics_GoalVisitNumPagesDetails extends Google_Model { + public $comparisonType; + public $comparisonValue; + + public function setComparisonType($comparisonType) { + $this->comparisonType = $comparisonType; + } + + public function getComparisonType() { + return $this->comparisonType; + } + + public function setComparisonValue($comparisonValue) { + $this->comparisonValue = $comparisonValue; + } + + public function getComparisonValue() { + return $this->comparisonValue; + } } -class Google_Service_Analytics_GoalVisitTimeOnSiteDetails extends Google_Model -{ - public $comparisonType; - public $comparisonValue; - - public function setComparisonType($comparisonType) - { - $this->comparisonType = $comparisonType; - } - - public function getComparisonType() - { - return $this->comparisonType; - } - - public function setComparisonValue($comparisonValue) - { - $this->comparisonValue = $comparisonValue; - } - - public function getComparisonValue() - { - return $this->comparisonValue; - } +class Google_Service_Analytics_GoalVisitTimeOnSiteDetails extends Google_Model { + public $comparisonType; + public $comparisonValue; + + public function setComparisonType($comparisonType) { + $this->comparisonType = $comparisonType; + } + + public function getComparisonType() { + return $this->comparisonType; + } + + public function setComparisonValue($comparisonValue) { + $this->comparisonValue = $comparisonValue; + } + + public function getComparisonValue() { + return $this->comparisonValue; + } } -class Google_Service_Analytics_Goals extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_Goal'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_Goals extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_Goal'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_McfData extends Google_Collection -{ - protected $columnHeadersType = 'Google_Service_Analytics_McfDataColumnHeaders'; - protected $columnHeadersDataType = 'array'; - public $containsSampledData; - public $id; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - protected $profileInfoType = 'Google_Service_Analytics_McfDataProfileInfo'; - protected $profileInfoDataType = ''; - protected $queryType = 'Google_Service_Analytics_McfDataQuery'; - protected $queryDataType = ''; - protected $rowsType = 'Google_Service_Analytics_McfDataRows'; - protected $rowsDataType = 'array'; - public $sampleSize; - public $sampleSpace; - public $selfLink; - public $totalResults; - public $totalsForAllResults; - - public function setColumnHeaders($columnHeaders) - { - $this->columnHeaders = $columnHeaders; - } - - public function getColumnHeaders() - { - return $this->columnHeaders; - } - - public function setContainsSampledData($containsSampledData) - { - $this->containsSampledData = $containsSampledData; - } - - public function getContainsSampledData() - { - return $this->containsSampledData; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setProfileInfo(Google_Service_Analytics_McfDataProfileInfo $profileInfo) - { - $this->profileInfo = $profileInfo; - } - - public function getProfileInfo() - { - return $this->profileInfo; - } - - public function setQuery(Google_Service_Analytics_McfDataQuery $query) - { - $this->query = $query; - } - - public function getQuery() - { - return $this->query; - } - - public function setRows($rows) - { - $this->rows = $rows; - } - - public function getRows() - { - return $this->rows; - } - - public function setSampleSize($sampleSize) - { - $this->sampleSize = $sampleSize; - } - - public function getSampleSize() - { - return $this->sampleSize; - } - - public function setSampleSpace($sampleSpace) - { - $this->sampleSpace = $sampleSpace; - } - - public function getSampleSpace() - { - return $this->sampleSpace; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setTotalsForAllResults($totalsForAllResults) - { - $this->totalsForAllResults = $totalsForAllResults; - } - - public function getTotalsForAllResults() - { - return $this->totalsForAllResults; - } +class Google_Service_Analytics_McfData extends Google_Collection { + protected $columnHeadersType = 'Google_Service_Analytics_McfDataColumnHeaders'; + protected $columnHeadersDataType = 'array'; + public $containsSampledData; + public $id; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + protected $profileInfoType = 'Google_Service_Analytics_McfDataProfileInfo'; + protected $profileInfoDataType = ''; + protected $queryType = 'Google_Service_Analytics_McfDataQuery'; + protected $queryDataType = ''; + protected $rowsType = 'Google_Service_Analytics_McfDataRows'; + protected $rowsDataType = 'array'; + public $sampleSize; + public $sampleSpace; + public $selfLink; + public $totalResults; + public $totalsForAllResults; + + public function setColumnHeaders($columnHeaders) { + $this->columnHeaders = $columnHeaders; + } + + public function getColumnHeaders() { + return $this->columnHeaders; + } + + public function setContainsSampledData($containsSampledData) { + $this->containsSampledData = $containsSampledData; + } + + public function getContainsSampledData() { + return $this->containsSampledData; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setProfileInfo(Google_Service_Analytics_McfDataProfileInfo $profileInfo) { + $this->profileInfo = $profileInfo; + } + + public function getProfileInfo() { + return $this->profileInfo; + } + + public function setQuery(Google_Service_Analytics_McfDataQuery $query) { + $this->query = $query; + } + + public function getQuery() { + return $this->query; + } + + public function setRows($rows) { + $this->rows = $rows; + } + + public function getRows() { + return $this->rows; + } + + public function setSampleSize($sampleSize) { + $this->sampleSize = $sampleSize; + } + + public function getSampleSize() { + return $this->sampleSize; + } + + public function setSampleSpace($sampleSpace) { + $this->sampleSpace = $sampleSpace; + } + + public function getSampleSpace() { + return $this->sampleSpace; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setTotalsForAllResults($totalsForAllResults) { + $this->totalsForAllResults = $totalsForAllResults; + } + + public function getTotalsForAllResults() { + return $this->totalsForAllResults; + } } -class Google_Service_Analytics_McfDataColumnHeaders extends Google_Model -{ - public $columnType; - public $dataType; - public $name; - - public function setColumnType($columnType) - { - $this->columnType = $columnType; - } - - public function getColumnType() - { - return $this->columnType; - } - - public function setDataType($dataType) - { - $this->dataType = $dataType; - } - - public function getDataType() - { - return $this->dataType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } +class Google_Service_Analytics_McfDataColumnHeaders extends Google_Model { + public $columnType; + public $dataType; + public $name; + + public function setColumnType($columnType) { + $this->columnType = $columnType; + } + + public function getColumnType() { + return $this->columnType; + } + + public function setDataType($dataType) { + $this->dataType = $dataType; + } + + public function getDataType() { + return $this->dataType; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } } -class Google_Service_Analytics_McfDataProfileInfo extends Google_Model -{ - public $accountId; - public $internalWebPropertyId; - public $profileId; - public $profileName; - public $tableId; - public $webPropertyId; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - - public function getProfileId() - { - return $this->profileId; - } - - public function setProfileName($profileName) - { - $this->profileName = $profileName; - } - - public function getProfileName() - { - return $this->profileName; - } - - public function setTableId($tableId) - { - $this->tableId = $tableId; - } - - public function getTableId() - { - return $this->tableId; - } - - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - - public function getWebPropertyId() - { - return $this->webPropertyId; - } +class Google_Service_Analytics_McfDataProfileInfo extends Google_Model { + public $accountId; + public $internalWebPropertyId; + public $profileId; + public $profileName; + public $tableId; + public $webPropertyId; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setInternalWebPropertyId($internalWebPropertyId) { + $this->internalWebPropertyId = $internalWebPropertyId; + } + + public function getInternalWebPropertyId() { + return $this->internalWebPropertyId; + } + + public function setProfileId($profileId) { + $this->profileId = $profileId; + } + + public function getProfileId() { + return $this->profileId; + } + + public function setProfileName($profileName) { + $this->profileName = $profileName; + } + + public function getProfileName() { + return $this->profileName; + } + + public function setTableId($tableId) { + $this->tableId = $tableId; + } + + public function getTableId() { + return $this->tableId; + } + + public function setWebPropertyId($webPropertyId) { + $this->webPropertyId = $webPropertyId; + } + + public function getWebPropertyId() { + return $this->webPropertyId; + } } -class Google_Service_Analytics_McfDataQuery extends Google_Collection -{ - public $dimensions; - public $endDate; - public $filters; - public $ids; - public $maxResults; - public $metrics; - public $samplingLevel; - public $segment; - public $sort; - public $startDate; - public $startIndex; - - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - - public function getDimensions() - { - return $this->dimensions; - } - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - - public function getEndDate() - { - return $this->endDate; - } - - public function setFilters($filters) - { - $this->filters = $filters; - } - - public function getFilters() - { - return $this->filters; - } - - public function setIds($ids) - { - $this->ids = $ids; - } - - public function getIds() - { - return $this->ids; - } - - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } - - public function getMaxResults() - { - return $this->maxResults; - } - - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - - public function getMetrics() - { - return $this->metrics; - } - - public function setSamplingLevel($samplingLevel) - { - $this->samplingLevel = $samplingLevel; - } - - public function getSamplingLevel() - { - return $this->samplingLevel; - } - - public function setSegment($segment) - { - $this->segment = $segment; - } - - public function getSegment() - { - return $this->segment; - } - - public function setSort($sort) - { - $this->sort = $sort; - } - - public function getSort() - { - return $this->sort; - } - - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - - public function getStartDate() - { - return $this->startDate; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } +class Google_Service_Analytics_McfDataQuery extends Google_Collection { + public $dimensions; + public $endDate; + public $filters; + public $ids; + public $maxResults; + public $metrics; + public $samplingLevel; + public $segment; + public $sort; + public $startDate; + public $startIndex; + + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } + + public function getDimensions() { + return $this->dimensions; + } + + public function setEndDate($endDate) { + $this->endDate = $endDate; + } + + public function getEndDate() { + return $this->endDate; + } + + public function setFilters($filters) { + $this->filters = $filters; + } + + public function getFilters() { + return $this->filters; + } + + public function setIds($ids) { + $this->ids = $ids; + } + + public function getIds() { + return $this->ids; + } + + public function setMaxResults($maxResults) { + $this->maxResults = $maxResults; + } + + public function getMaxResults() { + return $this->maxResults; + } + + public function setMetrics($metrics) { + $this->metrics = $metrics; + } + + public function getMetrics() { + return $this->metrics; + } + + public function setSamplingLevel($samplingLevel) { + $this->samplingLevel = $samplingLevel; + } + + public function getSamplingLevel() { + return $this->samplingLevel; + } + + public function setSegment($segment) { + $this->segment = $segment; + } + + public function getSegment() { + return $this->segment; + } + + public function setSort($sort) { + $this->sort = $sort; + } + + public function getSort() { + return $this->sort; + } + + public function setStartDate($startDate) { + $this->startDate = $startDate; + } + + public function getStartDate() { + return $this->startDate; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } } -class Google_Service_Analytics_McfDataRows extends Google_Collection -{ - protected $conversionPathValueType = 'Google_Service_Analytics_McfDataRowsConversionPathValue'; - protected $conversionPathValueDataType = 'array'; - public $primitiveValue; - - public function setConversionPathValue($conversionPathValue) - { - $this->conversionPathValue = $conversionPathValue; - } - - public function getConversionPathValue() - { - return $this->conversionPathValue; - } - - public function setPrimitiveValue($primitiveValue) - { - $this->primitiveValue = $primitiveValue; - } - - public function getPrimitiveValue() - { - return $this->primitiveValue; - } +class Google_Service_Analytics_McfDataRows extends Google_Collection { + protected $conversionPathValueType = 'Google_Service_Analytics_McfDataRowsConversionPathValue'; + protected $conversionPathValueDataType = 'array'; + public $primitiveValue; + + public function setConversionPathValue($conversionPathValue) { + $this->conversionPathValue = $conversionPathValue; + } + + public function getConversionPathValue() { + return $this->conversionPathValue; + } + + public function setPrimitiveValue($primitiveValue) { + $this->primitiveValue = $primitiveValue; + } + + public function getPrimitiveValue() { + return $this->primitiveValue; + } } -class Google_Service_Analytics_McfDataRowsConversionPathValue extends Google_Model -{ - public $interactionType; - public $nodeValue; - - public function setInteractionType($interactionType) - { - $this->interactionType = $interactionType; - } - - public function getInteractionType() - { - return $this->interactionType; - } - - public function setNodeValue($nodeValue) - { - $this->nodeValue = $nodeValue; - } - - public function getNodeValue() - { - return $this->nodeValue; - } +class Google_Service_Analytics_McfDataRowsConversionPathValue extends Google_Model { + public $interactionType; + public $nodeValue; + + public function setInteractionType($interactionType) { + $this->interactionType = $interactionType; + } + + public function getInteractionType() { + return $this->interactionType; + } + + public function setNodeValue($nodeValue) { + $this->nodeValue = $nodeValue; + } + + public function getNodeValue() { + return $this->nodeValue; + } } -class Google_Service_Analytics_McfDataTotalsForAllResults extends Google_Model -{ +class Google_Service_Analytics_McfDataTotalsForAllResults extends Google_Model { } -class Google_Service_Analytics_Profile extends Google_Model -{ - public $accountId; - protected $childLinkType = 'Google_Service_Analytics_ProfileChildLink'; - protected $childLinkDataType = ''; - public $created; - public $currency; - public $defaultPage; - public $eCommerceTracking; - public $excludeQueryParameters; - public $id; - public $internalWebPropertyId; - public $kind; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_ProfileParentLink'; - protected $parentLinkDataType = ''; - protected $permissionsType = 'Google_Service_Analytics_ProfilePermissions'; - protected $permissionsDataType = ''; - public $selfLink; - public $siteSearchCategoryParameters; - public $siteSearchQueryParameters; - public $stripSiteSearchCategoryParameters; - public $stripSiteSearchQueryParameters; - public $timezone; - public $type; - public $updated; - public $webPropertyId; - public $websiteUrl; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setChildLink(Google_Service_Analytics_ProfileChildLink $childLink) - { - $this->childLink = $childLink; - } - - public function getChildLink() - { - return $this->childLink; - } - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setCurrency($currency) - { - $this->currency = $currency; - } - - public function getCurrency() - { - return $this->currency; - } - - public function setDefaultPage($defaultPage) - { - $this->defaultPage = $defaultPage; - } - - public function getDefaultPage() - { - return $this->defaultPage; - } - - public function setECommerceTracking($eCommerceTracking) - { - $this->eCommerceTracking = $eCommerceTracking; - } - - public function getECommerceTracking() - { - return $this->eCommerceTracking; - } - - public function setExcludeQueryParameters($excludeQueryParameters) - { - $this->excludeQueryParameters = $excludeQueryParameters; - } - - public function getExcludeQueryParameters() - { - return $this->excludeQueryParameters; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setParentLink(Google_Service_Analytics_ProfileParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - - public function getParentLink() - { - return $this->parentLink; - } - - public function setPermissions(Google_Service_Analytics_ProfilePermissions $permissions) - { - $this->permissions = $permissions; - } - - public function getPermissions() - { - return $this->permissions; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setSiteSearchCategoryParameters($siteSearchCategoryParameters) - { - $this->siteSearchCategoryParameters = $siteSearchCategoryParameters; - } - - public function getSiteSearchCategoryParameters() - { - return $this->siteSearchCategoryParameters; - } - - public function setSiteSearchQueryParameters($siteSearchQueryParameters) - { - $this->siteSearchQueryParameters = $siteSearchQueryParameters; - } - - public function getSiteSearchQueryParameters() - { - return $this->siteSearchQueryParameters; - } - - public function setStripSiteSearchCategoryParameters($stripSiteSearchCategoryParameters) - { - $this->stripSiteSearchCategoryParameters = $stripSiteSearchCategoryParameters; - } - - public function getStripSiteSearchCategoryParameters() - { - return $this->stripSiteSearchCategoryParameters; - } - - public function setStripSiteSearchQueryParameters($stripSiteSearchQueryParameters) - { - $this->stripSiteSearchQueryParameters = $stripSiteSearchQueryParameters; - } - - public function getStripSiteSearchQueryParameters() - { - return $this->stripSiteSearchQueryParameters; - } - - public function setTimezone($timezone) - { - $this->timezone = $timezone; - } - - public function getTimezone() - { - return $this->timezone; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - - public function getWebPropertyId() - { - return $this->webPropertyId; - } - - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - - public function getWebsiteUrl() - { - return $this->websiteUrl; - } +class Google_Service_Analytics_Profile extends Google_Model { + public $accountId; + protected $childLinkType = 'Google_Service_Analytics_ProfileChildLink'; + protected $childLinkDataType = ''; + public $created; + public $currency; + public $defaultPage; + public $eCommerceTracking; + public $excludeQueryParameters; + public $id; + public $internalWebPropertyId; + public $kind; + public $name; + protected $parentLinkType = 'Google_Service_Analytics_ProfileParentLink'; + protected $parentLinkDataType = ''; + protected $permissionsType = 'Google_Service_Analytics_ProfilePermissions'; + protected $permissionsDataType = ''; + public $selfLink; + public $siteSearchCategoryParameters; + public $siteSearchQueryParameters; + public $stripSiteSearchCategoryParameters; + public $stripSiteSearchQueryParameters; + public $timezone; + public $type; + public $updated; + public $webPropertyId; + public $websiteUrl; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setChildLink(Google_Service_Analytics_ProfileChildLink $childLink) { + $this->childLink = $childLink; + } + + public function getChildLink() { + return $this->childLink; + } + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setCurrency($currency) { + $this->currency = $currency; + } + + public function getCurrency() { + return $this->currency; + } + + public function setDefaultPage($defaultPage) { + $this->defaultPage = $defaultPage; + } + + public function getDefaultPage() { + return $this->defaultPage; + } + + public function setECommerceTracking($eCommerceTracking) { + $this->eCommerceTracking = $eCommerceTracking; + } + + public function getECommerceTracking() { + return $this->eCommerceTracking; + } + + public function setExcludeQueryParameters($excludeQueryParameters) { + $this->excludeQueryParameters = $excludeQueryParameters; + } + + public function getExcludeQueryParameters() { + return $this->excludeQueryParameters; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInternalWebPropertyId($internalWebPropertyId) { + $this->internalWebPropertyId = $internalWebPropertyId; + } + + public function getInternalWebPropertyId() { + return $this->internalWebPropertyId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setParentLink(Google_Service_Analytics_ProfileParentLink $parentLink) { + $this->parentLink = $parentLink; + } + + public function getParentLink() { + return $this->parentLink; + } + + public function setPermissions(Google_Service_Analytics_ProfilePermissions $permissions) { + $this->permissions = $permissions; + } + + public function getPermissions() { + return $this->permissions; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setSiteSearchCategoryParameters($siteSearchCategoryParameters) { + $this->siteSearchCategoryParameters = $siteSearchCategoryParameters; + } + + public function getSiteSearchCategoryParameters() { + return $this->siteSearchCategoryParameters; + } + + public function setSiteSearchQueryParameters($siteSearchQueryParameters) { + $this->siteSearchQueryParameters = $siteSearchQueryParameters; + } + + public function getSiteSearchQueryParameters() { + return $this->siteSearchQueryParameters; + } + + public function setStripSiteSearchCategoryParameters($stripSiteSearchCategoryParameters) { + $this->stripSiteSearchCategoryParameters = $stripSiteSearchCategoryParameters; + } + + public function getStripSiteSearchCategoryParameters() { + return $this->stripSiteSearchCategoryParameters; + } + + public function setStripSiteSearchQueryParameters($stripSiteSearchQueryParameters) { + $this->stripSiteSearchQueryParameters = $stripSiteSearchQueryParameters; + } + + public function getStripSiteSearchQueryParameters() { + return $this->stripSiteSearchQueryParameters; + } + + public function setTimezone($timezone) { + $this->timezone = $timezone; + } + + public function getTimezone() { + return $this->timezone; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setWebPropertyId($webPropertyId) { + $this->webPropertyId = $webPropertyId; + } + + public function getWebPropertyId() { + return $this->webPropertyId; + } + + public function setWebsiteUrl($websiteUrl) { + $this->websiteUrl = $websiteUrl; + } + + public function getWebsiteUrl() { + return $this->websiteUrl; + } } -class Google_Service_Analytics_ProfileChildLink extends Google_Model -{ - public $href; - public $type; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_ProfileChildLink extends Google_Model { + public $href; + public $type; + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_ProfileFilterLink extends Google_Model -{ - protected $filterRefType = 'Google_Service_Analytics_FilterRef'; - protected $filterRefDataType = ''; - public $id; - public $kind; - protected $profileRefType = 'Google_Service_Analytics_ProfileRef'; - protected $profileRefDataType = ''; - public $rank; - public $selfLink; - - public function setFilterRef(Google_Service_Analytics_FilterRef $filterRef) - { - $this->filterRef = $filterRef; - } - - public function getFilterRef() - { - return $this->filterRef; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef) - { - $this->profileRef = $profileRef; - } - - public function getProfileRef() - { - return $this->profileRef; - } - - public function setRank($rank) - { - $this->rank = $rank; - } - - public function getRank() - { - return $this->rank; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } +class Google_Service_Analytics_ProfileFilterLink extends Google_Model { + protected $filterRefType = 'Google_Service_Analytics_FilterRef'; + protected $filterRefDataType = ''; + public $id; + public $kind; + protected $profileRefType = 'Google_Service_Analytics_ProfileRef'; + protected $profileRefDataType = ''; + public $rank; + public $selfLink; + + public function setFilterRef(Google_Service_Analytics_FilterRef $filterRef) { + $this->filterRef = $filterRef; + } + + public function getFilterRef() { + return $this->filterRef; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef) { + $this->profileRef = $profileRef; + } + + public function getProfileRef() { + return $this->profileRef; + } + + public function setRank($rank) { + $this->rank = $rank; + } + + public function getRank() { + return $this->rank; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Analytics_ProfileFilterLinks extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_ProfileFilterLink'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_ProfileFilterLinks extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_ProfileFilterLink'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_ProfileParentLink extends Google_Model -{ - public $href; - public $type; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_ProfileParentLink extends Google_Model { + public $href; + public $type; + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_ProfilePermissions extends Google_Collection -{ - public $effective; +class Google_Service_Analytics_ProfilePermissions extends Google_Collection { + public $effective; - public function setEffective($effective) - { - $this->effective = $effective; - } + public function setEffective($effective) { + $this->effective = $effective; + } - public function getEffective() - { - return $this->effective; - } + public function getEffective() { + return $this->effective; + } } -class Google_Service_Analytics_ProfileRef extends Google_Model -{ - public $accountId; - public $href; - public $id; - public $internalWebPropertyId; - public $kind; - public $name; - public $webPropertyId; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - - public function getWebPropertyId() - { - return $this->webPropertyId; - } +class Google_Service_Analytics_ProfileRef extends Google_Model { + public $accountId; + public $href; + public $id; + public $internalWebPropertyId; + public $kind; + public $name; + public $webPropertyId; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInternalWebPropertyId($internalWebPropertyId) { + $this->internalWebPropertyId = $internalWebPropertyId; + } + + public function getInternalWebPropertyId() { + return $this->internalWebPropertyId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setWebPropertyId($webPropertyId) { + $this->webPropertyId = $webPropertyId; + } + + public function getWebPropertyId() { + return $this->webPropertyId; + } } -class Google_Service_Analytics_ProfileSummary extends Google_Model -{ - public $id; - public $kind; - public $name; - public $type; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_ProfileSummary extends Google_Model { + public $id; + public $kind; + public $name; + public $type; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_Profiles extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_Profile'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_Profiles extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_Profile'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_RealtimeData extends Google_Collection -{ - protected $columnHeadersType = 'Google_Service_Analytics_RealtimeDataColumnHeaders'; - protected $columnHeadersDataType = 'array'; - public $id; - public $kind; - protected $profileInfoType = 'Google_Service_Analytics_RealtimeDataProfileInfo'; - protected $profileInfoDataType = ''; - protected $queryType = 'Google_Service_Analytics_RealtimeDataQuery'; - protected $queryDataType = ''; - public $rows; - public $selfLink; - public $totalResults; - public $totalsForAllResults; - - public function setColumnHeaders($columnHeaders) - { - $this->columnHeaders = $columnHeaders; - } - - public function getColumnHeaders() - { - return $this->columnHeaders; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setProfileInfo(Google_Service_Analytics_RealtimeDataProfileInfo $profileInfo) - { - $this->profileInfo = $profileInfo; - } - - public function getProfileInfo() - { - return $this->profileInfo; - } - - public function setQuery(Google_Service_Analytics_RealtimeDataQuery $query) - { - $this->query = $query; - } - - public function getQuery() - { - return $this->query; - } - - public function setRows($rows) - { - $this->rows = $rows; - } - - public function getRows() - { - return $this->rows; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setTotalsForAllResults($totalsForAllResults) - { - $this->totalsForAllResults = $totalsForAllResults; - } - - public function getTotalsForAllResults() - { - return $this->totalsForAllResults; - } +class Google_Service_Analytics_RealtimeData extends Google_Collection { + protected $columnHeadersType = 'Google_Service_Analytics_RealtimeDataColumnHeaders'; + protected $columnHeadersDataType = 'array'; + public $id; + public $kind; + protected $profileInfoType = 'Google_Service_Analytics_RealtimeDataProfileInfo'; + protected $profileInfoDataType = ''; + protected $queryType = 'Google_Service_Analytics_RealtimeDataQuery'; + protected $queryDataType = ''; + public $rows; + public $selfLink; + public $totalResults; + public $totalsForAllResults; + + public function setColumnHeaders($columnHeaders) { + $this->columnHeaders = $columnHeaders; + } + + public function getColumnHeaders() { + return $this->columnHeaders; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setProfileInfo(Google_Service_Analytics_RealtimeDataProfileInfo $profileInfo) { + $this->profileInfo = $profileInfo; + } + + public function getProfileInfo() { + return $this->profileInfo; + } + + public function setQuery(Google_Service_Analytics_RealtimeDataQuery $query) { + $this->query = $query; + } + + public function getQuery() { + return $this->query; + } + + public function setRows($rows) { + $this->rows = $rows; + } + + public function getRows() { + return $this->rows; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setTotalsForAllResults($totalsForAllResults) { + $this->totalsForAllResults = $totalsForAllResults; + } + + public function getTotalsForAllResults() { + return $this->totalsForAllResults; + } } -class Google_Service_Analytics_RealtimeDataColumnHeaders extends Google_Model -{ - public $columnType; - public $dataType; - public $name; - - public function setColumnType($columnType) - { - $this->columnType = $columnType; - } - - public function getColumnType() - { - return $this->columnType; - } - - public function setDataType($dataType) - { - $this->dataType = $dataType; - } - - public function getDataType() - { - return $this->dataType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } +class Google_Service_Analytics_RealtimeDataColumnHeaders extends Google_Model { + public $columnType; + public $dataType; + public $name; + + public function setColumnType($columnType) { + $this->columnType = $columnType; + } + + public function getColumnType() { + return $this->columnType; + } + + public function setDataType($dataType) { + $this->dataType = $dataType; + } + + public function getDataType() { + return $this->dataType; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } } -class Google_Service_Analytics_RealtimeDataProfileInfo extends Google_Model -{ - public $accountId; - public $internalWebPropertyId; - public $profileId; - public $profileName; - public $tableId; - public $webPropertyId; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - - public function getProfileId() - { - return $this->profileId; - } - - public function setProfileName($profileName) - { - $this->profileName = $profileName; - } - - public function getProfileName() - { - return $this->profileName; - } - - public function setTableId($tableId) - { - $this->tableId = $tableId; - } - - public function getTableId() - { - return $this->tableId; - } - - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - - public function getWebPropertyId() - { - return $this->webPropertyId; - } +class Google_Service_Analytics_RealtimeDataProfileInfo extends Google_Model { + public $accountId; + public $internalWebPropertyId; + public $profileId; + public $profileName; + public $tableId; + public $webPropertyId; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setInternalWebPropertyId($internalWebPropertyId) { + $this->internalWebPropertyId = $internalWebPropertyId; + } + + public function getInternalWebPropertyId() { + return $this->internalWebPropertyId; + } + + public function setProfileId($profileId) { + $this->profileId = $profileId; + } + + public function getProfileId() { + return $this->profileId; + } + + public function setProfileName($profileName) { + $this->profileName = $profileName; + } + + public function getProfileName() { + return $this->profileName; + } + + public function setTableId($tableId) { + $this->tableId = $tableId; + } + + public function getTableId() { + return $this->tableId; + } + + public function setWebPropertyId($webPropertyId) { + $this->webPropertyId = $webPropertyId; + } + + public function getWebPropertyId() { + return $this->webPropertyId; + } } -class Google_Service_Analytics_RealtimeDataQuery extends Google_Collection -{ - public $dimensions; - public $filters; - public $ids; - public $maxResults; - public $metrics; - public $sort; - - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - - public function getDimensions() - { - return $this->dimensions; - } - - public function setFilters($filters) - { - $this->filters = $filters; - } - - public function getFilters() - { - return $this->filters; - } - - public function setIds($ids) - { - $this->ids = $ids; - } - - public function getIds() - { - return $this->ids; - } - - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } - - public function getMaxResults() - { - return $this->maxResults; - } - - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - - public function getMetrics() - { - return $this->metrics; - } - - public function setSort($sort) - { - $this->sort = $sort; - } - - public function getSort() - { - return $this->sort; - } +class Google_Service_Analytics_RealtimeDataQuery extends Google_Collection { + public $dimensions; + public $filters; + public $ids; + public $maxResults; + public $metrics; + public $sort; + + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } + + public function getDimensions() { + return $this->dimensions; + } + + public function setFilters($filters) { + $this->filters = $filters; + } + + public function getFilters() { + return $this->filters; + } + + public function setIds($ids) { + $this->ids = $ids; + } + + public function getIds() { + return $this->ids; + } + + public function setMaxResults($maxResults) { + $this->maxResults = $maxResults; + } + + public function getMaxResults() { + return $this->maxResults; + } + + public function setMetrics($metrics) { + $this->metrics = $metrics; + } + + public function getMetrics() { + return $this->metrics; + } + + public function setSort($sort) { + $this->sort = $sort; + } + + public function getSort() { + return $this->sort; + } } -class Google_Service_Analytics_RealtimeDataTotalsForAllResults extends Google_Model -{ +class Google_Service_Analytics_RealtimeDataTotalsForAllResults extends Google_Model { } -class Google_Service_Analytics_Segment extends Google_Model -{ - public $created; - public $definition; - public $id; - public $kind; - public $name; - public $segmentId; - public $selfLink; - public $type; - public $updated; - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setDefinition($definition) - { - $this->definition = $definition; - } - - public function getDefinition() - { - return $this->definition; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setSegmentId($segmentId) - { - $this->segmentId = $segmentId; - } - - public function getSegmentId() - { - return $this->segmentId; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } +class Google_Service_Analytics_Segment extends Google_Model { + public $created; + public $definition; + public $id; + public $kind; + public $name; + public $segmentId; + public $selfLink; + public $type; + public $updated; + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setDefinition($definition) { + $this->definition = $definition; + } + + public function getDefinition() { + return $this->definition; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setSegmentId($segmentId) { + $this->segmentId = $segmentId; + } + + public function getSegmentId() { + return $this->segmentId; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Analytics_Segments extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_Segment'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_Segments extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_Segment'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_UnsampledReport extends Google_Model -{ - public $accountId; - protected $cloudStorageDownloadDetailsType = 'Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails'; - protected $cloudStorageDownloadDetailsDataType = ''; - public $created; - public $dimensions; - public $downloadType; - protected $driveDownloadDetailsType = 'Google_Service_Analytics_UnsampledReportDriveDownloadDetails'; - protected $driveDownloadDetailsDataType = ''; - public $endDate; - public $filters; - public $id; - public $kind; - public $metrics; - public $profileId; - public $segment; - public $selfLink; - public $startDate; - public $status; - public $title; - public $updated; - public $webPropertyId; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setCloudStorageDownloadDetails(Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails $cloudStorageDownloadDetails) - { - $this->cloudStorageDownloadDetails = $cloudStorageDownloadDetails; - } - - public function getCloudStorageDownloadDetails() - { - return $this->cloudStorageDownloadDetails; - } - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - - public function getDimensions() - { - return $this->dimensions; - } - - public function setDownloadType($downloadType) - { - $this->downloadType = $downloadType; - } - - public function getDownloadType() - { - return $this->downloadType; - } - - public function setDriveDownloadDetails(Google_Service_Analytics_UnsampledReportDriveDownloadDetails $driveDownloadDetails) - { - $this->driveDownloadDetails = $driveDownloadDetails; - } - - public function getDriveDownloadDetails() - { - return $this->driveDownloadDetails; - } - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - - public function getEndDate() - { - return $this->endDate; - } - - public function setFilters($filters) - { - $this->filters = $filters; - } - - public function getFilters() - { - return $this->filters; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } - - public function getMetrics() - { - return $this->metrics; - } - - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } - - public function getProfileId() - { - return $this->profileId; - } - - public function setSegment($segment) - { - $this->segment = $segment; - } - - public function getSegment() - { - return $this->segment; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - - public function getStartDate() - { - return $this->startDate; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setWebPropertyId($webPropertyId) - { - $this->webPropertyId = $webPropertyId; - } - - public function getWebPropertyId() - { - return $this->webPropertyId; - } +class Google_Service_Analytics_UnsampledReport extends Google_Model { + public $accountId; + protected $cloudStorageDownloadDetailsType = 'Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails'; + protected $cloudStorageDownloadDetailsDataType = ''; + public $created; + public $dimensions; + public $downloadType; + protected $driveDownloadDetailsType = 'Google_Service_Analytics_UnsampledReportDriveDownloadDetails'; + protected $driveDownloadDetailsDataType = ''; + public $endDate; + public $filters; + public $id; + public $kind; + public $metrics; + public $profileId; + public $segment; + public $selfLink; + public $startDate; + public $status; + public $title; + public $updated; + public $webPropertyId; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setCloudStorageDownloadDetails(Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails $cloudStorageDownloadDetails) { + $this->cloudStorageDownloadDetails = $cloudStorageDownloadDetails; + } + + public function getCloudStorageDownloadDetails() { + return $this->cloudStorageDownloadDetails; + } + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } + + public function getDimensions() { + return $this->dimensions; + } + + public function setDownloadType($downloadType) { + $this->downloadType = $downloadType; + } + + public function getDownloadType() { + return $this->downloadType; + } + + public function setDriveDownloadDetails(Google_Service_Analytics_UnsampledReportDriveDownloadDetails $driveDownloadDetails) { + $this->driveDownloadDetails = $driveDownloadDetails; + } + + public function getDriveDownloadDetails() { + return $this->driveDownloadDetails; + } + + public function setEndDate($endDate) { + $this->endDate = $endDate; + } + + public function getEndDate() { + return $this->endDate; + } + + public function setFilters($filters) { + $this->filters = $filters; + } + + public function getFilters() { + return $this->filters; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMetrics($metrics) { + $this->metrics = $metrics; + } + + public function getMetrics() { + return $this->metrics; + } + + public function setProfileId($profileId) { + $this->profileId = $profileId; + } + + public function getProfileId() { + return $this->profileId; + } + + public function setSegment($segment) { + $this->segment = $segment; + } + + public function getSegment() { + return $this->segment; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setStartDate($startDate) { + $this->startDate = $startDate; + } + + public function getStartDate() { + return $this->startDate; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setWebPropertyId($webPropertyId) { + $this->webPropertyId = $webPropertyId; + } + + public function getWebPropertyId() { + return $this->webPropertyId; + } } -class Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails extends Google_Model -{ - public $bucketId; - public $objectId; - - public function setBucketId($bucketId) - { - $this->bucketId = $bucketId; - } - - public function getBucketId() - { - return $this->bucketId; - } - - public function setObjectId($objectId) - { - $this->objectId = $objectId; - } - - public function getObjectId() - { - return $this->objectId; - } +class Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails extends Google_Model { + public $bucketId; + public $objectId; + + public function setBucketId($bucketId) { + $this->bucketId = $bucketId; + } + + public function getBucketId() { + return $this->bucketId; + } + + public function setObjectId($objectId) { + $this->objectId = $objectId; + } + + public function getObjectId() { + return $this->objectId; + } } -class Google_Service_Analytics_UnsampledReportDriveDownloadDetails extends Google_Model -{ - public $documentId; +class Google_Service_Analytics_UnsampledReportDriveDownloadDetails extends Google_Model { + public $documentId; - public function setDocumentId($documentId) - { - $this->documentId = $documentId; - } + public function setDocumentId($documentId) { + $this->documentId = $documentId; + } - public function getDocumentId() - { - return $this->documentId; - } + public function getDocumentId() { + return $this->documentId; + } } -class Google_Service_Analytics_UnsampledReports extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_UnsampledReport'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_UnsampledReports extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_UnsampledReport'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_Upload extends Google_Collection -{ - public $accountId; - public $customDataSourceId; - public $errors; - public $id; - public $kind; - public $status; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setCustomDataSourceId($customDataSourceId) - { - $this->customDataSourceId = $customDataSourceId; - } - - public function getCustomDataSourceId() - { - return $this->customDataSourceId; - } - - public function setErrors($errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } +class Google_Service_Analytics_Upload extends Google_Collection { + public $accountId; + public $customDataSourceId; + public $errors; + public $id; + public $kind; + public $status; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setCustomDataSourceId($customDataSourceId) { + $this->customDataSourceId = $customDataSourceId; + } + + public function getCustomDataSourceId() { + return $this->customDataSourceId; + } + + public function setErrors($errors) { + $this->errors = $errors; + } + + public function getErrors() { + return $this->errors; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } } -class Google_Service_Analytics_Uploads extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_Upload'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } +class Google_Service_Analytics_Uploads extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_Upload'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } } -class Google_Service_Analytics_UserRef extends Google_Model -{ - public $email; - public $id; - public $kind; - - public function setEmail($email) - { - $this->email = $email; - } - - public function getEmail() - { - return $this->email; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Analytics_UserRef extends Google_Model { + public $email; + public $id; + public $kind; + + public function setEmail($email) { + $this->email = $email; + } + + public function getEmail() { + return $this->email; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Analytics_WebPropertyRef extends Google_Model -{ - public $accountId; - public $href; - public $id; - public $internalWebPropertyId; - public $kind; - public $name; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } +class Google_Service_Analytics_WebPropertyRef extends Google_Model { + public $accountId; + public $href; + public $id; + public $internalWebPropertyId; + public $kind; + public $name; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInternalWebPropertyId($internalWebPropertyId) { + $this->internalWebPropertyId = $internalWebPropertyId; + } + + public function getInternalWebPropertyId() { + return $this->internalWebPropertyId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } } -class Google_Service_Analytics_WebPropertySummary extends Google_Collection -{ - public $id; - public $internalWebPropertyId; - public $kind; - public $level; - public $name; - protected $profilesType = 'Google_Service_Analytics_ProfileSummary'; - protected $profilesDataType = 'array'; - public $websiteUrl; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLevel($level) - { - $this->level = $level; - } - - public function getLevel() - { - return $this->level; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setProfiles($profiles) - { - $this->profiles = $profiles; - } - - public function getProfiles() - { - return $this->profiles; - } - - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - - public function getWebsiteUrl() - { - return $this->websiteUrl; - } +class Google_Service_Analytics_WebPropertySummary extends Google_Collection { + public $id; + public $internalWebPropertyId; + public $kind; + public $level; + public $name; + protected $profilesType = 'Google_Service_Analytics_ProfileSummary'; + protected $profilesDataType = 'array'; + public $websiteUrl; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInternalWebPropertyId($internalWebPropertyId) { + $this->internalWebPropertyId = $internalWebPropertyId; + } + + public function getInternalWebPropertyId() { + return $this->internalWebPropertyId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLevel($level) { + $this->level = $level; + } + + public function getLevel() { + return $this->level; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setProfiles($profiles) { + $this->profiles = $profiles; + } + + public function getProfiles() { + return $this->profiles; + } + + public function setWebsiteUrl($websiteUrl) { + $this->websiteUrl = $websiteUrl; + } + + public function getWebsiteUrl() { + return $this->websiteUrl; + } } -class Google_Service_Analytics_Webproperties extends Google_Collection -{ - protected $itemsType = 'Google_Service_Analytics_Webproperty'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextLink; - public $previousLink; - public $startIndex; - public $totalResults; - public $username; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } - - public function getItemsPerPage() - { - return $this->itemsPerPage; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } - - public function getNextLink() - { - return $this->nextLink; - } - - public function setPreviousLink($previousLink) - { - $this->previousLink = $previousLink; - } - - public function getPreviousLink() - { - return $this->previousLink; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } +class Google_Service_Analytics_Webproperties extends Google_Collection { + protected $itemsType = 'Google_Service_Analytics_Webproperty'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } + + public function getItemsPerPage() { + return $this->itemsPerPage; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } + + public function getNextLink() { + return $this->nextLink; + } + + public function setPreviousLink($previousLink) { + $this->previousLink = $previousLink; + } + + public function getPreviousLink() { + return $this->previousLink; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } } -class Google_Service_Analytics_Webproperty extends Google_Model -{ - public $accountId; - protected $childLinkType = 'Google_Service_Analytics_WebpropertyChildLink'; - protected $childLinkDataType = ''; - public $created; - public $defaultProfileId; - public $id; - public $industryVertical; - public $internalWebPropertyId; - public $kind; - public $level; - public $name; - protected $parentLinkType = 'Google_Service_Analytics_WebpropertyParentLink'; - protected $parentLinkDataType = ''; - protected $permissionsType = 'Google_Service_Analytics_WebpropertyPermissions'; - protected $permissionsDataType = ''; - public $profileCount; - public $selfLink; - public $updated; - public $websiteUrl; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setChildLink(Google_Service_Analytics_WebpropertyChildLink $childLink) - { - $this->childLink = $childLink; - } - - public function getChildLink() - { - return $this->childLink; - } - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setDefaultProfileId($defaultProfileId) - { - $this->defaultProfileId = $defaultProfileId; - } - - public function getDefaultProfileId() - { - return $this->defaultProfileId; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setIndustryVertical($industryVertical) - { - $this->industryVertical = $industryVertical; - } - - public function getIndustryVertical() - { - return $this->industryVertical; - } - - public function setInternalWebPropertyId($internalWebPropertyId) - { - $this->internalWebPropertyId = $internalWebPropertyId; - } - - public function getInternalWebPropertyId() - { - return $this->internalWebPropertyId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLevel($level) - { - $this->level = $level; - } - - public function getLevel() - { - return $this->level; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setParentLink(Google_Service_Analytics_WebpropertyParentLink $parentLink) - { - $this->parentLink = $parentLink; - } - - public function getParentLink() - { - return $this->parentLink; - } - - public function setPermissions(Google_Service_Analytics_WebpropertyPermissions $permissions) - { - $this->permissions = $permissions; - } - - public function getPermissions() - { - return $this->permissions; - } - - public function setProfileCount($profileCount) - { - $this->profileCount = $profileCount; - } - - public function getProfileCount() - { - return $this->profileCount; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - - public function getWebsiteUrl() - { - return $this->websiteUrl; - } +class Google_Service_Analytics_Webproperty extends Google_Model { + public $accountId; + protected $childLinkType = 'Google_Service_Analytics_WebpropertyChildLink'; + protected $childLinkDataType = ''; + public $created; + public $defaultProfileId; + public $id; + public $industryVertical; + public $internalWebPropertyId; + public $kind; + public $level; + public $name; + protected $parentLinkType = 'Google_Service_Analytics_WebpropertyParentLink'; + protected $parentLinkDataType = ''; + protected $permissionsType = 'Google_Service_Analytics_WebpropertyPermissions'; + protected $permissionsDataType = ''; + public $profileCount; + public $selfLink; + public $updated; + public $websiteUrl; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setChildLink(Google_Service_Analytics_WebpropertyChildLink $childLink) { + $this->childLink = $childLink; + } + + public function getChildLink() { + return $this->childLink; + } + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setDefaultProfileId($defaultProfileId) { + $this->defaultProfileId = $defaultProfileId; + } + + public function getDefaultProfileId() { + return $this->defaultProfileId; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setIndustryVertical($industryVertical) { + $this->industryVertical = $industryVertical; + } + + public function getIndustryVertical() { + return $this->industryVertical; + } + + public function setInternalWebPropertyId($internalWebPropertyId) { + $this->internalWebPropertyId = $internalWebPropertyId; + } + + public function getInternalWebPropertyId() { + return $this->internalWebPropertyId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLevel($level) { + $this->level = $level; + } + + public function getLevel() { + return $this->level; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setParentLink(Google_Service_Analytics_WebpropertyParentLink $parentLink) { + $this->parentLink = $parentLink; + } + + public function getParentLink() { + return $this->parentLink; + } + + public function setPermissions(Google_Service_Analytics_WebpropertyPermissions $permissions) { + $this->permissions = $permissions; + } + + public function getPermissions() { + return $this->permissions; + } + + public function setProfileCount($profileCount) { + $this->profileCount = $profileCount; + } + + public function getProfileCount() { + return $this->profileCount; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setWebsiteUrl($websiteUrl) { + $this->websiteUrl = $websiteUrl; + } + + public function getWebsiteUrl() { + return $this->websiteUrl; + } } -class Google_Service_Analytics_WebpropertyChildLink extends Google_Model -{ - public $href; - public $type; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_WebpropertyChildLink extends Google_Model { + public $href; + public $type; + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_WebpropertyParentLink extends Google_Model -{ - public $href; - public $type; - - public function setHref($href) - { - $this->href = $href; - } - - public function getHref() - { - return $this->href; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Analytics_WebpropertyParentLink extends Google_Model { + public $href; + public $type; + + public function setHref($href) { + $this->href = $href; + } + + public function getHref() { + return $this->href; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_Analytics_WebpropertyPermissions extends Google_Collection -{ - public $effective; +class Google_Service_Analytics_WebpropertyPermissions extends Google_Collection { + public $effective; - public function setEffective($effective) - { - $this->effective = $effective; - } + public function setEffective($effective) { + $this->effective = $effective; + } - public function getEffective() - { - return $this->effective; - } + public function getEffective() { + return $this->effective; + } } diff --git a/oauth/Google/Service/AndroidPublisher.php b/oauth/Google/Service/AndroidPublisher.php index 41a94e0..4518a0a 100644 --- a/oauth/Google/Service/AndroidPublisher.php +++ b/oauth/Google/Service/AndroidPublisher.php @@ -29,1046 +29,1044 @@ * * @author Google, Inc. */ -class Google_Service_AndroidPublisher extends Google_Service -{ - /** View and manage your Google Play Android Developer account. */ - const ANDROIDPUBLISHER = "https://www.googleapis.com/auth/androidpublisher"; +class Google_Service_AndroidPublisher extends Google_Service { + /** View and manage your Google Play Android Developer account. */ + const ANDROIDPUBLISHER = "https://www.googleapis.com/auth/androidpublisher"; - public $edits; - public $edits_apklistings; - public $edits_apks; - public $edits_details; - public $edits_expansionfiles; - public $edits_images; - public $edits_listings; - public $edits_testers; - public $edits_tracks; - public $inappproducts; - public $purchases_products; - public $purchases_subscriptions; - + public $edits; + public $edits_apklistings; + public $edits_apks; + public $edits_details; + public $edits_expansionfiles; + public $edits_images; + public $edits_listings; + public $edits_testers; + public $edits_tracks; + public $inappproducts; + public $purchases_products; + public $purchases_subscriptions; - /** - * Constructs the internal representation of the AndroidPublisher service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'androidpublisher/v2/applications/'; - $this->version = 'v2'; - $this->serviceName = 'androidpublisher'; - $this->edits = new Google_Service_AndroidPublisher_Edits_Resource( - $this, - $this->serviceName, - 'edits', - array( - 'methods' => array( - 'commit' => array( - 'path' => '{packageName}/edits/{editId}:commit', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{packageName}/edits/{editId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{packageName}/edits/{editId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{packageName}/edits', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_apklistings = new Google_Service_AndroidPublisher_EditsApklistings_Resource( - $this, - $this->serviceName, - 'apklistings', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteall' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_apks = new Google_Service_AndroidPublisher_EditsApks_Resource( - $this, - $this->serviceName, - 'apks', - array( - 'methods' => array( - 'list' => array( - 'path' => '{packageName}/edits/{editId}/apks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => '{packageName}/edits/{editId}/apks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_details = new Google_Service_AndroidPublisher_EditsDetails_Resource( - $this, - $this->serviceName, - 'details', - array( - 'methods' => array( - 'get' => array( - 'path' => '{packageName}/edits/{editId}/details', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/details', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/details', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_expansionfiles = new Google_Service_AndroidPublisher_EditsExpansionfiles_Resource( - $this, - $this->serviceName, - 'expansionfiles', - array( - 'methods' => array( - 'get' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'expansionFileType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'expansionFileType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'expansionFileType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'expansionFileType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_images = new Google_Service_AndroidPublisher_EditsImages_Resource( - $this, - $this->serviceName, - 'images', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'imageType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'imageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteall' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'imageType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'imageType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'imageType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_listings = new Google_Service_AndroidPublisher_EditsListings_Resource( - $this, - $this->serviceName, - 'listings', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteall' => array( - 'path' => '{packageName}/edits/{editId}/listings', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{packageName}/edits/{editId}/listings', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/listings/{language}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_testers = new Google_Service_AndroidPublisher_EditsTesters_Resource( - $this, - $this->serviceName, - 'testers', - array( - 'methods' => array( - 'get' => array( - 'path' => '{packageName}/edits/{editId}/testers/{track}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/testers/{track}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/testers/{track}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->edits_tracks = new Google_Service_AndroidPublisher_EditsTracks_Resource( - $this, - $this->serviceName, - 'tracks', - array( - 'methods' => array( - 'get' => array( - 'path' => '{packageName}/edits/{editId}/tracks/{track}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{packageName}/edits/{editId}/tracks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/tracks/{track}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/tracks/{track}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'track' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->inappproducts = new Google_Service_AndroidPublisher_Inappproducts_Resource( - $this, - $this->serviceName, - 'inappproducts', - array( - 'methods' => array( - 'batch' => array( - 'path' => 'inappproducts/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => '{packageName}/inappproducts/{sku}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sku' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{packageName}/inappproducts/{sku}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sku' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{packageName}/inappproducts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoConvertMissingPrices' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => '{packageName}/inappproducts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'token' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{packageName}/inappproducts/{sku}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sku' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoConvertMissingPrices' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => '{packageName}/inappproducts/{sku}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sku' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoConvertMissingPrices' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->purchases_products = new Google_Service_AndroidPublisher_PurchasesProducts_Resource( - $this, - $this->serviceName, - 'products', - array( - 'methods' => array( - 'get' => array( - 'path' => '{packageName}/purchases/products/{productId}/tokens/{token}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'token' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->purchases_subscriptions = new Google_Service_AndroidPublisher_PurchasesSubscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'cancel' => array( - 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'token' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'token' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the AndroidPublisher service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'androidpublisher/v2/applications/'; + $this->version = 'v2'; + $this->serviceName = 'androidpublisher'; + + $this->edits = new Google_Service_AndroidPublisher_Edits_Resource( + $this, + $this->serviceName, + 'edits', + array( + 'methods' => array( + 'commit' => array( + 'path' => '{packageName}/edits/{editId}:commit', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => '{packageName}/edits/{editId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{packageName}/edits/{editId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{packageName}/edits', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_apklistings = new Google_Service_AndroidPublisher_EditsApklistings_Resource( + $this, + $this->serviceName, + 'apklistings', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'deleteall' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_apks = new Google_Service_AndroidPublisher_EditsApks_Resource( + $this, + $this->serviceName, + 'apks', + array( + 'methods' => array( + 'list' => array( + 'path' => '{packageName}/edits/{editId}/apks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'upload' => array( + 'path' => '{packageName}/edits/{editId}/apks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_details = new Google_Service_AndroidPublisher_EditsDetails_Resource( + $this, + $this->serviceName, + 'details', + array( + 'methods' => array( + 'get' => array( + 'path' => '{packageName}/edits/{editId}/details', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => '{packageName}/edits/{editId}/details', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{packageName}/edits/{editId}/details', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_expansionfiles = new Google_Service_AndroidPublisher_EditsExpansionfiles_Resource( + $this, + $this->serviceName, + 'expansionfiles', + array( + 'methods' => array( + 'get' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'expansionFileType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'expansionFileType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'expansionFileType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'upload' => array( + 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'apkVersionCode' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'expansionFileType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_images = new Google_Service_AndroidPublisher_EditsImages_Resource( + $this, + $this->serviceName, + 'images', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'deleteall' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'upload' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_listings = new Google_Service_AndroidPublisher_EditsListings_Resource( + $this, + $this->serviceName, + 'listings', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'deleteall' => array( + 'path' => '{packageName}/edits/{editId}/listings', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{packageName}/edits/{editId}/listings', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{packageName}/edits/{editId}/listings/{language}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_testers = new Google_Service_AndroidPublisher_EditsTesters_Resource( + $this, + $this->serviceName, + 'testers', + array( + 'methods' => array( + 'get' => array( + 'path' => '{packageName}/edits/{editId}/testers/{track}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => '{packageName}/edits/{editId}/testers/{track}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{packageName}/edits/{editId}/testers/{track}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->edits_tracks = new Google_Service_AndroidPublisher_EditsTracks_Resource( + $this, + $this->serviceName, + 'tracks', + array( + 'methods' => array( + 'get' => array( + 'path' => '{packageName}/edits/{editId}/tracks/{track}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{packageName}/edits/{editId}/tracks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => '{packageName}/edits/{editId}/tracks/{track}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{packageName}/edits/{editId}/tracks/{track}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'track' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->inappproducts = new Google_Service_AndroidPublisher_Inappproducts_Resource( + $this, + $this->serviceName, + 'inappproducts', + array( + 'methods' => array( + 'batch' => array( + 'path' => 'inappproducts/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'delete' => array( + 'path' => '{packageName}/inappproducts/{sku}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sku' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{packageName}/inappproducts/{sku}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sku' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{packageName}/inappproducts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoConvertMissingPrices' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => '{packageName}/inappproducts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => '{packageName}/inappproducts/{sku}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sku' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoConvertMissingPrices' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'update' => array( + 'path' => '{packageName}/inappproducts/{sku}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sku' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoConvertMissingPrices' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->purchases_products = new Google_Service_AndroidPublisher_PurchasesProducts_Resource( + $this, + $this->serviceName, + 'products', + array( + 'methods' => array( + 'get' => array( + 'path' => '{packageName}/purchases/products/{productId}/tokens/{token}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->purchases_subscriptions = new Google_Service_AndroidPublisher_PurchasesSubscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'cancel' => array( + 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -1080,75 +1078,73 @@ class Google_Service_AndroidPublisher extends Google_Service * $edits = $androidpublisherService->edits; * */ -class Google_Service_AndroidPublisher_Edits_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_Edits_Resource extends Google_Service_Resource { - /** - * Commits/applies the changes made in this edit back to the app. (edits.commit) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppEdit - */ - public function commit($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('commit', array($params), "Google_Service_AndroidPublisher_AppEdit"); - } - /** - * Deletes an edit for an app. Creating a new edit will automatically delete any - * of your previous edits so this method need only be called if you want to - * preemptively abandon an edit. (edits.delete) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param array $optParams Optional parameters. - */ - public function delete($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns information about the edit specified. Calls will fail if the edit is - * no long active (e.g. has been deleted, superseded or expired). (edits.get) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppEdit - */ - public function get($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppEdit"); - } - /** - * Creates a new edit for an app, populated with the app's current state. - * (edits.insert) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param Google_AppEdit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppEdit - */ - public function insert($packageName, Google_Service_AndroidPublisher_AppEdit $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AndroidPublisher_AppEdit"); - } + /** + * Commits/applies the changes made in this edit back to the app. (edits.commit) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppEdit + */ + public function commit($packageName, $editId, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('commit', array($params), "Google_Service_AndroidPublisher_AppEdit"); + } + + /** + * Deletes an edit for an app. Creating a new edit will automatically delete any + * of your previous edits so this method need only be called if you want to + * preemptively abandon an edit. (edits.delete) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + */ + public function delete($packageName, $editId, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns information about the edit specified. Calls will fail if the edit is + * no long active (e.g. has been deleted, superseded or expired). (edits.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppEdit + */ + public function get($packageName, $editId, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppEdit"); + } + + /** + * Creates a new edit for an app, populated with the app's current state. + * (edits.insert) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param Google_AppEdit $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppEdit + */ + public function insert($packageName, Google_Service_AndroidPublisher_AppEdit $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AndroidPublisher_AppEdit"); + } } /** @@ -1159,136 +1155,135 @@ class Google_Service_AndroidPublisher_Edits_Resource extends Google_Service_Reso * $apklistings = $androidpublisherService->apklistings; * */ -class Google_Service_AndroidPublisher_EditsApklistings_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_EditsApklistings_Resource extends Google_Service_Resource { - /** - * Deletes the APK-specific localized listing for a specified APK and language - * code. (apklistings.delete) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. - * @param string $language - * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or - * modify. For example, to select Austrian German, pass "de-AT". - * @param array $optParams Optional parameters. - */ - public function delete($packageName, $editId, $apkVersionCode, $language, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Deletes all the APK-specific localized listings for a specified APK. - * (apklistings.deleteall) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. - * @param array $optParams Optional parameters. - */ - public function deleteall($packageName, $editId, $apkVersionCode, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode); - $params = array_merge($params, $optParams); - return $this->call('deleteall', array($params)); - } - /** - * Fetches the APK-specific localized listing for a specified APK and language - * code. (apklistings.get) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. - * @param string $language - * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or - * modify. For example, to select Austrian German, pass "de-AT". - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListing - */ - public function get($packageName, $editId, $apkVersionCode, $language, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_ApkListing"); - } - /** - * Lists all the APK-specific localized listings for a specified APK. - * (apklistings.listEditsApklistings) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListingsListResponse - */ - public function listEditsApklistings($packageName, $editId, $apkVersionCode, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApkListingsListResponse"); - } - /** - * Updates or creates the APK-specific localized listing for a specified APK and - * language code. This method supports patch semantics. (apklistings.patch) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. - * @param string $language - * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or - * modify. For example, to select Austrian German, pass "de-AT". - * @param Google_ApkListing $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListing - */ - public function patch($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ApkListing"); - } - /** - * Updates or creates the APK-specific localized listing for a specified APK and - * language code. (apklistings.update) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The APK version code whose APK-specific listings should be read or modified. - * @param string $language - * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or - * modify. For example, to select Austrian German, pass "de-AT". - * @param Google_ApkListing $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListing - */ - public function update($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_ApkListing"); - } + /** + * Deletes the APK-specific localized listing for a specified APK and language + * code. (apklistings.delete) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param string $language + * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or + * modify. For example, to select Austrian German, pass "de-AT". + * @param array $optParams Optional parameters. + */ + public function delete($packageName, $editId, $apkVersionCode, $language, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Deletes all the APK-specific localized listings for a specified APK. + * (apklistings.deleteall) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param array $optParams Optional parameters. + */ + public function deleteall($packageName, $editId, $apkVersionCode, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode); + $params = array_merge($params, $optParams); + return $this->call('deleteall', array($params)); + } + + /** + * Fetches the APK-specific localized listing for a specified APK and language + * code. (apklistings.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param string $language + * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or + * modify. For example, to select Austrian German, pass "de-AT". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApkListing + */ + public function get($packageName, $editId, $apkVersionCode, $language, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_ApkListing"); + } + + /** + * Lists all the APK-specific localized listings for a specified APK. + * (apklistings.listEditsApklistings) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApkListingsListResponse + */ + public function listEditsApklistings($packageName, $editId, $apkVersionCode, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApkListingsListResponse"); + } + + /** + * Updates or creates the APK-specific localized listing for a specified APK and + * language code. This method supports patch semantics. (apklistings.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param string $language + * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or + * modify. For example, to select Austrian German, pass "de-AT". + * @param Google_ApkListing $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApkListing + */ + public function patch($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ApkListing"); + } + + /** + * Updates or creates the APK-specific localized listing for a specified APK and + * language code. (apklistings.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The APK version code whose APK-specific listings should be read or modified. + * @param string $language + * The language code (a BCP-47 language tag) of the APK-specific localized listing to read or + * modify. For example, to select Austrian German, pass "de-AT". + * @param Google_ApkListing $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApkListing + */ + public function update($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_ApkListing"); + } } + /** * The "apks" collection of methods. * Typical usage is: @@ -1297,42 +1292,41 @@ class Google_Service_AndroidPublisher_EditsApklistings_Resource extends Google_S * $apks = $androidpublisherService->apks; * */ -class Google_Service_AndroidPublisher_EditsApks_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_EditsApks_Resource extends Google_Service_Resource { - /** - * (apks.listEditsApks) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApksListResponse - */ - public function listEditsApks($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApksListResponse"); - } - /** - * (apks.upload) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Apk - */ - public function upload($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_AndroidPublisher_Apk"); - } + /** + * (apks.listEditsApks) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApksListResponse + */ + public function listEditsApks($packageName, $editId, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApksListResponse"); + } + + /** + * (apks.upload) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Apk + */ + public function upload($packageName, $editId, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_AndroidPublisher_Apk"); + } } + /** * The "details" collection of methods. * Typical usage is: @@ -1341,62 +1335,61 @@ class Google_Service_AndroidPublisher_EditsApks_Resource extends Google_Service_ * $details = $androidpublisherService->details; * */ -class Google_Service_AndroidPublisher_EditsDetails_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_EditsDetails_Resource extends Google_Service_Resource { - /** - * Fetches app details for this edit. This includes the default language and - * developer support contact information. (details.get) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppDetails - */ - public function get($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppDetails"); - } - /** - * Updates app details for this edit. This method supports patch semantics. - * (details.patch) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param Google_AppDetails $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppDetails - */ - public function patch($packageName, $editId, Google_Service_AndroidPublisher_AppDetails $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_AppDetails"); - } - /** - * Updates app details for this edit. (details.update) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param Google_AppDetails $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_AppDetails - */ - public function update($packageName, $editId, Google_Service_AndroidPublisher_AppDetails $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_AppDetails"); - } + /** + * Fetches app details for this edit. This includes the default language and + * developer support contact information. (details.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppDetails + */ + public function get($packageName, $editId, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppDetails"); + } + + /** + * Updates app details for this edit. This method supports patch semantics. + * (details.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param Google_AppDetails $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppDetails + */ + public function patch($packageName, $editId, Google_Service_AndroidPublisher_AppDetails $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_AppDetails"); + } + + /** + * Updates app details for this edit. (details.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param Google_AppDetails $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_AppDetails + */ + public function update($packageName, $editId, Google_Service_AndroidPublisher_AppDetails $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_AppDetails"); + } } + /** * The "expansionfiles" collection of methods. * Typical usage is: @@ -1405,98 +1398,97 @@ class Google_Service_AndroidPublisher_EditsDetails_Resource extends Google_Servi * $expansionfiles = $androidpublisherService->expansionfiles; * */ -class Google_Service_AndroidPublisher_EditsExpansionfiles_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_EditsExpansionfiles_Resource extends Google_Service_Resource { - /** - * Fetches the Expansion File configuration for the APK specified. - * (expansionfiles.get) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The version code of the APK whose Expansion File configuration is being read or modified. - * @param string $expansionFileType - * - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ExpansionFile - */ - public function get($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); - } - /** - * Updates the APK's Expansion File configuration to reference another APK's - * Expansion Files. To add a new Expansion File use the Upload method. This - * method supports patch semantics. (expansionfiles.patch) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The version code of the APK whose Expansion File configuration is being read or modified. - * @param string $expansionFileType - * - * @param Google_ExpansionFile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ExpansionFile - */ - public function patch($packageName, $editId, $apkVersionCode, $expansionFileType, Google_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); - } - /** - * Updates the APK's Expansion File configuration to reference another APK's - * Expansion Files. To add a new Expansion File use the Upload method. - * (expansionfiles.update) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The version code of the APK whose Expansion File configuration is being read or modified. - * @param string $expansionFileType - * - * @param Google_ExpansionFile $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ExpansionFile - */ - public function update($packageName, $editId, $apkVersionCode, $expansionFileType, Google_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); - } - /** - * Uploads and attaches a new Expansion File to the APK specified. - * (expansionfiles.upload) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param int $apkVersionCode - * The version code of the APK whose Expansion File configuration is being read or modified. - * @param string $expansionFileType - * - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ExpansionFilesUploadResponse - */ - public function upload($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_AndroidPublisher_ExpansionFilesUploadResponse"); - } + /** + * Fetches the Expansion File configuration for the APK specified. + * (expansionfiles.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $expansionFileType + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ExpansionFile + */ + public function get($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); + } + + /** + * Updates the APK's Expansion File configuration to reference another APK's + * Expansion Files. To add a new Expansion File use the Upload method. This + * method supports patch semantics. (expansionfiles.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $expansionFileType + * + * @param Google_ExpansionFile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ExpansionFile + */ + public function patch($packageName, $editId, $apkVersionCode, $expansionFileType, Google_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); + } + + /** + * Updates the APK's Expansion File configuration to reference another APK's + * Expansion Files. To add a new Expansion File use the Upload method. + * (expansionfiles.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $expansionFileType + * + * @param Google_ExpansionFile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ExpansionFile + */ + public function update($packageName, $editId, $apkVersionCode, $expansionFileType, Google_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_ExpansionFile"); + } + + /** + * Uploads and attaches a new Expansion File to the APK specified. + * (expansionfiles.upload) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param int $apkVersionCode + * The version code of the APK whose Expansion File configuration is being read or modified. + * @param string $expansionFileType + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ExpansionFilesUploadResponse + */ + public function upload($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_AndroidPublisher_ExpansionFilesUploadResponse"); + } } + /** * The "images" collection of methods. * Typical usage is: @@ -1505,98 +1497,97 @@ class Google_Service_AndroidPublisher_EditsExpansionfiles_Resource extends Googl * $images = $androidpublisherService->images; * */ -class Google_Service_AndroidPublisher_EditsImages_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_EditsImages_Resource extends Google_Service_Resource { - /** - * Deletes the image (specified by id) from the edit. (images.delete) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing whose images are to read or - * modified. For example, to select Austrian German, pass "de-AT". - * @param string $imageType - * - * @param string $imageId - * Unique identifier an image within the set of images attached to this edit. - * @param array $optParams Optional parameters. - */ - public function delete($packageName, $editId, $language, $imageType, $imageId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType, 'imageId' => $imageId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Deletes all images for the specified language and image type. - * (images.deleteall) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing whose images are to read or - * modified. For example, to select Austrian German, pass "de-AT". - * @param string $imageType - * - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ImagesDeleteAllResponse - */ - public function deleteall($packageName, $editId, $language, $imageType, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); - $params = array_merge($params, $optParams); - return $this->call('deleteall', array($params), "Google_Service_AndroidPublisher_ImagesDeleteAllResponse"); - } - /** - * Lists all images for the specified language and image type. - * (images.listEditsImages) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing whose images are to read or - * modified. For example, to select Austrian German, pass "de-AT". - * @param string $imageType - * - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ImagesListResponse - */ - public function listEditsImages($packageName, $editId, $language, $imageType, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_ImagesListResponse"); - } - /** - * Uploads a new image and adds it to the list of images for the specified - * language and image type. (images.upload) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing whose images are to read or - * modified. For example, to select Austrian German, pass "de-AT". - * @param string $imageType - * - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ImagesUploadResponse - */ - public function upload($packageName, $editId, $language, $imageType, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_AndroidPublisher_ImagesUploadResponse"); - } + /** + * Deletes the image (specified by id) from the edit. (images.delete) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing whose images are to read or + * modified. For example, to select Austrian German, pass "de-AT". + * @param string $imageType + * + * @param string $imageId + * Unique identifier an image within the set of images attached to this edit. + * @param array $optParams Optional parameters. + */ + public function delete($packageName, $editId, $language, $imageType, $imageId, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType, 'imageId' => $imageId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Deletes all images for the specified language and image type. + * (images.deleteall) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing whose images are to read or + * modified. For example, to select Austrian German, pass "de-AT". + * @param string $imageType + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ImagesDeleteAllResponse + */ + public function deleteall($packageName, $editId, $language, $imageType, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); + $params = array_merge($params, $optParams); + return $this->call('deleteall', array($params), "Google_Service_AndroidPublisher_ImagesDeleteAllResponse"); + } + + /** + * Lists all images for the specified language and image type. + * (images.listEditsImages) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing whose images are to read or + * modified. For example, to select Austrian German, pass "de-AT". + * @param string $imageType + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ImagesListResponse + */ + public function listEditsImages($packageName, $editId, $language, $imageType, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_ImagesListResponse"); + } + + /** + * Uploads a new image and adds it to the list of images for the specified + * language and image type. (images.upload) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing whose images are to read or + * modified. For example, to select Austrian German, pass "de-AT". + * @param string $imageType + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ImagesUploadResponse + */ + public function upload($packageName, $editId, $language, $imageType, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_AndroidPublisher_ImagesUploadResponse"); + } } + /** * The "listings" collection of methods. * Typical usage is: @@ -1605,120 +1596,119 @@ class Google_Service_AndroidPublisher_EditsImages_Resource extends Google_Servic * $listings = $androidpublisherService->listings; * */ -class Google_Service_AndroidPublisher_EditsListings_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_EditsListings_Resource extends Google_Service_Resource { - /** - * Deletes the specified localized store listing from an edit. (listings.delete) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing to read or modify. For - * example, to select Austrian German, pass "de-AT". - * @param array $optParams Optional parameters. - */ - public function delete($packageName, $editId, $language, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Deletes all localized listings from an edit. (listings.deleteall) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param array $optParams Optional parameters. - */ - public function deleteall($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('deleteall', array($params)); - } - /** - * Fetches information about a localized store listing. (listings.get) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing to read or modify. For - * example, to select Austrian German, pass "de-AT". - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Listing - */ - public function get($packageName, $editId, $language, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_Listing"); - } - /** - * Returns all of the localized store listings attached to this edit. - * (listings.listEditsListings) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ListingsListResponse - */ - public function listEditsListings($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_ListingsListResponse"); - } - /** - * Creates or updates a localized store listing. This method supports patch - * semantics. (listings.patch) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing to read or modify. For - * example, to select Austrian German, pass "de-AT". - * @param Google_Listing $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Listing - */ - public function patch($packageName, $editId, $language, Google_Service_AndroidPublisher_Listing $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Listing"); - } - /** - * Creates or updates a localized store listing. (listings.update) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $language - * The language code (a BCP-47 language tag) of the localized listing to read or modify. For - * example, to select Austrian German, pass "de-AT". - * @param Google_Listing $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Listing - */ - public function update($packageName, $editId, $language, Google_Service_AndroidPublisher_Listing $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_Listing"); - } + /** + * Deletes the specified localized store listing from an edit. (listings.delete) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing to read or modify. For + * example, to select Austrian German, pass "de-AT". + * @param array $optParams Optional parameters. + */ + public function delete($packageName, $editId, $language, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Deletes all localized listings from an edit. (listings.deleteall) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + */ + public function deleteall($packageName, $editId, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('deleteall', array($params)); + } + + /** + * Fetches information about a localized store listing. (listings.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing to read or modify. For + * example, to select Austrian German, pass "de-AT". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Listing + */ + public function get($packageName, $editId, $language, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_Listing"); + } + + /** + * Returns all of the localized store listings attached to this edit. + * (listings.listEditsListings) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ListingsListResponse + */ + public function listEditsListings($packageName, $editId, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_ListingsListResponse"); + } + + /** + * Creates or updates a localized store listing. This method supports patch + * semantics. (listings.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing to read or modify. For + * example, to select Austrian German, pass "de-AT". + * @param Google_Listing $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Listing + */ + public function patch($packageName, $editId, $language, Google_Service_AndroidPublisher_Listing $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Listing"); + } + + /** + * Creates or updates a localized store listing. (listings.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $language + * The language code (a BCP-47 language tag) of the localized listing to read or modify. For + * example, to select Austrian German, pass "de-AT". + * @param Google_Listing $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Listing + */ + public function update($packageName, $editId, $language, Google_Service_AndroidPublisher_Listing $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_Listing"); + } } + /** * The "testers" collection of methods. * Typical usage is: @@ -1727,66 +1717,65 @@ class Google_Service_AndroidPublisher_EditsListings_Resource extends Google_Serv * $testers = $androidpublisherService->testers; * */ -class Google_Service_AndroidPublisher_EditsTesters_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_EditsTesters_Resource extends Google_Service_Resource { - /** - * (testers.get) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $track - * - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Testers - */ - public function get($packageName, $editId, $track, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_Testers"); - } - /** - * (testers.patch) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $track - * - * @param Google_Testers $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Testers - */ - public function patch($packageName, $editId, $track, Google_Service_AndroidPublisher_Testers $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Testers"); - } - /** - * (testers.update) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $track - * - * @param Google_Testers $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Testers - */ - public function update($packageName, $editId, $track, Google_Service_AndroidPublisher_Testers $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_Testers"); - } + /** + * (testers.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Testers + */ + public function get($packageName, $editId, $track, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_Testers"); + } + + /** + * (testers.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * + * @param Google_Testers $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Testers + */ + public function patch($packageName, $editId, $track, Google_Service_AndroidPublisher_Testers $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Testers"); + } + + /** + * (testers.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * + * @param Google_Testers $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Testers + */ + public function update($packageName, $editId, $track, Google_Service_AndroidPublisher_Testers $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_Testers"); + } } + /** * The "tracks" collection of methods. * Typical usage is: @@ -1795,83 +1784,81 @@ class Google_Service_AndroidPublisher_EditsTesters_Resource extends Google_Servi * $tracks = $androidpublisherService->tracks; * */ -class Google_Service_AndroidPublisher_EditsTracks_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_EditsTracks_Resource extends Google_Service_Resource { - /** - * Fetches the track configuration for the specified track type. Includes the - * APK version codes that are in this track. (tracks.get) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $track - * The track type to read or modify. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Track - */ - public function get($packageName, $editId, $track, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_Track"); - } - /** - * Lists all the track configurations for this edit. (tracks.listEditsTracks) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_TracksListResponse - */ - public function listEditsTracks($packageName, $editId, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_TracksListResponse"); - } - /** - * Updates the track configuration for the specified track type. This method - * supports patch semantics. (tracks.patch) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $track - * The track type to read or modify. - * @param Google_Track $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Track - */ - public function patch($packageName, $editId, $track, Google_Service_AndroidPublisher_Track $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Track"); - } - /** - * Updates the track configuration for the specified track type. (tracks.update) - * - * @param string $packageName - * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param string $editId - * Unique identifier for this edit. - * @param string $track - * The track type to read or modify. - * @param Google_Track $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_Track - */ - public function update($packageName, $editId, $track, Google_Service_AndroidPublisher_Track $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_Track"); - } + /** + * Fetches the track configuration for the specified track type. Includes the + * APK version codes that are in this track. (tracks.get) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * The track type to read or modify. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Track + */ + public function get($packageName, $editId, $track, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_Track"); + } + + /** + * Lists all the track configurations for this edit. (tracks.listEditsTracks) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_TracksListResponse + */ + public function listEditsTracks($packageName, $editId, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_TracksListResponse"); + } + + /** + * Updates the track configuration for the specified track type. This method + * supports patch semantics. (tracks.patch) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * The track type to read or modify. + * @param Google_Track $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Track + */ + public function patch($packageName, $editId, $track, Google_Service_AndroidPublisher_Track $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Track"); + } + + /** + * Updates the track configuration for the specified track type. (tracks.update) + * + * @param string $packageName + * Unique identifier for the Android app that is being updated; for example, "com.spiffygame". + * @param string $editId + * Unique identifier for this edit. + * @param string $track + * The track type to read or modify. + * @param Google_Track $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_Track + */ + public function update($packageName, $editId, $track, Google_Service_AndroidPublisher_Track $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_Track"); + } } /** @@ -1882,140 +1869,138 @@ class Google_Service_AndroidPublisher_EditsTracks_Resource extends Google_Servic * $inappproducts = $androidpublisherService->inappproducts; * */ -class Google_Service_AndroidPublisher_Inappproducts_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_Inappproducts_Resource extends Google_Service_Resource { - /** - * (inappproducts.batch) - * - * @param Google_InappproductsBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_InappproductsBatchResponse - */ - public function batch(Google_Service_AndroidPublisher_InappproductsBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batch', array($params), "Google_Service_AndroidPublisher_InappproductsBatchResponse"); - } - /** - * Delete an in-app product for an app. (inappproducts.delete) - * - * @param string $packageName - * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". - * @param string $sku - * Unique identifier for the in-app product. - * @param array $optParams Optional parameters. - */ - public function delete($packageName, $sku, $optParams = array()) - { - $params = array('packageName' => $packageName, 'sku' => $sku); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns information about the in-app product specified. (inappproducts.get) - * - * @param string $packageName - * - * @param string $sku - * Unique identifier for the in-app product. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_InAppProduct - */ - public function get($packageName, $sku, $optParams = array()) - { - $params = array('packageName' => $packageName, 'sku' => $sku); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_InAppProduct"); - } - /** - * Creates a new in-app product for an app. (inappproducts.insert) - * - * @param string $packageName - * Unique identifier for the Android app; for example, "com.spiffygame". - * @param Google_InAppProduct $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool autoConvertMissingPrices - * If true the prices for all regions targeted by the parent app that don't have a price specified - * for this in-app product will be auto converted to the target currency based on the default - * price. Defaults to false. - * @return Google_Service_AndroidPublisher_InAppProduct - */ - public function insert($packageName, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_AndroidPublisher_InAppProduct"); - } - /** - * List all the in-app products for an Android app, both subscriptions and - * managed in-app products.. (inappproducts.listInappproducts) - * - * @param string $packageName - * Unique identifier for the Android app with in-app products; for example, "com.spiffygame". - * @param array $optParams Optional parameters. - * - * @opt_param string token - * - * @opt_param string startIndex - * - * @opt_param string maxResults - * - * @return Google_Service_AndroidPublisher_InappproductsListResponse - */ - public function listInappproducts($packageName, $optParams = array()) - { - $params = array('packageName' => $packageName); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_InappproductsListResponse"); - } - /** - * Updates the details of an in-app product. This method supports patch - * semantics. (inappproducts.patch) - * - * @param string $packageName - * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". - * @param string $sku - * Unique identifier for the in-app product. - * @param Google_InAppProduct $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool autoConvertMissingPrices - * If true the prices for all regions targeted by the parent app that don't have a price specified - * for this in-app product will be auto converted to the target currency based on the default - * price. Defaults to false. - * @return Google_Service_AndroidPublisher_InAppProduct - */ - public function patch($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_InAppProduct"); - } - /** - * Updates the details of an in-app product. (inappproducts.update) - * - * @param string $packageName - * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". - * @param string $sku - * Unique identifier for the in-app product. - * @param Google_InAppProduct $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool autoConvertMissingPrices - * If true the prices for all regions targeted by the parent app that don't have a price specified - * for this in-app product will be auto converted to the target currency based on the default - * price. Defaults to false. - * @return Google_Service_AndroidPublisher_InAppProduct - */ - public function update($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_InAppProduct"); - } + /** + * (inappproducts.batch) + * + * @param Google_InappproductsBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_InappproductsBatchResponse + */ + public function batch(Google_Service_AndroidPublisher_InappproductsBatchRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batch', array($params), "Google_Service_AndroidPublisher_InappproductsBatchResponse"); + } + + /** + * Delete an in-app product for an app. (inappproducts.delete) + * + * @param string $packageName + * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". + * @param string $sku + * Unique identifier for the in-app product. + * @param array $optParams Optional parameters. + */ + public function delete($packageName, $sku, $optParams = array()) { + $params = array('packageName' => $packageName, 'sku' => $sku); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns information about the in-app product specified. (inappproducts.get) + * + * @param string $packageName + * + * @param string $sku + * Unique identifier for the in-app product. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_InAppProduct + */ + public function get($packageName, $sku, $optParams = array()) { + $params = array('packageName' => $packageName, 'sku' => $sku); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_InAppProduct"); + } + + /** + * Creates a new in-app product for an app. (inappproducts.insert) + * + * @param string $packageName + * Unique identifier for the Android app; for example, "com.spiffygame". + * @param Google_InAppProduct $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool autoConvertMissingPrices + * If true the prices for all regions targeted by the parent app that don't have a price specified + * for this in-app product will be auto converted to the target currency based on the default + * price. Defaults to false. + * @return Google_Service_AndroidPublisher_InAppProduct + */ + public function insert($packageName, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AndroidPublisher_InAppProduct"); + } + + /** + * List all the in-app products for an Android app, both subscriptions and + * managed in-app products.. (inappproducts.listInappproducts) + * + * @param string $packageName + * Unique identifier for the Android app with in-app products; for example, "com.spiffygame". + * @param array $optParams Optional parameters. + * + * @opt_param string token + * + * @opt_param string startIndex + * + * @opt_param string maxResults + * + * @return Google_Service_AndroidPublisher_InappproductsListResponse + */ + public function listInappproducts($packageName, $optParams = array()) { + $params = array('packageName' => $packageName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_InappproductsListResponse"); + } + + /** + * Updates the details of an in-app product. This method supports patch + * semantics. (inappproducts.patch) + * + * @param string $packageName + * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". + * @param string $sku + * Unique identifier for the in-app product. + * @param Google_InAppProduct $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool autoConvertMissingPrices + * If true the prices for all regions targeted by the parent app that don't have a price specified + * for this in-app product will be auto converted to the target currency based on the default + * price. Defaults to false. + * @return Google_Service_AndroidPublisher_InAppProduct + */ + public function patch($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidPublisher_InAppProduct"); + } + + /** + * Updates the details of an in-app product. (inappproducts.update) + * + * @param string $packageName + * Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". + * @param string $sku + * Unique identifier for the in-app product. + * @param Google_InAppProduct $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool autoConvertMissingPrices + * If true the prices for all regions targeted by the parent app that don't have a price specified + * for this in-app product will be auto converted to the target currency based on the default + * price. Defaults to false. + * @return Google_Service_AndroidPublisher_InAppProduct + */ + public function update($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array()) { + $params = array('packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidPublisher_InAppProduct"); + } } /** @@ -2026,8 +2011,7 @@ class Google_Service_AndroidPublisher_Inappproducts_Resource extends Google_Serv * $purchases = $androidpublisherService->purchases; * */ -class Google_Service_AndroidPublisher_Purchases_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_Purchases_Resource extends Google_Service_Resource { } @@ -2039,29 +2023,28 @@ class Google_Service_AndroidPublisher_Purchases_Resource extends Google_Service_ * $products = $androidpublisherService->products; * */ -class Google_Service_AndroidPublisher_PurchasesProducts_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_PurchasesProducts_Resource extends Google_Service_Resource { - /** - * Checks the purchase and consumption status of an inapp item. (products.get) - * - * @param string $packageName - * The package name of the application the inapp product was sold in (for example, - * 'com.some.thing'). - * @param string $productId - * The inapp product SKU (for example, 'com.some.thing.inapp1'). - * @param string $token - * The token provided to the user's device when the inapp product was purchased. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ProductPurchase - */ - public function get($packageName, $productId, $token, $optParams = array()) - { - $params = array('packageName' => $packageName, 'productId' => $productId, 'token' => $token); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_ProductPurchase"); - } + /** + * Checks the purchase and consumption status of an inapp item. (products.get) + * + * @param string $packageName + * The package name of the application the inapp product was sold in (for example, + * 'com.some.thing'). + * @param string $productId + * The inapp product SKU (for example, 'com.some.thing.inapp1'). + * @param string $token + * The token provided to the user's device when the inapp product was purchased. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ProductPurchase + */ + public function get($packageName, $productId, $token, $optParams = array()) { + $params = array('packageName' => $packageName, 'productId' => $productId, 'token' => $token); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_ProductPurchase"); + } } + /** * The "subscriptions" collection of methods. * Typical usage is: @@ -2070,1144 +2053,936 @@ class Google_Service_AndroidPublisher_PurchasesProducts_Resource extends Google_ * $subscriptions = $androidpublisherService->subscriptions; * */ -class Google_Service_AndroidPublisher_PurchasesSubscriptions_Resource extends Google_Service_Resource -{ +class Google_Service_AndroidPublisher_PurchasesSubscriptions_Resource extends Google_Service_Resource { - /** - * Cancels a user's subscription purchase. The subscription remains valid until - * its expiration time. (subscriptions.cancel) - * - * @param string $packageName - * The package name of the application for which this subscription was purchased (for example, - * 'com.some.thing'). - * @param string $subscriptionId - * The purchased subscription ID (for example, 'monthly001'). - * @param string $token - * The token provided to the user's device when the subscription was purchased. - * @param array $optParams Optional parameters. - */ - public function cancel($packageName, $subscriptionId, $token, $optParams = array()) - { - $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params)); - } - /** - * Checks whether a user's subscription purchase is valid and returns its expiry - * time. (subscriptions.get) - * - * @param string $packageName - * The package name of the application for which this subscription was purchased (for example, - * 'com.some.thing'). - * @param string $subscriptionId - * The purchased subscription ID (for example, 'monthly001'). - * @param string $token - * The token provided to the user's device when the subscription was purchased. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_SubscriptionPurchase - */ - public function get($packageName, $subscriptionId, $token, $optParams = array()) - { - $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchase"); - } + /** + * Cancels a user's subscription purchase. The subscription remains valid until + * its expiration time. (subscriptions.cancel) + * + * @param string $packageName + * The package name of the application for which this subscription was purchased (for example, + * 'com.some.thing'). + * @param string $subscriptionId + * The purchased subscription ID (for example, 'monthly001'). + * @param string $token + * The token provided to the user's device when the subscription was purchased. + * @param array $optParams Optional parameters. + */ + public function cancel($packageName, $subscriptionId, $token, $optParams = array()) { + $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params)); + } + + /** + * Checks whether a user's subscription purchase is valid and returns its expiry + * time. (subscriptions.get) + * + * @param string $packageName + * The package name of the application for which this subscription was purchased (for example, + * 'com.some.thing'). + * @param string $subscriptionId + * The purchased subscription ID (for example, 'monthly001'). + * @param string $token + * The token provided to the user's device when the subscription was purchased. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_SubscriptionPurchase + */ + public function get($packageName, $subscriptionId, $token, $optParams = array()) { + $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchase"); + } } +class Google_Service_AndroidPublisher_Apk extends Google_Model { + protected $binaryType = 'Google_Service_AndroidPublisher_ApkBinary'; + protected $binaryDataType = ''; + public $versionCode; + public function setBinary(Google_Service_AndroidPublisher_ApkBinary $binary) { + $this->binary = $binary; + } -class Google_Service_AndroidPublisher_Apk extends Google_Model -{ - protected $binaryType = 'Google_Service_AndroidPublisher_ApkBinary'; - protected $binaryDataType = ''; - public $versionCode; + public function getBinary() { + return $this->binary; + } - public function setBinary(Google_Service_AndroidPublisher_ApkBinary $binary) - { - $this->binary = $binary; - } + public function setVersionCode($versionCode) { + $this->versionCode = $versionCode; + } - public function getBinary() - { - return $this->binary; - } - - public function setVersionCode($versionCode) - { - $this->versionCode = $versionCode; - } - - public function getVersionCode() - { - return $this->versionCode; - } + public function getVersionCode() { + return $this->versionCode; + } } -class Google_Service_AndroidPublisher_ApkBinary extends Google_Model -{ - public $sha1; +class Google_Service_AndroidPublisher_ApkBinary extends Google_Model { + public $sha1; - public function setSha1($sha1) - { - $this->sha1 = $sha1; - } + public function setSha1($sha1) { + $this->sha1 = $sha1; + } - public function getSha1() - { - return $this->sha1; - } + public function getSha1() { + return $this->sha1; + } } -class Google_Service_AndroidPublisher_ApkListing extends Google_Model -{ - public $language; - public $recentChanges; +class Google_Service_AndroidPublisher_ApkListing extends Google_Model { + public $language; + public $recentChanges; - public function setLanguage($language) - { - $this->language = $language; - } + public function setLanguage($language) { + $this->language = $language; + } - public function getLanguage() - { - return $this->language; - } + public function getLanguage() { + return $this->language; + } - public function setRecentChanges($recentChanges) - { - $this->recentChanges = $recentChanges; - } + public function setRecentChanges($recentChanges) { + $this->recentChanges = $recentChanges; + } - public function getRecentChanges() - { - return $this->recentChanges; - } + public function getRecentChanges() { + return $this->recentChanges; + } } -class Google_Service_AndroidPublisher_ApkListingsListResponse extends Google_Collection -{ - public $kind; - protected $listingsType = 'Google_Service_AndroidPublisher_ApkListing'; - protected $listingsDataType = 'array'; +class Google_Service_AndroidPublisher_ApkListingsListResponse extends Google_Collection { + public $kind; + protected $listingsType = 'Google_Service_AndroidPublisher_ApkListing'; + protected $listingsDataType = 'array'; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setListings($listings) - { - $this->listings = $listings; - } + public function setListings($listings) { + $this->listings = $listings; + } - public function getListings() - { - return $this->listings; - } + public function getListings() { + return $this->listings; + } } -class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection -{ - protected $apksType = 'Google_Service_AndroidPublisher_Apk'; - protected $apksDataType = 'array'; - public $kind; +class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection { + protected $apksType = 'Google_Service_AndroidPublisher_Apk'; + protected $apksDataType = 'array'; + public $kind; - public function setApks($apks) - { - $this->apks = $apks; - } + public function setApks($apks) { + $this->apks = $apks; + } - public function getApks() - { - return $this->apks; - } + public function getApks() { + return $this->apks; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AndroidPublisher_AppDetails extends Google_Model -{ - public $contactEmail; - public $contactPhone; - public $contactWebsite; - public $defaultLanguage; +class Google_Service_AndroidPublisher_AppDetails extends Google_Model { + public $contactEmail; + public $contactPhone; + public $contactWebsite; + public $defaultLanguage; - public function setContactEmail($contactEmail) - { - $this->contactEmail = $contactEmail; - } + public function setContactEmail($contactEmail) { + $this->contactEmail = $contactEmail; + } - public function getContactEmail() - { - return $this->contactEmail; - } + public function getContactEmail() { + return $this->contactEmail; + } - public function setContactPhone($contactPhone) - { - $this->contactPhone = $contactPhone; - } + public function setContactPhone($contactPhone) { + $this->contactPhone = $contactPhone; + } - public function getContactPhone() - { - return $this->contactPhone; - } + public function getContactPhone() { + return $this->contactPhone; + } - public function setContactWebsite($contactWebsite) - { - $this->contactWebsite = $contactWebsite; - } + public function setContactWebsite($contactWebsite) { + $this->contactWebsite = $contactWebsite; + } - public function getContactWebsite() - { - return $this->contactWebsite; - } + public function getContactWebsite() { + return $this->contactWebsite; + } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } + public function setDefaultLanguage($defaultLanguage) { + $this->defaultLanguage = $defaultLanguage; + } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } + public function getDefaultLanguage() { + return $this->defaultLanguage; + } } -class Google_Service_AndroidPublisher_AppEdit extends Google_Model -{ - public $expiryTimeSeconds; - public $id; +class Google_Service_AndroidPublisher_AppEdit extends Google_Model { + public $expiryTimeSeconds; + public $id; - public function setExpiryTimeSeconds($expiryTimeSeconds) - { - $this->expiryTimeSeconds = $expiryTimeSeconds; - } + public function setExpiryTimeSeconds($expiryTimeSeconds) { + $this->expiryTimeSeconds = $expiryTimeSeconds; + } - public function getExpiryTimeSeconds() - { - return $this->expiryTimeSeconds; - } + public function getExpiryTimeSeconds() { + return $this->expiryTimeSeconds; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } } -class Google_Service_AndroidPublisher_ExpansionFile extends Google_Model -{ - public $fileSize; - public $referencesVersion; +class Google_Service_AndroidPublisher_ExpansionFile extends Google_Model { + public $fileSize; + public $referencesVersion; - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } + public function setFileSize($fileSize) { + $this->fileSize = $fileSize; + } - public function getFileSize() - { - return $this->fileSize; - } + public function getFileSize() { + return $this->fileSize; + } - public function setReferencesVersion($referencesVersion) - { - $this->referencesVersion = $referencesVersion; - } + public function setReferencesVersion($referencesVersion) { + $this->referencesVersion = $referencesVersion; + } - public function getReferencesVersion() - { - return $this->referencesVersion; - } + public function getReferencesVersion() { + return $this->referencesVersion; + } } -class Google_Service_AndroidPublisher_ExpansionFilesUploadResponse extends Google_Model -{ - protected $expansionFileType = 'Google_Service_AndroidPublisher_ExpansionFile'; - protected $expansionFileDataType = ''; +class Google_Service_AndroidPublisher_ExpansionFilesUploadResponse extends Google_Model { + protected $expansionFileType = 'Google_Service_AndroidPublisher_ExpansionFile'; + protected $expansionFileDataType = ''; - public function setExpansionFile(Google_Service_AndroidPublisher_ExpansionFile $expansionFile) - { - $this->expansionFile = $expansionFile; - } + public function setExpansionFile(Google_Service_AndroidPublisher_ExpansionFile $expansionFile) { + $this->expansionFile = $expansionFile; + } - public function getExpansionFile() - { - return $this->expansionFile; - } + public function getExpansionFile() { + return $this->expansionFile; + } } -class Google_Service_AndroidPublisher_Image extends Google_Model -{ - public $id; - public $sha1; - public $url; +class Google_Service_AndroidPublisher_Image extends Google_Model { + public $id; + public $sha1; + public $url; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setSha1($sha1) - { - $this->sha1 = $sha1; - } + public function setSha1($sha1) { + $this->sha1 = $sha1; + } - public function getSha1() - { - return $this->sha1; - } + public function getSha1() { + return $this->sha1; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_AndroidPublisher_ImagesDeleteAllResponse extends Google_Collection -{ - protected $deletedType = 'Google_Service_AndroidPublisher_Image'; - protected $deletedDataType = 'array'; +class Google_Service_AndroidPublisher_ImagesDeleteAllResponse extends Google_Collection { + protected $deletedType = 'Google_Service_AndroidPublisher_Image'; + protected $deletedDataType = 'array'; - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } + public function setDeleted($deleted) { + $this->deleted = $deleted; + } - public function getDeleted() - { - return $this->deleted; - } + public function getDeleted() { + return $this->deleted; + } } -class Google_Service_AndroidPublisher_ImagesListResponse extends Google_Collection -{ - protected $imagesType = 'Google_Service_AndroidPublisher_Image'; - protected $imagesDataType = 'array'; +class Google_Service_AndroidPublisher_ImagesListResponse extends Google_Collection { + protected $imagesType = 'Google_Service_AndroidPublisher_Image'; + protected $imagesDataType = 'array'; - public function setImages($images) - { - $this->images = $images; - } + public function setImages($images) { + $this->images = $images; + } - public function getImages() - { - return $this->images; - } + public function getImages() { + return $this->images; + } } -class Google_Service_AndroidPublisher_ImagesUploadResponse extends Google_Model -{ - protected $imageType = 'Google_Service_AndroidPublisher_Image'; - protected $imageDataType = ''; +class Google_Service_AndroidPublisher_ImagesUploadResponse extends Google_Model { + protected $imageType = 'Google_Service_AndroidPublisher_Image'; + protected $imageDataType = ''; - public function setImage(Google_Service_AndroidPublisher_Image $image) - { - $this->image = $image; - } + public function setImage(Google_Service_AndroidPublisher_Image $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } } -class Google_Service_AndroidPublisher_InAppProduct extends Google_Model -{ - public $defaultLanguage; - protected $defaultPriceType = 'Google_Service_AndroidPublisher_Price'; - protected $defaultPriceDataType = ''; - protected $listingsType = 'Google_Service_AndroidPublisher_InAppProductListing'; - protected $listingsDataType = 'map'; - public $packageName; - protected $pricesType = 'Google_Service_AndroidPublisher_Price'; - protected $pricesDataType = 'map'; - public $purchaseType; - public $sku; - public $status; - public $subscriptionPeriod; - public $trialPeriod; +class Google_Service_AndroidPublisher_InAppProduct extends Google_Model { + public $defaultLanguage; + protected $defaultPriceType = 'Google_Service_AndroidPublisher_Price'; + protected $defaultPriceDataType = ''; + protected $listingsType = 'Google_Service_AndroidPublisher_InAppProductListing'; + protected $listingsDataType = 'map'; + public $packageName; + protected $pricesType = 'Google_Service_AndroidPublisher_Price'; + protected $pricesDataType = 'map'; + public $purchaseType; + public $sku; + public $status; + public $subscriptionPeriod; + public $trialPeriod; - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } + public function setDefaultLanguage($defaultLanguage) { + $this->defaultLanguage = $defaultLanguage; + } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } + public function getDefaultLanguage() { + return $this->defaultLanguage; + } - public function setDefaultPrice(Google_Service_AndroidPublisher_Price $defaultPrice) - { - $this->defaultPrice = $defaultPrice; - } + public function setDefaultPrice(Google_Service_AndroidPublisher_Price $defaultPrice) { + $this->defaultPrice = $defaultPrice; + } - public function getDefaultPrice() - { - return $this->defaultPrice; - } + public function getDefaultPrice() { + return $this->defaultPrice; + } - public function setListings($listings) - { - $this->listings = $listings; - } + public function setListings($listings) { + $this->listings = $listings; + } - public function getListings() - { - return $this->listings; - } + public function getListings() { + return $this->listings; + } - public function setPackageName($packageName) - { - $this->packageName = $packageName; - } + public function setPackageName($packageName) { + $this->packageName = $packageName; + } - public function getPackageName() - { - return $this->packageName; - } + public function getPackageName() { + return $this->packageName; + } - public function setPrices($prices) - { - $this->prices = $prices; - } + public function setPrices($prices) { + $this->prices = $prices; + } - public function getPrices() - { - return $this->prices; - } + public function getPrices() { + return $this->prices; + } - public function setPurchaseType($purchaseType) - { - $this->purchaseType = $purchaseType; - } + public function setPurchaseType($purchaseType) { + $this->purchaseType = $purchaseType; + } - public function getPurchaseType() - { - return $this->purchaseType; - } + public function getPurchaseType() { + return $this->purchaseType; + } - public function setSku($sku) - { - $this->sku = $sku; - } + public function setSku($sku) { + $this->sku = $sku; + } - public function getSku() - { - return $this->sku; - } + public function getSku() { + return $this->sku; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setSubscriptionPeriod($subscriptionPeriod) - { - $this->subscriptionPeriod = $subscriptionPeriod; - } + public function setSubscriptionPeriod($subscriptionPeriod) { + $this->subscriptionPeriod = $subscriptionPeriod; + } - public function getSubscriptionPeriod() - { - return $this->subscriptionPeriod; - } + public function getSubscriptionPeriod() { + return $this->subscriptionPeriod; + } - public function setTrialPeriod($trialPeriod) - { - $this->trialPeriod = $trialPeriod; - } + public function setTrialPeriod($trialPeriod) { + $this->trialPeriod = $trialPeriod; + } - public function getTrialPeriod() - { - return $this->trialPeriod; - } + public function getTrialPeriod() { + return $this->trialPeriod; + } } -class Google_Service_AndroidPublisher_InAppProductListing extends Google_Model -{ - public $description; - public $title; +class Google_Service_AndroidPublisher_InAppProductListing extends Google_Model { + public $description; + public $title; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_AndroidPublisher_InAppProductListings extends Google_Model -{ +class Google_Service_AndroidPublisher_InAppProductListings extends Google_Model { } -class Google_Service_AndroidPublisher_InAppProductPrices extends Google_Model -{ +class Google_Service_AndroidPublisher_InAppProductPrices extends Google_Model { } -class Google_Service_AndroidPublisher_InappproductsBatchRequest extends Google_Collection -{ - protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchRequestEntry'; - protected $entrysDataType = 'array'; +class Google_Service_AndroidPublisher_InappproductsBatchRequest extends Google_Collection { + protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchRequestEntry'; + protected $entrysDataType = 'array'; - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } + public function setEntrys($entrys) { + $this->entrys = $entrys; + } - public function getEntrys() - { - return $this->entrys; - } + public function getEntrys() { + return $this->entrys; + } } -class Google_Service_AndroidPublisher_InappproductsBatchRequestEntry extends Google_Model -{ - public $batchId; - protected $inappproductsinsertrequestType = 'Google_Service_AndroidPublisher_InappproductsInsertRequest'; - protected $inappproductsinsertrequestDataType = ''; - protected $inappproductsupdaterequestType = 'Google_Service_AndroidPublisher_InappproductsUpdateRequest'; - protected $inappproductsupdaterequestDataType = ''; - public $methodName; +class Google_Service_AndroidPublisher_InappproductsBatchRequestEntry extends Google_Model { + public $batchId; + protected $inappproductsinsertrequestType = 'Google_Service_AndroidPublisher_InappproductsInsertRequest'; + protected $inappproductsinsertrequestDataType = ''; + protected $inappproductsupdaterequestType = 'Google_Service_AndroidPublisher_InappproductsUpdateRequest'; + protected $inappproductsupdaterequestDataType = ''; + public $methodName; - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } + public function setBatchId($batchId) { + $this->batchId = $batchId; + } - public function getBatchId() - { - return $this->batchId; - } + public function getBatchId() { + return $this->batchId; + } - public function setInappproductsinsertrequest(Google_Service_AndroidPublisher_InappproductsInsertRequest $inappproductsinsertrequest) - { - $this->inappproductsinsertrequest = $inappproductsinsertrequest; - } + public function setInappproductsinsertrequest(Google_Service_AndroidPublisher_InappproductsInsertRequest $inappproductsinsertrequest) { + $this->inappproductsinsertrequest = $inappproductsinsertrequest; + } - public function getInappproductsinsertrequest() - { - return $this->inappproductsinsertrequest; - } + public function getInappproductsinsertrequest() { + return $this->inappproductsinsertrequest; + } - public function setInappproductsupdaterequest(Google_Service_AndroidPublisher_InappproductsUpdateRequest $inappproductsupdaterequest) - { - $this->inappproductsupdaterequest = $inappproductsupdaterequest; - } + public function setInappproductsupdaterequest(Google_Service_AndroidPublisher_InappproductsUpdateRequest $inappproductsupdaterequest) { + $this->inappproductsupdaterequest = $inappproductsupdaterequest; + } - public function getInappproductsupdaterequest() - { - return $this->inappproductsupdaterequest; - } + public function getInappproductsupdaterequest() { + return $this->inappproductsupdaterequest; + } - public function setMethodName($methodName) - { - $this->methodName = $methodName; - } + public function setMethodName($methodName) { + $this->methodName = $methodName; + } - public function getMethodName() - { - return $this->methodName; - } + public function getMethodName() { + return $this->methodName; + } } -class Google_Service_AndroidPublisher_InappproductsBatchResponse extends Google_Collection -{ - protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchResponseEntry'; - protected $entrysDataType = 'array'; - public $kind; +class Google_Service_AndroidPublisher_InappproductsBatchResponse extends Google_Collection { + protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchResponseEntry'; + protected $entrysDataType = 'array'; + public $kind; - public function setEntrys($entrys) - { - $this->entrys = $entrys; - } + public function setEntrys($entrys) { + $this->entrys = $entrys; + } - public function getEntrys() - { - return $this->entrys; - } + public function getEntrys() { + return $this->entrys; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AndroidPublisher_InappproductsBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $inappproductsinsertresponseType = 'Google_Service_AndroidPublisher_InappproductsInsertResponse'; - protected $inappproductsinsertresponseDataType = ''; - protected $inappproductsupdateresponseType = 'Google_Service_AndroidPublisher_InappproductsUpdateResponse'; - protected $inappproductsupdateresponseDataType = ''; +class Google_Service_AndroidPublisher_InappproductsBatchResponseEntry extends Google_Model { + public $batchId; + protected $inappproductsinsertresponseType = 'Google_Service_AndroidPublisher_InappproductsInsertResponse'; + protected $inappproductsinsertresponseDataType = ''; + protected $inappproductsupdateresponseType = 'Google_Service_AndroidPublisher_InappproductsUpdateResponse'; + protected $inappproductsupdateresponseDataType = ''; - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } + public function setBatchId($batchId) { + $this->batchId = $batchId; + } - public function getBatchId() - { - return $this->batchId; - } + public function getBatchId() { + return $this->batchId; + } - public function setInappproductsinsertresponse(Google_Service_AndroidPublisher_InappproductsInsertResponse $inappproductsinsertresponse) - { - $this->inappproductsinsertresponse = $inappproductsinsertresponse; - } + public function setInappproductsinsertresponse(Google_Service_AndroidPublisher_InappproductsInsertResponse $inappproductsinsertresponse) { + $this->inappproductsinsertresponse = $inappproductsinsertresponse; + } - public function getInappproductsinsertresponse() - { - return $this->inappproductsinsertresponse; - } + public function getInappproductsinsertresponse() { + return $this->inappproductsinsertresponse; + } - public function setInappproductsupdateresponse(Google_Service_AndroidPublisher_InappproductsUpdateResponse $inappproductsupdateresponse) - { - $this->inappproductsupdateresponse = $inappproductsupdateresponse; - } + public function setInappproductsupdateresponse(Google_Service_AndroidPublisher_InappproductsUpdateResponse $inappproductsupdateresponse) { + $this->inappproductsupdateresponse = $inappproductsupdateresponse; + } - public function getInappproductsupdateresponse() - { - return $this->inappproductsupdateresponse; - } + public function getInappproductsupdateresponse() { + return $this->inappproductsupdateresponse; + } } -class Google_Service_AndroidPublisher_InappproductsInsertRequest extends Google_Model -{ - protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; - protected $inappproductDataType = ''; +class Google_Service_AndroidPublisher_InappproductsInsertRequest extends Google_Model { + protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; + protected $inappproductDataType = ''; - public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) - { - $this->inappproduct = $inappproduct; - } + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) { + $this->inappproduct = $inappproduct; + } - public function getInappproduct() - { - return $this->inappproduct; - } + public function getInappproduct() { + return $this->inappproduct; + } } -class Google_Service_AndroidPublisher_InappproductsInsertResponse extends Google_Model -{ - protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; - protected $inappproductDataType = ''; +class Google_Service_AndroidPublisher_InappproductsInsertResponse extends Google_Model { + protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; + protected $inappproductDataType = ''; - public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) - { - $this->inappproduct = $inappproduct; - } + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) { + $this->inappproduct = $inappproduct; + } - public function getInappproduct() - { - return $this->inappproduct; - } + public function getInappproduct() { + return $this->inappproduct; + } } -class Google_Service_AndroidPublisher_InappproductsListResponse extends Google_Collection -{ - protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; - protected $inappproductDataType = 'array'; - public $kind; - protected $pageInfoType = 'Google_Service_AndroidPublisher_PageInfo'; - protected $pageInfoDataType = ''; - protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination'; - protected $tokenPaginationDataType = ''; +class Google_Service_AndroidPublisher_InappproductsListResponse extends Google_Collection { + protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; + protected $inappproductDataType = 'array'; + public $kind; + protected $pageInfoType = 'Google_Service_AndroidPublisher_PageInfo'; + protected $pageInfoDataType = ''; + protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination'; + protected $tokenPaginationDataType = ''; - public function setInappproduct($inappproduct) - { - $this->inappproduct = $inappproduct; - } + public function setInappproduct($inappproduct) { + $this->inappproduct = $inappproduct; + } - public function getInappproduct() - { - return $this->inappproduct; - } + public function getInappproduct() { + return $this->inappproduct; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } + public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } - public function getPageInfo() - { - return $this->pageInfo; - } + public function getPageInfo() { + return $this->pageInfo; + } - public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } + public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } - public function getTokenPagination() - { - return $this->tokenPagination; - } + public function getTokenPagination() { + return $this->tokenPagination; + } } -class Google_Service_AndroidPublisher_InappproductsUpdateRequest extends Google_Model -{ - protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; - protected $inappproductDataType = ''; +class Google_Service_AndroidPublisher_InappproductsUpdateRequest extends Google_Model { + protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; + protected $inappproductDataType = ''; - public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) - { - $this->inappproduct = $inappproduct; - } + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) { + $this->inappproduct = $inappproduct; + } - public function getInappproduct() - { - return $this->inappproduct; - } + public function getInappproduct() { + return $this->inappproduct; + } } -class Google_Service_AndroidPublisher_InappproductsUpdateResponse extends Google_Model -{ - protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; - protected $inappproductDataType = ''; +class Google_Service_AndroidPublisher_InappproductsUpdateResponse extends Google_Model { + protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct'; + protected $inappproductDataType = ''; - public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) - { - $this->inappproduct = $inappproduct; - } + public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct) { + $this->inappproduct = $inappproduct; + } - public function getInappproduct() - { - return $this->inappproduct; - } + public function getInappproduct() { + return $this->inappproduct; + } } -class Google_Service_AndroidPublisher_Listing extends Google_Model -{ - public $fullDescription; - public $language; - public $shortDescription; - public $title; - public $video; +class Google_Service_AndroidPublisher_Listing extends Google_Model { + public $fullDescription; + public $language; + public $shortDescription; + public $title; + public $video; - public function setFullDescription($fullDescription) - { - $this->fullDescription = $fullDescription; - } + public function setFullDescription($fullDescription) { + $this->fullDescription = $fullDescription; + } - public function getFullDescription() - { - return $this->fullDescription; - } + public function getFullDescription() { + return $this->fullDescription; + } - public function setLanguage($language) - { - $this->language = $language; - } + public function setLanguage($language) { + $this->language = $language; + } - public function getLanguage() - { - return $this->language; - } + public function getLanguage() { + return $this->language; + } - public function setShortDescription($shortDescription) - { - $this->shortDescription = $shortDescription; - } + public function setShortDescription($shortDescription) { + $this->shortDescription = $shortDescription; + } - public function getShortDescription() - { - return $this->shortDescription; - } + public function getShortDescription() { + return $this->shortDescription; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setVideo($video) - { - $this->video = $video; - } + public function setVideo($video) { + $this->video = $video; + } - public function getVideo() - { - return $this->video; - } + public function getVideo() { + return $this->video; + } } -class Google_Service_AndroidPublisher_ListingsListResponse extends Google_Collection -{ - public $kind; - protected $listingsType = 'Google_Service_AndroidPublisher_Listing'; - protected $listingsDataType = 'array'; +class Google_Service_AndroidPublisher_ListingsListResponse extends Google_Collection { + public $kind; + protected $listingsType = 'Google_Service_AndroidPublisher_Listing'; + protected $listingsDataType = 'array'; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setListings($listings) - { - $this->listings = $listings; - } + public function setListings($listings) { + $this->listings = $listings; + } - public function getListings() - { - return $this->listings; - } + public function getListings() { + return $this->listings; + } } -class Google_Service_AndroidPublisher_PageInfo extends Google_Model -{ - public $resultPerPage; - public $startIndex; - public $totalResults; +class Google_Service_AndroidPublisher_PageInfo extends Google_Model { + public $resultPerPage; + public $startIndex; + public $totalResults; - public function setResultPerPage($resultPerPage) - { - $this->resultPerPage = $resultPerPage; - } + public function setResultPerPage($resultPerPage) { + $this->resultPerPage = $resultPerPage; + } - public function getResultPerPage() - { - return $this->resultPerPage; - } + public function getResultPerPage() { + return $this->resultPerPage; + } - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } - public function getStartIndex() - { - return $this->startIndex; - } + public function getStartIndex() { + return $this->startIndex; + } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } - public function getTotalResults() - { - return $this->totalResults; - } + public function getTotalResults() { + return $this->totalResults; + } } -class Google_Service_AndroidPublisher_Price extends Google_Model -{ - public $currency; - public $priceMicros; +class Google_Service_AndroidPublisher_Price extends Google_Model { + public $currency; + public $priceMicros; - public function setCurrency($currency) - { - $this->currency = $currency; - } + public function setCurrency($currency) { + $this->currency = $currency; + } - public function getCurrency() - { - return $this->currency; - } + public function getCurrency() { + return $this->currency; + } - public function setPriceMicros($priceMicros) - { - $this->priceMicros = $priceMicros; - } + public function setPriceMicros($priceMicros) { + $this->priceMicros = $priceMicros; + } - public function getPriceMicros() - { - return $this->priceMicros; - } + public function getPriceMicros() { + return $this->priceMicros; + } } -class Google_Service_AndroidPublisher_ProductPurchase extends Google_Model -{ - public $consumptionState; - public $developerPayload; - public $kind; - public $purchaseState; - public $purchaseTimeMillis; +class Google_Service_AndroidPublisher_ProductPurchase extends Google_Model { + public $consumptionState; + public $developerPayload; + public $kind; + public $purchaseState; + public $purchaseTimeMillis; - public function setConsumptionState($consumptionState) - { - $this->consumptionState = $consumptionState; - } + public function setConsumptionState($consumptionState) { + $this->consumptionState = $consumptionState; + } - public function getConsumptionState() - { - return $this->consumptionState; - } + public function getConsumptionState() { + return $this->consumptionState; + } - public function setDeveloperPayload($developerPayload) - { - $this->developerPayload = $developerPayload; - } + public function setDeveloperPayload($developerPayload) { + $this->developerPayload = $developerPayload; + } - public function getDeveloperPayload() - { - return $this->developerPayload; - } + public function getDeveloperPayload() { + return $this->developerPayload; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPurchaseState($purchaseState) - { - $this->purchaseState = $purchaseState; - } + public function setPurchaseState($purchaseState) { + $this->purchaseState = $purchaseState; + } - public function getPurchaseState() - { - return $this->purchaseState; - } + public function getPurchaseState() { + return $this->purchaseState; + } - public function setPurchaseTimeMillis($purchaseTimeMillis) - { - $this->purchaseTimeMillis = $purchaseTimeMillis; - } + public function setPurchaseTimeMillis($purchaseTimeMillis) { + $this->purchaseTimeMillis = $purchaseTimeMillis; + } - public function getPurchaseTimeMillis() - { - return $this->purchaseTimeMillis; - } + public function getPurchaseTimeMillis() { + return $this->purchaseTimeMillis; + } } -class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model -{ - public $autoRenewing; - public $expiryTimeMillis; - public $kind; - public $startTimeMillis; +class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model { + public $autoRenewing; + public $expiryTimeMillis; + public $kind; + public $startTimeMillis; - public function setAutoRenewing($autoRenewing) - { - $this->autoRenewing = $autoRenewing; - } + public function setAutoRenewing($autoRenewing) { + $this->autoRenewing = $autoRenewing; + } - public function getAutoRenewing() - { - return $this->autoRenewing; - } + public function getAutoRenewing() { + return $this->autoRenewing; + } - public function setExpiryTimeMillis($expiryTimeMillis) - { - $this->expiryTimeMillis = $expiryTimeMillis; - } + public function setExpiryTimeMillis($expiryTimeMillis) { + $this->expiryTimeMillis = $expiryTimeMillis; + } - public function getExpiryTimeMillis() - { - return $this->expiryTimeMillis; - } + public function getExpiryTimeMillis() { + return $this->expiryTimeMillis; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setStartTimeMillis($startTimeMillis) - { - $this->startTimeMillis = $startTimeMillis; - } + public function setStartTimeMillis($startTimeMillis) { + $this->startTimeMillis = $startTimeMillis; + } - public function getStartTimeMillis() - { - return $this->startTimeMillis; - } + public function getStartTimeMillis() { + return $this->startTimeMillis; + } } -class Google_Service_AndroidPublisher_Testers extends Google_Collection -{ - public $googleGroups; - public $googlePlusCommunities; +class Google_Service_AndroidPublisher_Testers extends Google_Collection { + public $googleGroups; + public $googlePlusCommunities; - public function setGoogleGroups($googleGroups) - { - $this->googleGroups = $googleGroups; - } + public function setGoogleGroups($googleGroups) { + $this->googleGroups = $googleGroups; + } - public function getGoogleGroups() - { - return $this->googleGroups; - } + public function getGoogleGroups() { + return $this->googleGroups; + } - public function setGooglePlusCommunities($googlePlusCommunities) - { - $this->googlePlusCommunities = $googlePlusCommunities; - } + public function setGooglePlusCommunities($googlePlusCommunities) { + $this->googlePlusCommunities = $googlePlusCommunities; + } - public function getGooglePlusCommunities() - { - return $this->googlePlusCommunities; - } + public function getGooglePlusCommunities() { + return $this->googlePlusCommunities; + } } -class Google_Service_AndroidPublisher_TokenPagination extends Google_Model -{ - public $nextPageToken; - public $previousPageToken; +class Google_Service_AndroidPublisher_TokenPagination extends Google_Model { + public $nextPageToken; + public $previousPageToken; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setPreviousPageToken($previousPageToken) - { - $this->previousPageToken = $previousPageToken; - } + public function setPreviousPageToken($previousPageToken) { + $this->previousPageToken = $previousPageToken; + } - public function getPreviousPageToken() - { - return $this->previousPageToken; - } + public function getPreviousPageToken() { + return $this->previousPageToken; + } } -class Google_Service_AndroidPublisher_Track extends Google_Collection -{ - public $track; - public $userFraction; - public $versionCodes; +class Google_Service_AndroidPublisher_Track extends Google_Collection { + public $track; + public $userFraction; + public $versionCodes; - public function setTrack($track) - { - $this->track = $track; - } + public function setTrack($track) { + $this->track = $track; + } - public function getTrack() - { - return $this->track; - } + public function getTrack() { + return $this->track; + } - public function setUserFraction($userFraction) - { - $this->userFraction = $userFraction; - } + public function setUserFraction($userFraction) { + $this->userFraction = $userFraction; + } - public function getUserFraction() - { - return $this->userFraction; - } + public function getUserFraction() { + return $this->userFraction; + } - public function setVersionCodes($versionCodes) - { - $this->versionCodes = $versionCodes; - } + public function setVersionCodes($versionCodes) { + $this->versionCodes = $versionCodes; + } - public function getVersionCodes() - { - return $this->versionCodes; - } + public function getVersionCodes() { + return $this->versionCodes; + } } -class Google_Service_AndroidPublisher_TracksListResponse extends Google_Collection -{ - public $kind; - protected $tracksType = 'Google_Service_AndroidPublisher_Track'; - protected $tracksDataType = 'array'; +class Google_Service_AndroidPublisher_TracksListResponse extends Google_Collection { + public $kind; + protected $tracksType = 'Google_Service_AndroidPublisher_Track'; + protected $tracksDataType = 'array'; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setTracks($tracks) - { - $this->tracks = $tracks; - } + public function setTracks($tracks) { + $this->tracks = $tracks; + } - public function getTracks() - { - return $this->tracks; - } + public function getTracks() { + return $this->tracks; + } } diff --git a/oauth/Google/Service/AppState.php b/oauth/Google/Service/AppState.php index fa5311a..f83321d 100644 --- a/oauth/Google/Service/AppState.php +++ b/oauth/Google/Service/AppState.php @@ -29,94 +29,92 @@ * * @author Google, Inc. */ -class Google_Service_AppState extends Google_Service -{ - /** View and manage your data for this application. */ - const APPSTATE = "https://www.googleapis.com/auth/appstate"; +class Google_Service_AppState extends Google_Service { + /** View and manage your data for this application. */ + const APPSTATE = "https://www.googleapis.com/auth/appstate"; - public $states; - + public $states; - /** - * Constructs the internal representation of the AppState service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'appstate/v1/'; - $this->version = 'v1'; - $this->serviceName = 'appstate'; - $this->states = new Google_Service_AppState_States_Resource( - $this, - $this->serviceName, - 'states', - array( - 'methods' => array( - 'clear' => array( - 'path' => 'states/{stateKey}/clear', - 'httpMethod' => 'POST', - 'parameters' => array( - 'stateKey' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'currentDataVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => 'states/{stateKey}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'stateKey' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'states/{stateKey}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'stateKey' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'states', - 'httpMethod' => 'GET', - 'parameters' => array( - 'includeData' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'states/{stateKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'stateKey' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'currentStateVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the AppState service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'appstate/v1/'; + $this->version = 'v1'; + $this->serviceName = 'appstate'; + + $this->states = new Google_Service_AppState_States_Resource( + $this, + $this->serviceName, + 'states', + array( + 'methods' => array( + 'clear' => array( + 'path' => 'states/{stateKey}/clear', + 'httpMethod' => 'POST', + 'parameters' => array( + 'stateKey' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'currentDataVersion' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'delete' => array( + 'path' => 'states/{stateKey}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'stateKey' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'states/{stateKey}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'stateKey' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'states', + 'httpMethod' => 'GET', + 'parameters' => array( + 'includeData' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'update' => array( + 'path' => 'states/{stateKey}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'stateKey' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'currentStateVersion' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -128,247 +126,215 @@ class Google_Service_AppState extends Google_Service * $states = $appstateService->states; * */ -class Google_Service_AppState_States_Resource extends Google_Service_Resource -{ +class Google_Service_AppState_States_Resource extends Google_Service_Resource { - /** - * Clears (sets to empty) the data for the passed key if and only if the passed - * version matches the currently stored version. This method results in a - * conflict error on version mismatch. (states.clear) - * - * @param int $stateKey - * The key for the data to be retrieved. - * @param array $optParams Optional parameters. - * - * @opt_param string currentDataVersion - * The version of the data to be cleared. Version strings are returned by the server. - * @return Google_Service_AppState_WriteResult - */ - public function clear($stateKey, $optParams = array()) - { - $params = array('stateKey' => $stateKey); - $params = array_merge($params, $optParams); - return $this->call('clear', array($params), "Google_Service_AppState_WriteResult"); - } - /** - * Deletes a key and the data associated with it. The key is removed and no - * longer counts against the key quota. Note that since this method is not safe - * in the face of concurrent modifications, it should only be used for - * development and testing purposes. Invoking this method in shipping code can - * result in data loss and data corruption. (states.delete) - * - * @param int $stateKey - * The key for the data to be retrieved. - * @param array $optParams Optional parameters. - */ - public function delete($stateKey, $optParams = array()) - { - $params = array('stateKey' => $stateKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves the data corresponding to the passed key. If the key does not exist - * on the server, an HTTP 404 will be returned. (states.get) - * - * @param int $stateKey - * The key for the data to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_AppState_GetResponse - */ - public function get($stateKey, $optParams = array()) - { - $params = array('stateKey' => $stateKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AppState_GetResponse"); - } - /** - * Lists all the states keys, and optionally the state data. (states.listStates) - * - * @param array $optParams Optional parameters. - * - * @opt_param bool includeData - * Whether to include the full data in addition to the version number - * @return Google_Service_AppState_ListResponse - */ - public function listStates($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AppState_ListResponse"); - } - /** - * Update the data associated with the input key if and only if the passed - * version matches the currently stored version. This method is safe in the face - * of concurrent writes. Maximum per-key size is 128KB. (states.update) - * - * @param int $stateKey - * The key for the data to be retrieved. - * @param Google_UpdateRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string currentStateVersion - * The version of the app state your application is attempting to update. If this does not match - * the current version, this method will return a conflict error. If there is no data stored on the - * server for this key, the update will succeed irrespective of the value of this parameter. - * @return Google_Service_AppState_WriteResult - */ - public function update($stateKey, Google_Service_AppState_UpdateRequest $postBody, $optParams = array()) - { - $params = array('stateKey' => $stateKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AppState_WriteResult"); - } + /** + * Clears (sets to empty) the data for the passed key if and only if the passed + * version matches the currently stored version. This method results in a + * conflict error on version mismatch. (states.clear) + * + * @param int $stateKey + * The key for the data to be retrieved. + * @param array $optParams Optional parameters. + * + * @opt_param string currentDataVersion + * The version of the data to be cleared. Version strings are returned by the server. + * @return Google_Service_AppState_WriteResult + */ + public function clear($stateKey, $optParams = array()) { + $params = array('stateKey' => $stateKey); + $params = array_merge($params, $optParams); + return $this->call('clear', array($params), "Google_Service_AppState_WriteResult"); + } + + /** + * Deletes a key and the data associated with it. The key is removed and no + * longer counts against the key quota. Note that since this method is not safe + * in the face of concurrent modifications, it should only be used for + * development and testing purposes. Invoking this method in shipping code can + * result in data loss and data corruption. (states.delete) + * + * @param int $stateKey + * The key for the data to be retrieved. + * @param array $optParams Optional parameters. + */ + public function delete($stateKey, $optParams = array()) { + $params = array('stateKey' => $stateKey); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the data corresponding to the passed key. If the key does not exist + * on the server, an HTTP 404 will be returned. (states.get) + * + * @param int $stateKey + * The key for the data to be retrieved. + * @param array $optParams Optional parameters. + * @return Google_Service_AppState_GetResponse + */ + public function get($stateKey, $optParams = array()) { + $params = array('stateKey' => $stateKey); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AppState_GetResponse"); + } + + /** + * Lists all the states keys, and optionally the state data. (states.listStates) + * + * @param array $optParams Optional parameters. + * + * @opt_param bool includeData + * Whether to include the full data in addition to the version number + * @return Google_Service_AppState_ListResponse + */ + public function listStates($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AppState_ListResponse"); + } + + /** + * Update the data associated with the input key if and only if the passed + * version matches the currently stored version. This method is safe in the face + * of concurrent writes. Maximum per-key size is 128KB. (states.update) + * + * @param int $stateKey + * The key for the data to be retrieved. + * @param Google_UpdateRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string currentStateVersion + * The version of the app state your application is attempting to update. If this does not match + * the current version, this method will return a conflict error. If there is no data stored on the + * server for this key, the update will succeed irrespective of the value of this parameter. + * @return Google_Service_AppState_WriteResult + */ + public function update($stateKey, Google_Service_AppState_UpdateRequest $postBody, $optParams = array()) { + $params = array('stateKey' => $stateKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AppState_WriteResult"); + } } +class Google_Service_AppState_GetResponse extends Google_Model { + public $currentStateVersion; + public $data; + public $kind; + public $stateKey; + public function setCurrentStateVersion($currentStateVersion) { + $this->currentStateVersion = $currentStateVersion; + } -class Google_Service_AppState_GetResponse extends Google_Model -{ - public $currentStateVersion; - public $data; - public $kind; - public $stateKey; + public function getCurrentStateVersion() { + return $this->currentStateVersion; + } - public function setCurrentStateVersion($currentStateVersion) - { - $this->currentStateVersion = $currentStateVersion; - } + public function setData($data) { + $this->data = $data; + } - public function getCurrentStateVersion() - { - return $this->currentStateVersion; - } + public function getData() { + return $this->data; + } - public function setData($data) - { - $this->data = $data; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getData() - { - return $this->data; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setStateKey($stateKey) { + $this->stateKey = $stateKey; + } - public function getKind() - { - return $this->kind; - } - - public function setStateKey($stateKey) - { - $this->stateKey = $stateKey; - } - - public function getStateKey() - { - return $this->stateKey; - } + public function getStateKey() { + return $this->stateKey; + } } -class Google_Service_AppState_ListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_AppState_GetResponse'; - protected $itemsDataType = 'array'; - public $kind; - public $maximumKeyCount; +class Google_Service_AppState_ListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_AppState_GetResponse'; + protected $itemsDataType = 'array'; + public $kind; + public $maximumKeyCount; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMaximumKeyCount($maximumKeyCount) - { - $this->maximumKeyCount = $maximumKeyCount; - } + public function setMaximumKeyCount($maximumKeyCount) { + $this->maximumKeyCount = $maximumKeyCount; + } - public function getMaximumKeyCount() - { - return $this->maximumKeyCount; - } + public function getMaximumKeyCount() { + return $this->maximumKeyCount; + } } -class Google_Service_AppState_UpdateRequest extends Google_Model -{ - public $data; - public $kind; +class Google_Service_AppState_UpdateRequest extends Google_Model { + public $data; + public $kind; - public function setData($data) - { - $this->data = $data; - } + public function setData($data) { + $this->data = $data; + } - public function getData() - { - return $this->data; - } + public function getData() { + return $this->data; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_AppState_WriteResult extends Google_Model -{ - public $currentStateVersion; - public $kind; - public $stateKey; +class Google_Service_AppState_WriteResult extends Google_Model { + public $currentStateVersion; + public $kind; + public $stateKey; - public function setCurrentStateVersion($currentStateVersion) - { - $this->currentStateVersion = $currentStateVersion; - } + public function setCurrentStateVersion($currentStateVersion) { + $this->currentStateVersion = $currentStateVersion; + } - public function getCurrentStateVersion() - { - return $this->currentStateVersion; - } + public function getCurrentStateVersion() { + return $this->currentStateVersion; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setStateKey($stateKey) - { - $this->stateKey = $stateKey; - } + public function setStateKey($stateKey) { + $this->stateKey = $stateKey; + } - public function getStateKey() - { - return $this->stateKey; - } + public function getStateKey() { + return $this->stateKey; + } } diff --git a/oauth/Google/Service/Appsactivity.php b/oauth/Google/Service/Appsactivity.php index 8da66da..47a575b 100644 --- a/oauth/Google/Service/Appsactivity.php +++ b/oauth/Google/Service/Appsactivity.php @@ -29,76 +29,74 @@ * * @author Google, Inc. */ -class Google_Service_Appsactivity extends Google_Service -{ - /** View historical activity for Google services. */ - const ACTIVITY = "https://www.googleapis.com/auth/activity"; - /** View and manage the files and documents in your Google Drive. */ - const DRIVE = "https://www.googleapis.com/auth/drive"; - /** View metadata for files and documents in your Google Drive. */ - const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; - /** View the files and documents in your Google Drive. */ - const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; +class Google_Service_Appsactivity extends Google_Service { + /** View historical activity for Google services. */ + const ACTIVITY = "https://www.googleapis.com/auth/activity"; + /** View and manage the files and documents in your Google Drive. */ + const DRIVE = "https://www.googleapis.com/auth/drive"; + /** View metadata for files and documents in your Google Drive. */ + const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; + /** View the files and documents in your Google Drive. */ + const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; - public $activities; - + public $activities; - /** - * Constructs the internal representation of the Appsactivity service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'appsactivity/v1/'; - $this->version = 'v1'; - $this->serviceName = 'appsactivity'; - $this->activities = new Google_Service_Appsactivity_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'list' => array( - 'path' => 'activities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'drive.ancestorId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'groupingStrategy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'drive.fileId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Appsactivity service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'appsactivity/v1/'; + $this->version = 'v1'; + $this->serviceName = 'appsactivity'; + + $this->activities = new Google_Service_Appsactivity_Activities_Resource( + $this, + $this->serviceName, + 'activities', + array( + 'methods' => array( + 'list' => array( + 'path' => 'activities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'drive.ancestorId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'groupingStrategy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'drive.fileId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -110,479 +108,396 @@ class Google_Service_Appsactivity extends Google_Service * $activities = $appsactivityService->activities; * */ -class Google_Service_Appsactivity_Activities_Resource extends Google_Service_Resource -{ +class Google_Service_Appsactivity_Activities_Resource extends Google_Service_Resource { - /** - * Returns a list of activities visible to the current logged in user. Visible - * activities are determined by the visiblity settings of the object that was - * acted on, e.g. Drive files a user can see. An activity is a record of past - * events. Multiple events may be merged if they are similar. A request is - * scoped to activities from a given Google service using the source parameter. - * (activities.listActivities) - * - * @param array $optParams Optional parameters. - * - * @opt_param string drive.ancestorId - * Identifies the Drive folder containing the items for which to return activities. - * @opt_param int pageSize - * The maximum number of events to return on a page. The response includes a continuation token if - * there are more events. - * @opt_param string pageToken - * A token to retrieve a specific page of results. - * @opt_param string userId - * Indicates the user to return activity for. Use the special value me to indicate the currently - * authenticated user. - * @opt_param string groupingStrategy - * Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent - * object. - * @opt_param string drive.fileId - * Identifies the Drive item to return activities for. - * @opt_param string source - * The Google service from which to return activities. Possible values of source are: - - - * drive.google.com - * @return Google_Service_Appsactivity_ListActivitiesResponse - */ - public function listActivities($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Appsactivity_ListActivitiesResponse"); - } + /** + * Returns a list of activities visible to the current logged in user. Visible + * activities are determined by the visiblity settings of the object that was + * acted on, e.g. Drive files a user can see. An activity is a record of past + * events. Multiple events may be merged if they are similar. A request is + * scoped to activities from a given Google service using the source parameter. + * (activities.listActivities) + * + * @param array $optParams Optional parameters. + * + * @opt_param string drive.ancestorId + * Identifies the Drive folder containing the items for which to return activities. + * @opt_param int pageSize + * The maximum number of events to return on a page. The response includes a continuation token if + * there are more events. + * @opt_param string pageToken + * A token to retrieve a specific page of results. + * @opt_param string userId + * Indicates the user to return activity for. Use the special value me to indicate the currently + * authenticated user. + * @opt_param string groupingStrategy + * Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent + * object. + * @opt_param string drive.fileId + * Identifies the Drive item to return activities for. + * @opt_param string source + * The Google service from which to return activities. Possible values of source are: + * - + * drive.google.com + * @return Google_Service_Appsactivity_ListActivitiesResponse + */ + public function listActivities($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Appsactivity_ListActivitiesResponse"); + } } +class Google_Service_Appsactivity_Activity extends Google_Collection { + protected $combinedEventType = 'Google_Service_Appsactivity_Event'; + protected $combinedEventDataType = ''; + protected $singleEventsType = 'Google_Service_Appsactivity_Event'; + protected $singleEventsDataType = 'array'; + public function setCombinedEvent(Google_Service_Appsactivity_Event $combinedEvent) { + $this->combinedEvent = $combinedEvent; + } -class Google_Service_Appsactivity_Activity extends Google_Collection -{ - protected $combinedEventType = 'Google_Service_Appsactivity_Event'; - protected $combinedEventDataType = ''; - protected $singleEventsType = 'Google_Service_Appsactivity_Event'; - protected $singleEventsDataType = 'array'; + public function getCombinedEvent() { + return $this->combinedEvent; + } - public function setCombinedEvent(Google_Service_Appsactivity_Event $combinedEvent) - { - $this->combinedEvent = $combinedEvent; - } + public function setSingleEvents($singleEvents) { + $this->singleEvents = $singleEvents; + } - public function getCombinedEvent() - { - return $this->combinedEvent; - } - - public function setSingleEvents($singleEvents) - { - $this->singleEvents = $singleEvents; - } - - public function getSingleEvents() - { - return $this->singleEvents; - } + public function getSingleEvents() { + return $this->singleEvents; + } } -class Google_Service_Appsactivity_Event extends Google_Collection -{ - public $additionalEventTypes; - public $eventTimeMillis; - public $fromUserDeletion; - protected $moveType = 'Google_Service_Appsactivity_Move'; - protected $moveDataType = ''; - protected $permissionChangesType = 'Google_Service_Appsactivity_PermissionChange'; - protected $permissionChangesDataType = 'array'; - public $primaryEventType; - protected $renameType = 'Google_Service_Appsactivity_Rename'; - protected $renameDataType = ''; - protected $targetType = 'Google_Service_Appsactivity_Target'; - protected $targetDataType = ''; - protected $userType = 'Google_Service_Appsactivity_User'; - protected $userDataType = ''; +class Google_Service_Appsactivity_Event extends Google_Collection { + public $additionalEventTypes; + public $eventTimeMillis; + public $fromUserDeletion; + protected $moveType = 'Google_Service_Appsactivity_Move'; + protected $moveDataType = ''; + protected $permissionChangesType = 'Google_Service_Appsactivity_PermissionChange'; + protected $permissionChangesDataType = 'array'; + public $primaryEventType; + protected $renameType = 'Google_Service_Appsactivity_Rename'; + protected $renameDataType = ''; + protected $targetType = 'Google_Service_Appsactivity_Target'; + protected $targetDataType = ''; + protected $userType = 'Google_Service_Appsactivity_User'; + protected $userDataType = ''; - public function setAdditionalEventTypes($additionalEventTypes) - { - $this->additionalEventTypes = $additionalEventTypes; - } + public function setAdditionalEventTypes($additionalEventTypes) { + $this->additionalEventTypes = $additionalEventTypes; + } - public function getAdditionalEventTypes() - { - return $this->additionalEventTypes; - } + public function getAdditionalEventTypes() { + return $this->additionalEventTypes; + } - public function setEventTimeMillis($eventTimeMillis) - { - $this->eventTimeMillis = $eventTimeMillis; - } + public function setEventTimeMillis($eventTimeMillis) { + $this->eventTimeMillis = $eventTimeMillis; + } - public function getEventTimeMillis() - { - return $this->eventTimeMillis; - } + public function getEventTimeMillis() { + return $this->eventTimeMillis; + } - public function setFromUserDeletion($fromUserDeletion) - { - $this->fromUserDeletion = $fromUserDeletion; - } + public function setFromUserDeletion($fromUserDeletion) { + $this->fromUserDeletion = $fromUserDeletion; + } - public function getFromUserDeletion() - { - return $this->fromUserDeletion; - } + public function getFromUserDeletion() { + return $this->fromUserDeletion; + } - public function setMove(Google_Service_Appsactivity_Move $move) - { - $this->move = $move; - } + public function setMove(Google_Service_Appsactivity_Move $move) { + $this->move = $move; + } - public function getMove() - { - return $this->move; - } + public function getMove() { + return $this->move; + } - public function setPermissionChanges($permissionChanges) - { - $this->permissionChanges = $permissionChanges; - } + public function setPermissionChanges($permissionChanges) { + $this->permissionChanges = $permissionChanges; + } - public function getPermissionChanges() - { - return $this->permissionChanges; - } + public function getPermissionChanges() { + return $this->permissionChanges; + } - public function setPrimaryEventType($primaryEventType) - { - $this->primaryEventType = $primaryEventType; - } + public function setPrimaryEventType($primaryEventType) { + $this->primaryEventType = $primaryEventType; + } - public function getPrimaryEventType() - { - return $this->primaryEventType; - } + public function getPrimaryEventType() { + return $this->primaryEventType; + } - public function setRename(Google_Service_Appsactivity_Rename $rename) - { - $this->rename = $rename; - } + public function setRename(Google_Service_Appsactivity_Rename $rename) { + $this->rename = $rename; + } - public function getRename() - { - return $this->rename; - } + public function getRename() { + return $this->rename; + } - public function setTarget(Google_Service_Appsactivity_Target $target) - { - $this->target = $target; - } + public function setTarget(Google_Service_Appsactivity_Target $target) { + $this->target = $target; + } - public function getTarget() - { - return $this->target; - } + public function getTarget() { + return $this->target; + } - public function setUser(Google_Service_Appsactivity_User $user) - { - $this->user = $user; - } + public function setUser(Google_Service_Appsactivity_User $user) { + $this->user = $user; + } - public function getUser() - { - return $this->user; - } + public function getUser() { + return $this->user; + } } -class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collection -{ - protected $activitiesType = 'Google_Service_Appsactivity_Activity'; - protected $activitiesDataType = 'array'; - public $nextPageToken; +class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collection { + protected $activitiesType = 'Google_Service_Appsactivity_Activity'; + protected $activitiesDataType = 'array'; + public $nextPageToken; - public function setActivities($activities) - { - $this->activities = $activities; - } + public function setActivities($activities) { + $this->activities = $activities; + } - public function getActivities() - { - return $this->activities; - } + public function getActivities() { + return $this->activities; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Appsactivity_Move extends Google_Collection -{ - protected $addedParentsType = 'Google_Service_Appsactivity_Parent'; - protected $addedParentsDataType = 'array'; - protected $removedParentsType = 'Google_Service_Appsactivity_Parent'; - protected $removedParentsDataType = 'array'; +class Google_Service_Appsactivity_Move extends Google_Collection { + protected $addedParentsType = 'Google_Service_Appsactivity_Parent'; + protected $addedParentsDataType = 'array'; + protected $removedParentsType = 'Google_Service_Appsactivity_Parent'; + protected $removedParentsDataType = 'array'; - public function setAddedParents($addedParents) - { - $this->addedParents = $addedParents; - } + public function setAddedParents($addedParents) { + $this->addedParents = $addedParents; + } - public function getAddedParents() - { - return $this->addedParents; - } + public function getAddedParents() { + return $this->addedParents; + } - public function setRemovedParents($removedParents) - { - $this->removedParents = $removedParents; - } + public function setRemovedParents($removedParents) { + $this->removedParents = $removedParents; + } - public function getRemovedParents() - { - return $this->removedParents; - } + public function getRemovedParents() { + return $this->removedParents; + } } -class Google_Service_Appsactivity_Parent extends Google_Model -{ - public $id; - public $isRoot; - public $title; +class Google_Service_Appsactivity_Parent extends Google_Model { + public $id; + public $isRoot; + public $title; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setIsRoot($isRoot) - { - $this->isRoot = $isRoot; - } + public function setIsRoot($isRoot) { + $this->isRoot = $isRoot; + } - public function getIsRoot() - { - return $this->isRoot; - } + public function getIsRoot() { + return $this->isRoot; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_Appsactivity_Permission extends Google_Model -{ - public $name; - public $permissionId; - public $role; - public $type; - protected $userType = 'Google_Service_Appsactivity_User'; - protected $userDataType = ''; - public $withLink; +class Google_Service_Appsactivity_Permission extends Google_Model { + public $name; + public $permissionId; + public $role; + public $type; + protected $userType = 'Google_Service_Appsactivity_User'; + protected $userDataType = ''; + public $withLink; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPermissionId($permissionId) - { - $this->permissionId = $permissionId; - } + public function setPermissionId($permissionId) { + $this->permissionId = $permissionId; + } - public function getPermissionId() - { - return $this->permissionId; - } + public function getPermissionId() { + return $this->permissionId; + } - public function setRole($role) - { - $this->role = $role; - } + public function setRole($role) { + $this->role = $role; + } - public function getRole() - { - return $this->role; - } + public function getRole() { + return $this->role; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUser(Google_Service_Appsactivity_User $user) - { - $this->user = $user; - } + public function setUser(Google_Service_Appsactivity_User $user) { + $this->user = $user; + } - public function getUser() - { - return $this->user; - } + public function getUser() { + return $this->user; + } - public function setWithLink($withLink) - { - $this->withLink = $withLink; - } + public function setWithLink($withLink) { + $this->withLink = $withLink; + } - public function getWithLink() - { - return $this->withLink; - } + public function getWithLink() { + return $this->withLink; + } } -class Google_Service_Appsactivity_PermissionChange extends Google_Collection -{ - protected $addedPermissionsType = 'Google_Service_Appsactivity_Permission'; - protected $addedPermissionsDataType = 'array'; - protected $removedPermissionsType = 'Google_Service_Appsactivity_Permission'; - protected $removedPermissionsDataType = 'array'; +class Google_Service_Appsactivity_PermissionChange extends Google_Collection { + protected $addedPermissionsType = 'Google_Service_Appsactivity_Permission'; + protected $addedPermissionsDataType = 'array'; + protected $removedPermissionsType = 'Google_Service_Appsactivity_Permission'; + protected $removedPermissionsDataType = 'array'; - public function setAddedPermissions($addedPermissions) - { - $this->addedPermissions = $addedPermissions; - } + public function setAddedPermissions($addedPermissions) { + $this->addedPermissions = $addedPermissions; + } - public function getAddedPermissions() - { - return $this->addedPermissions; - } + public function getAddedPermissions() { + return $this->addedPermissions; + } - public function setRemovedPermissions($removedPermissions) - { - $this->removedPermissions = $removedPermissions; - } + public function setRemovedPermissions($removedPermissions) { + $this->removedPermissions = $removedPermissions; + } - public function getRemovedPermissions() - { - return $this->removedPermissions; - } + public function getRemovedPermissions() { + return $this->removedPermissions; + } } -class Google_Service_Appsactivity_Photo extends Google_Model -{ - public $url; +class Google_Service_Appsactivity_Photo extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Appsactivity_Rename extends Google_Model -{ - public $newTitle; - public $oldTitle; +class Google_Service_Appsactivity_Rename extends Google_Model { + public $newTitle; + public $oldTitle; - public function setNewTitle($newTitle) - { - $this->newTitle = $newTitle; - } + public function setNewTitle($newTitle) { + $this->newTitle = $newTitle; + } - public function getNewTitle() - { - return $this->newTitle; - } + public function getNewTitle() { + return $this->newTitle; + } - public function setOldTitle($oldTitle) - { - $this->oldTitle = $oldTitle; - } + public function setOldTitle($oldTitle) { + $this->oldTitle = $oldTitle; + } - public function getOldTitle() - { - return $this->oldTitle; - } + public function getOldTitle() { + return $this->oldTitle; + } } -class Google_Service_Appsactivity_Target extends Google_Model -{ - public $id; - public $mimeType; - public $name; +class Google_Service_Appsactivity_Target extends Google_Model { + public $id; + public $mimeType; + public $name; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } + public function setMimeType($mimeType) { + $this->mimeType = $mimeType; + } - public function getMimeType() - { - return $this->mimeType; - } + public function getMimeType() { + return $this->mimeType; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Appsactivity_User extends Google_Model -{ - public $name; - protected $photoType = 'Google_Service_Appsactivity_Photo'; - protected $photoDataType = ''; +class Google_Service_Appsactivity_User extends Google_Model { + public $name; + protected $photoType = 'Google_Service_Appsactivity_Photo'; + protected $photoDataType = ''; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPhoto(Google_Service_Appsactivity_Photo $photo) - { - $this->photo = $photo; - } + public function setPhoto(Google_Service_Appsactivity_Photo $photo) { + $this->photo = $photo; + } - public function getPhoto() - { - return $this->photo; - } + public function getPhoto() { + return $this->photo; + } } diff --git a/oauth/Google/Service/Audit.php b/oauth/Google/Service/Audit.php index 973cd55..2b6355c 100644 --- a/oauth/Google/Service/Audit.php +++ b/oauth/Google/Service/Audit.php @@ -29,87 +29,85 @@ * * @author Google, Inc. */ -class Google_Service_Audit extends Google_Service -{ +class Google_Service_Audit extends Google_Service { - public $activities; - + public $activities; - /** - * Constructs the internal representation of the Audit service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'apps/reporting/audit/v1/'; - $this->version = 'v1'; - $this->serviceName = 'audit'; - $this->activities = new Google_Service_Audit_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'list' => array( - 'path' => '{customerId}/{applicationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'actorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'actorApplicationId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'actorIpAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'caller' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'eventName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'continuationToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Audit service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'apps/reporting/audit/v1/'; + $this->version = 'v1'; + $this->serviceName = 'audit'; + + $this->activities = new Google_Service_Audit_Activities_Resource( + $this, + $this->serviceName, + 'activities', + array( + 'methods' => array( + 'list' => array( + 'path' => '{customerId}/{applicationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'actorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'actorApplicationId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'actorIpAddress' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'caller' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'eventName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'continuationToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -121,318 +119,264 @@ class Google_Service_Audit extends Google_Service * $activities = $auditService->activities; * */ -class Google_Service_Audit_Activities_Resource extends Google_Service_Resource -{ +class Google_Service_Audit_Activities_Resource extends Google_Service_Resource { - /** - * Retrieves a list of activities for a specific customer and application. - * (activities.listActivities) - * - * @param string $customerId - * Represents the customer who is the owner of target object on which action was performed. - * @param string $applicationId - * Application ID of the application on which the event was performed. - * @param array $optParams Optional parameters. - * - * @opt_param string actorEmail - * Email address of the user who performed the action. - * @opt_param string actorApplicationId - * Application ID of the application which interacted on behalf of the user while performing the - * event. - * @opt_param string actorIpAddress - * IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses. - * @opt_param string caller - * Type of the caller. - * @opt_param int maxResults - * Number of activity records to be shown in each page. - * @opt_param string eventName - * Name of the event being queried. - * @opt_param string startTime - * Return events which occured at or after this time. - * @opt_param string endTime - * Return events which occured at or before this time. - * @opt_param string continuationToken - * Next page URL. - * @return Google_Service_Audit_Activities - */ - public function listActivities($customerId, $applicationId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'applicationId' => $applicationId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Audit_Activities"); - } + /** + * Retrieves a list of activities for a specific customer and application. + * (activities.listActivities) + * + * @param string $customerId + * Represents the customer who is the owner of target object on which action was performed. + * @param string $applicationId + * Application ID of the application on which the event was performed. + * @param array $optParams Optional parameters. + * + * @opt_param string actorEmail + * Email address of the user who performed the action. + * @opt_param string actorApplicationId + * Application ID of the application which interacted on behalf of the user while performing the + * event. + * @opt_param string actorIpAddress + * IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses. + * @opt_param string caller + * Type of the caller. + * @opt_param int maxResults + * Number of activity records to be shown in each page. + * @opt_param string eventName + * Name of the event being queried. + * @opt_param string startTime + * Return events which occured at or after this time. + * @opt_param string endTime + * Return events which occured at or before this time. + * @opt_param string continuationToken + * Next page URL. + * @return Google_Service_Audit_Activities + */ + public function listActivities($customerId, $applicationId, $optParams = array()) { + $params = array('customerId' => $customerId, 'applicationId' => $applicationId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Audit_Activities"); + } } +class Google_Service_Audit_Activities extends Google_Collection { + protected $itemsType = 'Google_Service_Audit_Activity'; + protected $itemsDataType = 'array'; + public $kind; + public $next; + public function setItems($items) { + $this->items = $items; + } -class Google_Service_Audit_Activities extends Google_Collection -{ - protected $itemsType = 'Google_Service_Audit_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $next; + public function getItems() { + return $this->items; + } - public function setItems($items) - { - $this->items = $items; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getItems() - { - return $this->items; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setNext($next) { + $this->next = $next; + } - public function getKind() - { - return $this->kind; - } - - public function setNext($next) - { - $this->next = $next; - } - - public function getNext() - { - return $this->next; - } + public function getNext() { + return $this->next; + } } -class Google_Service_Audit_Activity extends Google_Collection -{ - protected $actorType = 'Google_Service_Audit_ActivityActor'; - protected $actorDataType = ''; - protected $eventsType = 'Google_Service_Audit_ActivityEvents'; - protected $eventsDataType = 'array'; - protected $idType = 'Google_Service_Audit_ActivityId'; - protected $idDataType = ''; - public $ipAddress; - public $kind; - public $ownerDomain; +class Google_Service_Audit_Activity extends Google_Collection { + protected $actorType = 'Google_Service_Audit_ActivityActor'; + protected $actorDataType = ''; + protected $eventsType = 'Google_Service_Audit_ActivityEvents'; + protected $eventsDataType = 'array'; + protected $idType = 'Google_Service_Audit_ActivityId'; + protected $idDataType = ''; + public $ipAddress; + public $kind; + public $ownerDomain; - public function setActor(Google_Service_Audit_ActivityActor $actor) - { - $this->actor = $actor; - } + public function setActor(Google_Service_Audit_ActivityActor $actor) { + $this->actor = $actor; + } - public function getActor() - { - return $this->actor; - } + public function getActor() { + return $this->actor; + } - public function setEvents($events) - { - $this->events = $events; - } + public function setEvents($events) { + $this->events = $events; + } - public function getEvents() - { - return $this->events; - } + public function getEvents() { + return $this->events; + } - public function setId(Google_Service_Audit_ActivityId $id) - { - $this->id = $id; - } + public function setId(Google_Service_Audit_ActivityId $id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } + public function setIpAddress($ipAddress) { + $this->ipAddress = $ipAddress; + } - public function getIpAddress() - { - return $this->ipAddress; - } + public function getIpAddress() { + return $this->ipAddress; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOwnerDomain($ownerDomain) - { - $this->ownerDomain = $ownerDomain; - } + public function setOwnerDomain($ownerDomain) { + $this->ownerDomain = $ownerDomain; + } - public function getOwnerDomain() - { - return $this->ownerDomain; - } + public function getOwnerDomain() { + return $this->ownerDomain; + } } -class Google_Service_Audit_ActivityActor extends Google_Model -{ - public $applicationId; - public $callerType; - public $email; - public $key; +class Google_Service_Audit_ActivityActor extends Google_Model { + public $applicationId; + public $callerType; + public $email; + public $key; - public function setApplicationId($applicationId) - { - $this->applicationId = $applicationId; - } + public function setApplicationId($applicationId) { + $this->applicationId = $applicationId; + } - public function getApplicationId() - { - return $this->applicationId; - } + public function getApplicationId() { + return $this->applicationId; + } - public function setCallerType($callerType) - { - $this->callerType = $callerType; - } + public function setCallerType($callerType) { + $this->callerType = $callerType; + } - public function getCallerType() - { - return $this->callerType; - } + public function getCallerType() { + return $this->callerType; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } } -class Google_Service_Audit_ActivityEvents extends Google_Collection -{ - public $eventType; - public $name; - protected $parametersType = 'Google_Service_Audit_ActivityEventsParameters'; - protected $parametersDataType = 'array'; +class Google_Service_Audit_ActivityEvents extends Google_Collection { + public $eventType; + public $name; + protected $parametersType = 'Google_Service_Audit_ActivityEventsParameters'; + protected $parametersDataType = 'array'; - public function setEventType($eventType) - { - $this->eventType = $eventType; - } + public function setEventType($eventType) { + $this->eventType = $eventType; + } - public function getEventType() - { - return $this->eventType; - } + public function getEventType() { + return $this->eventType; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setParameters($parameters) - { - $this->parameters = $parameters; - } + public function setParameters($parameters) { + $this->parameters = $parameters; + } - public function getParameters() - { - return $this->parameters; - } + public function getParameters() { + return $this->parameters; + } } -class Google_Service_Audit_ActivityEventsParameters extends Google_Model -{ - public $name; - public $value; +class Google_Service_Audit_ActivityEventsParameters extends Google_Model { + public $name; + public $value; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Audit_ActivityId extends Google_Model -{ - public $applicationId; - public $customerId; - public $time; - public $uniqQualifier; +class Google_Service_Audit_ActivityId extends Google_Model { + public $applicationId; + public $customerId; + public $time; + public $uniqQualifier; - public function setApplicationId($applicationId) - { - $this->applicationId = $applicationId; - } + public function setApplicationId($applicationId) { + $this->applicationId = $applicationId; + } - public function getApplicationId() - { - return $this->applicationId; - } + public function getApplicationId() { + return $this->applicationId; + } - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } + public function setCustomerId($customerId) { + $this->customerId = $customerId; + } - public function getCustomerId() - { - return $this->customerId; - } + public function getCustomerId() { + return $this->customerId; + } - public function setTime($time) - { - $this->time = $time; - } + public function setTime($time) { + $this->time = $time; + } - public function getTime() - { - return $this->time; - } + public function getTime() { + return $this->time; + } - public function setUniqQualifier($uniqQualifier) - { - $this->uniqQualifier = $uniqQualifier; - } + public function setUniqQualifier($uniqQualifier) { + $this->uniqQualifier = $uniqQualifier; + } - public function getUniqQualifier() - { - return $this->uniqQualifier; - } + public function getUniqQualifier() { + return $this->uniqQualifier; + } } diff --git a/oauth/Google/Service/Autoscaler.php b/oauth/Google/Service/Autoscaler.php index 5a31425..158bd7c 100644 --- a/oauth/Google/Service/Autoscaler.php +++ b/oauth/Google/Service/Autoscaler.php @@ -29,239 +29,237 @@ * * @author Google, Inc. */ -class Google_Service_Autoscaler extends Google_Service -{ - /** View and manage your Google Compute Engine resources. */ - const COMPUTE = "https://www.googleapis.com/auth/compute"; - /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; +class Google_Service_Autoscaler extends Google_Service { + /** View and manage your Google Compute Engine resources. */ + const COMPUTE = "https://www.googleapis.com/auth/compute"; + /** View your Google Compute Engine resources. */ + const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; - public $autoscalers; - public $zoneOperations; - + public $autoscalers; + public $zoneOperations; - /** - * Constructs the internal representation of the Autoscaler service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'autoscaler/v1beta2/'; - $this->version = 'v1beta2'; - $this->serviceName = 'autoscaler'; - $this->autoscalers = new Google_Service_Autoscaler_Autoscalers_Resource( - $this, - $this->serviceName, - 'autoscalers', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoscaler' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->zoneOperations = new Google_Service_Autoscaler_ZoneOperations_Resource( - $this, - $this->serviceName, - 'zoneOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Autoscaler service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'autoscaler/v1beta2/'; + $this->version = 'v1beta2'; + $this->serviceName = 'autoscaler'; + + $this->autoscalers = new Google_Service_Autoscaler_Autoscalers_Resource( + $this, + $this->serviceName, + 'autoscalers', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoscaler' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->zoneOperations = new Google_Service_Autoscaler_ZoneOperations_Resource( + $this, + $this->serviceName, + 'zoneOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/zones/{zone}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } } @@ -273,124 +271,122 @@ class Google_Service_Autoscaler extends Google_Service * $autoscalers = $autoscalerService->autoscalers; * */ -class Google_Service_Autoscaler_Autoscalers_Resource extends Google_Service_Resource -{ +class Google_Service_Autoscaler_Autoscalers_Resource extends Google_Service_Resource { - /** - * Deletes the specified Autoscaler resource. (autoscalers.delete) - * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. - * @param string $autoscaler - * Name of the Autoscaler resource. - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Operation - */ - public function delete($project, $zone, $autoscaler, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Autoscaler_Operation"); - } - /** - * Gets the specified Autoscaler resource. (autoscalers.get) - * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. - * @param string $autoscaler - * Name of the Autoscaler resource. - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Autoscaler - */ - public function get($project, $zone, $autoscaler, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Autoscaler_Autoscaler"); - } - /** - * Adds new Autoscaler resource. (autoscalers.insert) - * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. - * @param Google_Autoscaler $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Operation - */ - public function insert($project, $zone, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Autoscaler_Operation"); - } - /** - * Lists all Autoscaler resources in this zone. (autoscalers.listAutoscalers) - * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * - * @opt_param string pageToken - * - * @opt_param string maxResults - * - * @return Google_Service_Autoscaler_AutoscalerListResponse - */ - public function listAutoscalers($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Autoscaler_AutoscalerListResponse"); - } - /** - * Update the entire content of the Autoscaler resource. This method supports - * patch semantics. (autoscalers.patch) - * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. - * @param string $autoscaler - * Name of the Autoscaler resource. - * @param Google_Autoscaler $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Operation - */ - public function patch($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Autoscaler_Operation"); - } - /** - * Update the entire content of the Autoscaler resource. (autoscalers.update) - * - * @param string $project - * Project ID of Autoscaler resource. - * @param string $zone - * Zone name of Autoscaler resource. - * @param string $autoscaler - * Name of the Autoscaler resource. - * @param Google_Autoscaler $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Operation - */ - public function update($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Autoscaler_Operation"); - } + /** + * Deletes the specified Autoscaler resource. (autoscalers.delete) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param string $autoscaler + * Name of the Autoscaler resource. + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Operation + */ + public function delete($project, $zone, $autoscaler, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Autoscaler_Operation"); + } + + /** + * Gets the specified Autoscaler resource. (autoscalers.get) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param string $autoscaler + * Name of the Autoscaler resource. + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Autoscaler + */ + public function get($project, $zone, $autoscaler, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Autoscaler_Autoscaler"); + } + + /** + * Adds new Autoscaler resource. (autoscalers.insert) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param Google_Autoscaler $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Operation + */ + public function insert($project, $zone, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Autoscaler_Operation"); + } + + /** + * Lists all Autoscaler resources in this zone. (autoscalers.listAutoscalers) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * + * @opt_param string pageToken + * + * @opt_param string maxResults + * + * @return Google_Service_Autoscaler_AutoscalerListResponse + */ + public function listAutoscalers($project, $zone, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Autoscaler_AutoscalerListResponse"); + } + + /** + * Update the entire content of the Autoscaler resource. This method supports + * patch semantics. (autoscalers.patch) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param string $autoscaler + * Name of the Autoscaler resource. + * @param Google_Autoscaler $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Operation + */ + public function patch($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Autoscaler_Operation"); + } + + /** + * Update the entire content of the Autoscaler resource. (autoscalers.update) + * + * @param string $project + * Project ID of Autoscaler resource. + * @param string $zone + * Zone name of Autoscaler resource. + * @param string $autoscaler + * Name of the Autoscaler resource. + * @param Google_Autoscaler $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Operation + */ + public function update($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Autoscaler_Operation"); + } } /** @@ -401,734 +397,608 @@ class Google_Service_Autoscaler_Autoscalers_Resource extends Google_Service_Reso * $zoneOperations = $autoscalerService->zoneOperations; * */ -class Google_Service_Autoscaler_ZoneOperations_Resource extends Google_Service_Resource -{ +class Google_Service_Autoscaler_ZoneOperations_Resource extends Google_Service_Resource { - /** - * Deletes the specified zone-specific operation resource. - * (zoneOperations.delete) - * - * @param string $project - * - * @param string $zone - * - * @param string $operation - * - * @param array $optParams Optional parameters. - */ - public function delete($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves the specified zone-specific operation resource. - * (zoneOperations.get) - * - * @param string $project - * - * @param string $zone - * - * @param string $operation - * - * @param array $optParams Optional parameters. - * @return Google_Service_Autoscaler_Operation - */ - public function get($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Autoscaler_Operation"); - } - /** - * Retrieves the list of operation resources contained within the specified - * zone. (zoneOperations.listZoneOperations) - * - * @param string $project - * - * @param string $zone - * - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * - * @opt_param string pageToken - * - * @opt_param string maxResults - * - * @return Google_Service_Autoscaler_OperationList - */ - public function listZoneOperations($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Autoscaler_OperationList"); - } + /** + * Deletes the specified zone-specific operation resource. + * (zoneOperations.delete) + * + * @param string $project + * + * @param string $zone + * + * @param string $operation + * + * @param array $optParams Optional parameters. + */ + public function delete($project, $zone, $operation, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified zone-specific operation resource. + * (zoneOperations.get) + * + * @param string $project + * + * @param string $zone + * + * @param string $operation + * + * @param array $optParams Optional parameters. + * @return Google_Service_Autoscaler_Operation + */ + public function get($project, $zone, $operation, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Autoscaler_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * zone. (zoneOperations.listZoneOperations) + * + * @param string $project + * + * @param string $zone + * + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * + * @opt_param string pageToken + * + * @opt_param string maxResults + * + * @return Google_Service_Autoscaler_OperationList + */ + public function listZoneOperations($project, $zone, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Autoscaler_OperationList"); + } } +class Google_Service_Autoscaler_Autoscaler extends Google_Model { + protected $autoscalingPolicyType = 'Google_Service_Autoscaler_AutoscalingPolicy'; + protected $autoscalingPolicyDataType = ''; + public $creationTimestamp; + public $description; + public $id; + public $name; + public $selfLink; + public $target; + public function setAutoscalingPolicy(Google_Service_Autoscaler_AutoscalingPolicy $autoscalingPolicy) { + $this->autoscalingPolicy = $autoscalingPolicy; + } -class Google_Service_Autoscaler_Autoscaler extends Google_Model -{ - protected $autoscalingPolicyType = 'Google_Service_Autoscaler_AutoscalingPolicy'; - protected $autoscalingPolicyDataType = ''; - public $creationTimestamp; - public $description; - public $id; - public $name; - public $selfLink; - public $target; + public function getAutoscalingPolicy() { + return $this->autoscalingPolicy; + } - public function setAutoscalingPolicy(Google_Service_Autoscaler_AutoscalingPolicy $autoscalingPolicy) - { - $this->autoscalingPolicy = $autoscalingPolicy; - } + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } - public function getAutoscalingPolicy() - { - return $this->autoscalingPolicy; - } + public function getCreationTimestamp() { + return $this->creationTimestamp; + } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } + public function setDescription($description) { + $this->description = $description; + } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } + public function getDescription() { + return $this->description; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setId($id) { + $this->id = $id; + } - public function getDescription() - { - return $this->description; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setName($name) { + $this->name = $name; + } - public function getId() - { - return $this->id; - } + public function getName() { + return $this->name; + } - public function setName($name) - { - $this->name = $name; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getName() - { - return $this->name; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setTarget($target) { + $this->target = $target; + } - public function getSelfLink() - { - return $this->selfLink; - } - - public function setTarget($target) - { - $this->target = $target; - } - - public function getTarget() - { - return $this->target; - } + public function getTarget() { + return $this->target; + } } -class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Autoscaler_Autoscaler'; - protected $itemsDataType = 'array'; - public $nextPageToken; +class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Autoscaler_Autoscaler'; + protected $itemsDataType = 'array'; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Collection -{ - public $coolDownPeriodSec; - protected $cpuUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization'; - protected $cpuUtilizationDataType = ''; - protected $customMetricUtilizationsType = 'Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization'; - protected $customMetricUtilizationsDataType = 'array'; - protected $loadBalancingUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization'; - protected $loadBalancingUtilizationDataType = ''; - public $maxNumReplicas; - public $minNumReplicas; +class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Collection { + public $coolDownPeriodSec; + protected $cpuUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization'; + protected $cpuUtilizationDataType = ''; + protected $customMetricUtilizationsType = 'Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization'; + protected $customMetricUtilizationsDataType = 'array'; + protected $loadBalancingUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization'; + protected $loadBalancingUtilizationDataType = ''; + public $maxNumReplicas; + public $minNumReplicas; - public function setCoolDownPeriodSec($coolDownPeriodSec) - { - $this->coolDownPeriodSec = $coolDownPeriodSec; - } + public function setCoolDownPeriodSec($coolDownPeriodSec) { + $this->coolDownPeriodSec = $coolDownPeriodSec; + } - public function getCoolDownPeriodSec() - { - return $this->coolDownPeriodSec; - } + public function getCoolDownPeriodSec() { + return $this->coolDownPeriodSec; + } - public function setCpuUtilization(Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization $cpuUtilization) - { - $this->cpuUtilization = $cpuUtilization; - } + public function setCpuUtilization(Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization $cpuUtilization) { + $this->cpuUtilization = $cpuUtilization; + } - public function getCpuUtilization() - { - return $this->cpuUtilization; - } + public function getCpuUtilization() { + return $this->cpuUtilization; + } - public function setCustomMetricUtilizations($customMetricUtilizations) - { - $this->customMetricUtilizations = $customMetricUtilizations; - } + public function setCustomMetricUtilizations($customMetricUtilizations) { + $this->customMetricUtilizations = $customMetricUtilizations; + } - public function getCustomMetricUtilizations() - { - return $this->customMetricUtilizations; - } + public function getCustomMetricUtilizations() { + return $this->customMetricUtilizations; + } - public function setLoadBalancingUtilization(Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization) - { - $this->loadBalancingUtilization = $loadBalancingUtilization; - } + public function setLoadBalancingUtilization(Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization) { + $this->loadBalancingUtilization = $loadBalancingUtilization; + } - public function getLoadBalancingUtilization() - { - return $this->loadBalancingUtilization; - } + public function getLoadBalancingUtilization() { + return $this->loadBalancingUtilization; + } - public function setMaxNumReplicas($maxNumReplicas) - { - $this->maxNumReplicas = $maxNumReplicas; - } + public function setMaxNumReplicas($maxNumReplicas) { + $this->maxNumReplicas = $maxNumReplicas; + } - public function getMaxNumReplicas() - { - return $this->maxNumReplicas; - } + public function getMaxNumReplicas() { + return $this->maxNumReplicas; + } - public function setMinNumReplicas($minNumReplicas) - { - $this->minNumReplicas = $minNumReplicas; - } + public function setMinNumReplicas($minNumReplicas) { + $this->minNumReplicas = $minNumReplicas; + } - public function getMinNumReplicas() - { - return $this->minNumReplicas; - } + public function getMinNumReplicas() { + return $this->minNumReplicas; + } } -class Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization extends Google_Model -{ - public $utilizationTarget; +class Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization extends Google_Model { + public $utilizationTarget; - public function setUtilizationTarget($utilizationTarget) - { - $this->utilizationTarget = $utilizationTarget; - } + public function setUtilizationTarget($utilizationTarget) { + $this->utilizationTarget = $utilizationTarget; + } - public function getUtilizationTarget() - { - return $this->utilizationTarget; - } + public function getUtilizationTarget() { + return $this->utilizationTarget; + } } -class Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization extends Google_Model -{ - public $metric; - public $utilizationTarget; +class Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization extends Google_Model { + public $metric; + public $utilizationTarget; - public function setMetric($metric) - { - $this->metric = $metric; - } + public function setMetric($metric) { + $this->metric = $metric; + } - public function getMetric() - { - return $this->metric; - } + public function getMetric() { + return $this->metric; + } - public function setUtilizationTarget($utilizationTarget) - { - $this->utilizationTarget = $utilizationTarget; - } + public function setUtilizationTarget($utilizationTarget) { + $this->utilizationTarget = $utilizationTarget; + } - public function getUtilizationTarget() - { - return $this->utilizationTarget; - } + public function getUtilizationTarget() { + return $this->utilizationTarget; + } } -class Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization extends Google_Model -{ - public $utilizationTarget; +class Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization extends Google_Model { + public $utilizationTarget; - public function setUtilizationTarget($utilizationTarget) - { - $this->utilizationTarget = $utilizationTarget; - } + public function setUtilizationTarget($utilizationTarget) { + $this->utilizationTarget = $utilizationTarget; + } - public function getUtilizationTarget() - { - return $this->utilizationTarget; - } + public function getUtilizationTarget() { + return $this->utilizationTarget; + } } -class Google_Service_Autoscaler_Operation extends Google_Collection -{ - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_Autoscaler_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Autoscaler_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; +class Google_Service_Autoscaler_Operation extends Google_Collection { + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Autoscaler_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Autoscaler_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } + public function setClientOperationId($clientOperationId) { + $this->clientOperationId = $clientOperationId; + } - public function getClientOperationId() - { - return $this->clientOperationId; - } + public function getClientOperationId() { + return $this->clientOperationId; + } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } + public function getCreationTimestamp() { + return $this->creationTimestamp; + } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } + public function setEndTime($endTime) { + $this->endTime = $endTime; + } - public function getEndTime() - { - return $this->endTime; - } + public function getEndTime() { + return $this->endTime; + } - public function setError(Google_Service_Autoscaler_OperationError $error) - { - $this->error = $error; - } + public function setError(Google_Service_Autoscaler_OperationError $error) { + $this->error = $error; + } - public function getError() - { - return $this->error; - } + public function getError() { + return $this->error; + } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } + public function setHttpErrorMessage($httpErrorMessage) { + $this->httpErrorMessage = $httpErrorMessage; + } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } + public function getHttpErrorMessage() { + return $this->httpErrorMessage; + } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } + public function setHttpErrorStatusCode($httpErrorStatusCode) { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } + public function getHttpErrorStatusCode() { + return $this->httpErrorStatusCode; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } + public function setInsertTime($insertTime) { + $this->insertTime = $insertTime; + } - public function getInsertTime() - { - return $this->insertTime; - } + public function getInsertTime() { + return $this->insertTime; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } + public function setOperationType($operationType) { + $this->operationType = $operationType; + } - public function getOperationType() - { - return $this->operationType; - } + public function getOperationType() { + return $this->operationType; + } - public function setProgress($progress) - { - $this->progress = $progress; - } + public function setProgress($progress) { + $this->progress = $progress; + } - public function getProgress() - { - return $this->progress; - } + public function getProgress() { + return $this->progress; + } - public function setRegion($region) - { - $this->region = $region; - } + public function setRegion($region) { + $this->region = $region; + } - public function getRegion() - { - return $this->region; - } + public function getRegion() { + return $this->region; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getStartTime() - { - return $this->startTime; - } + public function getStartTime() { + return $this->startTime; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } + public function setStatusMessage($statusMessage) { + $this->statusMessage = $statusMessage; + } - public function getStatusMessage() - { - return $this->statusMessage; - } + public function getStatusMessage() { + return $this->statusMessage; + } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } + public function setTargetId($targetId) { + $this->targetId = $targetId; + } - public function getTargetId() - { - return $this->targetId; - } + public function getTargetId() { + return $this->targetId; + } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } + public function setTargetLink($targetLink) { + $this->targetLink = $targetLink; + } - public function getTargetLink() - { - return $this->targetLink; - } + public function getTargetLink() { + return $this->targetLink; + } - public function setUser($user) - { - $this->user = $user; - } + public function setUser($user) { + $this->user = $user; + } - public function getUser() - { - return $this->user; - } + public function getUser() { + return $this->user; + } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } + public function setWarnings($warnings) { + $this->warnings = $warnings; + } - public function getWarnings() - { - return $this->warnings; - } + public function getWarnings() { + return $this->warnings; + } - public function setZone($zone) - { - $this->zone = $zone; - } + public function setZone($zone) { + $this->zone = $zone; + } - public function getZone() - { - return $this->zone; - } + public function getZone() { + return $this->zone; + } } -class Google_Service_Autoscaler_OperationError extends Google_Collection -{ - protected $errorsType = 'Google_Service_Autoscaler_OperationErrorErrors'; - protected $errorsDataType = 'array'; +class Google_Service_Autoscaler_OperationError extends Google_Collection { + protected $errorsType = 'Google_Service_Autoscaler_OperationErrorErrors'; + protected $errorsDataType = 'array'; - public function setErrors($errors) - { - $this->errors = $errors; - } + public function setErrors($errors) { + $this->errors = $errors; + } - public function getErrors() - { - return $this->errors; - } + public function getErrors() { + return $this->errors; + } } -class Google_Service_Autoscaler_OperationErrorErrors extends Google_Model -{ - public $code; - public $location; - public $message; +class Google_Service_Autoscaler_OperationErrorErrors extends Google_Model { + public $code; + public $location; + public $message; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setLocation($location) - { - $this->location = $location; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setMessage($message) - { - $this->message = $message; - } + public function setMessage($message) { + $this->message = $message; + } - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } } -class Google_Service_Autoscaler_OperationList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Autoscaler_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; +class Google_Service_Autoscaler_OperationList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Autoscaler_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Autoscaler_OperationWarnings extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Autoscaler_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; +class Google_Service_Autoscaler_OperationWarnings extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Autoscaler_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setData($data) - { - $this->data = $data; - } + public function setData($data) { + $this->data = $data; + } - public function getData() - { - return $this->data; - } + public function getData() { + return $this->data; + } - public function setMessage($message) - { - $this->message = $message; - } + public function setMessage($message) { + $this->message = $message; + } - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } } -class Google_Service_Autoscaler_OperationWarningsData extends Google_Model -{ - public $key; - public $value; +class Google_Service_Autoscaler_OperationWarningsData extends Google_Model { + public $key; + public $value; - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } diff --git a/oauth/Google/Service/Bigquery.php b/oauth/Google/Service/Bigquery.php index a5fd7cf..503f68d 100644 --- a/oauth/Google/Service/Bigquery.php +++ b/oauth/Google/Service/Bigquery.php @@ -29,467 +29,465 @@ * * @author Google, Inc. */ -class Google_Service_Bigquery extends Google_Service -{ - /** View and manage your data in Google BigQuery. */ - const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; - /** Insert data into Google BigQuery. */ - const BIGQUERY_INSERTDATA = "https://www.googleapis.com/auth/bigquery.insertdata"; - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; - /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; +class Google_Service_Bigquery extends Google_Service { + /** View and manage your data in Google BigQuery. */ + const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; + /** Insert data into Google BigQuery. */ + const BIGQUERY_INSERTDATA = "https://www.googleapis.com/auth/bigquery.insertdata"; + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** Manage your data and permissions in Google Cloud Storage. */ + const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; + /** View your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; + /** Manage your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; - public $datasets; - public $jobs; - public $projects; - public $tabledata; - public $tables; - + public $datasets; + public $jobs; + public $projects; + public $tabledata; + public $tables; - /** - * Constructs the internal representation of the Bigquery service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'bigquery/v2/'; - $this->version = 'v2'; - $this->serviceName = 'bigquery'; - $this->datasets = new Google_Service_Bigquery_Datasets_Resource( - $this, - $this->serviceName, - 'datasets', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deleteContents' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'get' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{projectId}/datasets', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{projectId}/datasets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'all' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->jobs = new Google_Service_Bigquery_Jobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{projectId}/jobs/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getQueryResults' => array( - 'path' => 'projects/{projectId}/queries/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'timeoutMs' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'projects/{projectId}/jobs', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{projectId}/jobs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'stateFilter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'allUsers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'query' => array( - 'path' => 'projects/{projectId}/queries', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_Bigquery_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->tabledata = new Google_Service_Bigquery_Tabledata_Resource( - $this, - $this->serviceName, - 'tabledata', - array( - 'methods' => array( - 'insertAll' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->tables = new Google_Service_Bigquery_Tables_Resource( - $this, - $this->serviceName, - 'tables', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Bigquery service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'bigquery/v2/'; + $this->version = 'v2'; + $this->serviceName = 'bigquery'; + + $this->datasets = new Google_Service_Bigquery_Datasets_Resource( + $this, + $this->serviceName, + 'datasets', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deleteContents' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'get' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'projects/{projectId}/datasets', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'projects/{projectId}/datasets', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'all' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->jobs = new Google_Service_Bigquery_Jobs_Resource( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'get' => array( + 'path' => 'projects/{projectId}/jobs/{jobId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getQueryResults' => array( + 'path' => 'projects/{projectId}/queries/{jobId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'timeoutMs' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'projects/{projectId}/jobs', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'projects/{projectId}/jobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'stateFilter' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'allUsers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'query' => array( + 'path' => 'projects/{projectId}/queries', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects = new Google_Service_Bigquery_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'list' => array( + 'path' => 'projects', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->tabledata = new Google_Service_Bigquery_Tabledata_Resource( + $this, + $this->serviceName, + 'tabledata', + array( + 'methods' => array( + 'insertAll' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->tables = new Google_Service_Bigquery_Tables_Resource( + $this, + $this->serviceName, + 'tables', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}/tables', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}/tables', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -501,124 +499,122 @@ class Google_Service_Bigquery extends Google_Service * $datasets = $bigqueryService->datasets; * */ -class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource -{ +class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource { - /** - * Deletes the dataset specified by the datasetId value. Before you can delete a - * dataset, you must delete all its tables, either manually or by specifying - * deleteContents. Immediately after deletion, you can create another dataset - * with the same name. (datasets.delete) - * - * @param string $projectId - * Project ID of the dataset being deleted - * @param string $datasetId - * Dataset ID of dataset being deleted - * @param array $optParams Optional parameters. - * - * @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 - */ - public function delete($projectId, $datasetId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns the dataset specified by datasetID. (datasets.get) - * - * @param string $projectId - * Project ID of the requested dataset - * @param string $datasetId - * Dataset ID of the requested dataset - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Dataset - */ - public function get($projectId, $datasetId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Bigquery_Dataset"); - } - /** - * Creates a new empty dataset. (datasets.insert) - * - * @param string $projectId - * Project ID of the new dataset - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Dataset - */ - public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Bigquery_Dataset"); - } - /** - * Lists all the datasets in the specified project to which the caller has read - * access; however, a project owner can list (but not necessarily get) all - * datasets in his project. (datasets.listDatasets) - * - * @param string $projectId - * Project ID of the datasets to be listed - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Page token, returned by a previous call, to request the next page of results - * @opt_param bool all - * Whether to list all datasets, including hidden ones - * @opt_param string maxResults - * The maximum number of results to return - * @return Google_Service_Bigquery_DatasetList - */ - public function listDatasets($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Bigquery_DatasetList"); - } - /** - * Updates information in an existing dataset. The update method replaces the - * entire dataset resource, whereas the patch method only replaces fields that - * are provided in the submitted dataset resource. This method supports patch - * semantics. (datasets.patch) - * - * @param string $projectId - * Project ID of the dataset being updated - * @param string $datasetId - * Dataset ID of the dataset being updated - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Dataset - */ - public function patch($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Bigquery_Dataset"); - } - /** - * Updates information in an existing dataset. The update method replaces the - * entire dataset resource, whereas the patch method only replaces fields that - * are provided in the submitted dataset resource. (datasets.update) - * - * @param string $projectId - * Project ID of the dataset being updated - * @param string $datasetId - * Dataset ID of the dataset being updated - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Dataset - */ - public function update($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Bigquery_Dataset"); - } + /** + * Deletes the dataset specified by the datasetId value. Before you can delete a + * dataset, you must delete all its tables, either manually or by specifying + * deleteContents. Immediately after deletion, you can create another dataset + * with the same name. (datasets.delete) + * + * @param string $projectId + * Project ID of the dataset being deleted + * @param string $datasetId + * Dataset ID of dataset being deleted + * @param array $optParams Optional parameters. + * + * @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 + */ + public function delete($projectId, $datasetId, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns the dataset specified by datasetID. (datasets.get) + * + * @param string $projectId + * Project ID of the requested dataset + * @param string $datasetId + * Dataset ID of the requested dataset + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_Dataset + */ + public function get($projectId, $datasetId, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Bigquery_Dataset"); + } + + /** + * Creates a new empty dataset. (datasets.insert) + * + * @param string $projectId + * Project ID of the new dataset + * @param Google_Dataset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_Dataset + */ + public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Bigquery_Dataset"); + } + + /** + * Lists all the datasets in the specified project to which the caller has read + * access; however, a project owner can list (but not necessarily get) all + * datasets in his project. (datasets.listDatasets) + * + * @param string $projectId + * Project ID of the datasets to be listed + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Page token, returned by a previous call, to request the next page of results + * @opt_param bool all + * Whether to list all datasets, including hidden ones + * @opt_param string maxResults + * The maximum number of results to return + * @return Google_Service_Bigquery_DatasetList + */ + public function listDatasets($projectId, $optParams = array()) { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Bigquery_DatasetList"); + } + + /** + * Updates information in an existing dataset. The update method replaces the + * entire dataset resource, whereas the patch method only replaces fields that + * are provided in the submitted dataset resource. This method supports patch + * semantics. (datasets.patch) + * + * @param string $projectId + * Project ID of the dataset being updated + * @param string $datasetId + * Dataset ID of the dataset being updated + * @param Google_Dataset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_Dataset + */ + public function patch($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Bigquery_Dataset"); + } + + /** + * Updates information in an existing dataset. The update method replaces the + * entire dataset resource, whereas the patch method only replaces fields that + * are provided in the submitted dataset resource. (datasets.update) + * + * @param string $projectId + * Project ID of the dataset being updated + * @param string $datasetId + * Dataset ID of the dataset being updated + * @param Google_Dataset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_Dataset + */ + public function update($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Bigquery_Dataset"); + } } /** @@ -629,109 +625,107 @@ class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource * $jobs = $bigqueryService->jobs; * */ -class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource -{ +class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource { - /** - * Retrieves the specified job by ID. (jobs.get) - * - * @param string $projectId - * Project ID of the requested job - * @param string $jobId - * Job ID of the requested job - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Job - */ - public function get($projectId, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Bigquery_Job"); - } - /** - * Retrieves the results of a query job. (jobs.getQueryResults) - * - * @param string $projectId - * Project ID of the query job - * @param string $jobId - * Job ID of the query job - * @param array $optParams Optional parameters. - * - * @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 - * @opt_param string maxResults - * Maximum number of results to read - * @opt_param string pageToken - * Page token, returned by a previous call, to request the next page of results - * @opt_param string startIndex - * Zero-based index of the starting row - * @return Google_Service_Bigquery_GetQueryResultsResponse - */ - public function getQueryResults($projectId, $jobId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('getQueryResults', array($params), "Google_Service_Bigquery_GetQueryResultsResponse"); - } - /** - * Starts a new asynchronous job. (jobs.insert) - * - * @param string $projectId - * Project ID of the project that will be billed for the job - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Job - */ - public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Bigquery_Job"); - } - /** - * Lists all the Jobs in the specified project that were started by the user. - * (jobs.listJobs) - * - * @param string $projectId - * Project ID of the jobs to list - * @param array $optParams Optional parameters. - * - * @opt_param string projection - * Restrict information returned to a set of selected fields - * @opt_param string stateFilter - * Filter for job state - * @opt_param bool allUsers - * Whether to display jobs owned by all users in the project. Default false - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string pageToken - * Page token, returned by a previous call, to request the next page of results - * @return Google_Service_Bigquery_JobList - */ - public function listJobs($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Bigquery_JobList"); - } - /** - * Runs a BigQuery SQL query synchronously and returns query results if the - * query completes within a specified timeout. (jobs.query) - * - * @param string $projectId - * Project ID of the project billed for the query - * @param Google_QueryRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_QueryResponse - */ - public function query($projectId, Google_Service_Bigquery_QueryRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Bigquery_QueryResponse"); - } + /** + * Retrieves the specified job by ID. (jobs.get) + * + * @param string $projectId + * Project ID of the requested job + * @param string $jobId + * Job ID of the requested job + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_Job + */ + public function get($projectId, $jobId, $optParams = array()) { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Bigquery_Job"); + } + + /** + * Retrieves the results of a query job. (jobs.getQueryResults) + * + * @param string $projectId + * Project ID of the query job + * @param string $jobId + * Job ID of the query job + * @param array $optParams Optional parameters. + * + * @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 + * @opt_param string maxResults + * Maximum number of results to read + * @opt_param string pageToken + * Page token, returned by a previous call, to request the next page of results + * @opt_param string startIndex + * Zero-based index of the starting row + * @return Google_Service_Bigquery_GetQueryResultsResponse + */ + public function getQueryResults($projectId, $jobId, $optParams = array()) { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('getQueryResults', array($params), "Google_Service_Bigquery_GetQueryResultsResponse"); + } + + /** + * Starts a new asynchronous job. (jobs.insert) + * + * @param string $projectId + * Project ID of the project that will be billed for the job + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_Job + */ + public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optParams = array()) { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Bigquery_Job"); + } + + /** + * Lists all the Jobs in the specified project that were started by the user. + * (jobs.listJobs) + * + * @param string $projectId + * Project ID of the jobs to list + * @param array $optParams Optional parameters. + * + * @opt_param string projection + * Restrict information returned to a set of selected fields + * @opt_param string stateFilter + * Filter for job state + * @opt_param bool allUsers + * Whether to display jobs owned by all users in the project. Default false + * @opt_param string maxResults + * Maximum number of results to return + * @opt_param string pageToken + * Page token, returned by a previous call, to request the next page of results + * @return Google_Service_Bigquery_JobList + */ + public function listJobs($projectId, $optParams = array()) { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Bigquery_JobList"); + } + + /** + * Runs a BigQuery SQL query synchronously and returns query results if the + * query completes within a specified timeout. (jobs.query) + * + * @param string $projectId + * Project ID of the project billed for the query + * @param Google_QueryRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_QueryResponse + */ + public function query($projectId, Google_Service_Bigquery_QueryRequest $postBody, $optParams = array()) { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Bigquery_QueryResponse"); + } } /** @@ -742,27 +736,25 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource * $projects = $bigqueryService->projects; * */ -class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource -{ +class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource { - /** - * Lists the projects to which you have at least read access. - * (projects.listProjects) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Page token, returned by a previous call, to request the next page of results - * @opt_param string maxResults - * Maximum number of results to return - * @return Google_Service_Bigquery_ProjectList - */ - public function listProjects($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Bigquery_ProjectList"); - } + /** + * Lists the projects to which you have at least read access. + * (projects.listProjects) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Page token, returned by a previous call, to request the next page of results + * @opt_param string maxResults + * Maximum number of results to return + * @return Google_Service_Bigquery_ProjectList + */ + public function listProjects($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Bigquery_ProjectList"); + } } /** @@ -773,54 +765,52 @@ class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource * $tabledata = $bigqueryService->tabledata; * */ -class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource -{ +class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource { - /** - * Streams data into BigQuery one record at a time without needing to run a load - * job. (tabledata.insertAll) - * - * @param string $projectId - * Project ID of the destination table. - * @param string $datasetId - * Dataset ID of the destination table. - * @param string $tableId - * Table ID of the destination table. - * @param Google_TableDataInsertAllRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_TableDataInsertAllResponse - */ - public function insertAll($projectId, $datasetId, $tableId, Google_Service_Bigquery_TableDataInsertAllRequest $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insertAll', array($params), "Google_Service_Bigquery_TableDataInsertAllResponse"); - } - /** - * Retrieves table data from a specified set of rows. (tabledata.listTabledata) - * - * @param string $projectId - * Project ID of the table to read - * @param string $datasetId - * Dataset ID of the table to read - * @param string $tableId - * Table ID of the table to read - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string pageToken - * Page token, returned by a previous call, identifying the result set - * @opt_param string startIndex - * Zero-based index of the starting row to read - * @return Google_Service_Bigquery_TableDataList - */ - public function listTabledata($projectId, $datasetId, $tableId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Bigquery_TableDataList"); - } + /** + * Streams data into BigQuery one record at a time without needing to run a load + * job. (tabledata.insertAll) + * + * @param string $projectId + * Project ID of the destination table. + * @param string $datasetId + * Dataset ID of the destination table. + * @param string $tableId + * Table ID of the destination table. + * @param Google_TableDataInsertAllRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_TableDataInsertAllResponse + */ + public function insertAll($projectId, $datasetId, $tableId, Google_Service_Bigquery_TableDataInsertAllRequest $postBody, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insertAll', array($params), "Google_Service_Bigquery_TableDataInsertAllResponse"); + } + + /** + * Retrieves table data from a specified set of rows. (tabledata.listTabledata) + * + * @param string $projectId + * Project ID of the table to read + * @param string $datasetId + * Dataset ID of the table to read + * @param string $tableId + * Table ID of the table to read + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults + * Maximum number of results to return + * @opt_param string pageToken + * Page token, returned by a previous call, identifying the result set + * @opt_param string startIndex + * Zero-based index of the starting row to read + * @return Google_Service_Bigquery_TableDataList + */ + public function listTabledata($projectId, $datasetId, $tableId, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Bigquery_TableDataList"); + } } /** @@ -831,2580 +821,2129 @@ class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource * $tables = $bigqueryService->tables; * */ -class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource -{ +class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource { - /** - * Deletes the table specified by tableId from the dataset. If the table - * contains data, all the data will be deleted. (tables.delete) - * - * @param string $projectId - * Project ID of the table to delete - * @param string $datasetId - * Dataset ID of the table to delete - * @param string $tableId - * Table ID of the table to delete - * @param array $optParams Optional parameters. - */ - public function delete($projectId, $datasetId, $tableId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified table resource by table ID. This method does not return - * the data in the table, it only returns the table resource, which describes - * the structure of this table. (tables.get) - * - * @param string $projectId - * Project ID of the requested table - * @param string $datasetId - * Dataset ID of the requested table - * @param string $tableId - * Table ID of the requested table - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Table - */ - public function get($projectId, $datasetId, $tableId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Bigquery_Table"); - } - /** - * Creates a new, empty table in the dataset. (tables.insert) - * - * @param string $projectId - * Project ID of the new table - * @param string $datasetId - * Dataset ID of the new table - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Table - */ - public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Bigquery_Table"); - } - /** - * Lists all tables in the specified dataset. (tables.listTables) - * - * @param string $projectId - * Project ID of the tables to list - * @param string $datasetId - * Dataset ID of the tables to list - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Page token, returned by a previous call, to request the next page of results - * @opt_param string maxResults - * Maximum number of results to return - * @return Google_Service_Bigquery_TableList - */ - public function listTables($projectId, $datasetId, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Bigquery_TableList"); - } - /** - * Updates information in an existing table. The update method replaces the - * entire table resource, whereas the patch method only replaces fields that are - * provided in the submitted table resource. This method supports patch - * semantics. (tables.patch) - * - * @param string $projectId - * Project ID of the table to update - * @param string $datasetId - * Dataset ID of the table to update - * @param string $tableId - * Table ID of the table to update - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Table - */ - public function patch($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Bigquery_Table"); - } - /** - * Updates information in an existing table. The update method replaces the - * entire table resource, whereas the patch method only replaces fields that are - * provided in the submitted table resource. (tables.update) - * - * @param string $projectId - * Project ID of the table to update - * @param string $datasetId - * Dataset ID of the table to update - * @param string $tableId - * Table ID of the table to update - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Bigquery_Table - */ - public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Bigquery_Table"); - } + /** + * Deletes the table specified by tableId from the dataset. If the table + * contains data, all the data will be deleted. (tables.delete) + * + * @param string $projectId + * Project ID of the table to delete + * @param string $datasetId + * Dataset ID of the table to delete + * @param string $tableId + * Table ID of the table to delete + * @param array $optParams Optional parameters. + */ + public function delete($projectId, $datasetId, $tableId, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets the specified table resource by table ID. This method does not return + * the data in the table, it only returns the table resource, which describes + * the structure of this table. (tables.get) + * + * @param string $projectId + * Project ID of the requested table + * @param string $datasetId + * Dataset ID of the requested table + * @param string $tableId + * Table ID of the requested table + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_Table + */ + public function get($projectId, $datasetId, $tableId, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Bigquery_Table"); + } + + /** + * Creates a new, empty table in the dataset. (tables.insert) + * + * @param string $projectId + * Project ID of the new table + * @param string $datasetId + * Dataset ID of the new table + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_Table + */ + public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $postBody, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Bigquery_Table"); + } + + /** + * Lists all tables in the specified dataset. (tables.listTables) + * + * @param string $projectId + * Project ID of the tables to list + * @param string $datasetId + * Dataset ID of the tables to list + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Page token, returned by a previous call, to request the next page of results + * @opt_param string maxResults + * Maximum number of results to return + * @return Google_Service_Bigquery_TableList + */ + public function listTables($projectId, $datasetId, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Bigquery_TableList"); + } + + /** + * Updates information in an existing table. The update method replaces the + * entire table resource, whereas the patch method only replaces fields that are + * provided in the submitted table resource. This method supports patch + * semantics. (tables.patch) + * + * @param string $projectId + * Project ID of the table to update + * @param string $datasetId + * Dataset ID of the table to update + * @param string $tableId + * Table ID of the table to update + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_Table + */ + public function patch($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Bigquery_Table"); + } + + /** + * Updates information in an existing table. The update method replaces the + * entire table resource, whereas the patch method only replaces fields that are + * provided in the submitted table resource. (tables.update) + * + * @param string $projectId + * Project ID of the table to update + * @param string $datasetId + * Dataset ID of the table to update + * @param string $tableId + * Table ID of the table to update + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_Table + */ + public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array()) { + $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Bigquery_Table"); + } } +class Google_Service_Bigquery_Dataset extends Google_Collection { + protected $accessType = 'Google_Service_Bigquery_DatasetAccess'; + protected $accessDataType = 'array'; + public $creationTime; + protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; + protected $datasetReferenceDataType = ''; + public $description; + public $etag; + public $friendlyName; + public $id; + public $kind; + public $lastModifiedTime; + public $selfLink; + public function setAccess($access) { + $this->access = $access; + } -class Google_Service_Bigquery_Dataset extends Google_Collection -{ - protected $accessType = 'Google_Service_Bigquery_DatasetAccess'; - protected $accessDataType = 'array'; - public $creationTime; - protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; - protected $datasetReferenceDataType = ''; - public $description; - public $etag; - public $friendlyName; - public $id; - public $kind; - public $lastModifiedTime; - public $selfLink; + public function getAccess() { + return $this->access; + } - public function setAccess($access) - { - $this->access = $access; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getAccess() - { - return $this->access; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference) { + $this->datasetReference = $datasetReference; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getDatasetReference() { + return $this->datasetReference; + } - public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference) - { - $this->datasetReference = $datasetReference; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDatasetReference() - { - return $this->datasetReference; - } + public function getDescription() { + return $this->description; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getDescription() - { - return $this->description; - } + public function getEtag() { + return $this->etag; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setFriendlyName($friendlyName) { + $this->friendlyName = $friendlyName; + } - public function getEtag() - { - return $this->etag; - } + public function getFriendlyName() { + return $this->friendlyName; + } - public function setFriendlyName($friendlyName) - { - $this->friendlyName = $friendlyName; - } + public function setId($id) { + $this->id = $id; + } - public function getFriendlyName() - { - return $this->friendlyName; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setLastModifiedTime($lastModifiedTime) { + $this->lastModifiedTime = $lastModifiedTime; + } - public function getKind() - { - return $this->kind; - } + public function getLastModifiedTime() { + return $this->lastModifiedTime; + } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Bigquery_DatasetAccess extends Google_Model -{ - public $domain; - public $groupByEmail; - public $role; - public $specialGroup; - public $userByEmail; +class Google_Service_Bigquery_DatasetAccess extends Google_Model { + public $domain; + public $groupByEmail; + public $role; + public $specialGroup; + public $userByEmail; - public function setDomain($domain) - { - $this->domain = $domain; - } + public function setDomain($domain) { + $this->domain = $domain; + } - public function getDomain() - { - return $this->domain; - } + public function getDomain() { + return $this->domain; + } - public function setGroupByEmail($groupByEmail) - { - $this->groupByEmail = $groupByEmail; - } + public function setGroupByEmail($groupByEmail) { + $this->groupByEmail = $groupByEmail; + } - public function getGroupByEmail() - { - return $this->groupByEmail; - } + public function getGroupByEmail() { + return $this->groupByEmail; + } - public function setRole($role) - { - $this->role = $role; - } + public function setRole($role) { + $this->role = $role; + } - public function getRole() - { - return $this->role; - } + public function getRole() { + return $this->role; + } - public function setSpecialGroup($specialGroup) - { - $this->specialGroup = $specialGroup; - } + public function setSpecialGroup($specialGroup) { + $this->specialGroup = $specialGroup; + } - public function getSpecialGroup() - { - return $this->specialGroup; - } + public function getSpecialGroup() { + return $this->specialGroup; + } - public function setUserByEmail($userByEmail) - { - $this->userByEmail = $userByEmail; - } + public function setUserByEmail($userByEmail) { + $this->userByEmail = $userByEmail; + } - public function getUserByEmail() - { - return $this->userByEmail; - } + public function getUserByEmail() { + return $this->userByEmail; + } } -class Google_Service_Bigquery_DatasetList extends Google_Collection -{ - protected $datasetsType = 'Google_Service_Bigquery_DatasetListDatasets'; - protected $datasetsDataType = 'array'; - public $etag; - public $kind; - public $nextPageToken; +class Google_Service_Bigquery_DatasetList extends Google_Collection { + protected $datasetsType = 'Google_Service_Bigquery_DatasetListDatasets'; + protected $datasetsDataType = 'array'; + public $etag; + public $kind; + public $nextPageToken; - public function setDatasets($datasets) - { - $this->datasets = $datasets; - } + public function setDatasets($datasets) { + $this->datasets = $datasets; + } - public function getDatasets() - { - return $this->datasets; - } + public function getDatasets() { + return $this->datasets; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Bigquery_DatasetListDatasets extends Google_Model -{ - protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; - protected $datasetReferenceDataType = ''; - public $friendlyName; - public $id; - public $kind; +class Google_Service_Bigquery_DatasetListDatasets extends Google_Model { + protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; + protected $datasetReferenceDataType = ''; + public $friendlyName; + public $id; + public $kind; - public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference) - { - $this->datasetReference = $datasetReference; - } + public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference) { + $this->datasetReference = $datasetReference; + } - public function getDatasetReference() - { - return $this->datasetReference; - } + public function getDatasetReference() { + return $this->datasetReference; + } - public function setFriendlyName($friendlyName) - { - $this->friendlyName = $friendlyName; - } + public function setFriendlyName($friendlyName) { + $this->friendlyName = $friendlyName; + } - public function getFriendlyName() - { - return $this->friendlyName; - } + public function getFriendlyName() { + return $this->friendlyName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Bigquery_DatasetReference extends Google_Model -{ - public $datasetId; - public $projectId; +class Google_Service_Bigquery_DatasetReference extends Google_Model { + public $datasetId; + public $projectId; - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } + public function setDatasetId($datasetId) { + $this->datasetId = $datasetId; + } - public function getDatasetId() - { - return $this->datasetId; - } + public function getDatasetId() { + return $this->datasetId; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } } -class Google_Service_Bigquery_ErrorProto extends Google_Model -{ - public $debugInfo; - public $location; - public $message; - public $reason; +class Google_Service_Bigquery_ErrorProto extends Google_Model { + public $debugInfo; + public $location; + public $message; + public $reason; - public function setDebugInfo($debugInfo) - { - $this->debugInfo = $debugInfo; - } + public function setDebugInfo($debugInfo) { + $this->debugInfo = $debugInfo; + } - public function getDebugInfo() - { - return $this->debugInfo; - } + public function getDebugInfo() { + return $this->debugInfo; + } - public function setLocation($location) - { - $this->location = $location; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setMessage($message) - { - $this->message = $message; - } + public function setMessage($message) { + $this->message = $message; + } - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } - public function setReason($reason) - { - $this->reason = $reason; - } + public function setReason($reason) { + $this->reason = $reason; + } - public function getReason() - { - return $this->reason; - } + public function getReason() { + return $this->reason; + } } -class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection -{ - public $cacheHit; - public $etag; - public $jobComplete; - protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; - protected $jobReferenceDataType = ''; - public $kind; - public $pageToken; - protected $rowsType = 'Google_Service_Bigquery_TableRow'; - protected $rowsDataType = 'array'; - protected $schemaType = 'Google_Service_Bigquery_TableSchema'; - protected $schemaDataType = ''; - public $totalRows; +class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection { + public $cacheHit; + public $etag; + public $jobComplete; + protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; + protected $jobReferenceDataType = ''; + public $kind; + public $pageToken; + protected $rowsType = 'Google_Service_Bigquery_TableRow'; + protected $rowsDataType = 'array'; + protected $schemaType = 'Google_Service_Bigquery_TableSchema'; + protected $schemaDataType = ''; + public $totalRows; - public function setCacheHit($cacheHit) - { - $this->cacheHit = $cacheHit; - } + public function setCacheHit($cacheHit) { + $this->cacheHit = $cacheHit; + } - public function getCacheHit() - { - return $this->cacheHit; - } + public function getCacheHit() { + return $this->cacheHit; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setJobComplete($jobComplete) - { - $this->jobComplete = $jobComplete; - } + public function setJobComplete($jobComplete) { + $this->jobComplete = $jobComplete; + } - public function getJobComplete() - { - return $this->jobComplete; - } + public function getJobComplete() { + return $this->jobComplete; + } - public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) - { - $this->jobReference = $jobReference; - } + public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) { + $this->jobReference = $jobReference; + } - public function getJobReference() - { - return $this->jobReference; - } + public function getJobReference() { + return $this->jobReference; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } + public function setPageToken($pageToken) { + $this->pageToken = $pageToken; + } - public function getPageToken() - { - return $this->pageToken; - } + public function getPageToken() { + return $this->pageToken; + } - public function setRows($rows) - { - $this->rows = $rows; - } + public function setRows($rows) { + $this->rows = $rows; + } - public function getRows() - { - return $this->rows; - } + public function getRows() { + return $this->rows; + } - public function setSchema(Google_Service_Bigquery_TableSchema $schema) - { - $this->schema = $schema; - } + public function setSchema(Google_Service_Bigquery_TableSchema $schema) { + $this->schema = $schema; + } - public function getSchema() - { - return $this->schema; - } + public function getSchema() { + return $this->schema; + } - public function setTotalRows($totalRows) - { - $this->totalRows = $totalRows; - } + public function setTotalRows($totalRows) { + $this->totalRows = $totalRows; + } - public function getTotalRows() - { - return $this->totalRows; - } + public function getTotalRows() { + return $this->totalRows; + } } -class Google_Service_Bigquery_Job extends Google_Model -{ - protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; - protected $configurationDataType = ''; - public $etag; - public $id; - protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; - protected $jobReferenceDataType = ''; - public $kind; - public $selfLink; - protected $statisticsType = 'Google_Service_Bigquery_JobStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_Bigquery_JobStatus'; - protected $statusDataType = ''; +class Google_Service_Bigquery_Job extends Google_Model { + protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; + protected $configurationDataType = ''; + public $etag; + public $id; + protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; + protected $jobReferenceDataType = ''; + public $kind; + public $selfLink; + protected $statisticsType = 'Google_Service_Bigquery_JobStatistics'; + protected $statisticsDataType = ''; + protected $statusType = 'Google_Service_Bigquery_JobStatus'; + protected $statusDataType = ''; - public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration) - { - $this->configuration = $configuration; - } + public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration) { + $this->configuration = $configuration; + } - public function getConfiguration() - { - return $this->configuration; - } + public function getConfiguration() { + return $this->configuration; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) - { - $this->jobReference = $jobReference; - } + public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) { + $this->jobReference = $jobReference; + } - public function getJobReference() - { - return $this->jobReference; - } + public function getJobReference() { + return $this->jobReference; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics) - { - $this->statistics = $statistics; - } + public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics) { + $this->statistics = $statistics; + } - public function getStatistics() - { - return $this->statistics; - } + public function getStatistics() { + return $this->statistics; + } - public function setStatus(Google_Service_Bigquery_JobStatus $status) - { - $this->status = $status; - } + public function setStatus(Google_Service_Bigquery_JobStatus $status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_Bigquery_JobConfiguration extends Google_Model -{ - protected $copyType = 'Google_Service_Bigquery_JobConfigurationTableCopy'; - protected $copyDataType = ''; - public $dryRun; - protected $extractType = 'Google_Service_Bigquery_JobConfigurationExtract'; - protected $extractDataType = ''; - protected $linkType = 'Google_Service_Bigquery_JobConfigurationLink'; - protected $linkDataType = ''; - protected $loadType = 'Google_Service_Bigquery_JobConfigurationLoad'; - protected $loadDataType = ''; - protected $queryType = 'Google_Service_Bigquery_JobConfigurationQuery'; - protected $queryDataType = ''; +class Google_Service_Bigquery_JobConfiguration extends Google_Model { + protected $copyType = 'Google_Service_Bigquery_JobConfigurationTableCopy'; + protected $copyDataType = ''; + public $dryRun; + protected $extractType = 'Google_Service_Bigquery_JobConfigurationExtract'; + protected $extractDataType = ''; + protected $linkType = 'Google_Service_Bigquery_JobConfigurationLink'; + protected $linkDataType = ''; + protected $loadType = 'Google_Service_Bigquery_JobConfigurationLoad'; + protected $loadDataType = ''; + protected $queryType = 'Google_Service_Bigquery_JobConfigurationQuery'; + protected $queryDataType = ''; - public function setCopy(Google_Service_Bigquery_JobConfigurationTableCopy $copy) - { - $this->copy = $copy; - } + public function setCopy(Google_Service_Bigquery_JobConfigurationTableCopy $copy) { + $this->copy = $copy; + } - public function getCopy() - { - return $this->copy; - } + public function getCopy() { + return $this->copy; + } - public function setDryRun($dryRun) - { - $this->dryRun = $dryRun; - } + public function setDryRun($dryRun) { + $this->dryRun = $dryRun; + } - public function getDryRun() - { - return $this->dryRun; - } + public function getDryRun() { + return $this->dryRun; + } - public function setExtract(Google_Service_Bigquery_JobConfigurationExtract $extract) - { - $this->extract = $extract; - } + public function setExtract(Google_Service_Bigquery_JobConfigurationExtract $extract) { + $this->extract = $extract; + } - public function getExtract() - { - return $this->extract; - } + public function getExtract() { + return $this->extract; + } - public function setLink(Google_Service_Bigquery_JobConfigurationLink $link) - { - $this->link = $link; - } + public function setLink(Google_Service_Bigquery_JobConfigurationLink $link) { + $this->link = $link; + } - public function getLink() - { - return $this->link; - } + public function getLink() { + return $this->link; + } - public function setLoad(Google_Service_Bigquery_JobConfigurationLoad $load) - { - $this->load = $load; - } + public function setLoad(Google_Service_Bigquery_JobConfigurationLoad $load) { + $this->load = $load; + } - public function getLoad() - { - return $this->load; - } + public function getLoad() { + return $this->load; + } - public function setQuery(Google_Service_Bigquery_JobConfigurationQuery $query) - { - $this->query = $query; - } + public function setQuery(Google_Service_Bigquery_JobConfigurationQuery $query) { + $this->query = $query; + } - public function getQuery() - { - return $this->query; - } + public function getQuery() { + return $this->query; + } } -class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection -{ - public $compression; - public $destinationFormat; - public $destinationUri; - public $destinationUris; - public $fieldDelimiter; - public $printHeader; - protected $sourceTableType = 'Google_Service_Bigquery_TableReference'; - protected $sourceTableDataType = ''; +class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection { + public $compression; + public $destinationFormat; + public $destinationUri; + public $destinationUris; + public $fieldDelimiter; + public $printHeader; + protected $sourceTableType = 'Google_Service_Bigquery_TableReference'; + protected $sourceTableDataType = ''; - public function setCompression($compression) - { - $this->compression = $compression; - } + public function setCompression($compression) { + $this->compression = $compression; + } - public function getCompression() - { - return $this->compression; - } + public function getCompression() { + return $this->compression; + } - public function setDestinationFormat($destinationFormat) - { - $this->destinationFormat = $destinationFormat; - } + public function setDestinationFormat($destinationFormat) { + $this->destinationFormat = $destinationFormat; + } - public function getDestinationFormat() - { - return $this->destinationFormat; - } + public function getDestinationFormat() { + return $this->destinationFormat; + } - public function setDestinationUri($destinationUri) - { - $this->destinationUri = $destinationUri; - } + public function setDestinationUri($destinationUri) { + $this->destinationUri = $destinationUri; + } - public function getDestinationUri() - { - return $this->destinationUri; - } + public function getDestinationUri() { + return $this->destinationUri; + } - public function setDestinationUris($destinationUris) - { - $this->destinationUris = $destinationUris; - } + public function setDestinationUris($destinationUris) { + $this->destinationUris = $destinationUris; + } - public function getDestinationUris() - { - return $this->destinationUris; - } + public function getDestinationUris() { + return $this->destinationUris; + } - public function setFieldDelimiter($fieldDelimiter) - { - $this->fieldDelimiter = $fieldDelimiter; - } + public function setFieldDelimiter($fieldDelimiter) { + $this->fieldDelimiter = $fieldDelimiter; + } - public function getFieldDelimiter() - { - return $this->fieldDelimiter; - } + public function getFieldDelimiter() { + return $this->fieldDelimiter; + } - public function setPrintHeader($printHeader) - { - $this->printHeader = $printHeader; - } + public function setPrintHeader($printHeader) { + $this->printHeader = $printHeader; + } - public function getPrintHeader() - { - return $this->printHeader; - } + public function getPrintHeader() { + return $this->printHeader; + } - public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable) - { - $this->sourceTable = $sourceTable; - } + public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable) { + $this->sourceTable = $sourceTable; + } - public function getSourceTable() - { - return $this->sourceTable; - } + public function getSourceTable() { + return $this->sourceTable; + } } -class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection -{ - public $createDisposition; - protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; - protected $destinationTableDataType = ''; - public $sourceUri; - public $writeDisposition; +class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection { + public $createDisposition; + protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; + protected $destinationTableDataType = ''; + public $sourceUri; + public $writeDisposition; - public function setCreateDisposition($createDisposition) - { - $this->createDisposition = $createDisposition; - } + public function setCreateDisposition($createDisposition) { + $this->createDisposition = $createDisposition; + } - public function getCreateDisposition() - { - return $this->createDisposition; - } + public function getCreateDisposition() { + return $this->createDisposition; + } - public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) - { - $this->destinationTable = $destinationTable; - } + public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) { + $this->destinationTable = $destinationTable; + } - public function getDestinationTable() - { - return $this->destinationTable; - } + public function getDestinationTable() { + return $this->destinationTable; + } - public function setSourceUri($sourceUri) - { - $this->sourceUri = $sourceUri; - } + public function setSourceUri($sourceUri) { + $this->sourceUri = $sourceUri; + } - public function getSourceUri() - { - return $this->sourceUri; - } + public function getSourceUri() { + return $this->sourceUri; + } - public function setWriteDisposition($writeDisposition) - { - $this->writeDisposition = $writeDisposition; - } + public function setWriteDisposition($writeDisposition) { + $this->writeDisposition = $writeDisposition; + } - public function getWriteDisposition() - { - return $this->writeDisposition; - } + public function getWriteDisposition() { + return $this->writeDisposition; + } } -class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection -{ - public $allowJaggedRows; - public $allowQuotedNewlines; - public $createDisposition; - protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; - protected $destinationTableDataType = ''; - public $encoding; - public $fieldDelimiter; - public $ignoreUnknownValues; - public $maxBadRecords; - public $quote; - protected $schemaType = 'Google_Service_Bigquery_TableSchema'; - protected $schemaDataType = ''; - public $schemaInline; - public $schemaInlineFormat; - public $skipLeadingRows; - public $sourceFormat; - public $sourceUris; - public $writeDisposition; +class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection { + public $allowJaggedRows; + public $allowQuotedNewlines; + public $createDisposition; + protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; + protected $destinationTableDataType = ''; + public $encoding; + public $fieldDelimiter; + public $ignoreUnknownValues; + public $maxBadRecords; + public $quote; + protected $schemaType = 'Google_Service_Bigquery_TableSchema'; + protected $schemaDataType = ''; + public $schemaInline; + public $schemaInlineFormat; + public $skipLeadingRows; + public $sourceFormat; + public $sourceUris; + public $writeDisposition; - public function setAllowJaggedRows($allowJaggedRows) - { - $this->allowJaggedRows = $allowJaggedRows; - } + public function setAllowJaggedRows($allowJaggedRows) { + $this->allowJaggedRows = $allowJaggedRows; + } - public function getAllowJaggedRows() - { - return $this->allowJaggedRows; - } + public function getAllowJaggedRows() { + return $this->allowJaggedRows; + } - public function setAllowQuotedNewlines($allowQuotedNewlines) - { - $this->allowQuotedNewlines = $allowQuotedNewlines; - } + public function setAllowQuotedNewlines($allowQuotedNewlines) { + $this->allowQuotedNewlines = $allowQuotedNewlines; + } - public function getAllowQuotedNewlines() - { - return $this->allowQuotedNewlines; - } + public function getAllowQuotedNewlines() { + return $this->allowQuotedNewlines; + } - public function setCreateDisposition($createDisposition) - { - $this->createDisposition = $createDisposition; - } + public function setCreateDisposition($createDisposition) { + $this->createDisposition = $createDisposition; + } - public function getCreateDisposition() - { - return $this->createDisposition; - } + public function getCreateDisposition() { + return $this->createDisposition; + } - public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) - { - $this->destinationTable = $destinationTable; - } + public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) { + $this->destinationTable = $destinationTable; + } - public function getDestinationTable() - { - return $this->destinationTable; - } + public function getDestinationTable() { + return $this->destinationTable; + } - public function setEncoding($encoding) - { - $this->encoding = $encoding; - } + public function setEncoding($encoding) { + $this->encoding = $encoding; + } - public function getEncoding() - { - return $this->encoding; - } + public function getEncoding() { + return $this->encoding; + } - public function setFieldDelimiter($fieldDelimiter) - { - $this->fieldDelimiter = $fieldDelimiter; - } + public function setFieldDelimiter($fieldDelimiter) { + $this->fieldDelimiter = $fieldDelimiter; + } - public function getFieldDelimiter() - { - return $this->fieldDelimiter; - } + public function getFieldDelimiter() { + return $this->fieldDelimiter; + } - public function setIgnoreUnknownValues($ignoreUnknownValues) - { - $this->ignoreUnknownValues = $ignoreUnknownValues; - } + public function setIgnoreUnknownValues($ignoreUnknownValues) { + $this->ignoreUnknownValues = $ignoreUnknownValues; + } - public function getIgnoreUnknownValues() - { - return $this->ignoreUnknownValues; - } + public function getIgnoreUnknownValues() { + return $this->ignoreUnknownValues; + } - public function setMaxBadRecords($maxBadRecords) - { - $this->maxBadRecords = $maxBadRecords; - } + public function setMaxBadRecords($maxBadRecords) { + $this->maxBadRecords = $maxBadRecords; + } - public function getMaxBadRecords() - { - return $this->maxBadRecords; - } + public function getMaxBadRecords() { + return $this->maxBadRecords; + } - public function setQuote($quote) - { - $this->quote = $quote; - } + public function setQuote($quote) { + $this->quote = $quote; + } - public function getQuote() - { - return $this->quote; - } + public function getQuote() { + return $this->quote; + } - public function setSchema(Google_Service_Bigquery_TableSchema $schema) - { - $this->schema = $schema; - } + public function setSchema(Google_Service_Bigquery_TableSchema $schema) { + $this->schema = $schema; + } - public function getSchema() - { - return $this->schema; - } + public function getSchema() { + return $this->schema; + } - public function setSchemaInline($schemaInline) - { - $this->schemaInline = $schemaInline; - } + public function setSchemaInline($schemaInline) { + $this->schemaInline = $schemaInline; + } - public function getSchemaInline() - { - return $this->schemaInline; - } + public function getSchemaInline() { + return $this->schemaInline; + } - public function setSchemaInlineFormat($schemaInlineFormat) - { - $this->schemaInlineFormat = $schemaInlineFormat; - } + public function setSchemaInlineFormat($schemaInlineFormat) { + $this->schemaInlineFormat = $schemaInlineFormat; + } - public function getSchemaInlineFormat() - { - return $this->schemaInlineFormat; - } + public function getSchemaInlineFormat() { + return $this->schemaInlineFormat; + } - public function setSkipLeadingRows($skipLeadingRows) - { - $this->skipLeadingRows = $skipLeadingRows; - } + public function setSkipLeadingRows($skipLeadingRows) { + $this->skipLeadingRows = $skipLeadingRows; + } - public function getSkipLeadingRows() - { - return $this->skipLeadingRows; - } + public function getSkipLeadingRows() { + return $this->skipLeadingRows; + } - public function setSourceFormat($sourceFormat) - { - $this->sourceFormat = $sourceFormat; - } + public function setSourceFormat($sourceFormat) { + $this->sourceFormat = $sourceFormat; + } - public function getSourceFormat() - { - return $this->sourceFormat; - } + public function getSourceFormat() { + return $this->sourceFormat; + } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } + public function setSourceUris($sourceUris) { + $this->sourceUris = $sourceUris; + } - public function getSourceUris() - { - return $this->sourceUris; - } + public function getSourceUris() { + return $this->sourceUris; + } - public function setWriteDisposition($writeDisposition) - { - $this->writeDisposition = $writeDisposition; - } + public function setWriteDisposition($writeDisposition) { + $this->writeDisposition = $writeDisposition; + } - public function getWriteDisposition() - { - return $this->writeDisposition; - } + public function getWriteDisposition() { + return $this->writeDisposition; + } } -class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model -{ - public $allowLargeResults; - public $createDisposition; - protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference'; - protected $defaultDatasetDataType = ''; - protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; - protected $destinationTableDataType = ''; - public $flattenResults; - public $preserveNulls; - public $priority; - public $query; - public $useQueryCache; - public $writeDisposition; +class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model { + public $allowLargeResults; + public $createDisposition; + protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference'; + protected $defaultDatasetDataType = ''; + protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; + protected $destinationTableDataType = ''; + public $flattenResults; + public $preserveNulls; + public $priority; + public $query; + public $useQueryCache; + public $writeDisposition; - public function setAllowLargeResults($allowLargeResults) - { - $this->allowLargeResults = $allowLargeResults; - } + public function setAllowLargeResults($allowLargeResults) { + $this->allowLargeResults = $allowLargeResults; + } - public function getAllowLargeResults() - { - return $this->allowLargeResults; - } + public function getAllowLargeResults() { + return $this->allowLargeResults; + } - public function setCreateDisposition($createDisposition) - { - $this->createDisposition = $createDisposition; - } + public function setCreateDisposition($createDisposition) { + $this->createDisposition = $createDisposition; + } - public function getCreateDisposition() - { - return $this->createDisposition; - } + public function getCreateDisposition() { + return $this->createDisposition; + } - public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset) - { - $this->defaultDataset = $defaultDataset; - } + public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset) { + $this->defaultDataset = $defaultDataset; + } - public function getDefaultDataset() - { - return $this->defaultDataset; - } + public function getDefaultDataset() { + return $this->defaultDataset; + } - public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) - { - $this->destinationTable = $destinationTable; - } + public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) { + $this->destinationTable = $destinationTable; + } - public function getDestinationTable() - { - return $this->destinationTable; - } + public function getDestinationTable() { + return $this->destinationTable; + } - public function setFlattenResults($flattenResults) - { - $this->flattenResults = $flattenResults; - } + public function setFlattenResults($flattenResults) { + $this->flattenResults = $flattenResults; + } - public function getFlattenResults() - { - return $this->flattenResults; - } + public function getFlattenResults() { + return $this->flattenResults; + } - public function setPreserveNulls($preserveNulls) - { - $this->preserveNulls = $preserveNulls; - } + public function setPreserveNulls($preserveNulls) { + $this->preserveNulls = $preserveNulls; + } - public function getPreserveNulls() - { - return $this->preserveNulls; - } + public function getPreserveNulls() { + return $this->preserveNulls; + } - public function setPriority($priority) - { - $this->priority = $priority; - } + public function setPriority($priority) { + $this->priority = $priority; + } - public function getPriority() - { - return $this->priority; - } + public function getPriority() { + return $this->priority; + } - public function setQuery($query) - { - $this->query = $query; - } + public function setQuery($query) { + $this->query = $query; + } - public function getQuery() - { - return $this->query; - } + public function getQuery() { + return $this->query; + } - public function setUseQueryCache($useQueryCache) - { - $this->useQueryCache = $useQueryCache; - } + public function setUseQueryCache($useQueryCache) { + $this->useQueryCache = $useQueryCache; + } - public function getUseQueryCache() - { - return $this->useQueryCache; - } + public function getUseQueryCache() { + return $this->useQueryCache; + } - public function setWriteDisposition($writeDisposition) - { - $this->writeDisposition = $writeDisposition; - } + public function setWriteDisposition($writeDisposition) { + $this->writeDisposition = $writeDisposition; + } - public function getWriteDisposition() - { - return $this->writeDisposition; - } + public function getWriteDisposition() { + return $this->writeDisposition; + } } -class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection -{ - public $createDisposition; - protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; - protected $destinationTableDataType = ''; - protected $sourceTableType = 'Google_Service_Bigquery_TableReference'; - protected $sourceTableDataType = ''; - protected $sourceTablesType = 'Google_Service_Bigquery_TableReference'; - protected $sourceTablesDataType = 'array'; - public $writeDisposition; +class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection { + public $createDisposition; + protected $destinationTableType = 'Google_Service_Bigquery_TableReference'; + protected $destinationTableDataType = ''; + protected $sourceTableType = 'Google_Service_Bigquery_TableReference'; + protected $sourceTableDataType = ''; + protected $sourceTablesType = 'Google_Service_Bigquery_TableReference'; + protected $sourceTablesDataType = 'array'; + public $writeDisposition; - public function setCreateDisposition($createDisposition) - { - $this->createDisposition = $createDisposition; - } + public function setCreateDisposition($createDisposition) { + $this->createDisposition = $createDisposition; + } - public function getCreateDisposition() - { - return $this->createDisposition; - } + public function getCreateDisposition() { + return $this->createDisposition; + } - public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) - { - $this->destinationTable = $destinationTable; - } + public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable) { + $this->destinationTable = $destinationTable; + } - public function getDestinationTable() - { - return $this->destinationTable; - } + public function getDestinationTable() { + return $this->destinationTable; + } - public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable) - { - $this->sourceTable = $sourceTable; - } + public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable) { + $this->sourceTable = $sourceTable; + } - public function getSourceTable() - { - return $this->sourceTable; - } + public function getSourceTable() { + return $this->sourceTable; + } - public function setSourceTables($sourceTables) - { - $this->sourceTables = $sourceTables; - } + public function setSourceTables($sourceTables) { + $this->sourceTables = $sourceTables; + } - public function getSourceTables() - { - return $this->sourceTables; - } + public function getSourceTables() { + return $this->sourceTables; + } - public function setWriteDisposition($writeDisposition) - { - $this->writeDisposition = $writeDisposition; - } + public function setWriteDisposition($writeDisposition) { + $this->writeDisposition = $writeDisposition; + } - public function getWriteDisposition() - { - return $this->writeDisposition; - } + public function getWriteDisposition() { + return $this->writeDisposition; + } } -class Google_Service_Bigquery_JobList extends Google_Collection -{ - public $etag; - protected $jobsType = 'Google_Service_Bigquery_JobListJobs'; - protected $jobsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; +class Google_Service_Bigquery_JobList extends Google_Collection { + public $etag; + protected $jobsType = 'Google_Service_Bigquery_JobListJobs'; + protected $jobsDataType = 'array'; + public $kind; + public $nextPageToken; + public $totalItems; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setJobs($jobs) - { - $this->jobs = $jobs; - } + public function setJobs($jobs) { + $this->jobs = $jobs; + } - public function getJobs() - { - return $this->jobs; - } + public function getJobs() { + return $this->jobs; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Bigquery_JobListJobs extends Google_Model -{ - protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; - protected $configurationDataType = ''; - protected $errorResultType = 'Google_Service_Bigquery_ErrorProto'; - protected $errorResultDataType = ''; - public $id; - protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; - protected $jobReferenceDataType = ''; - public $kind; - public $state; - protected $statisticsType = 'Google_Service_Bigquery_JobStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_Bigquery_JobStatus'; - protected $statusDataType = ''; - public $userEmail; +class Google_Service_Bigquery_JobListJobs extends Google_Model { + protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; + protected $configurationDataType = ''; + protected $errorResultType = 'Google_Service_Bigquery_ErrorProto'; + protected $errorResultDataType = ''; + public $id; + protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; + protected $jobReferenceDataType = ''; + public $kind; + public $state; + protected $statisticsType = 'Google_Service_Bigquery_JobStatistics'; + protected $statisticsDataType = ''; + protected $statusType = 'Google_Service_Bigquery_JobStatus'; + protected $statusDataType = ''; + public $userEmail; - public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration) - { - $this->configuration = $configuration; - } + public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration) { + $this->configuration = $configuration; + } - public function getConfiguration() - { - return $this->configuration; - } + public function getConfiguration() { + return $this->configuration; + } - public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult) - { - $this->errorResult = $errorResult; - } + public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult) { + $this->errorResult = $errorResult; + } - public function getErrorResult() - { - return $this->errorResult; - } + public function getErrorResult() { + return $this->errorResult; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) - { - $this->jobReference = $jobReference; - } + public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) { + $this->jobReference = $jobReference; + } - public function getJobReference() - { - return $this->jobReference; - } + public function getJobReference() { + return $this->jobReference; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setState($state) - { - $this->state = $state; - } + public function setState($state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } - public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics) - { - $this->statistics = $statistics; - } + public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics) { + $this->statistics = $statistics; + } - public function getStatistics() - { - return $this->statistics; - } + public function getStatistics() { + return $this->statistics; + } - public function setStatus(Google_Service_Bigquery_JobStatus $status) - { - $this->status = $status; - } + public function setStatus(Google_Service_Bigquery_JobStatus $status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setUserEmail($userEmail) - { - $this->userEmail = $userEmail; - } + public function setUserEmail($userEmail) { + $this->userEmail = $userEmail; + } - public function getUserEmail() - { - return $this->userEmail; - } + public function getUserEmail() { + return $this->userEmail; + } } -class Google_Service_Bigquery_JobReference extends Google_Model -{ - public $jobId; - public $projectId; +class Google_Service_Bigquery_JobReference extends Google_Model { + public $jobId; + public $projectId; - public function setJobId($jobId) - { - $this->jobId = $jobId; - } + public function setJobId($jobId) { + $this->jobId = $jobId; + } - public function getJobId() - { - return $this->jobId; - } + public function getJobId() { + return $this->jobId; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } } -class Google_Service_Bigquery_JobStatistics extends Google_Model -{ - public $creationTime; - public $endTime; - protected $loadType = 'Google_Service_Bigquery_JobStatistics3'; - protected $loadDataType = ''; - protected $queryType = 'Google_Service_Bigquery_JobStatistics2'; - protected $queryDataType = ''; - public $startTime; - public $totalBytesProcessed; +class Google_Service_Bigquery_JobStatistics extends Google_Model { + public $creationTime; + public $endTime; + protected $loadType = 'Google_Service_Bigquery_JobStatistics3'; + protected $loadDataType = ''; + protected $queryType = 'Google_Service_Bigquery_JobStatistics2'; + protected $queryDataType = ''; + public $startTime; + public $totalBytesProcessed; - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } + public function setEndTime($endTime) { + $this->endTime = $endTime; + } - public function getEndTime() - { - return $this->endTime; - } + public function getEndTime() { + return $this->endTime; + } - public function setLoad(Google_Service_Bigquery_JobStatistics3 $load) - { - $this->load = $load; - } + public function setLoad(Google_Service_Bigquery_JobStatistics3 $load) { + $this->load = $load; + } - public function getLoad() - { - return $this->load; - } + public function getLoad() { + return $this->load; + } - public function setQuery(Google_Service_Bigquery_JobStatistics2 $query) - { - $this->query = $query; - } + public function setQuery(Google_Service_Bigquery_JobStatistics2 $query) { + $this->query = $query; + } - public function getQuery() - { - return $this->query; - } + public function getQuery() { + return $this->query; + } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getStartTime() - { - return $this->startTime; - } + public function getStartTime() { + return $this->startTime; + } - public function setTotalBytesProcessed($totalBytesProcessed) - { - $this->totalBytesProcessed = $totalBytesProcessed; - } + public function setTotalBytesProcessed($totalBytesProcessed) { + $this->totalBytesProcessed = $totalBytesProcessed; + } - public function getTotalBytesProcessed() - { - return $this->totalBytesProcessed; - } + public function getTotalBytesProcessed() { + return $this->totalBytesProcessed; + } } -class Google_Service_Bigquery_JobStatistics2 extends Google_Model -{ - public $cacheHit; - public $totalBytesProcessed; +class Google_Service_Bigquery_JobStatistics2 extends Google_Model { + public $cacheHit; + public $totalBytesProcessed; - public function setCacheHit($cacheHit) - { - $this->cacheHit = $cacheHit; - } + public function setCacheHit($cacheHit) { + $this->cacheHit = $cacheHit; + } - public function getCacheHit() - { - return $this->cacheHit; - } + public function getCacheHit() { + return $this->cacheHit; + } - public function setTotalBytesProcessed($totalBytesProcessed) - { - $this->totalBytesProcessed = $totalBytesProcessed; - } + public function setTotalBytesProcessed($totalBytesProcessed) { + $this->totalBytesProcessed = $totalBytesProcessed; + } - public function getTotalBytesProcessed() - { - return $this->totalBytesProcessed; - } + public function getTotalBytesProcessed() { + return $this->totalBytesProcessed; + } } -class Google_Service_Bigquery_JobStatistics3 extends Google_Model -{ - public $inputFileBytes; - public $inputFiles; - public $outputBytes; - public $outputRows; +class Google_Service_Bigquery_JobStatistics3 extends Google_Model { + public $inputFileBytes; + public $inputFiles; + public $outputBytes; + public $outputRows; - public function setInputFileBytes($inputFileBytes) - { - $this->inputFileBytes = $inputFileBytes; - } + public function setInputFileBytes($inputFileBytes) { + $this->inputFileBytes = $inputFileBytes; + } - public function getInputFileBytes() - { - return $this->inputFileBytes; - } + public function getInputFileBytes() { + return $this->inputFileBytes; + } - public function setInputFiles($inputFiles) - { - $this->inputFiles = $inputFiles; - } + public function setInputFiles($inputFiles) { + $this->inputFiles = $inputFiles; + } - public function getInputFiles() - { - return $this->inputFiles; - } + public function getInputFiles() { + return $this->inputFiles; + } - public function setOutputBytes($outputBytes) - { - $this->outputBytes = $outputBytes; - } + public function setOutputBytes($outputBytes) { + $this->outputBytes = $outputBytes; + } - public function getOutputBytes() - { - return $this->outputBytes; - } + public function getOutputBytes() { + return $this->outputBytes; + } - public function setOutputRows($outputRows) - { - $this->outputRows = $outputRows; - } + public function setOutputRows($outputRows) { + $this->outputRows = $outputRows; + } - public function getOutputRows() - { - return $this->outputRows; - } + public function getOutputRows() { + return $this->outputRows; + } } -class Google_Service_Bigquery_JobStatus extends Google_Collection -{ - protected $errorResultType = 'Google_Service_Bigquery_ErrorProto'; - protected $errorResultDataType = ''; - protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; - protected $errorsDataType = 'array'; - public $state; +class Google_Service_Bigquery_JobStatus extends Google_Collection { + protected $errorResultType = 'Google_Service_Bigquery_ErrorProto'; + protected $errorResultDataType = ''; + protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; + protected $errorsDataType = 'array'; + public $state; - public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult) - { - $this->errorResult = $errorResult; - } + public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult) { + $this->errorResult = $errorResult; + } - public function getErrorResult() - { - return $this->errorResult; - } + public function getErrorResult() { + return $this->errorResult; + } - public function setErrors($errors) - { - $this->errors = $errors; - } + public function setErrors($errors) { + $this->errors = $errors; + } - public function getErrors() - { - return $this->errors; - } + public function getErrors() { + return $this->errors; + } - public function setState($state) - { - $this->state = $state; - } + public function setState($state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } } -class Google_Service_Bigquery_JsonObject extends Google_Model -{ +class Google_Service_Bigquery_JsonObject extends Google_Model { } -class Google_Service_Bigquery_ProjectList extends Google_Collection -{ - public $etag; - public $kind; - public $nextPageToken; - protected $projectsType = 'Google_Service_Bigquery_ProjectListProjects'; - protected $projectsDataType = 'array'; - public $totalItems; +class Google_Service_Bigquery_ProjectList extends Google_Collection { + public $etag; + public $kind; + public $nextPageToken; + protected $projectsType = 'Google_Service_Bigquery_ProjectListProjects'; + protected $projectsDataType = 'array'; + public $totalItems; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setProjects($projects) - { - $this->projects = $projects; - } + public function setProjects($projects) { + $this->projects = $projects; + } - public function getProjects() - { - return $this->projects; - } + public function getProjects() { + return $this->projects; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Bigquery_ProjectListProjects extends Google_Model -{ - public $friendlyName; - public $id; - public $kind; - public $numericId; - protected $projectReferenceType = 'Google_Service_Bigquery_ProjectReference'; - protected $projectReferenceDataType = ''; +class Google_Service_Bigquery_ProjectListProjects extends Google_Model { + public $friendlyName; + public $id; + public $kind; + public $numericId; + protected $projectReferenceType = 'Google_Service_Bigquery_ProjectReference'; + protected $projectReferenceDataType = ''; - public function setFriendlyName($friendlyName) - { - $this->friendlyName = $friendlyName; - } + public function setFriendlyName($friendlyName) { + $this->friendlyName = $friendlyName; + } - public function getFriendlyName() - { - return $this->friendlyName; - } + public function getFriendlyName() { + return $this->friendlyName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNumericId($numericId) - { - $this->numericId = $numericId; - } + public function setNumericId($numericId) { + $this->numericId = $numericId; + } - public function getNumericId() - { - return $this->numericId; - } + public function getNumericId() { + return $this->numericId; + } - public function setProjectReference(Google_Service_Bigquery_ProjectReference $projectReference) - { - $this->projectReference = $projectReference; - } + public function setProjectReference(Google_Service_Bigquery_ProjectReference $projectReference) { + $this->projectReference = $projectReference; + } - public function getProjectReference() - { - return $this->projectReference; - } + public function getProjectReference() { + return $this->projectReference; + } } -class Google_Service_Bigquery_ProjectReference extends Google_Model -{ - public $projectId; +class Google_Service_Bigquery_ProjectReference extends Google_Model { + public $projectId; - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } } -class Google_Service_Bigquery_QueryRequest extends Google_Model -{ - protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference'; - protected $defaultDatasetDataType = ''; - public $dryRun; - public $kind; - public $maxResults; - public $preserveNulls; - public $query; - public $timeoutMs; - public $useQueryCache; +class Google_Service_Bigquery_QueryRequest extends Google_Model { + protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference'; + protected $defaultDatasetDataType = ''; + public $dryRun; + public $kind; + public $maxResults; + public $preserveNulls; + public $query; + public $timeoutMs; + public $useQueryCache; - public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset) - { - $this->defaultDataset = $defaultDataset; - } + public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset) { + $this->defaultDataset = $defaultDataset; + } - public function getDefaultDataset() - { - return $this->defaultDataset; - } + public function getDefaultDataset() { + return $this->defaultDataset; + } - public function setDryRun($dryRun) - { - $this->dryRun = $dryRun; - } + public function setDryRun($dryRun) { + $this->dryRun = $dryRun; + } - public function getDryRun() - { - return $this->dryRun; - } + public function getDryRun() { + return $this->dryRun; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } + public function setMaxResults($maxResults) { + $this->maxResults = $maxResults; + } - public function getMaxResults() - { - return $this->maxResults; - } + public function getMaxResults() { + return $this->maxResults; + } - public function setPreserveNulls($preserveNulls) - { - $this->preserveNulls = $preserveNulls; - } + public function setPreserveNulls($preserveNulls) { + $this->preserveNulls = $preserveNulls; + } - public function getPreserveNulls() - { - return $this->preserveNulls; - } + public function getPreserveNulls() { + return $this->preserveNulls; + } - public function setQuery($query) - { - $this->query = $query; - } + public function setQuery($query) { + $this->query = $query; + } - public function getQuery() - { - return $this->query; - } + public function getQuery() { + return $this->query; + } - public function setTimeoutMs($timeoutMs) - { - $this->timeoutMs = $timeoutMs; - } + public function setTimeoutMs($timeoutMs) { + $this->timeoutMs = $timeoutMs; + } - public function getTimeoutMs() - { - return $this->timeoutMs; - } + public function getTimeoutMs() { + return $this->timeoutMs; + } - public function setUseQueryCache($useQueryCache) - { - $this->useQueryCache = $useQueryCache; - } + public function setUseQueryCache($useQueryCache) { + $this->useQueryCache = $useQueryCache; + } - public function getUseQueryCache() - { - return $this->useQueryCache; - } + public function getUseQueryCache() { + return $this->useQueryCache; + } } -class Google_Service_Bigquery_QueryResponse extends Google_Collection -{ - public $cacheHit; - public $jobComplete; - protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; - protected $jobReferenceDataType = ''; - public $kind; - public $pageToken; - protected $rowsType = 'Google_Service_Bigquery_TableRow'; - protected $rowsDataType = 'array'; - protected $schemaType = 'Google_Service_Bigquery_TableSchema'; - protected $schemaDataType = ''; - public $totalBytesProcessed; - public $totalRows; +class Google_Service_Bigquery_QueryResponse extends Google_Collection { + public $cacheHit; + public $jobComplete; + protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; + protected $jobReferenceDataType = ''; + public $kind; + public $pageToken; + protected $rowsType = 'Google_Service_Bigquery_TableRow'; + protected $rowsDataType = 'array'; + protected $schemaType = 'Google_Service_Bigquery_TableSchema'; + protected $schemaDataType = ''; + public $totalBytesProcessed; + public $totalRows; - public function setCacheHit($cacheHit) - { - $this->cacheHit = $cacheHit; - } + public function setCacheHit($cacheHit) { + $this->cacheHit = $cacheHit; + } - public function getCacheHit() - { - return $this->cacheHit; - } + public function getCacheHit() { + return $this->cacheHit; + } - public function setJobComplete($jobComplete) - { - $this->jobComplete = $jobComplete; - } + public function setJobComplete($jobComplete) { + $this->jobComplete = $jobComplete; + } - public function getJobComplete() - { - return $this->jobComplete; - } + public function getJobComplete() { + return $this->jobComplete; + } - public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) - { - $this->jobReference = $jobReference; - } + public function setJobReference(Google_Service_Bigquery_JobReference $jobReference) { + $this->jobReference = $jobReference; + } - public function getJobReference() - { - return $this->jobReference; - } + public function getJobReference() { + return $this->jobReference; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } + public function setPageToken($pageToken) { + $this->pageToken = $pageToken; + } - public function getPageToken() - { - return $this->pageToken; - } + public function getPageToken() { + return $this->pageToken; + } - public function setRows($rows) - { - $this->rows = $rows; - } + public function setRows($rows) { + $this->rows = $rows; + } - public function getRows() - { - return $this->rows; - } + public function getRows() { + return $this->rows; + } - public function setSchema(Google_Service_Bigquery_TableSchema $schema) - { - $this->schema = $schema; - } + public function setSchema(Google_Service_Bigquery_TableSchema $schema) { + $this->schema = $schema; + } - public function getSchema() - { - return $this->schema; - } + public function getSchema() { + return $this->schema; + } - public function setTotalBytesProcessed($totalBytesProcessed) - { - $this->totalBytesProcessed = $totalBytesProcessed; - } + public function setTotalBytesProcessed($totalBytesProcessed) { + $this->totalBytesProcessed = $totalBytesProcessed; + } - public function getTotalBytesProcessed() - { - return $this->totalBytesProcessed; - } + public function getTotalBytesProcessed() { + return $this->totalBytesProcessed; + } - public function setTotalRows($totalRows) - { - $this->totalRows = $totalRows; - } + public function setTotalRows($totalRows) { + $this->totalRows = $totalRows; + } - public function getTotalRows() - { - return $this->totalRows; - } + public function getTotalRows() { + return $this->totalRows; + } } -class Google_Service_Bigquery_Table extends Google_Model -{ - public $creationTime; - public $description; - public $etag; - public $expirationTime; - public $friendlyName; - public $id; - public $kind; - public $lastModifiedTime; - public $numBytes; - public $numRows; - protected $schemaType = 'Google_Service_Bigquery_TableSchema'; - protected $schemaDataType = ''; - public $selfLink; - protected $tableReferenceType = 'Google_Service_Bigquery_TableReference'; - protected $tableReferenceDataType = ''; - public $type; - protected $viewType = 'Google_Service_Bigquery_ViewDefinition'; - protected $viewDataType = ''; +class Google_Service_Bigquery_Table extends Google_Model { + public $creationTime; + public $description; + public $etag; + public $expirationTime; + public $friendlyName; + public $id; + public $kind; + public $lastModifiedTime; + public $numBytes; + public $numRows; + protected $schemaType = 'Google_Service_Bigquery_TableSchema'; + protected $schemaDataType = ''; + public $selfLink; + protected $tableReferenceType = 'Google_Service_Bigquery_TableReference'; + protected $tableReferenceDataType = ''; + public $type; + protected $viewType = 'Google_Service_Bigquery_ViewDefinition'; + protected $viewDataType = ''; - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setExpirationTime($expirationTime) - { - $this->expirationTime = $expirationTime; - } + public function setExpirationTime($expirationTime) { + $this->expirationTime = $expirationTime; + } - public function getExpirationTime() - { - return $this->expirationTime; - } + public function getExpirationTime() { + return $this->expirationTime; + } - public function setFriendlyName($friendlyName) - { - $this->friendlyName = $friendlyName; - } + public function setFriendlyName($friendlyName) { + $this->friendlyName = $friendlyName; + } - public function getFriendlyName() - { - return $this->friendlyName; - } + public function getFriendlyName() { + return $this->friendlyName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } + public function setLastModifiedTime($lastModifiedTime) { + $this->lastModifiedTime = $lastModifiedTime; + } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } + public function getLastModifiedTime() { + return $this->lastModifiedTime; + } - public function setNumBytes($numBytes) - { - $this->numBytes = $numBytes; - } + public function setNumBytes($numBytes) { + $this->numBytes = $numBytes; + } - public function getNumBytes() - { - return $this->numBytes; - } + public function getNumBytes() { + return $this->numBytes; + } - public function setNumRows($numRows) - { - $this->numRows = $numRows; - } + public function setNumRows($numRows) { + $this->numRows = $numRows; + } - public function getNumRows() - { - return $this->numRows; - } + public function getNumRows() { + return $this->numRows; + } - public function setSchema(Google_Service_Bigquery_TableSchema $schema) - { - $this->schema = $schema; - } + public function setSchema(Google_Service_Bigquery_TableSchema $schema) { + $this->schema = $schema; + } - public function getSchema() - { - return $this->schema; - } + public function getSchema() { + return $this->schema; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTableReference(Google_Service_Bigquery_TableReference $tableReference) - { - $this->tableReference = $tableReference; - } + public function setTableReference(Google_Service_Bigquery_TableReference $tableReference) { + $this->tableReference = $tableReference; + } - public function getTableReference() - { - return $this->tableReference; - } + public function getTableReference() { + return $this->tableReference; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setView(Google_Service_Bigquery_ViewDefinition $view) - { - $this->view = $view; - } + public function setView(Google_Service_Bigquery_ViewDefinition $view) { + $this->view = $view; + } - public function getView() - { - return $this->view; - } + public function getView() { + return $this->view; + } } -class Google_Service_Bigquery_TableCell extends Google_Model -{ - public $v; +class Google_Service_Bigquery_TableCell extends Google_Model { + public $v; - public function setV($v) - { - $this->v = $v; - } + public function setV($v) { + $this->v = $v; + } - public function getV() - { - return $this->v; - } + public function getV() { + return $this->v; + } } -class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collection -{ - public $kind; - protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows'; - protected $rowsDataType = 'array'; +class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collection { + public $kind; + protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows'; + protected $rowsDataType = 'array'; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRows($rows) - { - $this->rows = $rows; - } + public function setRows($rows) { + $this->rows = $rows; + } - public function getRows() - { - return $this->rows; - } + public function getRows() { + return $this->rows; + } } -class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model -{ - public $insertId; - public $json; +class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model { + public $insertId; + public $json; - public function setInsertId($insertId) - { - $this->insertId = $insertId; - } + public function setInsertId($insertId) { + $this->insertId = $insertId; + } - public function getInsertId() - { - return $this->insertId; - } + public function getInsertId() { + return $this->insertId; + } - public function setJson($json) - { - $this->json = $json; - } + public function setJson($json) { + $this->json = $json; + } - public function getJson() - { - return $this->json; - } + public function getJson() { + return $this->json; + } } -class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection -{ - protected $insertErrorsType = 'Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors'; - protected $insertErrorsDataType = 'array'; - public $kind; +class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection { + protected $insertErrorsType = 'Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors'; + protected $insertErrorsDataType = 'array'; + public $kind; - public function setInsertErrors($insertErrors) - { - $this->insertErrors = $insertErrors; - } + public function setInsertErrors($insertErrors) { + $this->insertErrors = $insertErrors; + } - public function getInsertErrors() - { - return $this->insertErrors; - } + public function getInsertErrors() { + return $this->insertErrors; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection -{ - protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; - protected $errorsDataType = 'array'; - public $index; +class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection { + protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; + protected $errorsDataType = 'array'; + public $index; - public function setErrors($errors) - { - $this->errors = $errors; - } + public function setErrors($errors) { + $this->errors = $errors; + } - public function getErrors() - { - return $this->errors; - } + public function getErrors() { + return $this->errors; + } - public function setIndex($index) - { - $this->index = $index; - } + public function setIndex($index) { + $this->index = $index; + } - public function getIndex() - { - return $this->index; - } + public function getIndex() { + return $this->index; + } } -class Google_Service_Bigquery_TableDataList extends Google_Collection -{ - public $etag; - public $kind; - public $pageToken; - protected $rowsType = 'Google_Service_Bigquery_TableRow'; - protected $rowsDataType = 'array'; - public $totalRows; +class Google_Service_Bigquery_TableDataList extends Google_Collection { + public $etag; + public $kind; + public $pageToken; + protected $rowsType = 'Google_Service_Bigquery_TableRow'; + protected $rowsDataType = 'array'; + public $totalRows; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } + public function setPageToken($pageToken) { + $this->pageToken = $pageToken; + } - public function getPageToken() - { - return $this->pageToken; - } + public function getPageToken() { + return $this->pageToken; + } - public function setRows($rows) - { - $this->rows = $rows; - } + public function setRows($rows) { + $this->rows = $rows; + } - public function getRows() - { - return $this->rows; - } + public function getRows() { + return $this->rows; + } - public function setTotalRows($totalRows) - { - $this->totalRows = $totalRows; - } + public function setTotalRows($totalRows) { + $this->totalRows = $totalRows; + } - public function getTotalRows() - { - return $this->totalRows; - } + public function getTotalRows() { + return $this->totalRows; + } } -class Google_Service_Bigquery_TableFieldSchema extends Google_Collection -{ - public $description; - protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; - protected $fieldsDataType = 'array'; - public $mode; - public $name; - public $type; +class Google_Service_Bigquery_TableFieldSchema extends Google_Collection { + public $description; + protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; + protected $fieldsDataType = 'array'; + public $mode; + public $name; + public $type; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setFields($fields) - { - $this->fields = $fields; - } + public function setFields($fields) { + $this->fields = $fields; + } - public function getFields() - { - return $this->fields; - } + public function getFields() { + return $this->fields; + } - public function setMode($mode) - { - $this->mode = $mode; - } + public function setMode($mode) { + $this->mode = $mode; + } - public function getMode() - { - return $this->mode; - } + public function getMode() { + return $this->mode; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Bigquery_TableList extends Google_Collection -{ - public $etag; - public $kind; - public $nextPageToken; - protected $tablesType = 'Google_Service_Bigquery_TableListTables'; - protected $tablesDataType = 'array'; - public $totalItems; +class Google_Service_Bigquery_TableList extends Google_Collection { + public $etag; + public $kind; + public $nextPageToken; + protected $tablesType = 'Google_Service_Bigquery_TableListTables'; + protected $tablesDataType = 'array'; + public $totalItems; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTables($tables) - { - $this->tables = $tables; - } + public function setTables($tables) { + $this->tables = $tables; + } - public function getTables() - { - return $this->tables; - } + public function getTables() { + return $this->tables; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Bigquery_TableListTables extends Google_Model -{ - public $friendlyName; - public $id; - public $kind; - protected $tableReferenceType = 'Google_Service_Bigquery_TableReference'; - protected $tableReferenceDataType = ''; - public $type; +class Google_Service_Bigquery_TableListTables extends Google_Model { + public $friendlyName; + public $id; + public $kind; + protected $tableReferenceType = 'Google_Service_Bigquery_TableReference'; + protected $tableReferenceDataType = ''; + public $type; - public function setFriendlyName($friendlyName) - { - $this->friendlyName = $friendlyName; - } + public function setFriendlyName($friendlyName) { + $this->friendlyName = $friendlyName; + } - public function getFriendlyName() - { - return $this->friendlyName; - } + public function getFriendlyName() { + return $this->friendlyName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setTableReference(Google_Service_Bigquery_TableReference $tableReference) - { - $this->tableReference = $tableReference; - } + public function setTableReference(Google_Service_Bigquery_TableReference $tableReference) { + $this->tableReference = $tableReference; + } - public function getTableReference() - { - return $this->tableReference; - } + public function getTableReference() { + return $this->tableReference; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Bigquery_TableReference extends Google_Model -{ - public $datasetId; - public $projectId; - public $tableId; +class Google_Service_Bigquery_TableReference extends Google_Model { + public $datasetId; + public $projectId; + public $tableId; - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } + public function setDatasetId($datasetId) { + $this->datasetId = $datasetId; + } - public function getDatasetId() - { - return $this->datasetId; - } + public function getDatasetId() { + return $this->datasetId; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setTableId($tableId) - { - $this->tableId = $tableId; - } + public function setTableId($tableId) { + $this->tableId = $tableId; + } - public function getTableId() - { - return $this->tableId; - } + public function getTableId() { + return $this->tableId; + } } -class Google_Service_Bigquery_TableRow extends Google_Collection -{ - protected $fType = 'Google_Service_Bigquery_TableCell'; - protected $fDataType = 'array'; +class Google_Service_Bigquery_TableRow extends Google_Collection { + protected $fType = 'Google_Service_Bigquery_TableCell'; + protected $fDataType = 'array'; - public function setF($f) - { - $this->f = $f; - } + public function setF($f) { + $this->f = $f; + } - public function getF() - { - return $this->f; - } + public function getF() { + return $this->f; + } } -class Google_Service_Bigquery_TableSchema extends Google_Collection -{ - protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; - protected $fieldsDataType = 'array'; +class Google_Service_Bigquery_TableSchema extends Google_Collection { + protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; + protected $fieldsDataType = 'array'; - public function setFields($fields) - { - $this->fields = $fields; - } + public function setFields($fields) { + $this->fields = $fields; + } - public function getFields() - { - return $this->fields; - } + public function getFields() { + return $this->fields; + } } -class Google_Service_Bigquery_ViewDefinition extends Google_Model -{ - public $query; +class Google_Service_Bigquery_ViewDefinition extends Google_Model { + public $query; - public function setQuery($query) - { - $this->query = $query; - } + public function setQuery($query) { + $this->query = $query; + } - public function getQuery() - { - return $this->query; - } + public function getQuery() { + return $this->query; + } } diff --git a/oauth/Google/Service/Blogger.php b/oauth/Google/Service/Blogger.php index 2438429..afc0801 100644 --- a/oauth/Google/Service/Blogger.php +++ b/oauth/Google/Service/Blogger.php @@ -29,890 +29,888 @@ * * @author Google, Inc. */ -class Google_Service_Blogger extends Google_Service -{ - /** Manage your Blogger account. */ - const BLOGGER = "https://www.googleapis.com/auth/blogger"; - /** View your Blogger account. */ - const BLOGGER_READONLY = "https://www.googleapis.com/auth/blogger.readonly"; +class Google_Service_Blogger extends Google_Service { + /** Manage your Blogger account. */ + const BLOGGER = "https://www.googleapis.com/auth/blogger"; + /** View your Blogger account. */ + const BLOGGER_READONLY = "https://www.googleapis.com/auth/blogger.readonly"; - public $blogUserInfos; - public $blogs; - public $comments; - public $pageViews; - public $pages; - public $postUserInfos; - public $posts; - public $users; - + public $blogUserInfos; + public $blogs; + public $comments; + public $pageViews; + public $pages; + public $postUserInfos; + public $posts; + public $users; - /** - * Constructs the internal representation of the Blogger service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'blogger/v3/'; - $this->version = 'v3'; - $this->serviceName = 'blogger'; - $this->blogUserInfos = new Google_Service_Blogger_BlogUserInfos_Resource( - $this, - $this->serviceName, - 'blogUserInfos', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/{userId}/blogs/{blogId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxPosts' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->blogs = new Google_Service_Blogger_Blogs_Resource( - $this, - $this->serviceName, - 'blogs', - array( - 'methods' => array( - 'get' => array( - 'path' => 'blogs/{blogId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxPosts' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getByUrl' => array( - 'path' => 'blogs/byurl', - 'httpMethod' => 'GET', - 'parameters' => array( - 'url' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listByUser' => array( - 'path' => 'users/{userId}/blogs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchUserInfo' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'role' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_Blogger_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'approve' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listByBlog' => array( - 'path' => 'blogs/{blogId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'markAsSpam' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'removeContent' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->pageViews = new Google_Service_Blogger_PageViews_Resource( - $this, - $this->serviceName, - 'pageViews', - array( - 'methods' => array( - 'get' => array( - 'path' => 'blogs/{blogId}/pageviews', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'range' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->pages = new Google_Service_Blogger_Pages_Resource( - $this, - $this->serviceName, - 'pages', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'blogs/{blogId}/pages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'isDraft' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'blogs/{blogId}/pages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'publish' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'revert' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}/revert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'blogs/{blogId}/pages/{pageId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->postUserInfos = new Google_Service_Blogger_PostUserInfos_Resource( - $this, - $this->serviceName, - 'postUserInfos', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/{userId}/blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'users/{userId}/blogs/{blogId}/posts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->posts = new Google_Service_Blogger_Posts_Resource( - $this, - $this->serviceName, - 'posts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getByPath' => array( - 'path' => 'blogs/{blogId}/posts/bypath', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'path' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'blogs/{blogId}/posts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'isDraft' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'blogs/{blogId}/posts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'status' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'publish' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'publishDate' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'revert' => array( - 'path' => 'blogs/{blogId}/posts/{postId}/revert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'blogs/{blogId}/posts/search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fetchBodies' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'blogs/{blogId}/posts/{postId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'blogId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'postId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publish' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'fetchBody' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxComments' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'fetchImages' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_Blogger_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Blogger service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'blogger/v3/'; + $this->version = 'v3'; + $this->serviceName = 'blogger'; + + $this->blogUserInfos = new Google_Service_Blogger_BlogUserInfos_Resource( + $this, + $this->serviceName, + 'blogUserInfos', + array( + 'methods' => array( + 'get' => array( + 'path' => 'users/{userId}/blogs/{blogId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxPosts' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->blogs = new Google_Service_Blogger_Blogs_Resource( + $this, + $this->serviceName, + 'blogs', + array( + 'methods' => array( + 'get' => array( + 'path' => 'blogs/{blogId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxPosts' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'getByUrl' => array( + 'path' => 'blogs/byurl', + 'httpMethod' => 'GET', + 'parameters' => array( + 'url' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'listByUser' => array( + 'path' => 'users/{userId}/blogs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fetchUserInfo' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'role' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->comments = new Google_Service_Blogger_Comments_Resource( + $this, + $this->serviceName, + 'comments', + array( + 'methods' => array( + 'approve' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'listByBlog' => array( + 'path' => 'blogs/{blogId}/comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'markAsSpam' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'removeContent' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->pageViews = new Google_Service_Blogger_PageViews_Resource( + $this, + $this->serviceName, + 'pageViews', + array( + 'methods' => array( + 'get' => array( + 'path' => 'blogs/{blogId}/pageviews', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'range' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->pages = new Google_Service_Blogger_Pages_Resource( + $this, + $this->serviceName, + 'pages', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'blogs/{blogId}/pages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'isDraft' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => 'blogs/{blogId}/pages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'publish' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}/publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'revert' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}/revert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'blogs/{blogId}/pages/{pageId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->postUserInfos = new Google_Service_Blogger_PostUserInfos_Resource( + $this, + $this->serviceName, + 'postUserInfos', + array( + 'methods' => array( + 'get' => array( + 'path' => 'users/{userId}/blogs/{blogId}/posts/{postId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxComments' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'list' => array( + 'path' => 'users/{userId}/blogs/{blogId}/posts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'labels' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->posts = new Google_Service_Blogger_Posts_Resource( + $this, + $this->serviceName, + 'posts', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'blogs/{blogId}/posts/{postId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'blogs/{blogId}/posts/{postId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fetchBody' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxComments' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fetchImages' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'getByPath' => array( + 'path' => 'blogs/{blogId}/posts/bypath', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'path' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'maxComments' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'blogs/{blogId}/posts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fetchImages' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'isDraft' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'fetchBody' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => 'blogs/{blogId}/posts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'labels' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fetchImages' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'blogs/{blogId}/posts/{postId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'fetchBody' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxComments' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fetchImages' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'publish' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'publishDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'revert' => array( + 'path' => 'blogs/{blogId}/posts/{postId}/revert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'search' => array( + 'path' => 'blogs/{blogId}/posts/search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'fetchBodies' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'update' => array( + 'path' => 'blogs/{blogId}/posts/{postId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'blogId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'postId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publish' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'fetchBody' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxComments' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fetchImages' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_Blogger_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'get' => array( + 'path' => 'users/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -924,29 +922,27 @@ class Google_Service_Blogger extends Google_Service * $blogUserInfos = $bloggerService->blogUserInfos; * */ -class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resource -{ +class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resource { - /** - * Gets one blog and user info pair by blogId and userId. (blogUserInfos.get) - * - * @param string $userId - * ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the - * user's profile identifier. - * @param string $blogId - * The ID of the blog to get. - * @param array $optParams Optional parameters. - * - * @opt_param string maxPosts - * Maximum number of posts to pull back with the blog. - * @return Google_Service_Blogger_BlogUserInfo - */ - public function get($userId, $blogId, $optParams = array()) - { - $params = array('userId' => $userId, 'blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_BlogUserInfo"); - } + /** + * Gets one blog and user info pair by blogId and userId. (blogUserInfos.get) + * + * @param string $userId + * ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the + * user's profile identifier. + * @param string $blogId + * The ID of the blog to get. + * @param array $optParams Optional parameters. + * + * @opt_param string maxPosts + * Maximum number of posts to pull back with the blog. + * @return Google_Service_Blogger_BlogUserInfo + */ + public function get($userId, $blogId, $optParams = array()) { + $params = array('userId' => $userId, 'blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_BlogUserInfo"); + } } /** @@ -957,71 +953,69 @@ class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resou * $blogs = $bloggerService->blogs; * */ -class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource -{ +class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource { - /** - * Gets one blog by ID. (blogs.get) - * - * @param string $blogId - * The ID of the blog to get. - * @param array $optParams Optional parameters. - * - * @opt_param string maxPosts - * Maximum number of posts to pull back with the blog. - * @opt_param string view - * Access level with which to view the blog. Note that some fields require elevated access. - * @return Google_Service_Blogger_Blog - */ - public function get($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Blog"); - } - /** - * Retrieve a Blog by URL. (blogs.getByUrl) - * - * @param string $url - * The URL of the blog to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string view - * Access level with which to view the blog. Note that some fields require elevated access. - * @return Google_Service_Blogger_Blog - */ - public function getByUrl($url, $optParams = array()) - { - $params = array('url' => $url); - $params = array_merge($params, $optParams); - return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog"); - } - /** - * Retrieves a list of blogs, possibly filtered. (blogs.listByUser) - * - * @param string $userId - * ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the - * user's profile identifier. - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchUserInfo - * Whether the response is a list of blogs with per-user information instead of just blogs. - * @opt_param string status - * Blog statuses to include in the result (default: Live blogs only). Note that ADMIN access is - * required to view deleted blogs. - * @opt_param string role - * User access types for blogs to include in the results, e.g. AUTHOR will return blogs where the - * user has author level access. If no roles are specified, defaults to ADMIN and AUTHOR roles. - * @opt_param string view - * Access level with which to view the blogs. Note that some fields require elevated access. - * @return Google_Service_Blogger_BlogList - */ - public function listByUser($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('listByUser', array($params), "Google_Service_Blogger_BlogList"); - } + /** + * Gets one blog by ID. (blogs.get) + * + * @param string $blogId + * The ID of the blog to get. + * @param array $optParams Optional parameters. + * + * @opt_param string maxPosts + * Maximum number of posts to pull back with the blog. + * @opt_param string view + * Access level with which to view the blog. Note that some fields require elevated access. + * @return Google_Service_Blogger_Blog + */ + public function get($blogId, $optParams = array()) { + $params = array('blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_Blog"); + } + + /** + * Retrieve a Blog by URL. (blogs.getByUrl) + * + * @param string $url + * The URL of the blog to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string view + * Access level with which to view the blog. Note that some fields require elevated access. + * @return Google_Service_Blogger_Blog + */ + public function getByUrl($url, $optParams = array()) { + $params = array('url' => $url); + $params = array_merge($params, $optParams); + return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog"); + } + + /** + * Retrieves a list of blogs, possibly filtered. (blogs.listByUser) + * + * @param string $userId + * ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the + * user's profile identifier. + * @param array $optParams Optional parameters. + * + * @opt_param bool fetchUserInfo + * Whether the response is a list of blogs with per-user information instead of just blogs. + * @opt_param string status + * Blog statuses to include in the result (default: Live blogs only). Note that ADMIN access is + * required to view deleted blogs. + * @opt_param string role + * User access types for blogs to include in the results, e.g. AUTHOR will return blogs where the + * user has author level access. If no roles are specified, defaults to ADMIN and AUTHOR roles. + * @opt_param string view + * Access level with which to view the blogs. Note that some fields require elevated access. + * @return Google_Service_Blogger_BlogList + */ + public function listByUser($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('listByUser', array($params), "Google_Service_Blogger_BlogList"); + } } /** @@ -1032,161 +1026,159 @@ class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource * $comments = $bloggerService->comments; * */ -class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource -{ +class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource { - /** - * Marks a comment as not spam. (comments.approve) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to mark as not spam. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Comment - */ - public function approve($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('approve', array($params), "Google_Service_Blogger_Comment"); - } - /** - * Delete a comment by ID. (comments.delete) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to delete. - * @param array $optParams Optional parameters. - */ - public function delete($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets one comment by ID. (comments.get) - * - * @param string $blogId - * ID of the blog to containing the comment. - * @param string $postId - * ID of the post to fetch posts from. - * @param string $commentId - * The ID of the comment to get. - * @param array $optParams Optional parameters. - * - * @opt_param string view - * Access level for the requested comment (default: READER). Note that some comments will require - * elevated permissions, for example comments where the parent posts which is in a draft state, or - * comments that are pending moderation. - * @return Google_Service_Blogger_Comment - */ - public function get($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Comment"); - } - /** - * Retrieves the comments for a post, possibly filtered. (comments.listComments) - * - * @param string $blogId - * ID of the blog to fetch comments from. - * @param string $postId - * ID of the post to fetch posts from. - * @param array $optParams Optional parameters. - * - * @opt_param string status - * - * @opt_param string startDate - * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string maxResults - * Maximum number of comments to include in the result. - * @opt_param string pageToken - * Continuation token if request is paged. - * @opt_param bool fetchBodies - * Whether the body content of the comments is included. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. - * @return Google_Service_Blogger_CommentList - */ - public function listComments($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_CommentList"); - } - /** - * Retrieves the comments for a blog, across all posts, possibly filtered. - * (comments.listByBlog) - * - * @param string $blogId - * ID of the blog to fetch comments from. - * @param array $optParams Optional parameters. - * - * @opt_param string startDate - * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest date of comment to fetch, a date-time with RFC 3339 formatting. - * @opt_param string maxResults - * Maximum number of comments to include in the result. - * @opt_param string pageToken - * Continuation token if request is paged. - * @opt_param bool fetchBodies - * Whether the body content of the comments is included. - * @return Google_Service_Blogger_CommentList - */ - public function listByBlog($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('listByBlog', array($params), "Google_Service_Blogger_CommentList"); - } - /** - * Marks a comment as spam. (comments.markAsSpam) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to mark as spam. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Comment - */ - public function markAsSpam($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('markAsSpam', array($params), "Google_Service_Blogger_Comment"); - } - /** - * Removes the content of a comment. (comments.removeContent) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param string $commentId - * The ID of the comment to delete content from. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Comment - */ - public function removeContent($blogId, $postId, $commentId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('removeContent', array($params), "Google_Service_Blogger_Comment"); - } + /** + * Marks a comment as not spam. (comments.approve) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param string $commentId + * The ID of the comment to mark as not spam. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Comment + */ + public function approve($blogId, $postId, $commentId, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('approve', array($params), "Google_Service_Blogger_Comment"); + } + + /** + * Delete a comment by ID. (comments.delete) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param string $commentId + * The ID of the comment to delete. + * @param array $optParams Optional parameters. + */ + public function delete($blogId, $postId, $commentId, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one comment by ID. (comments.get) + * + * @param string $blogId + * ID of the blog to containing the comment. + * @param string $postId + * ID of the post to fetch posts from. + * @param string $commentId + * The ID of the comment to get. + * @param array $optParams Optional parameters. + * + * @opt_param string view + * Access level for the requested comment (default: READER). Note that some comments will require + * elevated permissions, for example comments where the parent posts which is in a draft state, or + * comments that are pending moderation. + * @return Google_Service_Blogger_Comment + */ + public function get($blogId, $postId, $commentId, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_Comment"); + } + + /** + * Retrieves the comments for a post, possibly filtered. (comments.listComments) + * + * @param string $blogId + * ID of the blog to fetch comments from. + * @param string $postId + * ID of the post to fetch posts from. + * @param array $optParams Optional parameters. + * + * @opt_param string status + * + * @opt_param string startDate + * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. + * @opt_param string endDate + * Latest date of comment to fetch, a date-time with RFC 3339 formatting. + * @opt_param string maxResults + * Maximum number of comments to include in the result. + * @opt_param string pageToken + * Continuation token if request is paged. + * @opt_param bool fetchBodies + * Whether the body content of the comments is included. + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require elevated + * access. + * @return Google_Service_Blogger_CommentList + */ + public function listComments($blogId, $postId, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Blogger_CommentList"); + } + + /** + * Retrieves the comments for a blog, across all posts, possibly filtered. + * (comments.listByBlog) + * + * @param string $blogId + * ID of the blog to fetch comments from. + * @param array $optParams Optional parameters. + * + * @opt_param string startDate + * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. + * @opt_param string endDate + * Latest date of comment to fetch, a date-time with RFC 3339 formatting. + * @opt_param string maxResults + * Maximum number of comments to include in the result. + * @opt_param string pageToken + * Continuation token if request is paged. + * @opt_param bool fetchBodies + * Whether the body content of the comments is included. + * @return Google_Service_Blogger_CommentList + */ + public function listByBlog($blogId, $optParams = array()) { + $params = array('blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('listByBlog', array($params), "Google_Service_Blogger_CommentList"); + } + + /** + * Marks a comment as spam. (comments.markAsSpam) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param string $commentId + * The ID of the comment to mark as spam. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Comment + */ + public function markAsSpam($blogId, $postId, $commentId, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('markAsSpam', array($params), "Google_Service_Blogger_Comment"); + } + + /** + * Removes the content of a comment. (comments.removeContent) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param string $commentId + * The ID of the comment to delete content from. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Comment + */ + public function removeContent($blogId, $postId, $commentId, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('removeContent', array($params), "Google_Service_Blogger_Comment"); + } } /** @@ -1197,26 +1189,24 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource * $pageViews = $bloggerService->pageViews; * */ -class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource -{ +class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource { - /** - * Retrieve pageview stats for a Blog. (pageViews.get) - * - * @param string $blogId - * The ID of the blog to get. - * @param array $optParams Optional parameters. - * - * @opt_param string range - * - * @return Google_Service_Blogger_Pageviews - */ - public function get($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Pageviews"); - } + /** + * Retrieve pageview stats for a Blog. (pageViews.get) + * + * @param string $blogId + * The ID of the blog to get. + * @param array $optParams Optional parameters. + * + * @opt_param string range + * + * @return Google_Service_Blogger_Pageviews + */ + public function get($blogId, $optParams = array()) { + $params = array('blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_Pageviews"); + } } /** @@ -1227,160 +1217,158 @@ class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource * $pages = $bloggerService->pages; * */ -class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource -{ +class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource { - /** - * Delete a page by ID. (pages.delete) - * - * @param string $blogId - * The ID of the Blog. - * @param string $pageId - * The ID of the Page. - * @param array $optParams Optional parameters. - */ - public function delete($blogId, $pageId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets one blog page by ID. (pages.get) - * - * @param string $blogId - * ID of the blog containing the page. - * @param string $pageId - * The ID of the page to get. - * @param array $optParams Optional parameters. - * - * @opt_param string view - * - * @return Google_Service_Blogger_Page - */ - public function get($blogId, $pageId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Page"); - } - /** - * Add a page. (pages.insert) - * - * @param string $blogId - * ID of the blog to add the page to. - * @param Google_Page $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool isDraft - * Whether to create the page as a draft (default: false). - * @return Google_Service_Blogger_Page - */ - public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Blogger_Page"); - } - /** - * Retrieves the pages for a blog, optionally including non-LIVE statuses. - * (pages.listPages) - * - * @param string $blogId - * ID of the blog to fetch pages from. - * @param array $optParams Optional parameters. - * - * @opt_param string status - * - * @opt_param bool fetchBodies - * Whether to retrieve the Page bodies. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. - * @return Google_Service_Blogger_PageList - */ - public function listPages($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_PageList"); - } - /** - * Update a page. This method supports patch semantics. (pages.patch) - * - * @param string $blogId - * The ID of the Blog. - * @param string $pageId - * The ID of the Page. - * @param Google_Page $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool revert - * Whether a revert action should be performed when the page is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the page is updated (default: false). - * @return Google_Service_Blogger_Page - */ - public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Blogger_Page"); - } - /** - * Publishes a draft page. (pages.publish) - * - * @param string $blogId - * The ID of the blog. - * @param string $pageId - * The ID of the page. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Page - */ - public function publish($blogId, $pageId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_Blogger_Page"); - } - /** - * Revert a published or scheduled page to draft state. (pages.revert) - * - * @param string $blogId - * The ID of the blog. - * @param string $pageId - * The ID of the page. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Page - */ - public function revert($blogId, $pageId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId); - $params = array_merge($params, $optParams); - return $this->call('revert', array($params), "Google_Service_Blogger_Page"); - } - /** - * Update a page. (pages.update) - * - * @param string $blogId - * The ID of the Blog. - * @param string $pageId - * The ID of the Page. - * @param Google_Page $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool revert - * Whether a revert action should be performed when the page is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the page is updated (default: false). - * @return Google_Service_Blogger_Page - */ - public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Blogger_Page"); - } + /** + * Delete a page by ID. (pages.delete) + * + * @param string $blogId + * The ID of the Blog. + * @param string $pageId + * The ID of the Page. + * @param array $optParams Optional parameters. + */ + public function delete($blogId, $pageId, $optParams = array()) { + $params = array('blogId' => $blogId, 'pageId' => $pageId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one blog page by ID. (pages.get) + * + * @param string $blogId + * ID of the blog containing the page. + * @param string $pageId + * The ID of the page to get. + * @param array $optParams Optional parameters. + * + * @opt_param string view + * + * @return Google_Service_Blogger_Page + */ + public function get($blogId, $pageId, $optParams = array()) { + $params = array('blogId' => $blogId, 'pageId' => $pageId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_Page"); + } + + /** + * Add a page. (pages.insert) + * + * @param string $blogId + * ID of the blog to add the page to. + * @param Google_Page $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool isDraft + * Whether to create the page as a draft (default: false). + * @return Google_Service_Blogger_Page + */ + public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array()) { + $params = array('blogId' => $blogId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Blogger_Page"); + } + + /** + * Retrieves the pages for a blog, optionally including non-LIVE statuses. + * (pages.listPages) + * + * @param string $blogId + * ID of the blog to fetch pages from. + * @param array $optParams Optional parameters. + * + * @opt_param string status + * + * @opt_param bool fetchBodies + * Whether to retrieve the Page bodies. + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require elevated + * access. + * @return Google_Service_Blogger_PageList + */ + public function listPages($blogId, $optParams = array()) { + $params = array('blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Blogger_PageList"); + } + + /** + * Update a page. This method supports patch semantics. (pages.patch) + * + * @param string $blogId + * The ID of the Blog. + * @param string $pageId + * The ID of the Page. + * @param Google_Page $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool revert + * Whether a revert action should be performed when the page is updated (default: false). + * @opt_param bool publish + * Whether a publish action should be performed when the page is updated (default: false). + * @return Google_Service_Blogger_Page + */ + public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) { + $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Blogger_Page"); + } + + /** + * Publishes a draft page. (pages.publish) + * + * @param string $blogId + * The ID of the blog. + * @param string $pageId + * The ID of the page. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Page + */ + public function publish($blogId, $pageId, $optParams = array()) { + $params = array('blogId' => $blogId, 'pageId' => $pageId); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_Blogger_Page"); + } + + /** + * Revert a published or scheduled page to draft state. (pages.revert) + * + * @param string $blogId + * The ID of the blog. + * @param string $pageId + * The ID of the page. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Page + */ + public function revert($blogId, $pageId, $optParams = array()) { + $params = array('blogId' => $blogId, 'pageId' => $pageId); + $params = array_merge($params, $optParams); + return $this->call('revert', array($params), "Google_Service_Blogger_Page"); + } + + /** + * Update a page. (pages.update) + * + * @param string $blogId + * The ID of the Blog. + * @param string $pageId + * The ID of the Page. + * @param Google_Page $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool revert + * Whether a revert action should be performed when the page is updated (default: false). + * @opt_param bool publish + * Whether a publish action should be performed when the page is updated (default: false). + * @return Google_Service_Blogger_Page + */ + public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) { + $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Blogger_Page"); + } } /** @@ -1391,72 +1379,70 @@ class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource * $postUserInfos = $bloggerService->postUserInfos; * */ -class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resource -{ +class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resource { - /** - * Gets one post and user info pair, by post ID and user ID. The post user info - * contains per-user information about the post, such as access rights, specific - * to the user. (postUserInfos.get) - * - * @param string $userId - * ID of the user for the per-user information to be fetched. Either the word 'self' (sans quote - * marks) or the user's profile identifier. - * @param string $blogId - * The ID of the blog. - * @param string $postId - * The ID of the post to get. - * @param array $optParams Optional parameters. - * - * @opt_param string maxComments - * Maximum number of comments to pull back on a post. - * @return Google_Service_Blogger_PostUserInfo - */ - public function get($userId, $blogId, $postId, $optParams = array()) - { - $params = array('userId' => $userId, 'blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_PostUserInfo"); - } - /** - * Retrieves a list of post and post user info pairs, possibly filtered. The - * post user info contains per-user information about the post, such as access - * rights, specific to the user. (postUserInfos.listPostUserInfos) - * - * @param string $userId - * ID of the user for the per-user information to be fetched. Either the word 'self' (sans quote - * marks) or the user's profile identifier. - * @param string $blogId - * ID of the blog to fetch posts from. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Sort order applied to search results. Default is published. - * @opt_param string startDate - * Earliest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string labels - * Comma-separated list of labels to search for. - * @opt_param string maxResults - * Maximum number of posts to fetch. - * @opt_param string pageToken - * Continuation token if the request is paged. - * @opt_param string status - * - * @opt_param bool fetchBodies - * Whether the body content of posts is included. Default is false. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. - * @return Google_Service_Blogger_PostUserInfosList - */ - public function listPostUserInfos($userId, $blogId, $optParams = array()) - { - $params = array('userId' => $userId, 'blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_PostUserInfosList"); - } + /** + * Gets one post and user info pair, by post ID and user ID. The post user info + * contains per-user information about the post, such as access rights, specific + * to the user. (postUserInfos.get) + * + * @param string $userId + * ID of the user for the per-user information to be fetched. Either the word 'self' (sans quote + * marks) or the user's profile identifier. + * @param string $blogId + * The ID of the blog. + * @param string $postId + * The ID of the post to get. + * @param array $optParams Optional parameters. + * + * @opt_param string maxComments + * Maximum number of comments to pull back on a post. + * @return Google_Service_Blogger_PostUserInfo + */ + public function get($userId, $blogId, $postId, $optParams = array()) { + $params = array('userId' => $userId, 'blogId' => $blogId, 'postId' => $postId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_PostUserInfo"); + } + + /** + * Retrieves a list of post and post user info pairs, possibly filtered. The + * post user info contains per-user information about the post, such as access + * rights, specific to the user. (postUserInfos.listPostUserInfos) + * + * @param string $userId + * ID of the user for the per-user information to be fetched. Either the word 'self' (sans quote + * marks) or the user's profile identifier. + * @param string $blogId + * ID of the blog to fetch posts from. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Sort order applied to search results. Default is published. + * @opt_param string startDate + * Earliest post date to fetch, a date-time with RFC 3339 formatting. + * @opt_param string endDate + * Latest post date to fetch, a date-time with RFC 3339 formatting. + * @opt_param string labels + * Comma-separated list of labels to search for. + * @opt_param string maxResults + * Maximum number of posts to fetch. + * @opt_param string pageToken + * Continuation token if the request is paged. + * @opt_param string status + * + * @opt_param bool fetchBodies + * Whether the body content of posts is included. Default is false. + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require elevated + * access. + * @return Google_Service_Blogger_PostUserInfosList + */ + public function listPostUserInfos($userId, $blogId, $optParams = array()) { + $params = array('userId' => $userId, 'blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Blogger_PostUserInfosList"); + } } /** @@ -1467,248 +1453,246 @@ class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resou * $posts = $bloggerService->posts; * */ -class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource -{ +class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource { - /** - * Delete a post by ID. (posts.delete) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param array $optParams Optional parameters. - */ - public function delete($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Get a post by ID. (posts.get) - * - * @param string $blogId - * ID of the blog to fetch the post from. - * @param string $postId - * The ID of the post - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchBody - * Whether the body content of the post is included (default: true). This should be set to false - * when the post bodies are not required, to help minimize traffic. - * @opt_param string maxComments - * Maximum number of comments to pull back on a post. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included (default: false). - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. - * @return Google_Service_Blogger_Post - */ - public function get($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_Post"); - } - /** - * Retrieve a Post by Path. (posts.getByPath) - * - * @param string $blogId - * ID of the blog to fetch the post from. - * @param string $path - * Path of the Post to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string maxComments - * Maximum number of comments to pull back on a post. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require elevated - * access. - * @return Google_Service_Blogger_Post - */ - public function getByPath($blogId, $path, $optParams = array()) - { - $params = array('blogId' => $blogId, 'path' => $path); - $params = array_merge($params, $optParams); - return $this->call('getByPath', array($params), "Google_Service_Blogger_Post"); - } - /** - * Add a post. (posts.insert) - * - * @param string $blogId - * ID of the blog to add the post to. - * @param Google_Post $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included in the returned result (default: false). - * @opt_param bool isDraft - * Whether to create the post as a draft (default: false). - * @opt_param bool fetchBody - * Whether the body content of the post is included with the result (default: true). - * @return Google_Service_Blogger_Post - */ - public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Blogger_Post"); - } - /** - * Retrieves a list of posts, possibly filtered. (posts.listPosts) - * - * @param string $blogId - * ID of the blog to fetch posts from. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Sort search results - * @opt_param string startDate - * Earliest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string endDate - * Latest post date to fetch, a date-time with RFC 3339 formatting. - * @opt_param string labels - * Comma-separated list of labels to search for. - * @opt_param string maxResults - * Maximum number of posts to fetch. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included. - * @opt_param string pageToken - * Continuation token if the request is paged. - * @opt_param string status - * Statuses to include in the results. - * @opt_param bool fetchBodies - * Whether the body content of posts is included (default: true). This should be set to false when - * the post bodies are not required, to help minimize traffic. - * @opt_param string view - * Access level with which to view the returned result. Note that some fields require escalated - * access. - * @return Google_Service_Blogger_PostList - */ - public function listPosts($blogId, $optParams = array()) - { - $params = array('blogId' => $blogId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Blogger_PostList"); - } - /** - * Update a post. This method supports patch semantics. (posts.patch) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param Google_Post $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool revert - * Whether a revert action should be performed when the post is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the post is updated (default: false). - * @opt_param bool fetchBody - * Whether the body content of the post is included with the result (default: true). - * @opt_param string maxComments - * Maximum number of comments to retrieve with the returned post. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included in the returned result (default: false). - * @return Google_Service_Blogger_Post - */ - public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Blogger_Post"); - } - /** - * Publishes a draft post, optionally at the specific time of the given - * publishDate parameter. (posts.publish) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param array $optParams Optional parameters. - * - * @opt_param string publishDate - * Optional date and time to schedule the publishing of the Blog. If no publishDate parameter is - * given, the post is either published at the a previously saved schedule date (if present), or the - * current time. If a future date is given, the post will be scheduled to be published. - * @return Google_Service_Blogger_Post - */ - public function publish($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_Blogger_Post"); - } - /** - * Revert a published or scheduled post to draft state. (posts.revert) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_Post - */ - public function revert($blogId, $postId, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId); - $params = array_merge($params, $optParams); - return $this->call('revert', array($params), "Google_Service_Blogger_Post"); - } - /** - * Search for a post. (posts.search) - * - * @param string $blogId - * ID of the blog to fetch the post from. - * @param string $q - * Query terms to search this blog for matching posts. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Sort search results - * @opt_param bool fetchBodies - * Whether the body content of posts is included (default: true). This should be set to false when - * the post bodies are not required, to help minimize traffic. - * @return Google_Service_Blogger_PostList - */ - public function search($blogId, $q, $optParams = array()) - { - $params = array('blogId' => $blogId, 'q' => $q); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Blogger_PostList"); - } - /** - * Update a post. (posts.update) - * - * @param string $blogId - * The ID of the Blog. - * @param string $postId - * The ID of the Post. - * @param Google_Post $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool revert - * Whether a revert action should be performed when the post is updated (default: false). - * @opt_param bool publish - * Whether a publish action should be performed when the post is updated (default: false). - * @opt_param bool fetchBody - * Whether the body content of the post is included with the result (default: true). - * @opt_param string maxComments - * Maximum number of comments to retrieve with the returned post. - * @opt_param bool fetchImages - * Whether image URL metadata for each post is included in the returned result (default: false). - * @return Google_Service_Blogger_Post - */ - public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) - { - $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Blogger_Post"); - } + /** + * Delete a post by ID. (posts.delete) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param array $optParams Optional parameters. + */ + public function delete($blogId, $postId, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Get a post by ID. (posts.get) + * + * @param string $blogId + * ID of the blog to fetch the post from. + * @param string $postId + * The ID of the post + * @param array $optParams Optional parameters. + * + * @opt_param bool fetchBody + * Whether the body content of the post is included (default: true). This should be set to false + * when the post bodies are not required, to help minimize traffic. + * @opt_param string maxComments + * Maximum number of comments to pull back on a post. + * @opt_param bool fetchImages + * Whether image URL metadata for each post is included (default: false). + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require elevated + * access. + * @return Google_Service_Blogger_Post + */ + public function get($blogId, $postId, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_Post"); + } + + /** + * Retrieve a Post by Path. (posts.getByPath) + * + * @param string $blogId + * ID of the blog to fetch the post from. + * @param string $path + * Path of the Post to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string maxComments + * Maximum number of comments to pull back on a post. + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require elevated + * access. + * @return Google_Service_Blogger_Post + */ + public function getByPath($blogId, $path, $optParams = array()) { + $params = array('blogId' => $blogId, 'path' => $path); + $params = array_merge($params, $optParams); + return $this->call('getByPath', array($params), "Google_Service_Blogger_Post"); + } + + /** + * Add a post. (posts.insert) + * + * @param string $blogId + * ID of the blog to add the post to. + * @param Google_Post $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool fetchImages + * Whether image URL metadata for each post is included in the returned result (default: false). + * @opt_param bool isDraft + * Whether to create the post as a draft (default: false). + * @opt_param bool fetchBody + * Whether the body content of the post is included with the result (default: true). + * @return Google_Service_Blogger_Post + */ + public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array()) { + $params = array('blogId' => $blogId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Blogger_Post"); + } + + /** + * Retrieves a list of posts, possibly filtered. (posts.listPosts) + * + * @param string $blogId + * ID of the blog to fetch posts from. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Sort search results + * @opt_param string startDate + * Earliest post date to fetch, a date-time with RFC 3339 formatting. + * @opt_param string endDate + * Latest post date to fetch, a date-time with RFC 3339 formatting. + * @opt_param string labels + * Comma-separated list of labels to search for. + * @opt_param string maxResults + * Maximum number of posts to fetch. + * @opt_param bool fetchImages + * Whether image URL metadata for each post is included. + * @opt_param string pageToken + * Continuation token if the request is paged. + * @opt_param string status + * Statuses to include in the results. + * @opt_param bool fetchBodies + * Whether the body content of posts is included (default: true). This should be set to false when + * the post bodies are not required, to help minimize traffic. + * @opt_param string view + * Access level with which to view the returned result. Note that some fields require escalated + * access. + * @return Google_Service_Blogger_PostList + */ + public function listPosts($blogId, $optParams = array()) { + $params = array('blogId' => $blogId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Blogger_PostList"); + } + + /** + * Update a post. This method supports patch semantics. (posts.patch) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param Google_Post $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool revert + * Whether a revert action should be performed when the post is updated (default: false). + * @opt_param bool publish + * Whether a publish action should be performed when the post is updated (default: false). + * @opt_param bool fetchBody + * Whether the body content of the post is included with the result (default: true). + * @opt_param string maxComments + * Maximum number of comments to retrieve with the returned post. + * @opt_param bool fetchImages + * Whether image URL metadata for each post is included in the returned result (default: false). + * @return Google_Service_Blogger_Post + */ + public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Blogger_Post"); + } + + /** + * Publishes a draft post, optionally at the specific time of the given + * publishDate parameter. (posts.publish) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param array $optParams Optional parameters. + * + * @opt_param string publishDate + * Optional date and time to schedule the publishing of the Blog. If no publishDate parameter is + * given, the post is either published at the a previously saved schedule date (if present), or the + * current time. If a future date is given, the post will be scheduled to be published. + * @return Google_Service_Blogger_Post + */ + public function publish($blogId, $postId, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_Blogger_Post"); + } + + /** + * Revert a published or scheduled post to draft state. (posts.revert) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_Post + */ + public function revert($blogId, $postId, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId); + $params = array_merge($params, $optParams); + return $this->call('revert', array($params), "Google_Service_Blogger_Post"); + } + + /** + * Search for a post. (posts.search) + * + * @param string $blogId + * ID of the blog to fetch the post from. + * @param string $q + * Query terms to search this blog for matching posts. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Sort search results + * @opt_param bool fetchBodies + * Whether the body content of posts is included (default: true). This should be set to false when + * the post bodies are not required, to help minimize traffic. + * @return Google_Service_Blogger_PostList + */ + public function search($blogId, $q, $optParams = array()) { + $params = array('blogId' => $blogId, 'q' => $q); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Blogger_PostList"); + } + + /** + * Update a post. (posts.update) + * + * @param string $blogId + * The ID of the Blog. + * @param string $postId + * The ID of the Post. + * @param Google_Post $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool revert + * Whether a revert action should be performed when the post is updated (default: false). + * @opt_param bool publish + * Whether a publish action should be performed when the post is updated (default: false). + * @opt_param bool fetchBody + * Whether the body content of the post is included with the result (default: true). + * @opt_param string maxComments + * Maximum number of comments to retrieve with the returned post. + * @opt_param bool fetchImages + * Whether image URL metadata for each post is included in the returned result (default: false). + * @return Google_Service_Blogger_Post + */ + public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) { + $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Blogger_Post"); + } } /** @@ -1719,1747 +1703,1426 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource * $users = $bloggerService->users; * */ -class Google_Service_Blogger_Users_Resource extends Google_Service_Resource -{ +class Google_Service_Blogger_Users_Resource extends Google_Service_Resource { - /** - * Gets one user by ID. (users.get) - * - * @param string $userId - * The ID of the user to get. - * @param array $optParams Optional parameters. - * @return Google_Service_Blogger_User - */ - public function get($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Blogger_User"); - } + /** + * Gets one user by ID. (users.get) + * + * @param string $userId + * The ID of the user to get. + * @param array $optParams Optional parameters. + * @return Google_Service_Blogger_User + */ + public function get($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Blogger_User"); + } } +class Google_Service_Blogger_Blog extends Google_Model { + public $customMetaData; + public $description; + public $id; + public $kind; + protected $localeType = 'Google_Service_Blogger_BlogLocale'; + protected $localeDataType = ''; + public $name; + protected $pagesType = 'Google_Service_Blogger_BlogPages'; + protected $pagesDataType = ''; + protected $postsType = 'Google_Service_Blogger_BlogPosts'; + protected $postsDataType = ''; + public $published; + public $selfLink; + public $status; + public $updated; + public $url; + public function setCustomMetaData($customMetaData) { + $this->customMetaData = $customMetaData; + } -class Google_Service_Blogger_Blog extends Google_Model -{ - public $customMetaData; - public $description; - public $id; - public $kind; - protected $localeType = 'Google_Service_Blogger_BlogLocale'; - protected $localeDataType = ''; - public $name; - protected $pagesType = 'Google_Service_Blogger_BlogPages'; - protected $pagesDataType = ''; - protected $postsType = 'Google_Service_Blogger_BlogPosts'; - protected $postsDataType = ''; - public $published; - public $selfLink; - public $status; - public $updated; - public $url; + public function getCustomMetaData() { + return $this->customMetaData; + } - public function setCustomMetaData($customMetaData) - { - $this->customMetaData = $customMetaData; - } + public function setDescription($description) { + $this->description = $description; + } - public function getCustomMetaData() - { - return $this->customMetaData; - } + public function getDescription() { + return $this->description; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setId($id) { + $this->id = $id; + } - public function getDescription() - { - return $this->description; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setLocale(Google_Service_Blogger_BlogLocale $locale) { + $this->locale = $locale; + } - public function getKind() - { - return $this->kind; - } + public function getLocale() { + return $this->locale; + } - public function setLocale(Google_Service_Blogger_BlogLocale $locale) - { - $this->locale = $locale; - } + public function setName($name) { + $this->name = $name; + } - public function getLocale() - { - return $this->locale; - } + public function getName() { + return $this->name; + } - public function setName($name) - { - $this->name = $name; - } + public function setPages(Google_Service_Blogger_BlogPages $pages) { + $this->pages = $pages; + } - public function getName() - { - return $this->name; - } + public function getPages() { + return $this->pages; + } - public function setPages(Google_Service_Blogger_BlogPages $pages) - { - $this->pages = $pages; - } + public function setPosts(Google_Service_Blogger_BlogPosts $posts) { + $this->posts = $posts; + } - public function getPages() - { - return $this->pages; - } + public function getPosts() { + return $this->posts; + } - public function setPosts(Google_Service_Blogger_BlogPosts $posts) - { - $this->posts = $posts; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPosts() - { - return $this->posts; - } + public function getPublished() { + return $this->published; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getPublished() - { - return $this->published; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setStatus($status) { + $this->status = $status; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getStatus() { + return $this->status; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getStatus() - { - return $this->status; - } + public function getUpdated() { + return $this->updated; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUpdated() - { - return $this->updated; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Blogger_BlogList extends Google_Collection -{ - protected $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo'; - protected $blogUserInfosDataType = 'array'; - protected $itemsType = 'Google_Service_Blogger_Blog'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Blogger_BlogList extends Google_Collection { + protected $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo'; + protected $blogUserInfosDataType = 'array'; + protected $itemsType = 'Google_Service_Blogger_Blog'; + protected $itemsDataType = 'array'; + public $kind; - public function setBlogUserInfos($blogUserInfos) - { - $this->blogUserInfos = $blogUserInfos; - } + public function setBlogUserInfos($blogUserInfos) { + $this->blogUserInfos = $blogUserInfos; + } - public function getBlogUserInfos() - { - return $this->blogUserInfos; - } + public function getBlogUserInfos() { + return $this->blogUserInfos; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Blogger_BlogLocale extends Google_Model -{ - public $country; - public $language; - public $variant; +class Google_Service_Blogger_BlogLocale extends Google_Model { + public $country; + public $language; + public $variant; - public function setCountry($country) - { - $this->country = $country; - } + public function setCountry($country) { + $this->country = $country; + } - public function getCountry() - { - return $this->country; - } + public function getCountry() { + return $this->country; + } - public function setLanguage($language) - { - $this->language = $language; - } + public function setLanguage($language) { + $this->language = $language; + } - public function getLanguage() - { - return $this->language; - } + public function getLanguage() { + return $this->language; + } - public function setVariant($variant) - { - $this->variant = $variant; - } + public function setVariant($variant) { + $this->variant = $variant; + } - public function getVariant() - { - return $this->variant; - } + public function getVariant() { + return $this->variant; + } } -class Google_Service_Blogger_BlogPages extends Google_Model -{ - public $selfLink; - public $totalItems; +class Google_Service_Blogger_BlogPages extends Google_Model { + public $selfLink; + public $totalItems; - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Blogger_BlogPerUserInfo extends Google_Model -{ - public $blogId; - public $hasAdminAccess; - public $kind; - public $photosAlbumKey; - public $role; - public $userId; +class Google_Service_Blogger_BlogPerUserInfo extends Google_Model { + public $blogId; + public $hasAdminAccess; + public $kind; + public $photosAlbumKey; + public $role; + public $userId; - public function setBlogId($blogId) - { - $this->blogId = $blogId; - } + public function setBlogId($blogId) { + $this->blogId = $blogId; + } - public function getBlogId() - { - return $this->blogId; - } + public function getBlogId() { + return $this->blogId; + } - public function setHasAdminAccess($hasAdminAccess) - { - $this->hasAdminAccess = $hasAdminAccess; - } + public function setHasAdminAccess($hasAdminAccess) { + $this->hasAdminAccess = $hasAdminAccess; + } - public function getHasAdminAccess() - { - return $this->hasAdminAccess; - } + public function getHasAdminAccess() { + return $this->hasAdminAccess; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPhotosAlbumKey($photosAlbumKey) - { - $this->photosAlbumKey = $photosAlbumKey; - } + public function setPhotosAlbumKey($photosAlbumKey) { + $this->photosAlbumKey = $photosAlbumKey; + } - public function getPhotosAlbumKey() - { - return $this->photosAlbumKey; - } + public function getPhotosAlbumKey() { + return $this->photosAlbumKey; + } - public function setRole($role) - { - $this->role = $role; - } + public function setRole($role) { + $this->role = $role; + } - public function getRole() - { - return $this->role; - } + public function getRole() { + return $this->role; + } - public function setUserId($userId) - { - $this->userId = $userId; - } + public function setUserId($userId) { + $this->userId = $userId; + } - public function getUserId() - { - return $this->userId; - } + public function getUserId() { + return $this->userId; + } } -class Google_Service_Blogger_BlogPosts extends Google_Collection -{ - protected $itemsType = 'Google_Service_Blogger_Post'; - protected $itemsDataType = 'array'; - public $selfLink; - public $totalItems; +class Google_Service_Blogger_BlogPosts extends Google_Collection { + protected $itemsType = 'Google_Service_Blogger_Post'; + protected $itemsDataType = 'array'; + public $selfLink; + public $totalItems; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Blogger_BlogUserInfo extends Google_Model -{ - protected $blogType = 'Google_Service_Blogger_Blog'; - protected $blogDataType = ''; - protected $blogUserInfoType = 'Google_Service_Blogger_BlogPerUserInfo'; - protected $blogUserInfoDataType = ''; - public $kind; +class Google_Service_Blogger_BlogUserInfo extends Google_Model { + protected $blogType = 'Google_Service_Blogger_Blog'; + protected $blogDataType = ''; + protected $blogUserInfoType = 'Google_Service_Blogger_BlogPerUserInfo'; + protected $blogUserInfoDataType = ''; + public $kind; - public function setBlog(Google_Service_Blogger_Blog $blog) - { - $this->blog = $blog; - } + public function setBlog(Google_Service_Blogger_Blog $blog) { + $this->blog = $blog; + } - public function getBlog() - { - return $this->blog; - } + public function getBlog() { + return $this->blog; + } - public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUserInfo) - { - $this->blogUserInfo = $blogUserInfo; - } + public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUserInfo) { + $this->blogUserInfo = $blogUserInfo; + } - public function getBlogUserInfo() - { - return $this->blogUserInfo; - } + public function getBlogUserInfo() { + return $this->blogUserInfo; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Blogger_Comment extends Google_Model -{ - protected $authorType = 'Google_Service_Blogger_CommentAuthor'; - protected $authorDataType = ''; - protected $blogType = 'Google_Service_Blogger_CommentBlog'; - protected $blogDataType = ''; - public $content; - public $id; - protected $inReplyToType = 'Google_Service_Blogger_CommentInReplyTo'; - protected $inReplyToDataType = ''; - public $kind; - protected $postType = 'Google_Service_Blogger_CommentPost'; - protected $postDataType = ''; - public $published; - public $selfLink; - public $status; - public $updated; +class Google_Service_Blogger_Comment extends Google_Model { + protected $authorType = 'Google_Service_Blogger_CommentAuthor'; + protected $authorDataType = ''; + protected $blogType = 'Google_Service_Blogger_CommentBlog'; + protected $blogDataType = ''; + public $content; + public $id; + protected $inReplyToType = 'Google_Service_Blogger_CommentInReplyTo'; + protected $inReplyToDataType = ''; + public $kind; + protected $postType = 'Google_Service_Blogger_CommentPost'; + protected $postDataType = ''; + public $published; + public $selfLink; + public $status; + public $updated; - public function setAuthor(Google_Service_Blogger_CommentAuthor $author) - { - $this->author = $author; - } + public function setAuthor(Google_Service_Blogger_CommentAuthor $author) { + $this->author = $author; + } - public function getAuthor() - { - return $this->author; - } + public function getAuthor() { + return $this->author; + } - public function setBlog(Google_Service_Blogger_CommentBlog $blog) - { - $this->blog = $blog; - } + public function setBlog(Google_Service_Blogger_CommentBlog $blog) { + $this->blog = $blog; + } - public function getBlog() - { - return $this->blog; - } + public function getBlog() { + return $this->blog; + } - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setInReplyTo(Google_Service_Blogger_CommentInReplyTo $inReplyTo) - { - $this->inReplyTo = $inReplyTo; - } + public function setInReplyTo(Google_Service_Blogger_CommentInReplyTo $inReplyTo) { + $this->inReplyTo = $inReplyTo; + } - public function getInReplyTo() - { - return $this->inReplyTo; - } + public function getInReplyTo() { + return $this->inReplyTo; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPost(Google_Service_Blogger_CommentPost $post) - { - $this->post = $post; - } + public function setPost(Google_Service_Blogger_CommentPost $post) { + $this->post = $post; + } - public function getPost() - { - return $this->post; - } + public function getPost() { + return $this->post; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPublished() - { - return $this->published; - } + public function getPublished() { + return $this->published; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Blogger_CommentAuthor extends Google_Model -{ - public $displayName; - public $id; - protected $imageType = 'Google_Service_Blogger_CommentAuthorImage'; - protected $imageDataType = ''; - public $url; +class Google_Service_Blogger_CommentAuthor extends Google_Model { + public $displayName; + public $id; + protected $imageType = 'Google_Service_Blogger_CommentAuthorImage'; + protected $imageDataType = ''; + public $url; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_Blogger_CommentAuthorImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Blogger_CommentAuthorImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Blogger_CommentAuthorImage extends Google_Model -{ - public $url; +class Google_Service_Blogger_CommentAuthorImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Blogger_CommentBlog extends Google_Model -{ - public $id; +class Google_Service_Blogger_CommentBlog extends Google_Model { + public $id; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } } -class Google_Service_Blogger_CommentInReplyTo extends Google_Model -{ - public $id; +class Google_Service_Blogger_CommentInReplyTo extends Google_Model { + public $id; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } } -class Google_Service_Blogger_CommentList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Blogger_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $prevPageToken; +class Google_Service_Blogger_CommentList extends Google_Collection { + protected $itemsType = 'Google_Service_Blogger_Comment'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $prevPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } - public function getPrevPageToken() - { - return $this->prevPageToken; - } + public function getPrevPageToken() { + return $this->prevPageToken; + } } -class Google_Service_Blogger_CommentPost extends Google_Model -{ - public $id; +class Google_Service_Blogger_CommentPost extends Google_Model { + public $id; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } } -class Google_Service_Blogger_Page extends Google_Model -{ - protected $authorType = 'Google_Service_Blogger_PageAuthor'; - protected $authorDataType = ''; - protected $blogType = 'Google_Service_Blogger_PageBlog'; - protected $blogDataType = ''; - public $content; - public $etag; - public $id; - public $kind; - public $published; - public $selfLink; - public $status; - public $title; - public $updated; - public $url; +class Google_Service_Blogger_Page extends Google_Model { + protected $authorType = 'Google_Service_Blogger_PageAuthor'; + protected $authorDataType = ''; + protected $blogType = 'Google_Service_Blogger_PageBlog'; + protected $blogDataType = ''; + public $content; + public $etag; + public $id; + public $kind; + public $published; + public $selfLink; + public $status; + public $title; + public $updated; + public $url; - public function setAuthor(Google_Service_Blogger_PageAuthor $author) - { - $this->author = $author; - } + public function setAuthor(Google_Service_Blogger_PageAuthor $author) { + $this->author = $author; + } - public function getAuthor() - { - return $this->author; - } + public function getAuthor() { + return $this->author; + } - public function setBlog(Google_Service_Blogger_PageBlog $blog) - { - $this->blog = $blog; - } + public function setBlog(Google_Service_Blogger_PageBlog $blog) { + $this->blog = $blog; + } - public function getBlog() - { - return $this->blog; - } + public function getBlog() { + return $this->blog; + } - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPublished() - { - return $this->published; - } + public function getPublished() { + return $this->published; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Blogger_PageAuthor extends Google_Model -{ - public $displayName; - public $id; - protected $imageType = 'Google_Service_Blogger_PageAuthorImage'; - protected $imageDataType = ''; - public $url; +class Google_Service_Blogger_PageAuthor extends Google_Model { + public $displayName; + public $id; + protected $imageType = 'Google_Service_Blogger_PageAuthorImage'; + protected $imageDataType = ''; + public $url; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_Blogger_PageAuthorImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Blogger_PageAuthorImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Blogger_PageAuthorImage extends Google_Model -{ - public $url; +class Google_Service_Blogger_PageAuthorImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Blogger_PageBlog extends Google_Model -{ - public $id; +class Google_Service_Blogger_PageBlog extends Google_Model { + public $id; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } } -class Google_Service_Blogger_PageList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Blogger_Page'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Blogger_PageList extends Google_Collection { + protected $itemsType = 'Google_Service_Blogger_Page'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Blogger_Pageviews extends Google_Collection -{ - public $blogId; - protected $countsType = 'Google_Service_Blogger_PageviewsCounts'; - protected $countsDataType = 'array'; - public $kind; +class Google_Service_Blogger_Pageviews extends Google_Collection { + public $blogId; + protected $countsType = 'Google_Service_Blogger_PageviewsCounts'; + protected $countsDataType = 'array'; + public $kind; - public function setBlogId($blogId) - { - $this->blogId = $blogId; - } + public function setBlogId($blogId) { + $this->blogId = $blogId; + } - public function getBlogId() - { - return $this->blogId; - } + public function getBlogId() { + return $this->blogId; + } - public function setCounts($counts) - { - $this->counts = $counts; - } + public function setCounts($counts) { + $this->counts = $counts; + } - public function getCounts() - { - return $this->counts; - } + public function getCounts() { + return $this->counts; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Blogger_PageviewsCounts extends Google_Model -{ - public $count; - public $timeRange; +class Google_Service_Blogger_PageviewsCounts extends Google_Model { + public $count; + public $timeRange; - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } - public function setTimeRange($timeRange) - { - $this->timeRange = $timeRange; - } + public function setTimeRange($timeRange) { + $this->timeRange = $timeRange; + } - public function getTimeRange() - { - return $this->timeRange; - } + public function getTimeRange() { + return $this->timeRange; + } } -class Google_Service_Blogger_Post extends Google_Collection -{ - protected $authorType = 'Google_Service_Blogger_PostAuthor'; - protected $authorDataType = ''; - protected $blogType = 'Google_Service_Blogger_PostBlog'; - protected $blogDataType = ''; - public $content; - public $customMetaData; - public $etag; - public $id; - protected $imagesType = 'Google_Service_Blogger_PostImages'; - protected $imagesDataType = 'array'; - public $kind; - public $labels; - protected $locationType = 'Google_Service_Blogger_PostLocation'; - protected $locationDataType = ''; - public $published; - public $readerComments; - protected $repliesType = 'Google_Service_Blogger_PostReplies'; - protected $repliesDataType = ''; - public $selfLink; - public $status; - public $title; - public $titleLink; - public $updated; - public $url; +class Google_Service_Blogger_Post extends Google_Collection { + protected $authorType = 'Google_Service_Blogger_PostAuthor'; + protected $authorDataType = ''; + protected $blogType = 'Google_Service_Blogger_PostBlog'; + protected $blogDataType = ''; + public $content; + public $customMetaData; + public $etag; + public $id; + protected $imagesType = 'Google_Service_Blogger_PostImages'; + protected $imagesDataType = 'array'; + public $kind; + public $labels; + protected $locationType = 'Google_Service_Blogger_PostLocation'; + protected $locationDataType = ''; + public $published; + public $readerComments; + protected $repliesType = 'Google_Service_Blogger_PostReplies'; + protected $repliesDataType = ''; + public $selfLink; + public $status; + public $title; + public $titleLink; + public $updated; + public $url; - public function setAuthor(Google_Service_Blogger_PostAuthor $author) - { - $this->author = $author; - } + public function setAuthor(Google_Service_Blogger_PostAuthor $author) { + $this->author = $author; + } - public function getAuthor() - { - return $this->author; - } + public function getAuthor() { + return $this->author; + } - public function setBlog(Google_Service_Blogger_PostBlog $blog) - { - $this->blog = $blog; - } + public function setBlog(Google_Service_Blogger_PostBlog $blog) { + $this->blog = $blog; + } - public function getBlog() - { - return $this->blog; - } + public function getBlog() { + return $this->blog; + } - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setCustomMetaData($customMetaData) - { - $this->customMetaData = $customMetaData; - } + public function setCustomMetaData($customMetaData) { + $this->customMetaData = $customMetaData; + } - public function getCustomMetaData() - { - return $this->customMetaData; - } + public function getCustomMetaData() { + return $this->customMetaData; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImages($images) - { - $this->images = $images; - } + public function setImages($images) { + $this->images = $images; + } - public function getImages() - { - return $this->images; - } + public function getImages() { + return $this->images; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLabels($labels) - { - $this->labels = $labels; - } + public function setLabels($labels) { + $this->labels = $labels; + } - public function getLabels() - { - return $this->labels; - } + public function getLabels() { + return $this->labels; + } - public function setLocation(Google_Service_Blogger_PostLocation $location) - { - $this->location = $location; - } + public function setLocation(Google_Service_Blogger_PostLocation $location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPublished() - { - return $this->published; - } + public function getPublished() { + return $this->published; + } - public function setReaderComments($readerComments) - { - $this->readerComments = $readerComments; - } + public function setReaderComments($readerComments) { + $this->readerComments = $readerComments; + } - public function getReaderComments() - { - return $this->readerComments; - } + public function getReaderComments() { + return $this->readerComments; + } - public function setReplies(Google_Service_Blogger_PostReplies $replies) - { - $this->replies = $replies; - } + public function setReplies(Google_Service_Blogger_PostReplies $replies) { + $this->replies = $replies; + } - public function getReplies() - { - return $this->replies; - } + public function getReplies() { + return $this->replies; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setTitleLink($titleLink) - { - $this->titleLink = $titleLink; - } + public function setTitleLink($titleLink) { + $this->titleLink = $titleLink; + } - public function getTitleLink() - { - return $this->titleLink; - } + public function getTitleLink() { + return $this->titleLink; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Blogger_PostAuthor extends Google_Model -{ - public $displayName; - public $id; - protected $imageType = 'Google_Service_Blogger_PostAuthorImage'; - protected $imageDataType = ''; - public $url; +class Google_Service_Blogger_PostAuthor extends Google_Model { + public $displayName; + public $id; + protected $imageType = 'Google_Service_Blogger_PostAuthorImage'; + protected $imageDataType = ''; + public $url; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_Blogger_PostAuthorImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Blogger_PostAuthorImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Blogger_PostAuthorImage extends Google_Model -{ - public $url; +class Google_Service_Blogger_PostAuthorImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Blogger_PostBlog extends Google_Model -{ - public $id; +class Google_Service_Blogger_PostBlog extends Google_Model { + public $id; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } } -class Google_Service_Blogger_PostImages extends Google_Model -{ - public $url; +class Google_Service_Blogger_PostImages extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Blogger_PostList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Blogger_Post'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Blogger_PostList extends Google_Collection { + protected $itemsType = 'Google_Service_Blogger_Post'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Blogger_PostLocation extends Google_Model -{ - public $lat; - public $lng; - public $name; - public $span; +class Google_Service_Blogger_PostLocation extends Google_Model { + public $lat; + public $lng; + public $name; + public $span; - public function setLat($lat) - { - $this->lat = $lat; - } + public function setLat($lat) { + $this->lat = $lat; + } - public function getLat() - { - return $this->lat; - } + public function getLat() { + return $this->lat; + } - public function setLng($lng) - { - $this->lng = $lng; - } + public function setLng($lng) { + $this->lng = $lng; + } - public function getLng() - { - return $this->lng; - } + public function getLng() { + return $this->lng; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setSpan($span) - { - $this->span = $span; - } + public function setSpan($span) { + $this->span = $span; + } - public function getSpan() - { - return $this->span; - } + public function getSpan() { + return $this->span; + } } -class Google_Service_Blogger_PostPerUserInfo extends Google_Model -{ - public $blogId; - public $hasEditAccess; - public $kind; - public $postId; - public $userId; +class Google_Service_Blogger_PostPerUserInfo extends Google_Model { + public $blogId; + public $hasEditAccess; + public $kind; + public $postId; + public $userId; - public function setBlogId($blogId) - { - $this->blogId = $blogId; - } + public function setBlogId($blogId) { + $this->blogId = $blogId; + } - public function getBlogId() - { - return $this->blogId; - } + public function getBlogId() { + return $this->blogId; + } - public function setHasEditAccess($hasEditAccess) - { - $this->hasEditAccess = $hasEditAccess; - } + public function setHasEditAccess($hasEditAccess) { + $this->hasEditAccess = $hasEditAccess; + } - public function getHasEditAccess() - { - return $this->hasEditAccess; - } + public function getHasEditAccess() { + return $this->hasEditAccess; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPostId($postId) - { - $this->postId = $postId; - } + public function setPostId($postId) { + $this->postId = $postId; + } - public function getPostId() - { - return $this->postId; - } + public function getPostId() { + return $this->postId; + } - public function setUserId($userId) - { - $this->userId = $userId; - } + public function setUserId($userId) { + $this->userId = $userId; + } - public function getUserId() - { - return $this->userId; - } + public function getUserId() { + return $this->userId; + } } -class Google_Service_Blogger_PostReplies extends Google_Collection -{ - protected $itemsType = 'Google_Service_Blogger_Comment'; - protected $itemsDataType = 'array'; - public $selfLink; - public $totalItems; +class Google_Service_Blogger_PostReplies extends Google_Collection { + protected $itemsType = 'Google_Service_Blogger_Comment'; + protected $itemsDataType = 'array'; + public $selfLink; + public $totalItems; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Blogger_PostUserInfo extends Google_Model -{ - public $kind; - protected $postType = 'Google_Service_Blogger_Post'; - protected $postDataType = ''; - protected $postUserInfoType = 'Google_Service_Blogger_PostPerUserInfo'; - protected $postUserInfoDataType = ''; +class Google_Service_Blogger_PostUserInfo extends Google_Model { + public $kind; + protected $postType = 'Google_Service_Blogger_Post'; + protected $postDataType = ''; + protected $postUserInfoType = 'Google_Service_Blogger_PostPerUserInfo'; + protected $postUserInfoDataType = ''; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPost(Google_Service_Blogger_Post $post) - { - $this->post = $post; - } + public function setPost(Google_Service_Blogger_Post $post) { + $this->post = $post; + } - public function getPost() - { - return $this->post; - } + public function getPost() { + return $this->post; + } - public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUserInfo) - { - $this->postUserInfo = $postUserInfo; - } + public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUserInfo) { + $this->postUserInfo = $postUserInfo; + } - public function getPostUserInfo() - { - return $this->postUserInfo; - } + public function getPostUserInfo() { + return $this->postUserInfo; + } } -class Google_Service_Blogger_PostUserInfosList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Blogger_PostUserInfo'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Blogger_PostUserInfosList extends Google_Collection { + protected $itemsType = 'Google_Service_Blogger_PostUserInfo'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Blogger_User extends Google_Model -{ - public $about; - protected $blogsType = 'Google_Service_Blogger_UserBlogs'; - protected $blogsDataType = ''; - public $created; - public $displayName; - public $id; - public $kind; - protected $localeType = 'Google_Service_Blogger_UserLocale'; - protected $localeDataType = ''; - public $selfLink; - public $url; +class Google_Service_Blogger_User extends Google_Model { + public $about; + protected $blogsType = 'Google_Service_Blogger_UserBlogs'; + protected $blogsDataType = ''; + public $created; + public $displayName; + public $id; + public $kind; + protected $localeType = 'Google_Service_Blogger_UserLocale'; + protected $localeDataType = ''; + public $selfLink; + public $url; - public function setAbout($about) - { - $this->about = $about; - } + public function setAbout($about) { + $this->about = $about; + } - public function getAbout() - { - return $this->about; - } + public function getAbout() { + return $this->about; + } - public function setBlogs(Google_Service_Blogger_UserBlogs $blogs) - { - $this->blogs = $blogs; - } + public function setBlogs(Google_Service_Blogger_UserBlogs $blogs) { + $this->blogs = $blogs; + } - public function getBlogs() - { - return $this->blogs; - } + public function getBlogs() { + return $this->blogs; + } - public function setCreated($created) - { - $this->created = $created; - } + public function setCreated($created) { + $this->created = $created; + } - public function getCreated() - { - return $this->created; - } + public function getCreated() { + return $this->created; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLocale(Google_Service_Blogger_UserLocale $locale) - { - $this->locale = $locale; - } + public function setLocale(Google_Service_Blogger_UserLocale $locale) { + $this->locale = $locale; + } - public function getLocale() - { - return $this->locale; - } + public function getLocale() { + return $this->locale; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Blogger_UserBlogs extends Google_Model -{ - public $selfLink; +class Google_Service_Blogger_UserBlogs extends Google_Model { + public $selfLink; - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Blogger_UserLocale extends Google_Model -{ - public $country; - public $language; - public $variant; +class Google_Service_Blogger_UserLocale extends Google_Model { + public $country; + public $language; + public $variant; - public function setCountry($country) - { - $this->country = $country; - } + public function setCountry($country) { + $this->country = $country; + } - public function getCountry() - { - return $this->country; - } + public function getCountry() { + return $this->country; + } - public function setLanguage($language) - { - $this->language = $language; - } + public function setLanguage($language) { + $this->language = $language; + } - public function getLanguage() - { - return $this->language; - } + public function getLanguage() { + return $this->language; + } - public function setVariant($variant) - { - $this->variant = $variant; - } + public function setVariant($variant) { + $this->variant = $variant; + } - public function getVariant() - { - return $this->variant; - } + public function getVariant() { + return $this->variant; + } } diff --git a/oauth/Google/Service/Books.php b/oauth/Google/Service/Books.php index 5321663..3cff4f4 100644 --- a/oauth/Google/Service/Books.php +++ b/oauth/Google/Service/Books.php @@ -29,1278 +29,1276 @@ * * @author Google, Inc. */ -class Google_Service_Books extends Google_Service -{ - /** Manage your books. */ - const BOOKS = "https://www.googleapis.com/auth/books"; +class Google_Service_Books extends Google_Service { + /** Manage your books. */ + const BOOKS = "https://www.googleapis.com/auth/books"; - public $bookshelves; - public $bookshelves_volumes; - public $cloudloading; - public $layers; - public $layers_annotationData; - public $layers_volumeAnnotations; - public $myconfig; - public $mylibrary_annotations; - public $mylibrary_bookshelves; - public $mylibrary_bookshelves_volumes; - public $mylibrary_readingpositions; - public $promooffer; - public $volumes; - public $volumes_associated; - public $volumes_mybooks; - public $volumes_recommended; - public $volumes_useruploaded; - + public $bookshelves; + public $bookshelves_volumes; + public $cloudloading; + public $layers; + public $layers_annotationData; + public $layers_volumeAnnotations; + public $myconfig; + public $mylibrary_annotations; + public $mylibrary_bookshelves; + public $mylibrary_bookshelves_volumes; + public $mylibrary_readingpositions; + public $promooffer; + public $volumes; + public $volumes_associated; + public $volumes_mybooks; + public $volumes_recommended; + public $volumes_useruploaded; - /** - * Constructs the internal representation of the Books service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'books/v1/'; - $this->version = 'v1'; - $this->serviceName = 'books'; - $this->bookshelves = new Google_Service_Books_Bookshelves_Resource( - $this, - $this->serviceName, - 'bookshelves', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/{userId}/bookshelves/{shelf}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'users/{userId}/bookshelves', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->bookshelves_volumes = new Google_Service_Books_BookshelvesVolumes_Resource( - $this, - $this->serviceName, - 'volumes', - array( - 'methods' => array( - 'list' => array( - 'path' => 'users/{userId}/bookshelves/{shelf}/volumes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'showPreorders' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->cloudloading = new Google_Service_Books_Cloudloading_Resource( - $this, - $this->serviceName, - 'cloudloading', - array( - 'methods' => array( - 'addBook' => array( - 'path' => 'cloudloading/addBook', - 'httpMethod' => 'POST', - 'parameters' => array( - 'upload_client_token' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'drive_document_id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mime_type' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'deleteBook' => array( - 'path' => 'cloudloading/deleteBook', - 'httpMethod' => 'POST', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updateBook' => array( - 'path' => 'cloudloading/updateBook', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->layers = new Google_Service_Books_Layers_Resource( - $this, - $this->serviceName, - 'layers', - array( - 'methods' => array( - 'get' => array( - 'path' => 'volumes/{volumeId}/layersummary/{summaryId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'summaryId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'volumes/{volumeId}/layersummary', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->layers_annotationData = new Google_Service_Books_LayersAnnotationData_Resource( - $this, - $this->serviceName, - 'annotationData', - array( - 'methods' => array( - 'get' => array( - 'path' => 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'layerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'annotationDataId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'scale' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'allowWebDefinitions' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'h' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'w' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'volumes/{volumeId}/layers/{layerId}/data', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'layerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'scale' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'h' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'updatedMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'annotationDataId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'w' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->layers_volumeAnnotations = new Google_Service_Books_LayersVolumeAnnotations_Resource( - $this, - $this->serviceName, - 'volumeAnnotations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'layerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'volumes/{volumeId}/layers/{layerId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'layerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'volumeAnnotationsVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endPosition' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endOffset' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startOffset' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startPosition' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->myconfig = new Google_Service_Books_Myconfig_Resource( - $this, - $this->serviceName, - 'myconfig', - array( - 'methods' => array( - 'releaseDownloadAccess' => array( - 'path' => 'myconfig/releaseDownloadAccess', - 'httpMethod' => 'POST', - 'parameters' => array( - 'volumeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - 'cpksver' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'requestAccess' => array( - 'path' => 'myconfig/requestAccess', - 'httpMethod' => 'POST', - 'parameters' => array( - 'source' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'nonce' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'cpksver' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'licenseTypes' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'syncVolumeLicenses' => array( - 'path' => 'myconfig/syncVolumeLicenses', - 'httpMethod' => 'POST', - 'parameters' => array( - 'source' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'nonce' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'cpksver' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'features' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showPreorders' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'volumeIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->mylibrary_annotations = new Google_Service_Books_MylibraryAnnotations_Resource( - $this, - $this->serviceName, - 'annotations', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'mylibrary/annotations/{annotationId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'mylibrary/annotations/{annotationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'mylibrary/annotations', - 'httpMethod' => 'POST', - 'parameters' => array( - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showOnlySummaryInResponse' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'mylibrary/annotations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'layerIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'layerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'summary' => array( - 'path' => 'mylibrary/annotations/summary', - 'httpMethod' => 'POST', - 'parameters' => array( - 'layerIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'mylibrary/annotations/{annotationId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->mylibrary_bookshelves = new Google_Service_Books_MylibraryBookshelves_Resource( - $this, - $this->serviceName, - 'bookshelves', - array( - 'methods' => array( - 'addVolume' => array( - 'path' => 'mylibrary/bookshelves/{shelf}/addVolume', - 'httpMethod' => 'POST', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'clearVolumes' => array( - 'path' => 'mylibrary/bookshelves/{shelf}/clearVolumes', - 'httpMethod' => 'POST', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'mylibrary/bookshelves/{shelf}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'mylibrary/bookshelves', - 'httpMethod' => 'GET', - 'parameters' => array( - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'moveVolume' => array( - 'path' => 'mylibrary/bookshelves/{shelf}/moveVolume', - 'httpMethod' => 'POST', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'volumePosition' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'removeVolume' => array( - 'path' => 'mylibrary/bookshelves/{shelf}/removeVolume', - 'httpMethod' => 'POST', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->mylibrary_bookshelves_volumes = new Google_Service_Books_MylibraryBookshelvesVolumes_Resource( - $this, - $this->serviceName, - 'volumes', - array( - 'methods' => array( - 'list' => array( - 'path' => 'mylibrary/bookshelves/{shelf}/volumes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'shelf' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'country' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showPreorders' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->mylibrary_readingpositions = new Google_Service_Books_MylibraryReadingpositions_Resource( - $this, - $this->serviceName, - 'readingpositions', - array( - 'methods' => array( - 'get' => array( - 'path' => 'mylibrary/readingpositions/{volumeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'setPosition' => array( - 'path' => 'mylibrary/readingpositions/{volumeId}/setPosition', - 'httpMethod' => 'POST', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'timestamp' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'position' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'deviceCookie' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'contentVersion' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'action' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->promooffer = new Google_Service_Books_Promooffer_Resource( - $this, - $this->serviceName, - 'promooffer', - array( - 'methods' => array( - 'accept' => array( - 'path' => 'promooffer/accept', - 'httpMethod' => 'POST', - 'parameters' => array( - 'product' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'offerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'androidId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'device' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'model' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'serial' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'manufacturer' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'dismiss' => array( - 'path' => 'promooffer/dismiss', - 'httpMethod' => 'POST', - 'parameters' => array( - 'product' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'offerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'androidId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'device' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'model' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'serial' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'manufacturer' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'promooffer/get', - 'httpMethod' => 'GET', - 'parameters' => array( - 'product' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'androidId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'device' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'model' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'serial' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'manufacturer' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->volumes = new Google_Service_Books_Volumes_Resource( - $this, - $this->serviceName, - 'volumes', - array( - 'methods' => array( - 'get' => array( - 'path' => 'volumes/{volumeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'country' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'partner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'volumes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'q' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'libraryRestrict' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'langRestrict' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showPreorders' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'printType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'download' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'partner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->volumes_associated = new Google_Service_Books_VolumesAssociated_Resource( - $this, - $this->serviceName, - 'associated', - array( - 'methods' => array( - 'list' => array( - 'path' => 'volumes/{volumeId}/associated', - 'httpMethod' => 'GET', - 'parameters' => array( - 'volumeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'association' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->volumes_mybooks = new Google_Service_Books_VolumesMybooks_Resource( - $this, - $this->serviceName, - 'mybooks', - array( - 'methods' => array( - 'list' => array( - 'path' => 'volumes/mybooks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'acquireMethod' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'processingState' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->volumes_recommended = new Google_Service_Books_VolumesRecommended_Resource( - $this, - $this->serviceName, - 'recommended', - array( - 'methods' => array( - 'list' => array( - 'path' => 'volumes/recommended', - 'httpMethod' => 'GET', - 'parameters' => array( - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'rate' => array( - 'path' => 'volumes/recommended/rate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'rating' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->volumes_useruploaded = new Google_Service_Books_VolumesUseruploaded_Resource( - $this, - $this->serviceName, - 'useruploaded', - array( - 'methods' => array( - 'list' => array( - 'path' => 'volumes/useruploaded', - 'httpMethod' => 'GET', - 'parameters' => array( - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'volumeId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'processingState' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Books service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'books/v1/'; + $this->version = 'v1'; + $this->serviceName = 'books'; + + $this->bookshelves = new Google_Service_Books_Bookshelves_Resource( + $this, + $this->serviceName, + 'bookshelves', + array( + 'methods' => array( + 'get' => array( + 'path' => 'users/{userId}/bookshelves/{shelf}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'shelf' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'users/{userId}/bookshelves', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->bookshelves_volumes = new Google_Service_Books_BookshelvesVolumes_Resource( + $this, + $this->serviceName, + 'volumes', + array( + 'methods' => array( + 'list' => array( + 'path' => 'users/{userId}/bookshelves/{shelf}/volumes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'shelf' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'showPreorders' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->cloudloading = new Google_Service_Books_Cloudloading_Resource( + $this, + $this->serviceName, + 'cloudloading', + array( + 'methods' => array( + 'addBook' => array( + 'path' => 'cloudloading/addBook', + 'httpMethod' => 'POST', + 'parameters' => array( + 'upload_client_token' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'drive_document_id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mime_type' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'deleteBook' => array( + 'path' => 'cloudloading/deleteBook', + 'httpMethod' => 'POST', + 'parameters' => array( + 'volumeId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'updateBook' => array( + 'path' => 'cloudloading/updateBook', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->layers = new Google_Service_Books_Layers_Resource( + $this, + $this->serviceName, + 'layers', + array( + 'methods' => array( + 'get' => array( + 'path' => 'volumes/{volumeId}/layersummary/{summaryId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'volumeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'summaryId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentVersion' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'volumes/{volumeId}/layersummary', + 'httpMethod' => 'GET', + 'parameters' => array( + 'volumeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentVersion' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->layers_annotationData = new Google_Service_Books_LayersAnnotationData_Resource( + $this, + $this->serviceName, + 'annotationData', + array( + 'methods' => array( + 'get' => array( + 'path' => 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'volumeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'layerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'annotationDataId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'contentVersion' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'scale' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'allowWebDefinitions' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'h' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'w' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'list' => array( + 'path' => 'volumes/{volumeId}/layers/{layerId}/data', + 'httpMethod' => 'GET', + 'parameters' => array( + 'volumeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'layerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'contentVersion' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'scale' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'h' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'updatedMax' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'annotationDataId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'w' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'updatedMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->layers_volumeAnnotations = new Google_Service_Books_LayersVolumeAnnotations_Resource( + $this, + $this->serviceName, + 'volumeAnnotations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'volumeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'layerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'annotationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'volumes/{volumeId}/layers/{layerId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'volumeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'layerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'contentVersion' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'volumeAnnotationsVersion' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endPosition' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endOffset' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updatedMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updatedMax' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startOffset' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startPosition' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->myconfig = new Google_Service_Books_Myconfig_Resource( + $this, + $this->serviceName, + 'myconfig', + array( + 'methods' => array( + 'releaseDownloadAccess' => array( + 'path' => 'myconfig/releaseDownloadAccess', + 'httpMethod' => 'POST', + 'parameters' => array( + 'volumeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + 'required' => true, + ), + 'cpksver' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'requestAccess' => array( + 'path' => 'myconfig/requestAccess', + 'httpMethod' => 'POST', + 'parameters' => array( + 'source' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'volumeId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'nonce' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'cpksver' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'licenseTypes' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'syncVolumeLicenses' => array( + 'path' => 'myconfig/syncVolumeLicenses', + 'httpMethod' => 'POST', + 'parameters' => array( + 'source' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'nonce' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'cpksver' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'features' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showPreorders' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'volumeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->mylibrary_annotations = new Google_Service_Books_MylibraryAnnotations_Resource( + $this, + $this->serviceName, + 'annotations', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'mylibrary/annotations/{annotationId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'annotationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'get' => array( + 'path' => 'mylibrary/annotations/{annotationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'annotationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'mylibrary/annotations', + 'httpMethod' => 'POST', + 'parameters' => array( + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showOnlySummaryInResponse' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => 'mylibrary/annotations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'updatedMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'layerIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'volumeId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'contentVersion' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'layerId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updatedMax' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'summary' => array( + 'path' => 'mylibrary/annotations/summary', + 'httpMethod' => 'POST', + 'parameters' => array( + 'layerIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + 'required' => true, + ), + 'volumeId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'mylibrary/annotations/{annotationId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'annotationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->mylibrary_bookshelves = new Google_Service_Books_MylibraryBookshelves_Resource( + $this, + $this->serviceName, + 'bookshelves', + array( + 'methods' => array( + 'addVolume' => array( + 'path' => 'mylibrary/bookshelves/{shelf}/addVolume', + 'httpMethod' => 'POST', + 'parameters' => array( + 'shelf' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'volumeId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'clearVolumes' => array( + 'path' => 'mylibrary/bookshelves/{shelf}/clearVolumes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'shelf' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'get' => array( + 'path' => 'mylibrary/bookshelves/{shelf}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'shelf' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'mylibrary/bookshelves', + 'httpMethod' => 'GET', + 'parameters' => array( + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'moveVolume' => array( + 'path' => 'mylibrary/bookshelves/{shelf}/moveVolume', + 'httpMethod' => 'POST', + 'parameters' => array( + 'shelf' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'volumeId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'volumePosition' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'removeVolume' => array( + 'path' => 'mylibrary/bookshelves/{shelf}/removeVolume', + 'httpMethod' => 'POST', + 'parameters' => array( + 'shelf' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'volumeId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->mylibrary_bookshelves_volumes = new Google_Service_Books_MylibraryBookshelvesVolumes_Resource( + $this, + $this->serviceName, + 'volumes', + array( + 'methods' => array( + 'list' => array( + 'path' => 'mylibrary/bookshelves/{shelf}/volumes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'shelf' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'country' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showPreorders' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->mylibrary_readingpositions = new Google_Service_Books_MylibraryReadingpositions_Resource( + $this, + $this->serviceName, + 'readingpositions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'mylibrary/readingpositions/{volumeId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'volumeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentVersion' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'setPosition' => array( + 'path' => 'mylibrary/readingpositions/{volumeId}/setPosition', + 'httpMethod' => 'POST', + 'parameters' => array( + 'volumeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'timestamp' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'position' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'deviceCookie' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentVersion' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'action' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->promooffer = new Google_Service_Books_Promooffer_Resource( + $this, + $this->serviceName, + 'promooffer', + array( + 'methods' => array( + 'accept' => array( + 'path' => 'promooffer/accept', + 'httpMethod' => 'POST', + 'parameters' => array( + 'product' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'volumeId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'offerId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'androidId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'device' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'model' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'serial' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'manufacturer' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'dismiss' => array( + 'path' => 'promooffer/dismiss', + 'httpMethod' => 'POST', + 'parameters' => array( + 'product' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'offerId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'androidId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'device' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'model' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'serial' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'manufacturer' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'get' => array( + 'path' => 'promooffer/get', + 'httpMethod' => 'GET', + 'parameters' => array( + 'product' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'androidId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'device' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'model' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'serial' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'manufacturer' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->volumes = new Google_Service_Books_Volumes_Resource( + $this, + $this->serviceName, + 'volumes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'volumes/{volumeId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'volumeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'country' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'partner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'volumes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'q' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'libraryRestrict' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'langRestrict' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showPreorders' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'printType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'download' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'partner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->volumes_associated = new Google_Service_Books_VolumesAssociated_Resource( + $this, + $this->serviceName, + 'associated', + array( + 'methods' => array( + 'list' => array( + 'path' => 'volumes/{volumeId}/associated', + 'httpMethod' => 'GET', + 'parameters' => array( + 'volumeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'association' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->volumes_mybooks = new Google_Service_Books_VolumesMybooks_Resource( + $this, + $this->serviceName, + 'mybooks', + array( + 'methods' => array( + 'list' => array( + 'path' => 'volumes/mybooks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'acquireMethod' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'processingState' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->volumes_recommended = new Google_Service_Books_VolumesRecommended_Resource( + $this, + $this->serviceName, + 'recommended', + array( + 'methods' => array( + 'list' => array( + 'path' => 'volumes/recommended', + 'httpMethod' => 'GET', + 'parameters' => array( + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'rate' => array( + 'path' => 'volumes/recommended/rate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'rating' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'volumeId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->volumes_useruploaded = new Google_Service_Books_VolumesUseruploaded_Resource( + $this, + $this->serviceName, + 'useruploaded', + array( + 'methods' => array( + 'list' => array( + 'path' => 'volumes/useruploaded', + 'httpMethod' => 'GET', + 'parameters' => array( + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'volumeId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'processingState' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + } } @@ -1312,47 +1310,45 @@ class Google_Service_Books extends Google_Service * $bookshelves = $booksService->bookshelves; * */ -class Google_Service_Books_Bookshelves_Resource extends Google_Service_Resource -{ +class Google_Service_Books_Bookshelves_Resource extends Google_Service_Resource { - /** - * Retrieves metadata for a specific bookshelf for the specified user. - * (bookshelves.get) - * - * @param string $userId - * ID of user for whom to retrieve bookshelves. - * @param string $shelf - * ID of bookshelf to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - * @return Google_Service_Books_Bookshelf - */ - public function get($userId, $shelf, $optParams = array()) - { - $params = array('userId' => $userId, 'shelf' => $shelf); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Bookshelf"); - } - /** - * Retrieves a list of public bookshelves for the specified user. - * (bookshelves.listBookshelves) - * - * @param string $userId - * ID of user for whom to retrieve bookshelves. - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - * @return Google_Service_Books_Bookshelves - */ - public function listBookshelves($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Bookshelves"); - } + /** + * Retrieves metadata for a specific bookshelf for the specified user. + * (bookshelves.get) + * + * @param string $userId + * ID of user for whom to retrieve bookshelves. + * @param string $shelf + * ID of bookshelf to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + * @return Google_Service_Books_Bookshelf + */ + public function get($userId, $shelf, $optParams = array()) { + $params = array('userId' => $userId, 'shelf' => $shelf); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_Bookshelf"); + } + + /** + * Retrieves a list of public bookshelves for the specified user. + * (bookshelves.listBookshelves) + * + * @param string $userId + * ID of user for whom to retrieve bookshelves. + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + * @return Google_Service_Books_Bookshelves + */ + public function listBookshelves($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Bookshelves"); + } } /** @@ -1363,35 +1359,33 @@ class Google_Service_Books_Bookshelves_Resource extends Google_Service_Resource * $volumes = $booksService->volumes; * */ -class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Resource -{ +class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Resource { - /** - * Retrieves volumes in a specific bookshelf for the specified user. - * (volumes.listBookshelvesVolumes) - * - * @param string $userId - * ID of user for whom to retrieve bookshelf volumes. - * @param string $shelf - * ID of bookshelf to retrieve volumes. - * @param array $optParams Optional parameters. - * - * @opt_param bool showPreorders - * Set to true to show pre-ordered books. Defaults to false. - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string startIndex - * Index of the first element to return (starts at 0) - * @return Google_Service_Books_Volumes - */ - public function listBookshelvesVolumes($userId, $shelf, $optParams = array()) - { - $params = array('userId' => $userId, 'shelf' => $shelf); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } + /** + * Retrieves volumes in a specific bookshelf for the specified user. + * (volumes.listBookshelvesVolumes) + * + * @param string $userId + * ID of user for whom to retrieve bookshelf volumes. + * @param string $shelf + * ID of bookshelf to retrieve volumes. + * @param array $optParams Optional parameters. + * + * @opt_param bool showPreorders + * Set to true to show pre-ordered books. Defaults to false. + * @opt_param string maxResults + * Maximum number of results to return + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string startIndex + * Index of the first element to return (starts at 0) + * @return Google_Service_Books_Volumes + */ + public function listBookshelvesVolumes($userId, $shelf, $optParams = array()) { + $params = array('userId' => $userId, 'shelf' => $shelf); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Volumes"); + } } /** @@ -1402,56 +1396,54 @@ class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Re * $cloudloading = $booksService->cloudloading; * */ -class Google_Service_Books_Cloudloading_Resource extends Google_Service_Resource -{ +class Google_Service_Books_Cloudloading_Resource extends Google_Service_Resource { - /** - * (cloudloading.addBook) - * - * @param array $optParams Optional parameters. - * - * @opt_param string upload_client_token - * - * @opt_param string drive_document_id - * A drive document id. The upload_client_token must not be set. - * @opt_param string mime_type - * The document MIME type. It can be set only if the drive_document_id is set. - * @opt_param string name - * The document name. It can be set only if the drive_document_id is set. - * @return Google_Service_Books_BooksCloudloadingResource - */ - public function addBook($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('addBook', array($params), "Google_Service_Books_BooksCloudloadingResource"); - } - /** - * Remove the book and its contents (cloudloading.deleteBook) - * - * @param string $volumeId - * The id of the book to be removed. - * @param array $optParams Optional parameters. - */ - public function deleteBook($volumeId, $optParams = array()) - { - $params = array('volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('deleteBook', array($params)); - } - /** - * (cloudloading.updateBook) - * - * @param Google_BooksCloudloadingResource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Books_BooksCloudloadingResource - */ - public function updateBook(Google_Service_Books_BooksCloudloadingResource $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateBook', array($params), "Google_Service_Books_BooksCloudloadingResource"); - } + /** + * (cloudloading.addBook) + * + * @param array $optParams Optional parameters. + * + * @opt_param string upload_client_token + * + * @opt_param string drive_document_id + * A drive document id. The upload_client_token must not be set. + * @opt_param string mime_type + * The document MIME type. It can be set only if the drive_document_id is set. + * @opt_param string name + * The document name. It can be set only if the drive_document_id is set. + * @return Google_Service_Books_BooksCloudloadingResource + */ + public function addBook($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('addBook', array($params), "Google_Service_Books_BooksCloudloadingResource"); + } + + /** + * Remove the book and its contents (cloudloading.deleteBook) + * + * @param string $volumeId + * The id of the book to be removed. + * @param array $optParams Optional parameters. + */ + public function deleteBook($volumeId, $optParams = array()) { + $params = array('volumeId' => $volumeId); + $params = array_merge($params, $optParams); + return $this->call('deleteBook', array($params)); + } + + /** + * (cloudloading.updateBook) + * + * @param Google_BooksCloudloadingResource $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Books_BooksCloudloadingResource + */ + public function updateBook(Google_Service_Books_BooksCloudloadingResource $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateBook', array($params), "Google_Service_Books_BooksCloudloadingResource"); + } } /** @@ -1462,53 +1454,51 @@ class Google_Service_Books_Cloudloading_Resource extends Google_Service_Resource * $layers = $booksService->layers; * */ -class Google_Service_Books_Layers_Resource extends Google_Service_Resource -{ +class Google_Service_Books_Layers_Resource extends Google_Service_Resource { - /** - * Gets the layer summary for a volume. (layers.get) - * - * @param string $volumeId - * The volume to retrieve layers for. - * @param string $summaryId - * The ID for the layer to get the summary for. - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string contentVersion - * The content version for the requested volume. - * @return Google_Service_Books_Layersummary - */ - public function get($volumeId, $summaryId, $optParams = array()) - { - $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Layersummary"); - } - /** - * List the layer summaries for a volume. (layers.listLayers) - * - * @param string $volumeId - * The volume to retrieve layers for. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The value of the nextToken from the previous page. - * @opt_param string contentVersion - * The content version for the requested volume. - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string source - * String to identify the originator of this request. - * @return Google_Service_Books_Layersummaries - */ - public function listLayers($volumeId, $optParams = array()) - { - $params = array('volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Layersummaries"); - } + /** + * Gets the layer summary for a volume. (layers.get) + * + * @param string $volumeId + * The volume to retrieve layers for. + * @param string $summaryId + * The ID for the layer to get the summary for. + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string contentVersion + * The content version for the requested volume. + * @return Google_Service_Books_Layersummary + */ + public function get($volumeId, $summaryId, $optParams = array()) { + $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_Layersummary"); + } + + /** + * List the layer summaries for a volume. (layers.listLayers) + * + * @param string $volumeId + * The volume to retrieve layers for. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The value of the nextToken from the previous page. + * @opt_param string contentVersion + * The content version for the requested volume. + * @opt_param string maxResults + * Maximum number of results to return + * @opt_param string source + * String to identify the originator of this request. + * @return Google_Service_Books_Layersummaries + */ + public function listLayers($volumeId, $optParams = array()) { + $params = array('volumeId' => $volumeId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Layersummaries"); + } } /** @@ -1519,85 +1509,84 @@ class Google_Service_Books_Layers_Resource extends Google_Service_Resource * $annotationData = $booksService->annotationData; * */ -class Google_Service_Books_LayersAnnotationData_Resource extends Google_Service_Resource -{ +class Google_Service_Books_LayersAnnotationData_Resource extends Google_Service_Resource { - /** - * Gets the annotation data. (annotationData.get) - * - * @param string $volumeId - * The volume to retrieve annotations for. - * @param string $layerId - * The ID for the layer to get the annotations. - * @param string $annotationDataId - * The ID of the annotation data to retrieve. - * @param string $contentVersion - * The content version for the volume you are trying to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param int scale - * The requested scale for the image. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param bool allowWebDefinitions - * For the dictionary layer. Whether or not to allow web definitions. - * @opt_param int h - * The requested pixel height for any images. If height is provided width must also be provided. - * @opt_param string locale - * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: - * 'en_US'. - * @opt_param int w - * The requested pixel width for any images. If width is provided height must also be provided. - * @return Google_Service_Books_Annotationdata - */ - public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array()) - { - $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Annotationdata"); - } - /** - * Gets the annotation data for a volume and layer. - * (annotationData.listLayersAnnotationData) - * - * @param string $volumeId - * The volume to retrieve annotation data for. - * @param string $layerId - * The ID for the layer to get the annotation data. - * @param string $contentVersion - * The content version for the requested volume. - * @param array $optParams Optional parameters. - * - * @opt_param int scale - * The requested scale for the image. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string locale - * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: - * 'en_US'. - * @opt_param int h - * The requested pixel height for any images. If height is provided width must also be provided. - * @opt_param string updatedMax - * RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string annotationDataId - * The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set. - * @opt_param string pageToken - * The value of the nextToken from the previous page. - * @opt_param int w - * The requested pixel width for any images. If width is provided height must also be provided. - * @opt_param string updatedMin - * RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). - * @return Google_Service_Books_Annotationsdata - */ - public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array()) - { - $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Annotationsdata"); - } + /** + * Gets the annotation data. (annotationData.get) + * + * @param string $volumeId + * The volume to retrieve annotations for. + * @param string $layerId + * The ID for the layer to get the annotations. + * @param string $annotationDataId + * The ID of the annotation data to retrieve. + * @param string $contentVersion + * The content version for the volume you are trying to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param int scale + * The requested scale for the image. + * @opt_param string source + * String to identify the originator of this request. + * @opt_param bool allowWebDefinitions + * For the dictionary layer. Whether or not to allow web definitions. + * @opt_param int h + * The requested pixel height for any images. If height is provided width must also be provided. + * @opt_param string locale + * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: + * 'en_US'. + * @opt_param int w + * The requested pixel width for any images. If width is provided height must also be provided. + * @return Google_Service_Books_Annotationdata + */ + public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array()) { + $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_Annotationdata"); + } + + /** + * Gets the annotation data for a volume and layer. + * (annotationData.listLayersAnnotationData) + * + * @param string $volumeId + * The volume to retrieve annotation data for. + * @param string $layerId + * The ID for the layer to get the annotation data. + * @param string $contentVersion + * The content version for the requested volume. + * @param array $optParams Optional parameters. + * + * @opt_param int scale + * The requested scale for the image. + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string locale + * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: + * 'en_US'. + * @opt_param int h + * The requested pixel height for any images. If height is provided width must also be provided. + * @opt_param string updatedMax + * RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). + * @opt_param string maxResults + * Maximum number of results to return + * @opt_param string annotationDataId + * The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set. + * @opt_param string pageToken + * The value of the nextToken from the previous page. + * @opt_param int w + * The requested pixel width for any images. If width is provided height must also be provided. + * @opt_param string updatedMin + * RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). + * @return Google_Service_Books_Annotationsdata + */ + public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array()) { + $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Annotationsdata"); + } } + /** * The "volumeAnnotations" collection of methods. * Typical usage is: @@ -1606,79 +1595,77 @@ class Google_Service_Books_LayersAnnotationData_Resource extends Google_Service_ * $volumeAnnotations = $booksService->volumeAnnotations; * */ -class Google_Service_Books_LayersVolumeAnnotations_Resource extends Google_Service_Resource -{ +class Google_Service_Books_LayersVolumeAnnotations_Resource extends Google_Service_Resource { - /** - * Gets the volume annotation. (volumeAnnotations.get) - * - * @param string $volumeId - * The volume to retrieve annotations for. - * @param string $layerId - * The ID for the layer to get the annotations. - * @param string $annotationId - * The ID of the volume annotation to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: - * 'en_US'. - * @opt_param string source - * String to identify the originator of this request. - * @return Google_Service_Books_Volumeannotation - */ - public function get($volumeId, $layerId, $annotationId, $optParams = array()) - { - $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Volumeannotation"); - } - /** - * Gets the volume annotations for a volume and layer. - * (volumeAnnotations.listLayersVolumeAnnotations) - * - * @param string $volumeId - * The volume to retrieve annotations for. - * @param string $layerId - * The ID for the layer to get the annotations. - * @param string $contentVersion - * The content version for the requested volume. - * @param array $optParams Optional parameters. - * - * @opt_param bool showDeleted - * Set to true to return deleted annotations. updatedMin must be in the request to use this. - * Defaults to false. - * @opt_param string volumeAnnotationsVersion - * The version of the volume annotations that you are requesting. - * @opt_param string endPosition - * The end position to end retrieving data from. - * @opt_param string endOffset - * The end offset to end retrieving data from. - * @opt_param string locale - * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: - * 'en_US'. - * @opt_param string updatedMin - * RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). - * @opt_param string updatedMax - * RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string pageToken - * The value of the nextToken from the previous page. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string startOffset - * The start offset to start retrieving data from. - * @opt_param string startPosition - * The start position to start retrieving data from. - * @return Google_Service_Books_Volumeannotations - */ - public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array()) - { - $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Volumeannotations"); - } + /** + * Gets the volume annotation. (volumeAnnotations.get) + * + * @param string $volumeId + * The volume to retrieve annotations for. + * @param string $layerId + * The ID for the layer to get the annotations. + * @param string $annotationId + * The ID of the volume annotation to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: + * 'en_US'. + * @opt_param string source + * String to identify the originator of this request. + * @return Google_Service_Books_Volumeannotation + */ + public function get($volumeId, $layerId, $annotationId, $optParams = array()) { + $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_Volumeannotation"); + } + + /** + * Gets the volume annotations for a volume and layer. + * (volumeAnnotations.listLayersVolumeAnnotations) + * + * @param string $volumeId + * The volume to retrieve annotations for. + * @param string $layerId + * The ID for the layer to get the annotations. + * @param string $contentVersion + * The content version for the requested volume. + * @param array $optParams Optional parameters. + * + * @opt_param bool showDeleted + * Set to true to return deleted annotations. updatedMin must be in the request to use this. + * Defaults to false. + * @opt_param string volumeAnnotationsVersion + * The version of the volume annotations that you are requesting. + * @opt_param string endPosition + * The end position to end retrieving data from. + * @opt_param string endOffset + * The end offset to end retrieving data from. + * @opt_param string locale + * The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: + * 'en_US'. + * @opt_param string updatedMin + * RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). + * @opt_param string updatedMax + * RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). + * @opt_param string maxResults + * Maximum number of results to return + * @opt_param string pageToken + * The value of the nextToken from the previous page. + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string startOffset + * The start offset to start retrieving data from. + * @opt_param string startPosition + * The start position to start retrieving data from. + * @return Google_Service_Books_Volumeannotations + */ + public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array()) { + $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Volumeannotations"); + } } /** @@ -1689,84 +1676,82 @@ class Google_Service_Books_LayersVolumeAnnotations_Resource extends Google_Servi * $myconfig = $booksService->myconfig; * */ -class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource -{ +class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource { - /** - * Release downloaded content access restriction. - * (myconfig.releaseDownloadAccess) - * - * @param string $volumeIds - * The volume(s) to release restrictions for. - * @param string $cpksver - * The device/version ID from which to release the restriction. - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. - * @opt_param string source - * String to identify the originator of this request. - * @return Google_Service_Books_DownloadAccesses - */ - public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()) - { - $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver); - $params = array_merge($params, $optParams); - return $this->call('releaseDownloadAccess', array($params), "Google_Service_Books_DownloadAccesses"); - } - /** - * Request concurrent and download access restrictions. (myconfig.requestAccess) - * - * @param string $source - * String to identify the originator of this request. - * @param string $volumeId - * The volume to request concurrent/download restrictions for. - * @param string $nonce - * The client nonce value. - * @param string $cpksver - * The device/version ID from which to request the restrictions. - * @param array $optParams Optional parameters. - * - * @opt_param string licenseTypes - * The type of access license to request. If not specified, the default is BOTH. - * @opt_param string locale - * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. - * @return Google_Service_Books_RequestAccess - */ - public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) - { - $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver); - $params = array_merge($params, $optParams); - return $this->call('requestAccess', array($params), "Google_Service_Books_RequestAccess"); - } - /** - * Request downloaded content access for specified volumes on the My eBooks - * shelf. (myconfig.syncVolumeLicenses) - * - * @param string $source - * String to identify the originator of this request. - * @param string $nonce - * The client nonce value. - * @param string $cpksver - * The device/version ID from which to release the restriction. - * @param array $optParams Optional parameters. - * - * @opt_param string features - * List of features supported by the client, i.e., 'RENTALS' - * @opt_param string locale - * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. - * @opt_param bool showPreorders - * Set to true to show pre-ordered books. Defaults to false. - * @opt_param string volumeIds - * The volume(s) to request download restrictions for. - * @return Google_Service_Books_Volumes - */ - public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) - { - $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver); - $params = array_merge($params, $optParams); - return $this->call('syncVolumeLicenses', array($params), "Google_Service_Books_Volumes"); - } + /** + * Release downloaded content access restriction. + * (myconfig.releaseDownloadAccess) + * + * @param string $volumeIds + * The volume(s) to release restrictions for. + * @param string $cpksver + * The device/version ID from which to release the restriction. + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. + * @opt_param string source + * String to identify the originator of this request. + * @return Google_Service_Books_DownloadAccesses + */ + public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()) { + $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver); + $params = array_merge($params, $optParams); + return $this->call('releaseDownloadAccess', array($params), "Google_Service_Books_DownloadAccesses"); + } + + /** + * Request concurrent and download access restrictions. (myconfig.requestAccess) + * + * @param string $source + * String to identify the originator of this request. + * @param string $volumeId + * The volume to request concurrent/download restrictions for. + * @param string $nonce + * The client nonce value. + * @param string $cpksver + * The device/version ID from which to request the restrictions. + * @param array $optParams Optional parameters. + * + * @opt_param string licenseTypes + * The type of access license to request. If not specified, the default is BOTH. + * @opt_param string locale + * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. + * @return Google_Service_Books_RequestAccess + */ + public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) { + $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver); + $params = array_merge($params, $optParams); + return $this->call('requestAccess', array($params), "Google_Service_Books_RequestAccess"); + } + + /** + * Request downloaded content access for specified volumes on the My eBooks + * shelf. (myconfig.syncVolumeLicenses) + * + * @param string $source + * String to identify the originator of this request. + * @param string $nonce + * The client nonce value. + * @param string $cpksver + * The device/version ID from which to release the restriction. + * @param array $optParams Optional parameters. + * + * @opt_param string features + * List of features supported by the client, i.e., 'RENTALS' + * @opt_param string locale + * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. + * @opt_param bool showPreorders + * Set to true to show pre-ordered books. Defaults to false. + * @opt_param string volumeIds + * The volume(s) to request download restrictions for. + * @return Google_Service_Books_Volumes + */ + public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) { + $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver); + $params = array_merge($params, $optParams); + return $this->call('syncVolumeLicenses', array($params), "Google_Service_Books_Volumes"); + } } /** @@ -1777,8 +1762,7 @@ class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource * $mylibrary = $booksService->mylibrary; * */ -class Google_Service_Books_Mylibrary_Resource extends Google_Service_Resource -{ +class Google_Service_Books_Mylibrary_Resource extends Google_Service_Resource { } @@ -1790,132 +1774,131 @@ class Google_Service_Books_Mylibrary_Resource extends Google_Service_Resource * $annotations = $booksService->annotations; * */ -class Google_Service_Books_MylibraryAnnotations_Resource extends Google_Service_Resource -{ +class Google_Service_Books_MylibraryAnnotations_Resource extends Google_Service_Resource { - /** - * Deletes an annotation. (annotations.delete) - * - * @param string $annotationId - * The ID for the annotation to delete. - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - */ - public function delete($annotationId, $optParams = array()) - { - $params = array('annotationId' => $annotationId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets an annotation by its ID. (annotations.get) - * - * @param string $annotationId - * The ID for the annotation to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - * @return Google_Service_Books_Annotation - */ - public function get($annotationId, $optParams = array()) - { - $params = array('annotationId' => $annotationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Annotation"); - } - /** - * Inserts a new annotation. (annotations.insert) - * - * @param Google_Annotation $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - * @opt_param bool showOnlySummaryInResponse - * Requests that only the summary of the specified layer be provided in the response. - * @return Google_Service_Books_Annotation - */ - public function insert(Google_Service_Books_Annotation $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Books_Annotation"); - } - /** - * Retrieves a list of annotations, possibly filtered. - * (annotations.listMylibraryAnnotations) - * - * @param array $optParams Optional parameters. - * - * @opt_param bool showDeleted - * Set to true to return deleted annotations. updatedMin must be in the request to use this. - * Defaults to false. - * @opt_param string updatedMin - * RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). - * @opt_param string layerIds - * The layer ID(s) to limit annotation by. - * @opt_param string volumeId - * The volume to restrict annotations to. - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string pageToken - * The value of the nextToken from the previous page. - * @opt_param string pageIds - * The page ID(s) for the volume that is being queried. - * @opt_param string contentVersion - * The content version for the requested volume. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string layerId - * The layer ID to limit annotation by. - * @opt_param string updatedMax - * RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). - * @return Google_Service_Books_Annotations - */ - public function listMylibraryAnnotations($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Annotations"); - } - /** - * Gets the summary of specified layers. (annotations.summary) - * - * @param string $layerIds - * Array of layer IDs to get the summary for. - * @param string $volumeId - * Volume id to get the summary for. - * @param array $optParams Optional parameters. - * @return Google_Service_Books_AnnotationsSummary - */ - public function summary($layerIds, $volumeId, $optParams = array()) - { - $params = array('layerIds' => $layerIds, 'volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('summary', array($params), "Google_Service_Books_AnnotationsSummary"); - } - /** - * Updates an existing annotation. (annotations.update) - * - * @param string $annotationId - * The ID for the annotation to update. - * @param Google_Annotation $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - * @return Google_Service_Books_Annotation - */ - public function update($annotationId, Google_Service_Books_Annotation $postBody, $optParams = array()) - { - $params = array('annotationId' => $annotationId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Books_Annotation"); - } + /** + * Deletes an annotation. (annotations.delete) + * + * @param string $annotationId + * The ID for the annotation to delete. + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + */ + public function delete($annotationId, $optParams = array()) { + $params = array('annotationId' => $annotationId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets an annotation by its ID. (annotations.get) + * + * @param string $annotationId + * The ID for the annotation to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + * @return Google_Service_Books_Annotation + */ + public function get($annotationId, $optParams = array()) { + $params = array('annotationId' => $annotationId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_Annotation"); + } + + /** + * Inserts a new annotation. (annotations.insert) + * + * @param Google_Annotation $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + * @opt_param bool showOnlySummaryInResponse + * Requests that only the summary of the specified layer be provided in the response. + * @return Google_Service_Books_Annotation + */ + public function insert(Google_Service_Books_Annotation $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Books_Annotation"); + } + + /** + * Retrieves a list of annotations, possibly filtered. + * (annotations.listMylibraryAnnotations) + * + * @param array $optParams Optional parameters. + * + * @opt_param bool showDeleted + * Set to true to return deleted annotations. updatedMin must be in the request to use this. + * Defaults to false. + * @opt_param string updatedMin + * RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive). + * @opt_param string layerIds + * The layer ID(s) to limit annotation by. + * @opt_param string volumeId + * The volume to restrict annotations to. + * @opt_param string maxResults + * Maximum number of results to return + * @opt_param string pageToken + * The value of the nextToken from the previous page. + * @opt_param string pageIds + * The page ID(s) for the volume that is being queried. + * @opt_param string contentVersion + * The content version for the requested volume. + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string layerId + * The layer ID to limit annotation by. + * @opt_param string updatedMax + * RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive). + * @return Google_Service_Books_Annotations + */ + public function listMylibraryAnnotations($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Annotations"); + } + + /** + * Gets the summary of specified layers. (annotations.summary) + * + * @param string $layerIds + * Array of layer IDs to get the summary for. + * @param string $volumeId + * Volume id to get the summary for. + * @param array $optParams Optional parameters. + * @return Google_Service_Books_AnnotationsSummary + */ + public function summary($layerIds, $volumeId, $optParams = array()) { + $params = array('layerIds' => $layerIds, 'volumeId' => $volumeId); + $params = array_merge($params, $optParams); + return $this->call('summary', array($params), "Google_Service_Books_AnnotationsSummary"); + } + + /** + * Updates an existing annotation. (annotations.update) + * + * @param string $annotationId + * The ID for the annotation to update. + * @param Google_Annotation $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + * @return Google_Service_Books_Annotation + */ + public function update($annotationId, Google_Service_Books_Annotation $postBody, $optParams = array()) { + $params = array('annotationId' => $annotationId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Books_Annotation"); + } } + /** * The "bookshelves" collection of methods. * Typical usage is: @@ -1924,116 +1907,114 @@ class Google_Service_Books_MylibraryAnnotations_Resource extends Google_Service_ * $bookshelves = $booksService->bookshelves; * */ -class Google_Service_Books_MylibraryBookshelves_Resource extends Google_Service_Resource -{ +class Google_Service_Books_MylibraryBookshelves_Resource extends Google_Service_Resource { - /** - * Adds a volume to a bookshelf. (bookshelves.addVolume) - * - * @param string $shelf - * ID of bookshelf to which to add a volume. - * @param string $volumeId - * ID of volume to add. - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - */ - public function addVolume($shelf, $volumeId, $optParams = array()) - { - $params = array('shelf' => $shelf, 'volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('addVolume', array($params)); - } - /** - * Clears all volumes from a bookshelf. (bookshelves.clearVolumes) - * - * @param string $shelf - * ID of bookshelf from which to remove a volume. - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - */ - public function clearVolumes($shelf, $optParams = array()) - { - $params = array('shelf' => $shelf); - $params = array_merge($params, $optParams); - return $this->call('clearVolumes', array($params)); - } - /** - * Retrieves metadata for a specific bookshelf belonging to the authenticated - * user. (bookshelves.get) - * - * @param string $shelf - * ID of bookshelf to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - * @return Google_Service_Books_Bookshelf - */ - public function get($shelf, $optParams = array()) - { - $params = array('shelf' => $shelf); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Bookshelf"); - } - /** - * Retrieves a list of bookshelves belonging to the authenticated user. - * (bookshelves.listMylibraryBookshelves) - * - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - * @return Google_Service_Books_Bookshelves - */ - public function listMylibraryBookshelves($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Bookshelves"); - } - /** - * Moves a volume within a bookshelf. (bookshelves.moveVolume) - * - * @param string $shelf - * ID of bookshelf with the volume. - * @param string $volumeId - * ID of volume to move. - * @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.) - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - */ - public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = array()) - { - $params = array('shelf' => $shelf, 'volumeId' => $volumeId, 'volumePosition' => $volumePosition); - $params = array_merge($params, $optParams); - return $this->call('moveVolume', array($params)); - } - /** - * Removes a volume from a bookshelf. (bookshelves.removeVolume) - * - * @param string $shelf - * ID of bookshelf from which to remove a volume. - * @param string $volumeId - * ID of volume to remove. - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - */ - public function removeVolume($shelf, $volumeId, $optParams = array()) - { - $params = array('shelf' => $shelf, 'volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('removeVolume', array($params)); - } + /** + * Adds a volume to a bookshelf. (bookshelves.addVolume) + * + * @param string $shelf + * ID of bookshelf to which to add a volume. + * @param string $volumeId + * ID of volume to add. + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + */ + public function addVolume($shelf, $volumeId, $optParams = array()) { + $params = array('shelf' => $shelf, 'volumeId' => $volumeId); + $params = array_merge($params, $optParams); + return $this->call('addVolume', array($params)); + } + + /** + * Clears all volumes from a bookshelf. (bookshelves.clearVolumes) + * + * @param string $shelf + * ID of bookshelf from which to remove a volume. + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + */ + public function clearVolumes($shelf, $optParams = array()) { + $params = array('shelf' => $shelf); + $params = array_merge($params, $optParams); + return $this->call('clearVolumes', array($params)); + } + + /** + * Retrieves metadata for a specific bookshelf belonging to the authenticated + * user. (bookshelves.get) + * + * @param string $shelf + * ID of bookshelf to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + * @return Google_Service_Books_Bookshelf + */ + public function get($shelf, $optParams = array()) { + $params = array('shelf' => $shelf); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_Bookshelf"); + } + + /** + * Retrieves a list of bookshelves belonging to the authenticated user. + * (bookshelves.listMylibraryBookshelves) + * + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + * @return Google_Service_Books_Bookshelves + */ + public function listMylibraryBookshelves($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Bookshelves"); + } + + /** + * Moves a volume within a bookshelf. (bookshelves.moveVolume) + * + * @param string $shelf + * ID of bookshelf with the volume. + * @param string $volumeId + * ID of volume to move. + * @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.) + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + */ + public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = array()) { + $params = array('shelf' => $shelf, 'volumeId' => $volumeId, 'volumePosition' => $volumePosition); + $params = array_merge($params, $optParams); + return $this->call('moveVolume', array($params)); + } + + /** + * Removes a volume from a bookshelf. (bookshelves.removeVolume) + * + * @param string $shelf + * ID of bookshelf from which to remove a volume. + * @param string $volumeId + * ID of volume to remove. + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + */ + public function removeVolume($shelf, $volumeId, $optParams = array()) { + $params = array('shelf' => $shelf, 'volumeId' => $volumeId); + $params = array_merge($params, $optParams); + return $this->call('removeVolume', array($params)); + } } /** @@ -2044,40 +2025,39 @@ class Google_Service_Books_MylibraryBookshelves_Resource extends Google_Service_ * $volumes = $booksService->volumes; * */ -class Google_Service_Books_MylibraryBookshelvesVolumes_Resource extends Google_Service_Resource -{ +class Google_Service_Books_MylibraryBookshelvesVolumes_Resource extends Google_Service_Resource { - /** - * Gets volume information for volumes on a bookshelf. - * (volumes.listMylibraryBookshelvesVolumes) - * - * @param string $shelf - * The bookshelf ID or name retrieve volumes for. - * @param array $optParams Optional parameters. - * - * @opt_param string projection - * Restrict information returned to a set of selected fields. - * @opt_param string country - * ISO-3166-1 code to override the IP-based location. - * @opt_param bool showPreorders - * Set to true to show pre-ordered books. Defaults to false. - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string q - * Full-text search query string in this bookshelf. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string startIndex - * Index of the first element to return (starts at 0) - * @return Google_Service_Books_Volumes - */ - public function listMylibraryBookshelvesVolumes($shelf, $optParams = array()) - { - $params = array('shelf' => $shelf); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } + /** + * Gets volume information for volumes on a bookshelf. + * (volumes.listMylibraryBookshelvesVolumes) + * + * @param string $shelf + * The bookshelf ID or name retrieve volumes for. + * @param array $optParams Optional parameters. + * + * @opt_param string projection + * Restrict information returned to a set of selected fields. + * @opt_param string country + * ISO-3166-1 code to override the IP-based location. + * @opt_param bool showPreorders + * Set to true to show pre-ordered books. Defaults to false. + * @opt_param string maxResults + * Maximum number of results to return + * @opt_param string q + * Full-text search query string in this bookshelf. + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string startIndex + * Index of the first element to return (starts at 0) + * @return Google_Service_Books_Volumes + */ + public function listMylibraryBookshelvesVolumes($shelf, $optParams = array()) { + $params = array('shelf' => $shelf); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Volumes"); + } } + /** * The "readingpositions" collection of methods. * Typical usage is: @@ -2086,56 +2066,54 @@ class Google_Service_Books_MylibraryBookshelvesVolumes_Resource extends Google_S * $readingpositions = $booksService->readingpositions; * */ -class Google_Service_Books_MylibraryReadingpositions_Resource extends Google_Service_Resource -{ +class Google_Service_Books_MylibraryReadingpositions_Resource extends Google_Service_Resource { - /** - * Retrieves my reading position information for a volume. - * (readingpositions.get) - * - * @param string $volumeId - * ID of volume for which to retrieve a reading position. - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string contentVersion - * Volume content version for which this reading position is requested. - * @return Google_Service_Books_ReadingPosition - */ - public function get($volumeId, $optParams = array()) - { - $params = array('volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_ReadingPosition"); - } - /** - * Sets my reading position information for a volume. - * (readingpositions.setPosition) - * - * @param string $volumeId - * ID of volume for which to update the reading position. - * @param string $timestamp - * RFC 3339 UTC format timestamp associated with this reading position. - * @param string $position - * Position string for the new volume reading position. - * @param array $optParams Optional parameters. - * - * @opt_param string deviceCookie - * Random persistent device cookie optional on set position. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string contentVersion - * Volume content version for which this reading position applies. - * @opt_param string action - * Action that caused this reading position to be set. - */ - public function setPosition($volumeId, $timestamp, $position, $optParams = array()) - { - $params = array('volumeId' => $volumeId, 'timestamp' => $timestamp, 'position' => $position); - $params = array_merge($params, $optParams); - return $this->call('setPosition', array($params)); - } + /** + * Retrieves my reading position information for a volume. + * (readingpositions.get) + * + * @param string $volumeId + * ID of volume for which to retrieve a reading position. + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string contentVersion + * Volume content version for which this reading position is requested. + * @return Google_Service_Books_ReadingPosition + */ + public function get($volumeId, $optParams = array()) { + $params = array('volumeId' => $volumeId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_ReadingPosition"); + } + + /** + * Sets my reading position information for a volume. + * (readingpositions.setPosition) + * + * @param string $volumeId + * ID of volume for which to update the reading position. + * @param string $timestamp + * RFC 3339 UTC format timestamp associated with this reading position. + * @param string $position + * Position string for the new volume reading position. + * @param array $optParams Optional parameters. + * + * @opt_param string deviceCookie + * Random persistent device cookie optional on set position. + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string contentVersion + * Volume content version for which this reading position applies. + * @opt_param string action + * Action that caused this reading position to be set. + */ + public function setPosition($volumeId, $timestamp, $position, $optParams = array()) { + $params = array('volumeId' => $volumeId, 'timestamp' => $timestamp, 'position' => $position); + $params = array_merge($params, $optParams); + return $this->call('setPosition', array($params)); + } } /** @@ -2146,88 +2124,86 @@ class Google_Service_Books_MylibraryReadingpositions_Resource extends Google_Ser * $promooffer = $booksService->promooffer; * */ -class Google_Service_Books_Promooffer_Resource extends Google_Service_Resource -{ +class Google_Service_Books_Promooffer_Resource extends Google_Service_Resource { - /** - * (promooffer.accept) - * - * @param array $optParams Optional parameters. - * - * @opt_param string product - * device product - * @opt_param string volumeId - * Volume id to exercise the offer - * @opt_param string offerId - * - * @opt_param string androidId - * device android_id - * @opt_param string device - * device device - * @opt_param string model - * device model - * @opt_param string serial - * device serial - * @opt_param string manufacturer - * device manufacturer - */ - public function accept($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('accept', array($params)); - } - /** - * (promooffer.dismiss) - * - * @param array $optParams Optional parameters. - * - * @opt_param string product - * device product - * @opt_param string offerId - * Offer to dimiss - * @opt_param string androidId - * device android_id - * @opt_param string device - * device device - * @opt_param string model - * device model - * @opt_param string serial - * device serial - * @opt_param string manufacturer - * device manufacturer - */ - public function dismiss($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('dismiss', array($params)); - } - /** - * Returns a list of promo offers available to the user (promooffer.get) - * - * @param array $optParams Optional parameters. - * - * @opt_param string product - * device product - * @opt_param string androidId - * device android_id - * @opt_param string device - * device device - * @opt_param string model - * device model - * @opt_param string serial - * device serial - * @opt_param string manufacturer - * device manufacturer - * @return Google_Service_Books_Offers - */ - public function get($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Offers"); - } + /** + * (promooffer.accept) + * + * @param array $optParams Optional parameters. + * + * @opt_param string product + * device product + * @opt_param string volumeId + * Volume id to exercise the offer + * @opt_param string offerId + * + * @opt_param string androidId + * device android_id + * @opt_param string device + * device device + * @opt_param string model + * device model + * @opt_param string serial + * device serial + * @opt_param string manufacturer + * device manufacturer + */ + public function accept($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('accept', array($params)); + } + + /** + * (promooffer.dismiss) + * + * @param array $optParams Optional parameters. + * + * @opt_param string product + * device product + * @opt_param string offerId + * Offer to dimiss + * @opt_param string androidId + * device android_id + * @opt_param string device + * device device + * @opt_param string model + * device model + * @opt_param string serial + * device serial + * @opt_param string manufacturer + * device manufacturer + */ + public function dismiss($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('dismiss', array($params)); + } + + /** + * Returns a list of promo offers available to the user (promooffer.get) + * + * @param array $optParams Optional parameters. + * + * @opt_param string product + * device product + * @opt_param string androidId + * device android_id + * @opt_param string device + * device device + * @opt_param string model + * device model + * @opt_param string serial + * device serial + * @opt_param string manufacturer + * device manufacturer + * @return Google_Service_Books_Offers + */ + public function get($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_Offers"); + } } /** @@ -2238,71 +2214,69 @@ class Google_Service_Books_Promooffer_Resource extends Google_Service_Resource * $volumes = $booksService->volumes; * */ -class Google_Service_Books_Volumes_Resource extends Google_Service_Resource -{ +class Google_Service_Books_Volumes_Resource extends Google_Service_Resource { - /** - * Gets volume information for a single volume. (volumes.get) - * - * @param string $volumeId - * ID of volume to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string country - * ISO-3166-1 code to override the IP-based location. - * @opt_param string projection - * Restrict information returned to a set of selected fields. - * @opt_param string partner - * Brand results for partner ID. - * @return Google_Service_Books_Volume - */ - public function get($volumeId, $optParams = array()) - { - $params = array('volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Volume"); - } - /** - * Performs a book search. (volumes.listVolumes) - * - * @param string $q - * Full-text search query string. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Sort search results. - * @opt_param string projection - * Restrict information returned to a set of selected fields. - * @opt_param string libraryRestrict - * Restrict search to this user's library. - * @opt_param string langRestrict - * Restrict results to books with this language code. - * @opt_param bool showPreorders - * Set to true to show books available for preorder. Defaults to false. - * @opt_param string printType - * Restrict to books or magazines. - * @opt_param string maxResults - * Maximum number of results to return. - * @opt_param string filter - * Filter search results. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string startIndex - * Index of the first result to return (starts at 0) - * @opt_param string download - * Restrict to volumes by download availability. - * @opt_param string partner - * Restrict and brand results for partner ID. - * @return Google_Service_Books_Volumes - */ - public function listVolumes($q, $optParams = array()) - { - $params = array('q' => $q); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } + /** + * Gets volume information for a single volume. (volumes.get) + * + * @param string $volumeId + * ID of volume to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string country + * ISO-3166-1 code to override the IP-based location. + * @opt_param string projection + * Restrict information returned to a set of selected fields. + * @opt_param string partner + * Brand results for partner ID. + * @return Google_Service_Books_Volume + */ + public function get($volumeId, $optParams = array()) { + $params = array('volumeId' => $volumeId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Books_Volume"); + } + + /** + * Performs a book search. (volumes.listVolumes) + * + * @param string $q + * Full-text search query string. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Sort search results. + * @opt_param string projection + * Restrict information returned to a set of selected fields. + * @opt_param string libraryRestrict + * Restrict search to this user's library. + * @opt_param string langRestrict + * Restrict results to books with this language code. + * @opt_param bool showPreorders + * Set to true to show books available for preorder. Defaults to false. + * @opt_param string printType + * Restrict to books or magazines. + * @opt_param string maxResults + * Maximum number of results to return. + * @opt_param string filter + * Filter search results. + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string startIndex + * Index of the first result to return (starts at 0) + * @opt_param string download + * Restrict to volumes by download availability. + * @opt_param string partner + * Restrict and brand results for partner ID. + * @return Google_Service_Books_Volumes + */ + public function listVolumes($q, $optParams = array()) { + $params = array('q' => $q); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Volumes"); + } } /** @@ -2313,32 +2287,31 @@ class Google_Service_Books_Volumes_Resource extends Google_Service_Resource * $associated = $booksService->associated; * */ -class Google_Service_Books_VolumesAssociated_Resource extends Google_Service_Resource -{ +class Google_Service_Books_VolumesAssociated_Resource extends Google_Service_Resource { - /** - * Return a list of associated books. (associated.listVolumesAssociated) - * - * @param string $volumeId - * ID of the source volume. - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating - * recommendations. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string association - * Association type. - * @return Google_Service_Books_Volumes - */ - public function listVolumesAssociated($volumeId, $optParams = array()) - { - $params = array('volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } + /** + * Return a list of associated books. (associated.listVolumesAssociated) + * + * @param string $volumeId + * ID of the source volume. + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating + * recommendations. + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string association + * Association type. + * @return Google_Service_Books_Volumes + */ + public function listVolumesAssociated($volumeId, $optParams = array()) { + $params = array('volumeId' => $volumeId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Volumes"); + } } + /** * The "mybooks" collection of methods. * Typical usage is: @@ -2347,36 +2320,35 @@ class Google_Service_Books_VolumesAssociated_Resource extends Google_Service_Res * $mybooks = $booksService->mybooks; * */ -class Google_Service_Books_VolumesMybooks_Resource extends Google_Service_Resource -{ +class Google_Service_Books_VolumesMybooks_Resource extends Google_Service_Resource { - /** - * Return a list of books in My Library. (mybooks.listVolumesMybooks) - * - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used for generating recommendations. - * @opt_param string startIndex - * Index of the first result to return (starts at 0) - * @opt_param string maxResults - * Maximum number of results to return. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string acquireMethod - * How the book was aquired - * @opt_param string processingState - * The processing state of the user uploaded volumes to be returned. Applicable only if the - * UPLOADED is specified in the acquireMethod. - * @return Google_Service_Books_Volumes - */ - public function listVolumesMybooks($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } + /** + * Return a list of books in My Library. (mybooks.listVolumesMybooks) + * + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used for generating recommendations. + * @opt_param string startIndex + * Index of the first result to return (starts at 0) + * @opt_param string maxResults + * Maximum number of results to return. + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string acquireMethod + * How the book was aquired + * @opt_param string processingState + * The processing state of the user uploaded volumes to be returned. Applicable only if the + * UPLOADED is specified in the acquireMethod. + * @return Google_Service_Books_Volumes + */ + public function listVolumesMybooks($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Volumes"); + } } + /** * The "recommended" collection of methods. * Typical usage is: @@ -2385,51 +2357,50 @@ class Google_Service_Books_VolumesMybooks_Resource extends Google_Service_Resour * $recommended = $booksService->recommended; * */ -class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Resource -{ +class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Resource { - /** - * Return a list of recommended books for the current user. - * (recommended.listVolumesRecommended) - * - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating - * recommendations. - * @opt_param string source - * String to identify the originator of this request. - * @return Google_Service_Books_Volumes - */ - public function listVolumesRecommended($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } - /** - * Rate a recommended book for the current user. (recommended.rate) - * - * @param string $rating - * Rating to be given to the volume. - * @param string $volumeId - * ID of the source volume. - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating - * recommendations. - * @opt_param string source - * String to identify the originator of this request. - * @return Google_Service_Books_BooksVolumesRecommendedRateResponse - */ - public function rate($rating, $volumeId, $optParams = array()) - { - $params = array('rating' => $rating, 'volumeId' => $volumeId); - $params = array_merge($params, $optParams); - return $this->call('rate', array($params), "Google_Service_Books_BooksVolumesRecommendedRateResponse"); - } + /** + * Return a list of recommended books for the current user. + * (recommended.listVolumesRecommended) + * + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating + * recommendations. + * @opt_param string source + * String to identify the originator of this request. + * @return Google_Service_Books_Volumes + */ + public function listVolumesRecommended($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Volumes"); + } + + /** + * Rate a recommended book for the current user. (recommended.rate) + * + * @param string $rating + * Rating to be given to the volume. + * @param string $volumeId + * ID of the source volume. + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating + * recommendations. + * @opt_param string source + * String to identify the originator of this request. + * @return Google_Service_Books_BooksVolumesRecommendedRateResponse + */ + public function rate($rating, $volumeId, $optParams = array()) { + $params = array('rating' => $rating, 'volumeId' => $volumeId); + $params = array_merge($params, $optParams); + return $this->call('rate', array($params), "Google_Service_Books_BooksVolumesRecommendedRateResponse"); + } } + /** * The "useruploaded" collection of methods. * Typical usage is: @@ -2438,4325 +2409,3534 @@ class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Re * $useruploaded = $booksService->useruploaded; * */ -class Google_Service_Books_VolumesUseruploaded_Resource extends Google_Service_Resource -{ - - /** - * Return a list of books uploaded by the current user. - * (useruploaded.listVolumesUseruploaded) - * - * @param array $optParams Optional parameters. - * - * @opt_param string locale - * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating - * recommendations. - * @opt_param string volumeId - * The ids of the volumes to be returned. If not specified all that match the processingState are - * returned. - * @opt_param string maxResults - * Maximum number of results to return. - * @opt_param string source - * String to identify the originator of this request. - * @opt_param string startIndex - * Index of the first result to return (starts at 0) - * @opt_param string processingState - * The processing state of the user uploaded volumes to be returned. - * @return Google_Service_Books_Volumes - */ - public function listVolumesUseruploaded($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Books_Volumes"); - } -} +class Google_Service_Books_VolumesUseruploaded_Resource extends Google_Service_Resource { + + /** + * Return a list of books uploaded by the current user. + * (useruploaded.listVolumesUseruploaded) + * + * @param array $optParams Optional parameters. + * + * @opt_param string locale + * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating + * recommendations. + * @opt_param string volumeId + * The ids of the volumes to be returned. If not specified all that match the processingState are + * returned. + * @opt_param string maxResults + * Maximum number of results to return. + * @opt_param string source + * String to identify the originator of this request. + * @opt_param string startIndex + * Index of the first result to return (starts at 0) + * @opt_param string processingState + * The processing state of the user uploaded volumes to be returned. + * @return Google_Service_Books_Volumes + */ + public function listVolumesUseruploaded($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Books_Volumes"); + } +} + + +class Google_Service_Books_Annotation extends Google_Collection { + public $afterSelectedText; + public $beforeSelectedText; + protected $clientVersionRangesType = 'Google_Service_Books_AnnotationClientVersionRanges'; + protected $clientVersionRangesDataType = ''; + public $created; + protected $currentVersionRangesType = 'Google_Service_Books_AnnotationCurrentVersionRanges'; + protected $currentVersionRangesDataType = ''; + public $data; + public $deleted; + public $highlightStyle; + public $id; + public $kind; + public $layerId; + protected $layerSummaryType = 'Google_Service_Books_AnnotationLayerSummary'; + protected $layerSummaryDataType = ''; + public $pageIds; + public $selectedText; + public $selfLink; + public $updated; + public $volumeId; + + public function setAfterSelectedText($afterSelectedText) { + $this->afterSelectedText = $afterSelectedText; + } + + public function getAfterSelectedText() { + return $this->afterSelectedText; + } + + public function setBeforeSelectedText($beforeSelectedText) { + $this->beforeSelectedText = $beforeSelectedText; + } + + public function getBeforeSelectedText() { + return $this->beforeSelectedText; + } + + public function setClientVersionRanges(Google_Service_Books_AnnotationClientVersionRanges $clientVersionRanges) { + $this->clientVersionRanges = $clientVersionRanges; + } + + public function getClientVersionRanges() { + return $this->clientVersionRanges; + } + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setCurrentVersionRanges(Google_Service_Books_AnnotationCurrentVersionRanges $currentVersionRanges) { + $this->currentVersionRanges = $currentVersionRanges; + } + + public function getCurrentVersionRanges() { + return $this->currentVersionRanges; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setDeleted($deleted) { + $this->deleted = $deleted; + } + + public function getDeleted() { + return $this->deleted; + } + + public function setHighlightStyle($highlightStyle) { + $this->highlightStyle = $highlightStyle; + } + + public function getHighlightStyle() { + return $this->highlightStyle; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLayerId($layerId) { + $this->layerId = $layerId; + } + + public function getLayerId() { + return $this->layerId; + } + + public function setLayerSummary(Google_Service_Books_AnnotationLayerSummary $layerSummary) { + $this->layerSummary = $layerSummary; + } + + public function getLayerSummary() { + return $this->layerSummary; + } + + public function setPageIds($pageIds) { + $this->pageIds = $pageIds; + } + + public function getPageIds() { + return $this->pageIds; + } + + public function setSelectedText($selectedText) { + $this->selectedText = $selectedText; + } + + public function getSelectedText() { + return $this->selectedText; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setVolumeId($volumeId) { + $this->volumeId = $volumeId; + } + + public function getVolumeId() { + return $this->volumeId; + } +} + +class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model { + protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; + protected $cfiRangeDataType = ''; + public $contentVersion; + protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange'; + protected $gbImageRangeDataType = ''; + protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange'; + protected $gbTextRangeDataType = ''; + protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; + protected $imageCfiRangeDataType = ''; + + public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) { + $this->cfiRange = $cfiRange; + } + + public function getCfiRange() { + return $this->cfiRange; + } + + public function setContentVersion($contentVersion) { + $this->contentVersion = $contentVersion; + } + + public function getContentVersion() { + return $this->contentVersion; + } + + public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) { + $this->gbImageRange = $gbImageRange; + } + + public function getGbImageRange() { + return $this->gbImageRange; + } + public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) { + $this->gbTextRange = $gbTextRange; + } + + public function getGbTextRange() { + return $this->gbTextRange; + } + + public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange) { + $this->imageCfiRange = $imageCfiRange; + } + + public function getImageCfiRange() { + return $this->imageCfiRange; + } +} + +class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model { + protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; + protected $cfiRangeDataType = ''; + public $contentVersion; + protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange'; + protected $gbImageRangeDataType = ''; + protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange'; + protected $gbTextRangeDataType = ''; + protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; + protected $imageCfiRangeDataType = ''; + + public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) { + $this->cfiRange = $cfiRange; + } + + public function getCfiRange() { + return $this->cfiRange; + } + + public function setContentVersion($contentVersion) { + $this->contentVersion = $contentVersion; + } + + public function getContentVersion() { + return $this->contentVersion; + } + + public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) { + $this->gbImageRange = $gbImageRange; + } + + public function getGbImageRange() { + return $this->gbImageRange; + } + + public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) { + $this->gbTextRange = $gbTextRange; + } + + public function getGbTextRange() { + return $this->gbTextRange; + } + + public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange) { + $this->imageCfiRange = $imageCfiRange; + } + + public function getImageCfiRange() { + return $this->imageCfiRange; + } +} + +class Google_Service_Books_AnnotationLayerSummary extends Google_Model { + public $allowedCharacterCount; + public $limitType; + public $remainingCharacterCount; + + public function setAllowedCharacterCount($allowedCharacterCount) { + $this->allowedCharacterCount = $allowedCharacterCount; + } + + public function getAllowedCharacterCount() { + return $this->allowedCharacterCount; + } + + public function setLimitType($limitType) { + $this->limitType = $limitType; + } + + public function getLimitType() { + return $this->limitType; + } + + public function setRemainingCharacterCount($remainingCharacterCount) { + $this->remainingCharacterCount = $remainingCharacterCount; + } + + public function getRemainingCharacterCount() { + return $this->remainingCharacterCount; + } +} + +class Google_Service_Books_Annotationdata extends Google_Model { + public $annotationType; + public $data; + public $encodedData; + public $id; + public $kind; + public $layerId; + public $selfLink; + public $updated; + public $volumeId; + + public function setAnnotationType($annotationType) { + $this->annotationType = $annotationType; + } + + public function getAnnotationType() { + return $this->annotationType; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + public function setEncodedData($encodedData) { + $this->encodedData = $encodedData; + } + public function getEncodedData() { + return $this->encodedData; + } -class Google_Service_Books_Annotation extends Google_Collection -{ - public $afterSelectedText; - public $beforeSelectedText; - protected $clientVersionRangesType = 'Google_Service_Books_AnnotationClientVersionRanges'; - protected $clientVersionRangesDataType = ''; - public $created; - protected $currentVersionRangesType = 'Google_Service_Books_AnnotationCurrentVersionRanges'; - protected $currentVersionRangesDataType = ''; - public $data; - public $deleted; - public $highlightStyle; - public $id; - public $kind; - public $layerId; - protected $layerSummaryType = 'Google_Service_Books_AnnotationLayerSummary'; - protected $layerSummaryDataType = ''; - public $pageIds; - public $selectedText; - public $selfLink; - public $updated; - public $volumeId; - - public function setAfterSelectedText($afterSelectedText) - { - $this->afterSelectedText = $afterSelectedText; - } - - public function getAfterSelectedText() - { - return $this->afterSelectedText; - } - - public function setBeforeSelectedText($beforeSelectedText) - { - $this->beforeSelectedText = $beforeSelectedText; - } - - public function getBeforeSelectedText() - { - return $this->beforeSelectedText; - } - - public function setClientVersionRanges(Google_Service_Books_AnnotationClientVersionRanges $clientVersionRanges) - { - $this->clientVersionRanges = $clientVersionRanges; - } - - public function getClientVersionRanges() - { - return $this->clientVersionRanges; - } - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setCurrentVersionRanges(Google_Service_Books_AnnotationCurrentVersionRanges $currentVersionRanges) - { - $this->currentVersionRanges = $currentVersionRanges; - } - - public function getCurrentVersionRanges() - { - return $this->currentVersionRanges; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - - public function getDeleted() - { - return $this->deleted; - } - - public function setHighlightStyle($highlightStyle) - { - $this->highlightStyle = $highlightStyle; - } - - public function getHighlightStyle() - { - return $this->highlightStyle; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLayerId($layerId) - { - $this->layerId = $layerId; - } - - public function getLayerId() - { - return $this->layerId; - } - - public function setLayerSummary(Google_Service_Books_AnnotationLayerSummary $layerSummary) - { - $this->layerSummary = $layerSummary; - } - - public function getLayerSummary() - { - return $this->layerSummary; - } - - public function setPageIds($pageIds) - { - $this->pageIds = $pageIds; - } - - public function getPageIds() - { - return $this->pageIds; - } - - public function setSelectedText($selectedText) - { - $this->selectedText = $selectedText; - } - - public function getSelectedText() - { - return $this->selectedText; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - - public function getVolumeId() - { - return $this->volumeId; - } -} + public function setId($id) { + $this->id = $id; + } -class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model -{ - protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $cfiRangeDataType = ''; - public $contentVersion; - protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbImageRangeDataType = ''; - protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbTextRangeDataType = ''; - protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $imageCfiRangeDataType = ''; - - public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) - { - $this->cfiRange = $cfiRange; - } - - public function getCfiRange() - { - return $this->cfiRange; - } - - public function setContentVersion($contentVersion) - { - $this->contentVersion = $contentVersion; - } - - public function getContentVersion() - { - return $this->contentVersion; - } - - public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) - { - $this->gbImageRange = $gbImageRange; - } - - public function getGbImageRange() - { - return $this->gbImageRange; - } - - public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) - { - $this->gbTextRange = $gbTextRange; - } - - public function getGbTextRange() - { - return $this->gbTextRange; - } - - public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange) - { - $this->imageCfiRange = $imageCfiRange; - } - - public function getImageCfiRange() - { - return $this->imageCfiRange; - } -} + public function getId() { + return $this->id; + } -class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model -{ - protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $cfiRangeDataType = ''; - public $contentVersion; - protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbImageRangeDataType = ''; - protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbTextRangeDataType = ''; - protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $imageCfiRangeDataType = ''; - - public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) - { - $this->cfiRange = $cfiRange; - } - - public function getCfiRange() - { - return $this->cfiRange; - } - - public function setContentVersion($contentVersion) - { - $this->contentVersion = $contentVersion; - } - - public function getContentVersion() - { - return $this->contentVersion; - } - - public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) - { - $this->gbImageRange = $gbImageRange; - } - - public function getGbImageRange() - { - return $this->gbImageRange; - } - - public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) - { - $this->gbTextRange = $gbTextRange; - } - - public function getGbTextRange() - { - return $this->gbTextRange; - } - - public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange) - { - $this->imageCfiRange = $imageCfiRange; - } - - public function getImageCfiRange() - { - return $this->imageCfiRange; - } -} + public function setKind($kind) { + $this->kind = $kind; + } -class Google_Service_Books_AnnotationLayerSummary extends Google_Model -{ - public $allowedCharacterCount; - public $limitType; - public $remainingCharacterCount; - - public function setAllowedCharacterCount($allowedCharacterCount) - { - $this->allowedCharacterCount = $allowedCharacterCount; - } - - public function getAllowedCharacterCount() - { - return $this->allowedCharacterCount; - } - - public function setLimitType($limitType) - { - $this->limitType = $limitType; - } - - public function getLimitType() - { - return $this->limitType; - } - - public function setRemainingCharacterCount($remainingCharacterCount) - { - $this->remainingCharacterCount = $remainingCharacterCount; - } - - public function getRemainingCharacterCount() - { - return $this->remainingCharacterCount; - } -} + public function getKind() { + return $this->kind; + } -class Google_Service_Books_Annotationdata extends Google_Model -{ - public $annotationType; - public $data; - public $encodedData; - public $id; - public $kind; - public $layerId; - public $selfLink; - public $updated; - public $volumeId; - - public function setAnnotationType($annotationType) - { - $this->annotationType = $annotationType; - } - - public function getAnnotationType() - { - return $this->annotationType; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setEncodedData($encodedData) - { - $this->encodedData = $encodedData; - } - - public function getEncodedData() - { - return $this->encodedData; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLayerId($layerId) - { - $this->layerId = $layerId; - } - - public function getLayerId() - { - return $this->layerId; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - - public function getVolumeId() - { - return $this->volumeId; - } -} + public function setLayerId($layerId) { + $this->layerId = $layerId; + } -class Google_Service_Books_Annotations extends Google_Collection -{ - protected $itemsType = 'Google_Service_Books_Annotation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - - public function getTotalItems() - { - return $this->totalItems; - } -} + public function getLayerId() { + return $this->layerId; + } -class Google_Service_Books_AnnotationsSummary extends Google_Collection -{ - public $kind; - protected $layersType = 'Google_Service_Books_AnnotationsSummaryLayers'; - protected $layersDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLayers($layers) - { - $this->layers = $layers; - } - - public function getLayers() - { - return $this->layers; - } -} + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } -class Google_Service_Books_AnnotationsSummaryLayers extends Google_Model -{ - public $allowedCharacterCount; - public $layerId; - public $limitType; - public $remainingCharacterCount; - public $updated; - - public function setAllowedCharacterCount($allowedCharacterCount) - { - $this->allowedCharacterCount = $allowedCharacterCount; - } - - public function getAllowedCharacterCount() - { - return $this->allowedCharacterCount; - } - - public function setLayerId($layerId) - { - $this->layerId = $layerId; - } - - public function getLayerId() - { - return $this->layerId; - } - - public function setLimitType($limitType) - { - $this->limitType = $limitType; - } - - public function getLimitType() - { - return $this->limitType; - } - - public function setRemainingCharacterCount($remainingCharacterCount) - { - $this->remainingCharacterCount = $remainingCharacterCount; - } - - public function getRemainingCharacterCount() - { - return $this->remainingCharacterCount; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } -} + public function getSelfLink() { + return $this->selfLink; + } -class Google_Service_Books_Annotationsdata extends Google_Collection -{ - protected $itemsType = 'Google_Service_Books_Annotationdata'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - - public function getTotalItems() - { - return $this->totalItems; - } -} + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } -class Google_Service_Books_BooksAnnotationsRange extends Google_Model -{ - public $endOffset; - public $endPosition; - public $startOffset; - public $startPosition; - - public function setEndOffset($endOffset) - { - $this->endOffset = $endOffset; - } - - public function getEndOffset() - { - return $this->endOffset; - } - - public function setEndPosition($endPosition) - { - $this->endPosition = $endPosition; - } - - public function getEndPosition() - { - return $this->endPosition; - } - - public function setStartOffset($startOffset) - { - $this->startOffset = $startOffset; - } - - public function getStartOffset() - { - return $this->startOffset; - } - - public function setStartPosition($startPosition) - { - $this->startPosition = $startPosition; - } - - public function getStartPosition() - { - return $this->startPosition; - } -} + public function setVolumeId($volumeId) { + $this->volumeId = $volumeId; + } -class Google_Service_Books_BooksCloudloadingResource extends Google_Model -{ - public $author; - public $processingState; - public $title; - public $volumeId; - - public function setAuthor($author) - { - $this->author = $author; - } - - public function getAuthor() - { - return $this->author; - } - - public function setProcessingState($processingState) - { - $this->processingState = $processingState; - } - - public function getProcessingState() - { - return $this->processingState; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - - public function getVolumeId() - { - return $this->volumeId; - } + public function getVolumeId() { + return $this->volumeId; + } } -class Google_Service_Books_BooksVolumesRecommendedRateResponse extends Google_Model -{ - public $consistencyToken; +class Google_Service_Books_Annotations extends Google_Collection { + protected $itemsType = 'Google_Service_Books_Annotation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $totalItems; + + public function setItems($items) { + $this->items = $items; + } - public function setConsistencyToken($consistencyToken) - { - $this->consistencyToken = $consistencyToken; - } + public function getItems() { + return $this->items; + } - public function getConsistencyToken() - { - return $this->consistencyToken; - } -} + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } -class Google_Service_Books_Bookshelf extends Google_Model -{ - public $access; - public $created; - public $description; - public $id; - public $kind; - public $selfLink; - public $title; - public $updated; - public $volumeCount; - public $volumesLastUpdated; - - public function setAccess($access) - { - $this->access = $access; - } - - public function getAccess() - { - return $this->access; - } - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setVolumeCount($volumeCount) - { - $this->volumeCount = $volumeCount; - } - - public function getVolumeCount() - { - return $this->volumeCount; - } - - public function setVolumesLastUpdated($volumesLastUpdated) - { - $this->volumesLastUpdated = $volumesLastUpdated; - } - - public function getVolumesLastUpdated() - { - return $this->volumesLastUpdated; - } -} + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } -class Google_Service_Books_Bookshelves extends Google_Collection -{ - protected $itemsType = 'Google_Service_Books_Bookshelf'; - protected $itemsDataType = 'array'; - public $kind; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} + public function getNextPageToken() { + return $this->nextPageToken; + } -class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model -{ - public $deviceAllowed; - public $kind; - public $maxConcurrentDevices; - public $message; - public $nonce; - public $reasonCode; - public $restricted; - public $signature; - public $source; - public $timeWindowSeconds; - public $volumeId; - - public function setDeviceAllowed($deviceAllowed) - { - $this->deviceAllowed = $deviceAllowed; - } - - public function getDeviceAllowed() - { - return $this->deviceAllowed; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMaxConcurrentDevices($maxConcurrentDevices) - { - $this->maxConcurrentDevices = $maxConcurrentDevices; - } - - public function getMaxConcurrentDevices() - { - return $this->maxConcurrentDevices; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } - - public function setNonce($nonce) - { - $this->nonce = $nonce; - } - - public function getNonce() - { - return $this->nonce; - } - - public function setReasonCode($reasonCode) - { - $this->reasonCode = $reasonCode; - } - - public function getReasonCode() - { - return $this->reasonCode; - } - - public function setRestricted($restricted) - { - $this->restricted = $restricted; - } - - public function getRestricted() - { - return $this->restricted; - } - - public function setSignature($signature) - { - $this->signature = $signature; - } - - public function getSignature() - { - return $this->signature; - } - - public function setSource($source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } - - public function setTimeWindowSeconds($timeWindowSeconds) - { - $this->timeWindowSeconds = $timeWindowSeconds; - } - - public function getTimeWindowSeconds() - { - return $this->timeWindowSeconds; - } - - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - - public function getVolumeId() - { - return $this->volumeId; - } -} + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } -class Google_Service_Books_Dictlayerdata extends Google_Model -{ - protected $commonType = 'Google_Service_Books_DictlayerdataCommon'; - protected $commonDataType = ''; - protected $dictType = 'Google_Service_Books_DictlayerdataDict'; - protected $dictDataType = ''; - public $kind; - - public function setCommon(Google_Service_Books_DictlayerdataCommon $common) - { - $this->common = $common; - } - - public function getCommon() - { - return $this->common; - } - - public function setDict(Google_Service_Books_DictlayerdataDict $dict) - { - $this->dict = $dict; - } - - public function getDict() - { - return $this->dict; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Books_DictlayerdataCommon extends Google_Model -{ - public $title; +class Google_Service_Books_AnnotationsSummary extends Google_Collection { + public $kind; + protected $layersType = 'Google_Service_Books_AnnotationsSummaryLayers'; + protected $layersDataType = 'array'; - public function setTitle($title) - { - $this->title = $title; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getTitle() - { - return $this->title; - } -} + public function getKind() { + return $this->kind; + } -class Google_Service_Books_DictlayerdataDict extends Google_Collection -{ - protected $sourceType = 'Google_Service_Books_DictlayerdataDictSource'; - protected $sourceDataType = ''; - protected $wordsType = 'Google_Service_Books_DictlayerdataDictWords'; - protected $wordsDataType = 'array'; - - public function setSource(Google_Service_Books_DictlayerdataDictSource $source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } - - public function setWords($words) - { - $this->words = $words; - } - - public function getWords() - { - return $this->words; - } -} + public function setLayers($layers) { + $this->layers = $layers; + } -class Google_Service_Books_DictlayerdataDictSource extends Google_Model -{ - public $attribution; - public $url; - - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - - public function getAttribution() - { - return $this->attribution; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } + public function getLayers() { + return $this->layers; + } } -class Google_Service_Books_DictlayerdataDictWords extends Google_Collection -{ - protected $derivativesType = 'Google_Service_Books_DictlayerdataDictWordsDerivatives'; - protected $derivativesDataType = 'array'; - protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsExamples'; - protected $examplesDataType = 'array'; - protected $sensesType = 'Google_Service_Books_DictlayerdataDictWordsSenses'; - protected $sensesDataType = 'array'; - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSource'; - protected $sourceDataType = ''; - - public function setDerivatives($derivatives) - { - $this->derivatives = $derivatives; - } - - public function getDerivatives() - { - return $this->derivatives; - } - - public function setExamples($examples) - { - $this->examples = $examples; - } - - public function getExamples() - { - return $this->examples; - } - - public function setSenses($senses) - { - $this->senses = $senses; - } - - public function getSenses() - { - return $this->senses; - } - - public function setSource(Google_Service_Books_DictlayerdataDictWordsSource $source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } -} +class Google_Service_Books_AnnotationsSummaryLayers extends Google_Model { + public $allowedCharacterCount; + public $layerId; + public $limitType; + public $remainingCharacterCount; + public $updated; -class Google_Service_Books_DictlayerdataDictWordsDerivatives extends Google_Model -{ - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsDerivativesSource'; - protected $sourceDataType = ''; - public $text; - - public function setSource(Google_Service_Books_DictlayerdataDictWordsDerivativesSource $source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } - - public function setText($text) - { - $this->text = $text; - } - - public function getText() - { - return $this->text; - } -} + public function setAllowedCharacterCount($allowedCharacterCount) { + $this->allowedCharacterCount = $allowedCharacterCount; + } -class Google_Service_Books_DictlayerdataDictWordsDerivativesSource extends Google_Model -{ - public $attribution; - public $url; - - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - - public function getAttribution() - { - return $this->attribution; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } -} + public function getAllowedCharacterCount() { + return $this->allowedCharacterCount; + } -class Google_Service_Books_DictlayerdataDictWordsExamples extends Google_Model -{ - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsExamplesSource'; - protected $sourceDataType = ''; - public $text; - - public function setSource(Google_Service_Books_DictlayerdataDictWordsExamplesSource $source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } - - public function setText($text) - { - $this->text = $text; - } - - public function getText() - { - return $this->text; - } -} + public function setLayerId($layerId) { + $this->layerId = $layerId; + } -class Google_Service_Books_DictlayerdataDictWordsExamplesSource extends Google_Model -{ - public $attribution; - public $url; - - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - - public function getAttribution() - { - return $this->attribution; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } -} + public function getLayerId() { + return $this->layerId; + } -class Google_Service_Books_DictlayerdataDictWordsSenses extends Google_Collection -{ - protected $conjugationsType = 'Google_Service_Books_DictlayerdataDictWordsSensesConjugations'; - protected $conjugationsDataType = 'array'; - protected $definitionsType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitions'; - protected $definitionsDataType = 'array'; - public $partOfSpeech; - public $pronunciation; - public $pronunciationUrl; - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesSource'; - protected $sourceDataType = ''; - public $syllabification; - protected $synonymsType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonyms'; - protected $synonymsDataType = 'array'; - - public function setConjugations($conjugations) - { - $this->conjugations = $conjugations; - } - - public function getConjugations() - { - return $this->conjugations; - } - - public function setDefinitions($definitions) - { - $this->definitions = $definitions; - } - - public function getDefinitions() - { - return $this->definitions; - } - - public function setPartOfSpeech($partOfSpeech) - { - $this->partOfSpeech = $partOfSpeech; - } - - public function getPartOfSpeech() - { - return $this->partOfSpeech; - } - - public function setPronunciation($pronunciation) - { - $this->pronunciation = $pronunciation; - } - - public function getPronunciation() - { - return $this->pronunciation; - } - - public function setPronunciationUrl($pronunciationUrl) - { - $this->pronunciationUrl = $pronunciationUrl; - } - - public function getPronunciationUrl() - { - return $this->pronunciationUrl; - } - - public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSource $source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } - - public function setSyllabification($syllabification) - { - $this->syllabification = $syllabification; - } - - public function getSyllabification() - { - return $this->syllabification; - } - - public function setSynonyms($synonyms) - { - $this->synonyms = $synonyms; - } - - public function getSynonyms() - { - return $this->synonyms; - } -} + public function setLimitType($limitType) { + $this->limitType = $limitType; + } -class Google_Service_Books_DictlayerdataDictWordsSensesConjugations extends Google_Model -{ - public $type; - public $value; - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} + public function getLimitType() { + return $this->limitType; + } + + public function setRemainingCharacterCount($remainingCharacterCount) { + $this->remainingCharacterCount = $remainingCharacterCount; + } -class Google_Service_Books_DictlayerdataDictWordsSensesDefinitions extends Google_Collection -{ - public $definition; - protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples'; - protected $examplesDataType = 'array'; - - public function setDefinition($definition) - { - $this->definition = $definition; - } - - public function getDefinition() - { - return $this->definition; - } - - public function setExamples($examples) - { - $this->examples = $examples; - } - - public function getExamples() - { - return $this->examples; - } + public function getRemainingCharacterCount() { + return $this->remainingCharacterCount; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples extends Google_Model -{ - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource'; - protected $sourceDataType = ''; - public $text; - - public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource $source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } - - public function setText($text) - { - $this->text = $text; - } - - public function getText() - { - return $this->text; - } +class Google_Service_Books_Annotationsdata extends Google_Collection { + protected $itemsType = 'Google_Service_Books_Annotationdata'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $totalItems; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } + + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource extends Google_Model -{ - public $attribution; - public $url; - - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - - public function getAttribution() - { - return $this->attribution; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } +class Google_Service_Books_BooksAnnotationsRange extends Google_Model { + public $endOffset; + public $endPosition; + public $startOffset; + public $startPosition; + + public function setEndOffset($endOffset) { + $this->endOffset = $endOffset; + } + + public function getEndOffset() { + return $this->endOffset; + } + + public function setEndPosition($endPosition) { + $this->endPosition = $endPosition; + } + + public function getEndPosition() { + return $this->endPosition; + } + + public function setStartOffset($startOffset) { + $this->startOffset = $startOffset; + } + + public function getStartOffset() { + return $this->startOffset; + } + + public function setStartPosition($startPosition) { + $this->startPosition = $startPosition; + } + + public function getStartPosition() { + return $this->startPosition; + } } -class Google_Service_Books_DictlayerdataDictWordsSensesSource extends Google_Model -{ - public $attribution; - public $url; - - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - - public function getAttribution() - { - return $this->attribution; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } +class Google_Service_Books_BooksCloudloadingResource extends Google_Model { + public $author; + public $processingState; + public $title; + public $volumeId; + + public function setAuthor($author) { + $this->author = $author; + } + + public function getAuthor() { + return $this->author; + } + + public function setProcessingState($processingState) { + $this->processingState = $processingState; + } + + public function getProcessingState() { + return $this->processingState; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setVolumeId($volumeId) { + $this->volumeId = $volumeId; + } + + public function getVolumeId() { + return $this->volumeId; + } } -class Google_Service_Books_DictlayerdataDictWordsSensesSynonyms extends Google_Model -{ - protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource'; - protected $sourceDataType = ''; - public $text; - - public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource $source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } - - public function setText($text) - { - $this->text = $text; - } - - public function getText() - { - return $this->text; - } +class Google_Service_Books_BooksVolumesRecommendedRateResponse extends Google_Model { + public $consistencyToken; + + public function setConsistencyToken($consistencyToken) { + $this->consistencyToken = $consistencyToken; + } + + public function getConsistencyToken() { + return $this->consistencyToken; + } } -class Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource extends Google_Model -{ - public $attribution; - public $url; - - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - - public function getAttribution() - { - return $this->attribution; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } +class Google_Service_Books_Bookshelf extends Google_Model { + public $access; + public $created; + public $description; + public $id; + public $kind; + public $selfLink; + public $title; + public $updated; + public $volumeCount; + public $volumesLastUpdated; + + public function setAccess($access) { + $this->access = $access; + } + + public function getAccess() { + return $this->access; + } + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setVolumeCount($volumeCount) { + $this->volumeCount = $volumeCount; + } + + public function getVolumeCount() { + return $this->volumeCount; + } + + public function setVolumesLastUpdated($volumesLastUpdated) { + $this->volumesLastUpdated = $volumesLastUpdated; + } + + public function getVolumesLastUpdated() { + return $this->volumesLastUpdated; + } +} + +class Google_Service_Books_Bookshelves extends Google_Collection { + protected $itemsType = 'Google_Service_Books_Bookshelf'; + protected $itemsDataType = 'array'; + public $kind; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model { + public $deviceAllowed; + public $kind; + public $maxConcurrentDevices; + public $message; + public $nonce; + public $reasonCode; + public $restricted; + public $signature; + public $source; + public $timeWindowSeconds; + public $volumeId; + + public function setDeviceAllowed($deviceAllowed) { + $this->deviceAllowed = $deviceAllowed; + } + + public function getDeviceAllowed() { + return $this->deviceAllowed; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMaxConcurrentDevices($maxConcurrentDevices) { + $this->maxConcurrentDevices = $maxConcurrentDevices; + } + + public function getMaxConcurrentDevices() { + return $this->maxConcurrentDevices; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } + + public function setNonce($nonce) { + $this->nonce = $nonce; + } + + public function getNonce() { + return $this->nonce; + } + + public function setReasonCode($reasonCode) { + $this->reasonCode = $reasonCode; + } + + public function getReasonCode() { + return $this->reasonCode; + } + + public function setRestricted($restricted) { + $this->restricted = $restricted; + } + + public function getRestricted() { + return $this->restricted; + } + + public function setSignature($signature) { + $this->signature = $signature; + } + + public function getSignature() { + return $this->signature; + } + + public function setSource($source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } + + public function setTimeWindowSeconds($timeWindowSeconds) { + $this->timeWindowSeconds = $timeWindowSeconds; + } + + public function getTimeWindowSeconds() { + return $this->timeWindowSeconds; + } + + public function setVolumeId($volumeId) { + $this->volumeId = $volumeId; + } + + public function getVolumeId() { + return $this->volumeId; + } +} + +class Google_Service_Books_Dictlayerdata extends Google_Model { + protected $commonType = 'Google_Service_Books_DictlayerdataCommon'; + protected $commonDataType = ''; + protected $dictType = 'Google_Service_Books_DictlayerdataDict'; + protected $dictDataType = ''; + public $kind; + + public function setCommon(Google_Service_Books_DictlayerdataCommon $common) { + $this->common = $common; + } + + public function getCommon() { + return $this->common; + } + + public function setDict(Google_Service_Books_DictlayerdataDict $dict) { + $this->dict = $dict; + } + + public function getDict() { + return $this->dict; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Books_DictlayerdataDictWordsSource extends Google_Model -{ - public $attribution; - public $url; - - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } - - public function getAttribution() - { - return $this->attribution; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } +class Google_Service_Books_DictlayerdataCommon extends Google_Model { + public $title; + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_Books_DownloadAccessRestriction extends Google_Model -{ - public $deviceAllowed; - public $downloadsAcquired; - public $justAcquired; - public $kind; - public $maxDownloadDevices; - public $message; - public $nonce; - public $reasonCode; - public $restricted; - public $signature; - public $source; - public $volumeId; - - public function setDeviceAllowed($deviceAllowed) - { - $this->deviceAllowed = $deviceAllowed; - } - - public function getDeviceAllowed() - { - return $this->deviceAllowed; - } - - public function setDownloadsAcquired($downloadsAcquired) - { - $this->downloadsAcquired = $downloadsAcquired; - } - - public function getDownloadsAcquired() - { - return $this->downloadsAcquired; - } - - public function setJustAcquired($justAcquired) - { - $this->justAcquired = $justAcquired; - } - - public function getJustAcquired() - { - return $this->justAcquired; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMaxDownloadDevices($maxDownloadDevices) - { - $this->maxDownloadDevices = $maxDownloadDevices; - } - - public function getMaxDownloadDevices() - { - return $this->maxDownloadDevices; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } - - public function setNonce($nonce) - { - $this->nonce = $nonce; - } - - public function getNonce() - { - return $this->nonce; - } - - public function setReasonCode($reasonCode) - { - $this->reasonCode = $reasonCode; - } - - public function getReasonCode() - { - return $this->reasonCode; - } - - public function setRestricted($restricted) - { - $this->restricted = $restricted; - } - - public function getRestricted() - { - return $this->restricted; - } - - public function setSignature($signature) - { - $this->signature = $signature; - } - - public function getSignature() - { - return $this->signature; - } - - public function setSource($source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } - - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - - public function getVolumeId() - { - return $this->volumeId; - } +class Google_Service_Books_DictlayerdataDict extends Google_Collection { + protected $sourceType = 'Google_Service_Books_DictlayerdataDictSource'; + protected $sourceDataType = ''; + protected $wordsType = 'Google_Service_Books_DictlayerdataDictWords'; + protected $wordsDataType = 'array'; + + public function setSource(Google_Service_Books_DictlayerdataDictSource $source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } + + public function setWords($words) { + $this->words = $words; + } + + public function getWords() { + return $this->words; + } } -class Google_Service_Books_DownloadAccesses extends Google_Collection -{ - protected $downloadAccessListType = 'Google_Service_Books_DownloadAccessRestriction'; - protected $downloadAccessListDataType = 'array'; - public $kind; - - public function setDownloadAccessList($downloadAccessList) - { - $this->downloadAccessList = $downloadAccessList; - } - - public function getDownloadAccessList() - { - return $this->downloadAccessList; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Books_DictlayerdataDictSource extends Google_Model { + public $attribution; + public $url; + + public function setAttribution($attribution) { + $this->attribution = $attribution; + } + + public function getAttribution() { + return $this->attribution; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } } -class Google_Service_Books_Geolayerdata extends Google_Model -{ - protected $commonType = 'Google_Service_Books_GeolayerdataCommon'; - protected $commonDataType = ''; - protected $geoType = 'Google_Service_Books_GeolayerdataGeo'; - protected $geoDataType = ''; - public $kind; - - public function setCommon(Google_Service_Books_GeolayerdataCommon $common) - { - $this->common = $common; - } - - public function getCommon() - { - return $this->common; - } - - public function setGeo(Google_Service_Books_GeolayerdataGeo $geo) - { - $this->geo = $geo; - } - - public function getGeo() - { - return $this->geo; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Books_DictlayerdataDictWords extends Google_Collection { + protected $derivativesType = 'Google_Service_Books_DictlayerdataDictWordsDerivatives'; + protected $derivativesDataType = 'array'; + protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsExamples'; + protected $examplesDataType = 'array'; + protected $sensesType = 'Google_Service_Books_DictlayerdataDictWordsSenses'; + protected $sensesDataType = 'array'; + protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSource'; + protected $sourceDataType = ''; + + public function setDerivatives($derivatives) { + $this->derivatives = $derivatives; + } + + public function getDerivatives() { + return $this->derivatives; + } + + public function setExamples($examples) { + $this->examples = $examples; + } + + public function getExamples() { + return $this->examples; + } + + public function setSenses($senses) { + $this->senses = $senses; + } + + public function getSenses() { + return $this->senses; + } + + public function setSource(Google_Service_Books_DictlayerdataDictWordsSource $source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } } -class Google_Service_Books_GeolayerdataCommon extends Google_Model -{ - public $lang; - public $previewImageUrl; - public $snippet; - public $snippetUrl; - public $title; - - public function setLang($lang) - { - $this->lang = $lang; - } - - public function getLang() - { - return $this->lang; - } - - public function setPreviewImageUrl($previewImageUrl) - { - $this->previewImageUrl = $previewImageUrl; - } - - public function getPreviewImageUrl() - { - return $this->previewImageUrl; - } - - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } - - public function setSnippetUrl($snippetUrl) - { - $this->snippetUrl = $snippetUrl; - } - - public function getSnippetUrl() - { - return $this->snippetUrl; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_Books_DictlayerdataDictWordsDerivatives extends Google_Model { + protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsDerivativesSource'; + protected $sourceDataType = ''; + public $text; + + public function setSource(Google_Service_Books_DictlayerdataDictWordsDerivativesSource $source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } + + public function setText($text) { + $this->text = $text; + } + + public function getText() { + return $this->text; + } } -class Google_Service_Books_GeolayerdataGeo extends Google_Collection -{ - protected $boundaryType = 'Google_Service_Books_GeolayerdataGeoBoundary'; - protected $boundaryDataType = 'array'; - public $cachePolicy; - public $countryCode; - public $latitude; - public $longitude; - public $mapType; - protected $viewportType = 'Google_Service_Books_GeolayerdataGeoViewport'; - protected $viewportDataType = ''; - public $zoom; - - public function setBoundary($boundary) - { - $this->boundary = $boundary; - } - - public function getBoundary() - { - return $this->boundary; - } - - public function setCachePolicy($cachePolicy) - { - $this->cachePolicy = $cachePolicy; - } - - public function getCachePolicy() - { - return $this->cachePolicy; - } - - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } - - public function getCountryCode() - { - return $this->countryCode; - } - - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - - public function getLatitude() - { - return $this->latitude; - } - - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - - public function getLongitude() - { - return $this->longitude; - } - - public function setMapType($mapType) - { - $this->mapType = $mapType; - } - - public function getMapType() - { - return $this->mapType; - } - - public function setViewport(Google_Service_Books_GeolayerdataGeoViewport $viewport) - { - $this->viewport = $viewport; - } - - public function getViewport() - { - return $this->viewport; - } - - public function setZoom($zoom) - { - $this->zoom = $zoom; - } - - public function getZoom() - { - return $this->zoom; - } +class Google_Service_Books_DictlayerdataDictWordsDerivativesSource extends Google_Model { + public $attribution; + public $url; + + public function setAttribution($attribution) { + $this->attribution = $attribution; + } + + public function getAttribution() { + return $this->attribution; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } } -class Google_Service_Books_GeolayerdataGeoBoundary extends Google_Model -{ - public $latitude; - public $longitude; - - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - - public function getLatitude() - { - return $this->latitude; - } - - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - - public function getLongitude() - { - return $this->longitude; - } +class Google_Service_Books_DictlayerdataDictWordsExamples extends Google_Model { + protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsExamplesSource'; + protected $sourceDataType = ''; + public $text; + + public function setSource(Google_Service_Books_DictlayerdataDictWordsExamplesSource $source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } + + public function setText($text) { + $this->text = $text; + } + + public function getText() { + return $this->text; + } } -class Google_Service_Books_GeolayerdataGeoViewport extends Google_Model -{ - protected $hiType = 'Google_Service_Books_GeolayerdataGeoViewportHi'; - protected $hiDataType = ''; - protected $loType = 'Google_Service_Books_GeolayerdataGeoViewportLo'; - protected $loDataType = ''; - - public function setHi(Google_Service_Books_GeolayerdataGeoViewportHi $hi) - { - $this->hi = $hi; - } - - public function getHi() - { - return $this->hi; - } - - public function setLo(Google_Service_Books_GeolayerdataGeoViewportLo $lo) - { - $this->lo = $lo; - } - - public function getLo() - { - return $this->lo; - } +class Google_Service_Books_DictlayerdataDictWordsExamplesSource extends Google_Model { + public $attribution; + public $url; + + public function setAttribution($attribution) { + $this->attribution = $attribution; + } + + public function getAttribution() { + return $this->attribution; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } } -class Google_Service_Books_GeolayerdataGeoViewportHi extends Google_Model -{ - public $latitude; - public $longitude; - - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - - public function getLatitude() - { - return $this->latitude; - } - - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - - public function getLongitude() - { - return $this->longitude; - } +class Google_Service_Books_DictlayerdataDictWordsSenses extends Google_Collection { + protected $conjugationsType = 'Google_Service_Books_DictlayerdataDictWordsSensesConjugations'; + protected $conjugationsDataType = 'array'; + protected $definitionsType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitions'; + protected $definitionsDataType = 'array'; + public $partOfSpeech; + public $pronunciation; + public $pronunciationUrl; + protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesSource'; + protected $sourceDataType = ''; + public $syllabification; + protected $synonymsType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonyms'; + protected $synonymsDataType = 'array'; + + public function setConjugations($conjugations) { + $this->conjugations = $conjugations; + } + + public function getConjugations() { + return $this->conjugations; + } + + public function setDefinitions($definitions) { + $this->definitions = $definitions; + } + + public function getDefinitions() { + return $this->definitions; + } + + public function setPartOfSpeech($partOfSpeech) { + $this->partOfSpeech = $partOfSpeech; + } + + public function getPartOfSpeech() { + return $this->partOfSpeech; + } + + public function setPronunciation($pronunciation) { + $this->pronunciation = $pronunciation; + } + + public function getPronunciation() { + return $this->pronunciation; + } + + public function setPronunciationUrl($pronunciationUrl) { + $this->pronunciationUrl = $pronunciationUrl; + } + + public function getPronunciationUrl() { + return $this->pronunciationUrl; + } + + public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSource $source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } + + public function setSyllabification($syllabification) { + $this->syllabification = $syllabification; + } + + public function getSyllabification() { + return $this->syllabification; + } + + public function setSynonyms($synonyms) { + $this->synonyms = $synonyms; + } + + public function getSynonyms() { + return $this->synonyms; + } } -class Google_Service_Books_GeolayerdataGeoViewportLo extends Google_Model -{ - public $latitude; - public $longitude; - - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - - public function getLatitude() - { - return $this->latitude; - } - - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - - public function getLongitude() - { - return $this->longitude; - } +class Google_Service_Books_DictlayerdataDictWordsSensesConjugations extends Google_Model { + public $type; + public $value; + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } } -class Google_Service_Books_Layersummaries extends Google_Collection -{ - protected $itemsType = 'Google_Service_Books_Layersummary'; - protected $itemsDataType = 'array'; - public $kind; - public $totalItems; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - - public function getTotalItems() - { - return $this->totalItems; - } +class Google_Service_Books_DictlayerdataDictWordsSensesDefinitions extends Google_Collection { + public $definition; + protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples'; + protected $examplesDataType = 'array'; + + public function setDefinition($definition) { + $this->definition = $definition; + } + + public function getDefinition() { + return $this->definition; + } + + public function setExamples($examples) { + $this->examples = $examples; + } + + public function getExamples() { + return $this->examples; + } } -class Google_Service_Books_Layersummary extends Google_Collection -{ - public $annotationCount; - public $annotationTypes; - public $annotationsDataLink; - public $annotationsLink; - public $contentVersion; - public $dataCount; - public $id; - public $kind; - public $layerId; - public $selfLink; - public $updated; - public $volumeAnnotationsVersion; - public $volumeId; - - public function setAnnotationCount($annotationCount) - { - $this->annotationCount = $annotationCount; - } - - public function getAnnotationCount() - { - return $this->annotationCount; - } - - public function setAnnotationTypes($annotationTypes) - { - $this->annotationTypes = $annotationTypes; - } - - public function getAnnotationTypes() - { - return $this->annotationTypes; - } - - public function setAnnotationsDataLink($annotationsDataLink) - { - $this->annotationsDataLink = $annotationsDataLink; - } - - public function getAnnotationsDataLink() - { - return $this->annotationsDataLink; - } - - public function setAnnotationsLink($annotationsLink) - { - $this->annotationsLink = $annotationsLink; - } - - public function getAnnotationsLink() - { - return $this->annotationsLink; - } - - public function setContentVersion($contentVersion) - { - $this->contentVersion = $contentVersion; - } - - public function getContentVersion() - { - return $this->contentVersion; - } - - public function setDataCount($dataCount) - { - $this->dataCount = $dataCount; - } - - public function getDataCount() - { - return $this->dataCount; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLayerId($layerId) - { - $this->layerId = $layerId; - } - - public function getLayerId() - { - return $this->layerId; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setVolumeAnnotationsVersion($volumeAnnotationsVersion) - { - $this->volumeAnnotationsVersion = $volumeAnnotationsVersion; - } - - public function getVolumeAnnotationsVersion() - { - return $this->volumeAnnotationsVersion; - } - - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - - public function getVolumeId() - { - return $this->volumeId; - } +class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples extends Google_Model { + protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource'; + protected $sourceDataType = ''; + public $text; + + public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource $source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } + + public function setText($text) { + $this->text = $text; + } + + public function getText() { + return $this->text; + } } -class Google_Service_Books_Offers extends Google_Collection -{ - protected $itemsType = 'Google_Service_Books_OffersItems'; - protected $itemsDataType = 'array'; - public $kind; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource extends Google_Model { + public $attribution; + public $url; + + public function setAttribution($attribution) { + $this->attribution = $attribution; + } + + public function getAttribution() { + return $this->attribution; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } } -class Google_Service_Books_OffersItems extends Google_Collection -{ - public $artUrl; - public $id; - protected $itemsType = 'Google_Service_Books_OffersItemsItems'; - protected $itemsDataType = 'array'; - - public function setArtUrl($artUrl) - { - $this->artUrl = $artUrl; - } - - public function getArtUrl() - { - return $this->artUrl; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } +class Google_Service_Books_DictlayerdataDictWordsSensesSource extends Google_Model { + public $attribution; + public $url; + + public function setAttribution($attribution) { + $this->attribution = $attribution; + } + + public function getAttribution() { + return $this->attribution; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } } -class Google_Service_Books_OffersItemsItems extends Google_Model -{ - public $author; - public $canonicalVolumeLink; - public $coverUrl; - public $description; - public $title; - public $volumeId; - - public function setAuthor($author) - { - $this->author = $author; - } - - public function getAuthor() - { - return $this->author; - } - - public function setCanonicalVolumeLink($canonicalVolumeLink) - { - $this->canonicalVolumeLink = $canonicalVolumeLink; - } - - public function getCanonicalVolumeLink() - { - return $this->canonicalVolumeLink; - } - - public function setCoverUrl($coverUrl) - { - $this->coverUrl = $coverUrl; - } - - public function getCoverUrl() - { - return $this->coverUrl; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - - public function getVolumeId() - { - return $this->volumeId; - } +class Google_Service_Books_DictlayerdataDictWordsSensesSynonyms extends Google_Model { + protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource'; + protected $sourceDataType = ''; + public $text; + + public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource $source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } + + public function setText($text) { + $this->text = $text; + } + + public function getText() { + return $this->text; + } } -class Google_Service_Books_ReadingPosition extends Google_Model -{ - public $epubCfiPosition; - public $gbImagePosition; - public $gbTextPosition; - public $kind; - public $pdfPosition; - public $updated; - public $volumeId; - - public function setEpubCfiPosition($epubCfiPosition) - { - $this->epubCfiPosition = $epubCfiPosition; - } - - public function getEpubCfiPosition() - { - return $this->epubCfiPosition; - } - - public function setGbImagePosition($gbImagePosition) - { - $this->gbImagePosition = $gbImagePosition; - } - - public function getGbImagePosition() - { - return $this->gbImagePosition; - } - - public function setGbTextPosition($gbTextPosition) - { - $this->gbTextPosition = $gbTextPosition; - } - - public function getGbTextPosition() - { - return $this->gbTextPosition; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPdfPosition($pdfPosition) - { - $this->pdfPosition = $pdfPosition; - } - - public function getPdfPosition() - { - return $this->pdfPosition; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - - public function getVolumeId() - { - return $this->volumeId; - } +class Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource extends Google_Model { + public $attribution; + public $url; + + public function setAttribution($attribution) { + $this->attribution = $attribution; + } + + public function getAttribution() { + return $this->attribution; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } } -class Google_Service_Books_RequestAccess extends Google_Model -{ - protected $concurrentAccessType = 'Google_Service_Books_ConcurrentAccessRestriction'; - protected $concurrentAccessDataType = ''; - protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction'; - protected $downloadAccessDataType = ''; - public $kind; - - public function setConcurrentAccess(Google_Service_Books_ConcurrentAccessRestriction $concurrentAccess) - { - $this->concurrentAccess = $concurrentAccess; - } - - public function getConcurrentAccess() - { - return $this->concurrentAccess; - } - - public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess) - { - $this->downloadAccess = $downloadAccess; - } - - public function getDownloadAccess() - { - return $this->downloadAccess; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Books_DictlayerdataDictWordsSource extends Google_Model { + public $attribution; + public $url; + + public function setAttribution($attribution) { + $this->attribution = $attribution; + } + + public function getAttribution() { + return $this->attribution; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } } -class Google_Service_Books_Review extends Google_Model -{ - protected $authorType = 'Google_Service_Books_ReviewAuthor'; - protected $authorDataType = ''; - public $content; - public $date; - public $fullTextUrl; - public $kind; - public $rating; - protected $sourceType = 'Google_Service_Books_ReviewSource'; - protected $sourceDataType = ''; - public $title; - public $type; - public $volumeId; - - public function setAuthor(Google_Service_Books_ReviewAuthor $author) - { - $this->author = $author; - } - - public function getAuthor() - { - return $this->author; - } - - public function setContent($content) - { - $this->content = $content; - } - - public function getContent() - { - return $this->content; - } - - public function setDate($date) - { - $this->date = $date; - } - - public function getDate() - { - return $this->date; - } - - public function setFullTextUrl($fullTextUrl) - { - $this->fullTextUrl = $fullTextUrl; - } - - public function getFullTextUrl() - { - return $this->fullTextUrl; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setRating($rating) - { - $this->rating = $rating; - } - - public function getRating() - { - return $this->rating; - } - - public function setSource(Google_Service_Books_ReviewSource $source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - - public function getVolumeId() - { - return $this->volumeId; - } +class Google_Service_Books_DownloadAccessRestriction extends Google_Model { + public $deviceAllowed; + public $downloadsAcquired; + public $justAcquired; + public $kind; + public $maxDownloadDevices; + public $message; + public $nonce; + public $reasonCode; + public $restricted; + public $signature; + public $source; + public $volumeId; + + public function setDeviceAllowed($deviceAllowed) { + $this->deviceAllowed = $deviceAllowed; + } + + public function getDeviceAllowed() { + return $this->deviceAllowed; + } + + public function setDownloadsAcquired($downloadsAcquired) { + $this->downloadsAcquired = $downloadsAcquired; + } + + public function getDownloadsAcquired() { + return $this->downloadsAcquired; + } + + public function setJustAcquired($justAcquired) { + $this->justAcquired = $justAcquired; + } + + public function getJustAcquired() { + return $this->justAcquired; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMaxDownloadDevices($maxDownloadDevices) { + $this->maxDownloadDevices = $maxDownloadDevices; + } + + public function getMaxDownloadDevices() { + return $this->maxDownloadDevices; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } + + public function setNonce($nonce) { + $this->nonce = $nonce; + } + + public function getNonce() { + return $this->nonce; + } + + public function setReasonCode($reasonCode) { + $this->reasonCode = $reasonCode; + } + + public function getReasonCode() { + return $this->reasonCode; + } + + public function setRestricted($restricted) { + $this->restricted = $restricted; + } + + public function getRestricted() { + return $this->restricted; + } + + public function setSignature($signature) { + $this->signature = $signature; + } + + public function getSignature() { + return $this->signature; + } + + public function setSource($source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } + + public function setVolumeId($volumeId) { + $this->volumeId = $volumeId; + } + + public function getVolumeId() { + return $this->volumeId; + } } -class Google_Service_Books_ReviewAuthor extends Google_Model -{ - public $displayName; +class Google_Service_Books_DownloadAccesses extends Google_Collection { + protected $downloadAccessListType = 'Google_Service_Books_DownloadAccessRestriction'; + protected $downloadAccessListDataType = 'array'; + public $kind; + + public function setDownloadAccessList($downloadAccessList) { + $this->downloadAccessList = $downloadAccessList; + } + + public function getDownloadAccessList() { + return $this->downloadAccessList; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_Books_Geolayerdata extends Google_Model { + protected $commonType = 'Google_Service_Books_GeolayerdataCommon'; + protected $commonDataType = ''; + protected $geoType = 'Google_Service_Books_GeolayerdataGeo'; + protected $geoDataType = ''; + public $kind; + + public function setCommon(Google_Service_Books_GeolayerdataCommon $common) { + $this->common = $common; + } + + public function getCommon() { + return $this->common; + } + + public function setGeo(Google_Service_Books_GeolayerdataGeo $geo) { + $this->geo = $geo; + } + + public function getGeo() { + return $this->geo; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_Books_GeolayerdataCommon extends Google_Model { + public $lang; + public $previewImageUrl; + public $snippet; + public $snippetUrl; + public $title; + + public function setLang($lang) { + $this->lang = $lang; + } + + public function getLang() { + return $this->lang; + } + + public function setPreviewImageUrl($previewImageUrl) { + $this->previewImageUrl = $previewImageUrl; + } + + public function getPreviewImageUrl() { + return $this->previewImageUrl; + } + + public function setSnippet($snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setSnippetUrl($snippetUrl) { + $this->snippetUrl = $snippetUrl; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getSnippetUrl() { + return $this->snippetUrl; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_Books_ReviewSource extends Google_Model -{ - public $description; - public $extraDescription; - public $url; - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setExtraDescription($extraDescription) - { - $this->extraDescription = $extraDescription; - } - - public function getExtraDescription() - { - return $this->extraDescription; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } +class Google_Service_Books_GeolayerdataGeo extends Google_Collection { + protected $boundaryType = 'Google_Service_Books_GeolayerdataGeoBoundary'; + protected $boundaryDataType = 'array'; + public $cachePolicy; + public $countryCode; + public $latitude; + public $longitude; + public $mapType; + protected $viewportType = 'Google_Service_Books_GeolayerdataGeoViewport'; + protected $viewportDataType = ''; + public $zoom; + + public function setBoundary($boundary) { + $this->boundary = $boundary; + } + + public function getBoundary() { + return $this->boundary; + } + + public function setCachePolicy($cachePolicy) { + $this->cachePolicy = $cachePolicy; + } + + public function getCachePolicy() { + return $this->cachePolicy; + } + + public function setCountryCode($countryCode) { + $this->countryCode = $countryCode; + } + + public function getCountryCode() { + return $this->countryCode; + } + + public function setLatitude($latitude) { + $this->latitude = $latitude; + } + + public function getLatitude() { + return $this->latitude; + } + + public function setLongitude($longitude) { + $this->longitude = $longitude; + } + + public function getLongitude() { + return $this->longitude; + } + + public function setMapType($mapType) { + $this->mapType = $mapType; + } + + public function getMapType() { + return $this->mapType; + } + + public function setViewport(Google_Service_Books_GeolayerdataGeoViewport $viewport) { + $this->viewport = $viewport; + } + + public function getViewport() { + return $this->viewport; + } + + public function setZoom($zoom) { + $this->zoom = $zoom; + } + + public function getZoom() { + return $this->zoom; + } } -class Google_Service_Books_Volume extends Google_Model -{ - protected $accessInfoType = 'Google_Service_Books_VolumeAccessInfo'; - protected $accessInfoDataType = ''; - public $etag; - public $id; - public $kind; - protected $layerInfoType = 'Google_Service_Books_VolumeLayerInfo'; - protected $layerInfoDataType = ''; - protected $recommendedInfoType = 'Google_Service_Books_VolumeRecommendedInfo'; - protected $recommendedInfoDataType = ''; - protected $saleInfoType = 'Google_Service_Books_VolumeSaleInfo'; - protected $saleInfoDataType = ''; - protected $searchInfoType = 'Google_Service_Books_VolumeSearchInfo'; - protected $searchInfoDataType = ''; - public $selfLink; - protected $userInfoType = 'Google_Service_Books_VolumeUserInfo'; - protected $userInfoDataType = ''; - protected $volumeInfoType = 'Google_Service_Books_VolumeVolumeInfo'; - protected $volumeInfoDataType = ''; - - public function setAccessInfo(Google_Service_Books_VolumeAccessInfo $accessInfo) - { - $this->accessInfo = $accessInfo; - } - - public function getAccessInfo() - { - return $this->accessInfo; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLayerInfo(Google_Service_Books_VolumeLayerInfo $layerInfo) - { - $this->layerInfo = $layerInfo; - } - - public function getLayerInfo() - { - return $this->layerInfo; - } - - public function setRecommendedInfo(Google_Service_Books_VolumeRecommendedInfo $recommendedInfo) - { - $this->recommendedInfo = $recommendedInfo; - } - - public function getRecommendedInfo() - { - return $this->recommendedInfo; - } - - public function setSaleInfo(Google_Service_Books_VolumeSaleInfo $saleInfo) - { - $this->saleInfo = $saleInfo; - } - - public function getSaleInfo() - { - return $this->saleInfo; - } - - public function setSearchInfo(Google_Service_Books_VolumeSearchInfo $searchInfo) - { - $this->searchInfo = $searchInfo; - } - - public function getSearchInfo() - { - return $this->searchInfo; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setUserInfo(Google_Service_Books_VolumeUserInfo $userInfo) - { - $this->userInfo = $userInfo; - } - - public function getUserInfo() - { - return $this->userInfo; - } - - public function setVolumeInfo(Google_Service_Books_VolumeVolumeInfo $volumeInfo) - { - $this->volumeInfo = $volumeInfo; - } - - public function getVolumeInfo() - { - return $this->volumeInfo; - } +class Google_Service_Books_GeolayerdataGeoBoundary extends Google_Model { + public $latitude; + public $longitude; + + public function setLatitude($latitude) { + $this->latitude = $latitude; + } + + public function getLatitude() { + return $this->latitude; + } + + public function setLongitude($longitude) { + $this->longitude = $longitude; + } + + public function getLongitude() { + return $this->longitude; + } } -class Google_Service_Books_VolumeAccessInfo extends Google_Model -{ - public $accessViewStatus; - public $country; - protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction'; - protected $downloadAccessDataType = ''; - public $driveImportedContentLink; - public $embeddable; - protected $epubType = 'Google_Service_Books_VolumeAccessInfoEpub'; - protected $epubDataType = ''; - public $explicitOfflineLicenseManagement; - protected $pdfType = 'Google_Service_Books_VolumeAccessInfoPdf'; - protected $pdfDataType = ''; - public $publicDomain; - public $quoteSharingAllowed; - public $textToSpeechPermission; - public $viewOrderUrl; - public $viewability; - public $webReaderLink; - - public function setAccessViewStatus($accessViewStatus) - { - $this->accessViewStatus = $accessViewStatus; - } - - public function getAccessViewStatus() - { - return $this->accessViewStatus; - } - - public function setCountry($country) - { - $this->country = $country; - } - - public function getCountry() - { - return $this->country; - } - - public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess) - { - $this->downloadAccess = $downloadAccess; - } - - public function getDownloadAccess() - { - return $this->downloadAccess; - } - - public function setDriveImportedContentLink($driveImportedContentLink) - { - $this->driveImportedContentLink = $driveImportedContentLink; - } - - public function getDriveImportedContentLink() - { - return $this->driveImportedContentLink; - } - - public function setEmbeddable($embeddable) - { - $this->embeddable = $embeddable; - } - - public function getEmbeddable() - { - return $this->embeddable; - } - - public function setEpub(Google_Service_Books_VolumeAccessInfoEpub $epub) - { - $this->epub = $epub; - } - - public function getEpub() - { - return $this->epub; - } - - public function setExplicitOfflineLicenseManagement($explicitOfflineLicenseManagement) - { - $this->explicitOfflineLicenseManagement = $explicitOfflineLicenseManagement; - } - - public function getExplicitOfflineLicenseManagement() - { - return $this->explicitOfflineLicenseManagement; - } - - public function setPdf(Google_Service_Books_VolumeAccessInfoPdf $pdf) - { - $this->pdf = $pdf; - } - - public function getPdf() - { - return $this->pdf; - } - - public function setPublicDomain($publicDomain) - { - $this->publicDomain = $publicDomain; - } - - public function getPublicDomain() - { - return $this->publicDomain; - } - - public function setQuoteSharingAllowed($quoteSharingAllowed) - { - $this->quoteSharingAllowed = $quoteSharingAllowed; - } - - public function getQuoteSharingAllowed() - { - return $this->quoteSharingAllowed; - } - - public function setTextToSpeechPermission($textToSpeechPermission) - { - $this->textToSpeechPermission = $textToSpeechPermission; - } - - public function getTextToSpeechPermission() - { - return $this->textToSpeechPermission; - } - - public function setViewOrderUrl($viewOrderUrl) - { - $this->viewOrderUrl = $viewOrderUrl; - } - - public function getViewOrderUrl() - { - return $this->viewOrderUrl; - } - - public function setViewability($viewability) - { - $this->viewability = $viewability; - } - - public function getViewability() - { - return $this->viewability; - } - - public function setWebReaderLink($webReaderLink) - { - $this->webReaderLink = $webReaderLink; - } - - public function getWebReaderLink() - { - return $this->webReaderLink; - } +class Google_Service_Books_GeolayerdataGeoViewport extends Google_Model { + protected $hiType = 'Google_Service_Books_GeolayerdataGeoViewportHi'; + protected $hiDataType = ''; + protected $loType = 'Google_Service_Books_GeolayerdataGeoViewportLo'; + protected $loDataType = ''; + + public function setHi(Google_Service_Books_GeolayerdataGeoViewportHi $hi) { + $this->hi = $hi; + } + + public function getHi() { + return $this->hi; + } + + public function setLo(Google_Service_Books_GeolayerdataGeoViewportLo $lo) { + $this->lo = $lo; + } + + public function getLo() { + return $this->lo; + } } -class Google_Service_Books_VolumeAccessInfoEpub extends Google_Model -{ - public $acsTokenLink; - public $downloadLink; - public $isAvailable; - - public function setAcsTokenLink($acsTokenLink) - { - $this->acsTokenLink = $acsTokenLink; - } - - public function getAcsTokenLink() - { - return $this->acsTokenLink; - } - - public function setDownloadLink($downloadLink) - { - $this->downloadLink = $downloadLink; - } - - public function getDownloadLink() - { - return $this->downloadLink; - } - - public function setIsAvailable($isAvailable) - { - $this->isAvailable = $isAvailable; - } - - public function getIsAvailable() - { - return $this->isAvailable; - } +class Google_Service_Books_GeolayerdataGeoViewportHi extends Google_Model { + public $latitude; + public $longitude; + + public function setLatitude($latitude) { + $this->latitude = $latitude; + } + + public function getLatitude() { + return $this->latitude; + } + + public function setLongitude($longitude) { + $this->longitude = $longitude; + } + + public function getLongitude() { + return $this->longitude; + } } -class Google_Service_Books_VolumeAccessInfoPdf extends Google_Model -{ - public $acsTokenLink; - public $downloadLink; - public $isAvailable; - - public function setAcsTokenLink($acsTokenLink) - { - $this->acsTokenLink = $acsTokenLink; - } - - public function getAcsTokenLink() - { - return $this->acsTokenLink; - } - - public function setDownloadLink($downloadLink) - { - $this->downloadLink = $downloadLink; - } - - public function getDownloadLink() - { - return $this->downloadLink; - } - - public function setIsAvailable($isAvailable) - { - $this->isAvailable = $isAvailable; - } - - public function getIsAvailable() - { - return $this->isAvailable; - } +class Google_Service_Books_GeolayerdataGeoViewportLo extends Google_Model { + public $latitude; + public $longitude; + + public function setLatitude($latitude) { + $this->latitude = $latitude; + } + + public function getLatitude() { + return $this->latitude; + } + + public function setLongitude($longitude) { + $this->longitude = $longitude; + } + + public function getLongitude() { + return $this->longitude; + } } -class Google_Service_Books_VolumeLayerInfo extends Google_Collection -{ - protected $layersType = 'Google_Service_Books_VolumeLayerInfoLayers'; - protected $layersDataType = 'array'; +class Google_Service_Books_Layersummaries extends Google_Collection { + protected $itemsType = 'Google_Service_Books_Layersummary'; + protected $itemsDataType = 'array'; + public $kind; + public $totalItems; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } - public function setLayers($layers) - { - $this->layers = $layers; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getLayers() - { - return $this->layers; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Books_VolumeLayerInfoLayers extends Google_Model -{ - public $layerId; - public $volumeAnnotationsVersion; - - public function setLayerId($layerId) - { - $this->layerId = $layerId; - } - - public function getLayerId() - { - return $this->layerId; - } - - public function setVolumeAnnotationsVersion($volumeAnnotationsVersion) - { - $this->volumeAnnotationsVersion = $volumeAnnotationsVersion; - } - - public function getVolumeAnnotationsVersion() - { - return $this->volumeAnnotationsVersion; - } +class Google_Service_Books_Layersummary extends Google_Collection { + public $annotationCount; + public $annotationTypes; + public $annotationsDataLink; + public $annotationsLink; + public $contentVersion; + public $dataCount; + public $id; + public $kind; + public $layerId; + public $selfLink; + public $updated; + public $volumeAnnotationsVersion; + public $volumeId; + + public function setAnnotationCount($annotationCount) { + $this->annotationCount = $annotationCount; + } + + public function getAnnotationCount() { + return $this->annotationCount; + } + + public function setAnnotationTypes($annotationTypes) { + $this->annotationTypes = $annotationTypes; + } + + public function getAnnotationTypes() { + return $this->annotationTypes; + } + + public function setAnnotationsDataLink($annotationsDataLink) { + $this->annotationsDataLink = $annotationsDataLink; + } + + public function getAnnotationsDataLink() { + return $this->annotationsDataLink; + } + + public function setAnnotationsLink($annotationsLink) { + $this->annotationsLink = $annotationsLink; + } + + public function getAnnotationsLink() { + return $this->annotationsLink; + } + + public function setContentVersion($contentVersion) { + $this->contentVersion = $contentVersion; + } + + public function getContentVersion() { + return $this->contentVersion; + } + + public function setDataCount($dataCount) { + $this->dataCount = $dataCount; + } + + public function getDataCount() { + return $this->dataCount; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLayerId($layerId) { + $this->layerId = $layerId; + } + + public function getLayerId() { + return $this->layerId; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setVolumeAnnotationsVersion($volumeAnnotationsVersion) { + $this->volumeAnnotationsVersion = $volumeAnnotationsVersion; + } + + public function getVolumeAnnotationsVersion() { + return $this->volumeAnnotationsVersion; + } + + public function setVolumeId($volumeId) { + $this->volumeId = $volumeId; + } + + public function getVolumeId() { + return $this->volumeId; + } } -class Google_Service_Books_VolumeRecommendedInfo extends Google_Model -{ - public $explanation; +class Google_Service_Books_Offers extends Google_Collection { + protected $itemsType = 'Google_Service_Books_OffersItems'; + protected $itemsDataType = 'array'; + public $kind; - public function setExplanation($explanation) - { - $this->explanation = $explanation; - } + public function setItems($items) { + $this->items = $items; + } - public function getExplanation() - { - return $this->explanation; - } + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Books_VolumeSaleInfo extends Google_Collection -{ - public $buyLink; - public $country; - public $isEbook; - protected $listPriceType = 'Google_Service_Books_VolumeSaleInfoListPrice'; - protected $listPriceDataType = ''; - protected $offersType = 'Google_Service_Books_VolumeSaleInfoOffers'; - protected $offersDataType = 'array'; - public $onSaleDate; - protected $retailPriceType = 'Google_Service_Books_VolumeSaleInfoRetailPrice'; - protected $retailPriceDataType = ''; - public $saleability; - - public function setBuyLink($buyLink) - { - $this->buyLink = $buyLink; - } - - public function getBuyLink() - { - return $this->buyLink; - } - - public function setCountry($country) - { - $this->country = $country; - } - - public function getCountry() - { - return $this->country; - } - - public function setIsEbook($isEbook) - { - $this->isEbook = $isEbook; - } - - public function getIsEbook() - { - return $this->isEbook; - } - - public function setListPrice(Google_Service_Books_VolumeSaleInfoListPrice $listPrice) - { - $this->listPrice = $listPrice; - } - - public function getListPrice() - { - return $this->listPrice; - } - - public function setOffers($offers) - { - $this->offers = $offers; - } - - public function getOffers() - { - return $this->offers; - } - - public function setOnSaleDate($onSaleDate) - { - $this->onSaleDate = $onSaleDate; - } - - public function getOnSaleDate() - { - return $this->onSaleDate; - } - - public function setRetailPrice(Google_Service_Books_VolumeSaleInfoRetailPrice $retailPrice) - { - $this->retailPrice = $retailPrice; - } - - public function getRetailPrice() - { - return $this->retailPrice; - } - - public function setSaleability($saleability) - { - $this->saleability = $saleability; - } - - public function getSaleability() - { - return $this->saleability; - } +class Google_Service_Books_OffersItems extends Google_Collection { + public $artUrl; + public $id; + protected $itemsType = 'Google_Service_Books_OffersItemsItems'; + protected $itemsDataType = 'array'; + + public function setArtUrl($artUrl) { + $this->artUrl = $artUrl; + } + + public function getArtUrl() { + return $this->artUrl; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } } -class Google_Service_Books_VolumeSaleInfoListPrice extends Google_Model -{ - public $amount; - public $currencyCode; - - public function setAmount($amount) - { - $this->amount = $amount; - } - - public function getAmount() - { - return $this->amount; - } - - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - - public function getCurrencyCode() - { - return $this->currencyCode; - } +class Google_Service_Books_OffersItemsItems extends Google_Model { + public $author; + public $canonicalVolumeLink; + public $coverUrl; + public $description; + public $title; + public $volumeId; + + public function setAuthor($author) { + $this->author = $author; + } + + public function getAuthor() { + return $this->author; + } + + public function setCanonicalVolumeLink($canonicalVolumeLink) { + $this->canonicalVolumeLink = $canonicalVolumeLink; + } + + public function getCanonicalVolumeLink() { + return $this->canonicalVolumeLink; + } + + public function setCoverUrl($coverUrl) { + $this->coverUrl = $coverUrl; + } + + public function getCoverUrl() { + return $this->coverUrl; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setVolumeId($volumeId) { + $this->volumeId = $volumeId; + } + + public function getVolumeId() { + return $this->volumeId; + } } -class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model -{ - public $finskyOfferType; - protected $listPriceType = 'Google_Service_Books_VolumeSaleInfoOffersListPrice'; - protected $listPriceDataType = ''; - protected $rentalDurationType = 'Google_Service_Books_VolumeSaleInfoOffersRentalDuration'; - protected $rentalDurationDataType = ''; - protected $retailPriceType = 'Google_Service_Books_VolumeSaleInfoOffersRetailPrice'; - protected $retailPriceDataType = ''; - - public function setFinskyOfferType($finskyOfferType) - { - $this->finskyOfferType = $finskyOfferType; - } - - public function getFinskyOfferType() - { - return $this->finskyOfferType; - } - - public function setListPrice(Google_Service_Books_VolumeSaleInfoOffersListPrice $listPrice) - { - $this->listPrice = $listPrice; - } - - public function getListPrice() - { - return $this->listPrice; - } - - public function setRentalDuration(Google_Service_Books_VolumeSaleInfoOffersRentalDuration $rentalDuration) - { - $this->rentalDuration = $rentalDuration; - } - - public function getRentalDuration() - { - return $this->rentalDuration; - } - - public function setRetailPrice(Google_Service_Books_VolumeSaleInfoOffersRetailPrice $retailPrice) - { - $this->retailPrice = $retailPrice; - } - - public function getRetailPrice() - { - return $this->retailPrice; - } +class Google_Service_Books_ReadingPosition extends Google_Model { + public $epubCfiPosition; + public $gbImagePosition; + public $gbTextPosition; + public $kind; + public $pdfPosition; + public $updated; + public $volumeId; + + public function setEpubCfiPosition($epubCfiPosition) { + $this->epubCfiPosition = $epubCfiPosition; + } + + public function getEpubCfiPosition() { + return $this->epubCfiPosition; + } + + public function setGbImagePosition($gbImagePosition) { + $this->gbImagePosition = $gbImagePosition; + } + + public function getGbImagePosition() { + return $this->gbImagePosition; + } + + public function setGbTextPosition($gbTextPosition) { + $this->gbTextPosition = $gbTextPosition; + } + + public function getGbTextPosition() { + return $this->gbTextPosition; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPdfPosition($pdfPosition) { + $this->pdfPosition = $pdfPosition; + } + + public function getPdfPosition() { + return $this->pdfPosition; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setVolumeId($volumeId) { + $this->volumeId = $volumeId; + } + + public function getVolumeId() { + return $this->volumeId; + } +} + +class Google_Service_Books_RequestAccess extends Google_Model { + protected $concurrentAccessType = 'Google_Service_Books_ConcurrentAccessRestriction'; + protected $concurrentAccessDataType = ''; + protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction'; + protected $downloadAccessDataType = ''; + public $kind; + + public function setConcurrentAccess(Google_Service_Books_ConcurrentAccessRestriction $concurrentAccess) { + $this->concurrentAccess = $concurrentAccess; + } + + public function getConcurrentAccess() { + return $this->concurrentAccess; + } + + public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess) { + $this->downloadAccess = $downloadAccess; + } + + public function getDownloadAccess() { + return $this->downloadAccess; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_Books_Review extends Google_Model { + protected $authorType = 'Google_Service_Books_ReviewAuthor'; + protected $authorDataType = ''; + public $content; + public $date; + public $fullTextUrl; + public $kind; + public $rating; + protected $sourceType = 'Google_Service_Books_ReviewSource'; + protected $sourceDataType = ''; + public $title; + public $type; + public $volumeId; + + public function setAuthor(Google_Service_Books_ReviewAuthor $author) { + $this->author = $author; + } + + public function getAuthor() { + return $this->author; + } + + public function setContent($content) { + $this->content = $content; + } + + public function getContent() { + return $this->content; + } + + public function setDate($date) { + $this->date = $date; + } + + public function getDate() { + return $this->date; + } + + public function setFullTextUrl($fullTextUrl) { + $this->fullTextUrl = $fullTextUrl; + } + + public function getFullTextUrl() { + return $this->fullTextUrl; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setRating($rating) { + $this->rating = $rating; + } + + public function getRating() { + return $this->rating; + } + + public function setSource(Google_Service_Books_ReviewSource $source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setVolumeId($volumeId) { + $this->volumeId = $volumeId; + } + + public function getVolumeId() { + return $this->volumeId; + } +} + +class Google_Service_Books_ReviewAuthor extends Google_Model { + public $displayName; + + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } + + public function getDisplayName() { + return $this->displayName; + } +} + +class Google_Service_Books_ReviewSource extends Google_Model { + public $description; + public $extraDescription; + public $url; + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setExtraDescription($extraDescription) { + $this->extraDescription = $extraDescription; + } + + public function getExtraDescription() { + return $this->extraDescription; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } +} + +class Google_Service_Books_Volume extends Google_Model { + protected $accessInfoType = 'Google_Service_Books_VolumeAccessInfo'; + protected $accessInfoDataType = ''; + public $etag; + public $id; + public $kind; + protected $layerInfoType = 'Google_Service_Books_VolumeLayerInfo'; + protected $layerInfoDataType = ''; + protected $recommendedInfoType = 'Google_Service_Books_VolumeRecommendedInfo'; + protected $recommendedInfoDataType = ''; + protected $saleInfoType = 'Google_Service_Books_VolumeSaleInfo'; + protected $saleInfoDataType = ''; + protected $searchInfoType = 'Google_Service_Books_VolumeSearchInfo'; + protected $searchInfoDataType = ''; + public $selfLink; + protected $userInfoType = 'Google_Service_Books_VolumeUserInfo'; + protected $userInfoDataType = ''; + protected $volumeInfoType = 'Google_Service_Books_VolumeVolumeInfo'; + protected $volumeInfoDataType = ''; + + public function setAccessInfo(Google_Service_Books_VolumeAccessInfo $accessInfo) { + $this->accessInfo = $accessInfo; + } + + public function getAccessInfo() { + return $this->accessInfo; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLayerInfo(Google_Service_Books_VolumeLayerInfo $layerInfo) { + $this->layerInfo = $layerInfo; + } + + public function getLayerInfo() { + return $this->layerInfo; + } + + public function setRecommendedInfo(Google_Service_Books_VolumeRecommendedInfo $recommendedInfo) { + $this->recommendedInfo = $recommendedInfo; + } + + public function getRecommendedInfo() { + return $this->recommendedInfo; + } + + public function setSaleInfo(Google_Service_Books_VolumeSaleInfo $saleInfo) { + $this->saleInfo = $saleInfo; + } + + public function getSaleInfo() { + return $this->saleInfo; + } + + public function setSearchInfo(Google_Service_Books_VolumeSearchInfo $searchInfo) { + $this->searchInfo = $searchInfo; + } + + public function getSearchInfo() { + return $this->searchInfo; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setUserInfo(Google_Service_Books_VolumeUserInfo $userInfo) { + $this->userInfo = $userInfo; + } + + public function getUserInfo() { + return $this->userInfo; + } + + public function setVolumeInfo(Google_Service_Books_VolumeVolumeInfo $volumeInfo) { + $this->volumeInfo = $volumeInfo; + } + + public function getVolumeInfo() { + return $this->volumeInfo; + } +} + +class Google_Service_Books_VolumeAccessInfo extends Google_Model { + public $accessViewStatus; + public $country; + protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction'; + protected $downloadAccessDataType = ''; + public $driveImportedContentLink; + public $embeddable; + protected $epubType = 'Google_Service_Books_VolumeAccessInfoEpub'; + protected $epubDataType = ''; + public $explicitOfflineLicenseManagement; + protected $pdfType = 'Google_Service_Books_VolumeAccessInfoPdf'; + protected $pdfDataType = ''; + public $publicDomain; + public $quoteSharingAllowed; + public $textToSpeechPermission; + public $viewOrderUrl; + public $viewability; + public $webReaderLink; + + public function setAccessViewStatus($accessViewStatus) { + $this->accessViewStatus = $accessViewStatus; + } + + public function getAccessViewStatus() { + return $this->accessViewStatus; + } + + public function setCountry($country) { + $this->country = $country; + } + + public function getCountry() { + return $this->country; + } + + public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess) { + $this->downloadAccess = $downloadAccess; + } + + public function getDownloadAccess() { + return $this->downloadAccess; + } + + public function setDriveImportedContentLink($driveImportedContentLink) { + $this->driveImportedContentLink = $driveImportedContentLink; + } + + public function getDriveImportedContentLink() { + return $this->driveImportedContentLink; + } + + public function setEmbeddable($embeddable) { + $this->embeddable = $embeddable; + } + + public function getEmbeddable() { + return $this->embeddable; + } + + public function setEpub(Google_Service_Books_VolumeAccessInfoEpub $epub) { + $this->epub = $epub; + } + + public function getEpub() { + return $this->epub; + } + + public function setExplicitOfflineLicenseManagement($explicitOfflineLicenseManagement) { + $this->explicitOfflineLicenseManagement = $explicitOfflineLicenseManagement; + } + + public function getExplicitOfflineLicenseManagement() { + return $this->explicitOfflineLicenseManagement; + } + + public function setPdf(Google_Service_Books_VolumeAccessInfoPdf $pdf) { + $this->pdf = $pdf; + } + + public function getPdf() { + return $this->pdf; + } + + public function setPublicDomain($publicDomain) { + $this->publicDomain = $publicDomain; + } + + public function getPublicDomain() { + return $this->publicDomain; + } + + public function setQuoteSharingAllowed($quoteSharingAllowed) { + $this->quoteSharingAllowed = $quoteSharingAllowed; + } + + public function getQuoteSharingAllowed() { + return $this->quoteSharingAllowed; + } + + public function setTextToSpeechPermission($textToSpeechPermission) { + $this->textToSpeechPermission = $textToSpeechPermission; + } + + public function getTextToSpeechPermission() { + return $this->textToSpeechPermission; + } + + public function setViewOrderUrl($viewOrderUrl) { + $this->viewOrderUrl = $viewOrderUrl; + } + + public function getViewOrderUrl() { + return $this->viewOrderUrl; + } + + public function setViewability($viewability) { + $this->viewability = $viewability; + } + + public function getViewability() { + return $this->viewability; + } + + public function setWebReaderLink($webReaderLink) { + $this->webReaderLink = $webReaderLink; + } + + public function getWebReaderLink() { + return $this->webReaderLink; + } } -class Google_Service_Books_VolumeSaleInfoOffersListPrice extends Google_Model -{ - public $amountInMicros; - public $currencyCode; - - public function setAmountInMicros($amountInMicros) - { - $this->amountInMicros = $amountInMicros; - } - - public function getAmountInMicros() - { - return $this->amountInMicros; - } - - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - - public function getCurrencyCode() - { - return $this->currencyCode; - } +class Google_Service_Books_VolumeAccessInfoEpub extends Google_Model { + public $acsTokenLink; + public $downloadLink; + public $isAvailable; + + public function setAcsTokenLink($acsTokenLink) { + $this->acsTokenLink = $acsTokenLink; + } + + public function getAcsTokenLink() { + return $this->acsTokenLink; + } + + public function setDownloadLink($downloadLink) { + $this->downloadLink = $downloadLink; + } + + public function getDownloadLink() { + return $this->downloadLink; + } + + public function setIsAvailable($isAvailable) { + $this->isAvailable = $isAvailable; + } + + public function getIsAvailable() { + return $this->isAvailable; + } } -class Google_Service_Books_VolumeSaleInfoOffersRentalDuration extends Google_Model -{ - public $count; - public $unit; - - public function setCount($count) - { - $this->count = $count; - } - - public function getCount() - { - return $this->count; - } - - public function setUnit($unit) - { - $this->unit = $unit; - } - - public function getUnit() - { - return $this->unit; - } +class Google_Service_Books_VolumeAccessInfoPdf extends Google_Model { + public $acsTokenLink; + public $downloadLink; + public $isAvailable; + + public function setAcsTokenLink($acsTokenLink) { + $this->acsTokenLink = $acsTokenLink; + } + + public function getAcsTokenLink() { + return $this->acsTokenLink; + } + + public function setDownloadLink($downloadLink) { + $this->downloadLink = $downloadLink; + } + + public function getDownloadLink() { + return $this->downloadLink; + } + + public function setIsAvailable($isAvailable) { + $this->isAvailable = $isAvailable; + } + + public function getIsAvailable() { + return $this->isAvailable; + } } -class Google_Service_Books_VolumeSaleInfoOffersRetailPrice extends Google_Model -{ - public $amountInMicros; - public $currencyCode; - - public function setAmountInMicros($amountInMicros) - { - $this->amountInMicros = $amountInMicros; - } - - public function getAmountInMicros() - { - return $this->amountInMicros; - } - - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - - public function getCurrencyCode() - { - return $this->currencyCode; - } +class Google_Service_Books_VolumeLayerInfo extends Google_Collection { + protected $layersType = 'Google_Service_Books_VolumeLayerInfoLayers'; + protected $layersDataType = 'array'; + + public function setLayers($layers) { + $this->layers = $layers; + } + + public function getLayers() { + return $this->layers; + } } -class Google_Service_Books_VolumeSaleInfoRetailPrice extends Google_Model -{ - public $amount; - public $currencyCode; - - public function setAmount($amount) - { - $this->amount = $amount; - } - - public function getAmount() - { - return $this->amount; - } - - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } - - public function getCurrencyCode() - { - return $this->currencyCode; - } +class Google_Service_Books_VolumeLayerInfoLayers extends Google_Model { + public $layerId; + public $volumeAnnotationsVersion; + + public function setLayerId($layerId) { + $this->layerId = $layerId; + } + + public function getLayerId() { + return $this->layerId; + } + + public function setVolumeAnnotationsVersion($volumeAnnotationsVersion) { + $this->volumeAnnotationsVersion = $volumeAnnotationsVersion; + } + + public function getVolumeAnnotationsVersion() { + return $this->volumeAnnotationsVersion; + } } -class Google_Service_Books_VolumeSearchInfo extends Google_Model -{ - public $textSnippet; +class Google_Service_Books_VolumeRecommendedInfo extends Google_Model { + public $explanation; - public function setTextSnippet($textSnippet) - { - $this->textSnippet = $textSnippet; - } + public function setExplanation($explanation) { + $this->explanation = $explanation; + } - public function getTextSnippet() - { - return $this->textSnippet; - } + public function getExplanation() { + return $this->explanation; + } } -class Google_Service_Books_VolumeUserInfo extends Google_Model -{ - protected $copyType = 'Google_Service_Books_VolumeUserInfoCopy'; - protected $copyDataType = ''; - public $isInMyBooks; - public $isPreordered; - public $isPurchased; - public $isUploaded; - protected $readingPositionType = 'Google_Service_Books_ReadingPosition'; - protected $readingPositionDataType = ''; - protected $rentalPeriodType = 'Google_Service_Books_VolumeUserInfoRentalPeriod'; - protected $rentalPeriodDataType = ''; - public $rentalState; - protected $reviewType = 'Google_Service_Books_Review'; - protected $reviewDataType = ''; - public $updated; - protected $userUploadedVolumeInfoType = 'Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo'; - protected $userUploadedVolumeInfoDataType = ''; - - public function setCopy(Google_Service_Books_VolumeUserInfoCopy $copy) - { - $this->copy = $copy; - } - - public function getCopy() - { - return $this->copy; - } - - public function setIsInMyBooks($isInMyBooks) - { - $this->isInMyBooks = $isInMyBooks; - } - - public function getIsInMyBooks() - { - return $this->isInMyBooks; - } - - public function setIsPreordered($isPreordered) - { - $this->isPreordered = $isPreordered; - } - - public function getIsPreordered() - { - return $this->isPreordered; - } - - public function setIsPurchased($isPurchased) - { - $this->isPurchased = $isPurchased; - } - - public function getIsPurchased() - { - return $this->isPurchased; - } - - public function setIsUploaded($isUploaded) - { - $this->isUploaded = $isUploaded; - } - - public function getIsUploaded() - { - return $this->isUploaded; - } - - public function setReadingPosition(Google_Service_Books_ReadingPosition $readingPosition) - { - $this->readingPosition = $readingPosition; - } - - public function getReadingPosition() - { - return $this->readingPosition; - } - - public function setRentalPeriod(Google_Service_Books_VolumeUserInfoRentalPeriod $rentalPeriod) - { - $this->rentalPeriod = $rentalPeriod; - } - - public function getRentalPeriod() - { - return $this->rentalPeriod; - } - - public function setRentalState($rentalState) - { - $this->rentalState = $rentalState; - } - - public function getRentalState() - { - return $this->rentalState; - } - - public function setReview(Google_Service_Books_Review $review) - { - $this->review = $review; - } - - public function getReview() - { - return $this->review; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setUserUploadedVolumeInfo(Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo $userUploadedVolumeInfo) - { - $this->userUploadedVolumeInfo = $userUploadedVolumeInfo; - } - - public function getUserUploadedVolumeInfo() - { - return $this->userUploadedVolumeInfo; - } +class Google_Service_Books_VolumeSaleInfo extends Google_Collection { + public $buyLink; + public $country; + public $isEbook; + protected $listPriceType = 'Google_Service_Books_VolumeSaleInfoListPrice'; + protected $listPriceDataType = ''; + protected $offersType = 'Google_Service_Books_VolumeSaleInfoOffers'; + protected $offersDataType = 'array'; + public $onSaleDate; + protected $retailPriceType = 'Google_Service_Books_VolumeSaleInfoRetailPrice'; + protected $retailPriceDataType = ''; + public $saleability; + + public function setBuyLink($buyLink) { + $this->buyLink = $buyLink; + } + + public function getBuyLink() { + return $this->buyLink; + } + + public function setCountry($country) { + $this->country = $country; + } + + public function getCountry() { + return $this->country; + } + + public function setIsEbook($isEbook) { + $this->isEbook = $isEbook; + } + + public function getIsEbook() { + return $this->isEbook; + } + + public function setListPrice(Google_Service_Books_VolumeSaleInfoListPrice $listPrice) { + $this->listPrice = $listPrice; + } + + public function getListPrice() { + return $this->listPrice; + } + + public function setOffers($offers) { + $this->offers = $offers; + } + + public function getOffers() { + return $this->offers; + } + + public function setOnSaleDate($onSaleDate) { + $this->onSaleDate = $onSaleDate; + } + + public function getOnSaleDate() { + return $this->onSaleDate; + } + + public function setRetailPrice(Google_Service_Books_VolumeSaleInfoRetailPrice $retailPrice) { + $this->retailPrice = $retailPrice; + } + + public function getRetailPrice() { + return $this->retailPrice; + } + + public function setSaleability($saleability) { + $this->saleability = $saleability; + } + + public function getSaleability() { + return $this->saleability; + } } -class Google_Service_Books_VolumeUserInfoCopy extends Google_Model -{ - public $allowedCharacterCount; - public $limitType; - public $remainingCharacterCount; - public $updated; - - public function setAllowedCharacterCount($allowedCharacterCount) - { - $this->allowedCharacterCount = $allowedCharacterCount; - } - - public function getAllowedCharacterCount() - { - return $this->allowedCharacterCount; - } - - public function setLimitType($limitType) - { - $this->limitType = $limitType; - } - - public function getLimitType() - { - return $this->limitType; - } - - public function setRemainingCharacterCount($remainingCharacterCount) - { - $this->remainingCharacterCount = $remainingCharacterCount; - } - - public function getRemainingCharacterCount() - { - return $this->remainingCharacterCount; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } +class Google_Service_Books_VolumeSaleInfoListPrice extends Google_Model { + public $amount; + public $currencyCode; + + public function setAmount($amount) { + $this->amount = $amount; + } + + public function getAmount() { + return $this->amount; + } + + public function setCurrencyCode($currencyCode) { + $this->currencyCode = $currencyCode; + } + + public function getCurrencyCode() { + return $this->currencyCode; + } } -class Google_Service_Books_VolumeUserInfoRentalPeriod extends Google_Model -{ - public $endUtcSec; - public $startUtcSec; - - public function setEndUtcSec($endUtcSec) - { - $this->endUtcSec = $endUtcSec; - } - - public function getEndUtcSec() - { - return $this->endUtcSec; - } - - public function setStartUtcSec($startUtcSec) - { - $this->startUtcSec = $startUtcSec; - } - - public function getStartUtcSec() - { - return $this->startUtcSec; - } +class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model { + public $finskyOfferType; + protected $listPriceType = 'Google_Service_Books_VolumeSaleInfoOffersListPrice'; + protected $listPriceDataType = ''; + protected $rentalDurationType = 'Google_Service_Books_VolumeSaleInfoOffersRentalDuration'; + protected $rentalDurationDataType = ''; + protected $retailPriceType = 'Google_Service_Books_VolumeSaleInfoOffersRetailPrice'; + protected $retailPriceDataType = ''; + + public function setFinskyOfferType($finskyOfferType) { + $this->finskyOfferType = $finskyOfferType; + } + + public function getFinskyOfferType() { + return $this->finskyOfferType; + } + + public function setListPrice(Google_Service_Books_VolumeSaleInfoOffersListPrice $listPrice) { + $this->listPrice = $listPrice; + } + + public function getListPrice() { + return $this->listPrice; + } + + public function setRentalDuration(Google_Service_Books_VolumeSaleInfoOffersRentalDuration $rentalDuration) { + $this->rentalDuration = $rentalDuration; + } + + public function getRentalDuration() { + return $this->rentalDuration; + } + + public function setRetailPrice(Google_Service_Books_VolumeSaleInfoOffersRetailPrice $retailPrice) { + $this->retailPrice = $retailPrice; + } + + public function getRetailPrice() { + return $this->retailPrice; + } } -class Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo extends Google_Model -{ - public $processingState; +class Google_Service_Books_VolumeSaleInfoOffersListPrice extends Google_Model { + public $amountInMicros; + public $currencyCode; + + public function setAmountInMicros($amountInMicros) { + $this->amountInMicros = $amountInMicros; + } + + public function getAmountInMicros() { + return $this->amountInMicros; + } - public function setProcessingState($processingState) - { - $this->processingState = $processingState; - } + public function setCurrencyCode($currencyCode) { + $this->currencyCode = $currencyCode; + } - public function getProcessingState() - { - return $this->processingState; - } + public function getCurrencyCode() { + return $this->currencyCode; + } } -class Google_Service_Books_VolumeVolumeInfo extends Google_Collection -{ - public $authors; - public $averageRating; - public $canonicalVolumeLink; - public $categories; - public $contentVersion; - public $description; - protected $dimensionsType = 'Google_Service_Books_VolumeVolumeInfoDimensions'; - protected $dimensionsDataType = ''; - protected $imageLinksType = 'Google_Service_Books_VolumeVolumeInfoImageLinks'; - protected $imageLinksDataType = ''; - protected $industryIdentifiersType = 'Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers'; - protected $industryIdentifiersDataType = 'array'; - public $infoLink; - public $language; - public $mainCategory; - public $pageCount; - public $previewLink; - public $printType; - public $printedPageCount; - public $publishedDate; - public $publisher; - public $ratingsCount; - public $readingModes; - public $subtitle; - public $title; - - public function setAuthors($authors) - { - $this->authors = $authors; - } - - public function getAuthors() - { - return $this->authors; - } - - public function setAverageRating($averageRating) - { - $this->averageRating = $averageRating; - } - - public function getAverageRating() - { - return $this->averageRating; - } - - public function setCanonicalVolumeLink($canonicalVolumeLink) - { - $this->canonicalVolumeLink = $canonicalVolumeLink; - } - - public function getCanonicalVolumeLink() - { - return $this->canonicalVolumeLink; - } - - public function setCategories($categories) - { - $this->categories = $categories; - } - - public function getCategories() - { - return $this->categories; - } - - public function setContentVersion($contentVersion) - { - $this->contentVersion = $contentVersion; - } - - public function getContentVersion() - { - return $this->contentVersion; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDimensions(Google_Service_Books_VolumeVolumeInfoDimensions $dimensions) - { - $this->dimensions = $dimensions; - } - - public function getDimensions() - { - return $this->dimensions; - } - - public function setImageLinks(Google_Service_Books_VolumeVolumeInfoImageLinks $imageLinks) - { - $this->imageLinks = $imageLinks; - } - - public function getImageLinks() - { - return $this->imageLinks; - } - - public function setIndustryIdentifiers($industryIdentifiers) - { - $this->industryIdentifiers = $industryIdentifiers; - } - - public function getIndustryIdentifiers() - { - return $this->industryIdentifiers; - } - - public function setInfoLink($infoLink) - { - $this->infoLink = $infoLink; - } - - public function getInfoLink() - { - return $this->infoLink; - } - - public function setLanguage($language) - { - $this->language = $language; - } - - public function getLanguage() - { - return $this->language; - } - - public function setMainCategory($mainCategory) - { - $this->mainCategory = $mainCategory; - } - - public function getMainCategory() - { - return $this->mainCategory; - } - - public function setPageCount($pageCount) - { - $this->pageCount = $pageCount; - } - - public function getPageCount() - { - return $this->pageCount; - } - - public function setPreviewLink($previewLink) - { - $this->previewLink = $previewLink; - } - - public function getPreviewLink() - { - return $this->previewLink; - } - - public function setPrintType($printType) - { - $this->printType = $printType; - } - - public function getPrintType() - { - return $this->printType; - } - - public function setPrintedPageCount($printedPageCount) - { - $this->printedPageCount = $printedPageCount; - } - - public function getPrintedPageCount() - { - return $this->printedPageCount; - } - - public function setPublishedDate($publishedDate) - { - $this->publishedDate = $publishedDate; - } - - public function getPublishedDate() - { - return $this->publishedDate; - } - - public function setPublisher($publisher) - { - $this->publisher = $publisher; - } - - public function getPublisher() - { - return $this->publisher; - } - - public function setRatingsCount($ratingsCount) - { - $this->ratingsCount = $ratingsCount; - } - - public function getRatingsCount() - { - return $this->ratingsCount; - } - - public function setReadingModes($readingModes) - { - $this->readingModes = $readingModes; - } - - public function getReadingModes() - { - return $this->readingModes; - } - - public function setSubtitle($subtitle) - { - $this->subtitle = $subtitle; - } - - public function getSubtitle() - { - return $this->subtitle; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_Books_VolumeSaleInfoOffersRentalDuration extends Google_Model { + public $count; + public $unit; + + public function setCount($count) { + $this->count = $count; + } + + public function getCount() { + return $this->count; + } + + public function setUnit($unit) { + $this->unit = $unit; + } + + public function getUnit() { + return $this->unit; + } } -class Google_Service_Books_VolumeVolumeInfoDimensions extends Google_Model -{ - public $height; - public $thickness; - public $width; - - public function setHeight($height) - { - $this->height = $height; - } - - public function getHeight() - { - return $this->height; - } - - public function setThickness($thickness) - { - $this->thickness = $thickness; - } - - public function getThickness() - { - return $this->thickness; - } - - public function setWidth($width) - { - $this->width = $width; - } - - public function getWidth() - { - return $this->width; - } +class Google_Service_Books_VolumeSaleInfoOffersRetailPrice extends Google_Model { + public $amountInMicros; + public $currencyCode; + + public function setAmountInMicros($amountInMicros) { + $this->amountInMicros = $amountInMicros; + } + + public function getAmountInMicros() { + return $this->amountInMicros; + } + + public function setCurrencyCode($currencyCode) { + $this->currencyCode = $currencyCode; + } + + public function getCurrencyCode() { + return $this->currencyCode; + } } -class Google_Service_Books_VolumeVolumeInfoImageLinks extends Google_Model -{ - public $extraLarge; - public $large; - public $medium; - public $small; - public $smallThumbnail; - public $thumbnail; - - public function setExtraLarge($extraLarge) - { - $this->extraLarge = $extraLarge; - } - - public function getExtraLarge() - { - return $this->extraLarge; - } - - public function setLarge($large) - { - $this->large = $large; - } - - public function getLarge() - { - return $this->large; - } - - public function setMedium($medium) - { - $this->medium = $medium; - } - - public function getMedium() - { - return $this->medium; - } - - public function setSmall($small) - { - $this->small = $small; - } - - public function getSmall() - { - return $this->small; - } - - public function setSmallThumbnail($smallThumbnail) - { - $this->smallThumbnail = $smallThumbnail; - } - - public function getSmallThumbnail() - { - return $this->smallThumbnail; - } - - public function setThumbnail($thumbnail) - { - $this->thumbnail = $thumbnail; - } - - public function getThumbnail() - { - return $this->thumbnail; - } +class Google_Service_Books_VolumeSaleInfoRetailPrice extends Google_Model { + public $amount; + public $currencyCode; + + public function setAmount($amount) { + $this->amount = $amount; + } + + public function getAmount() { + return $this->amount; + } + + public function setCurrencyCode($currencyCode) { + $this->currencyCode = $currencyCode; + } + + public function getCurrencyCode() { + return $this->currencyCode; + } } -class Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers extends Google_Model -{ - public $identifier; - public $type; - - public function setIdentifier($identifier) - { - $this->identifier = $identifier; - } - - public function getIdentifier() - { - return $this->identifier; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_Books_VolumeSearchInfo extends Google_Model { + public $textSnippet; + + public function setTextSnippet($textSnippet) { + $this->textSnippet = $textSnippet; + } + + public function getTextSnippet() { + return $this->textSnippet; + } } -class Google_Service_Books_Volumeannotation extends Google_Collection -{ - public $annotationDataId; - public $annotationDataLink; - public $annotationType; - protected $contentRangesType = 'Google_Service_Books_VolumeannotationContentRanges'; - protected $contentRangesDataType = ''; - public $data; - public $deleted; - public $id; - public $kind; - public $layerId; - public $pageIds; - public $selectedText; - public $selfLink; - public $updated; - public $volumeId; - - public function setAnnotationDataId($annotationDataId) - { - $this->annotationDataId = $annotationDataId; - } - - public function getAnnotationDataId() - { - return $this->annotationDataId; - } - - public function setAnnotationDataLink($annotationDataLink) - { - $this->annotationDataLink = $annotationDataLink; - } - - public function getAnnotationDataLink() - { - return $this->annotationDataLink; - } - - public function setAnnotationType($annotationType) - { - $this->annotationType = $annotationType; - } - - public function getAnnotationType() - { - return $this->annotationType; - } - - public function setContentRanges(Google_Service_Books_VolumeannotationContentRanges $contentRanges) - { - $this->contentRanges = $contentRanges; - } - - public function getContentRanges() - { - return $this->contentRanges; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - - public function getDeleted() - { - return $this->deleted; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLayerId($layerId) - { - $this->layerId = $layerId; - } - - public function getLayerId() - { - return $this->layerId; - } - - public function setPageIds($pageIds) - { - $this->pageIds = $pageIds; - } - - public function getPageIds() - { - return $this->pageIds; - } - - public function setSelectedText($selectedText) - { - $this->selectedText = $selectedText; - } - - public function getSelectedText() - { - return $this->selectedText; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setVolumeId($volumeId) - { - $this->volumeId = $volumeId; - } - - public function getVolumeId() - { - return $this->volumeId; - } +class Google_Service_Books_VolumeUserInfo extends Google_Model { + protected $copyType = 'Google_Service_Books_VolumeUserInfoCopy'; + protected $copyDataType = ''; + public $isInMyBooks; + public $isPreordered; + public $isPurchased; + public $isUploaded; + protected $readingPositionType = 'Google_Service_Books_ReadingPosition'; + protected $readingPositionDataType = ''; + protected $rentalPeriodType = 'Google_Service_Books_VolumeUserInfoRentalPeriod'; + protected $rentalPeriodDataType = ''; + public $rentalState; + protected $reviewType = 'Google_Service_Books_Review'; + protected $reviewDataType = ''; + public $updated; + protected $userUploadedVolumeInfoType = 'Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo'; + protected $userUploadedVolumeInfoDataType = ''; + + public function setCopy(Google_Service_Books_VolumeUserInfoCopy $copy) { + $this->copy = $copy; + } + + public function getCopy() { + return $this->copy; + } + + public function setIsInMyBooks($isInMyBooks) { + $this->isInMyBooks = $isInMyBooks; + } + + public function getIsInMyBooks() { + return $this->isInMyBooks; + } + + public function setIsPreordered($isPreordered) { + $this->isPreordered = $isPreordered; + } + + public function getIsPreordered() { + return $this->isPreordered; + } + + public function setIsPurchased($isPurchased) { + $this->isPurchased = $isPurchased; + } + + public function getIsPurchased() { + return $this->isPurchased; + } + + public function setIsUploaded($isUploaded) { + $this->isUploaded = $isUploaded; + } + + public function getIsUploaded() { + return $this->isUploaded; + } + + public function setReadingPosition(Google_Service_Books_ReadingPosition $readingPosition) { + $this->readingPosition = $readingPosition; + } + + public function getReadingPosition() { + return $this->readingPosition; + } + + public function setRentalPeriod(Google_Service_Books_VolumeUserInfoRentalPeriod $rentalPeriod) { + $this->rentalPeriod = $rentalPeriod; + } + + public function getRentalPeriod() { + return $this->rentalPeriod; + } + + public function setRentalState($rentalState) { + $this->rentalState = $rentalState; + } + + public function getRentalState() { + return $this->rentalState; + } + + public function setReview(Google_Service_Books_Review $review) { + $this->review = $review; + } + + public function getReview() { + return $this->review; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setUserUploadedVolumeInfo(Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo $userUploadedVolumeInfo) { + $this->userUploadedVolumeInfo = $userUploadedVolumeInfo; + } + + public function getUserUploadedVolumeInfo() { + return $this->userUploadedVolumeInfo; + } +} + +class Google_Service_Books_VolumeUserInfoCopy extends Google_Model { + public $allowedCharacterCount; + public $limitType; + public $remainingCharacterCount; + public $updated; + + public function setAllowedCharacterCount($allowedCharacterCount) { + $this->allowedCharacterCount = $allowedCharacterCount; + } + + public function getAllowedCharacterCount() { + return $this->allowedCharacterCount; + } + + public function setLimitType($limitType) { + $this->limitType = $limitType; + } + + public function getLimitType() { + return $this->limitType; + } + + public function setRemainingCharacterCount($remainingCharacterCount) { + $this->remainingCharacterCount = $remainingCharacterCount; + } + + public function getRemainingCharacterCount() { + return $this->remainingCharacterCount; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } +} + +class Google_Service_Books_VolumeUserInfoRentalPeriod extends Google_Model { + public $endUtcSec; + public $startUtcSec; + + public function setEndUtcSec($endUtcSec) { + $this->endUtcSec = $endUtcSec; + } + + public function getEndUtcSec() { + return $this->endUtcSec; + } + + public function setStartUtcSec($startUtcSec) { + $this->startUtcSec = $startUtcSec; + } + + public function getStartUtcSec() { + return $this->startUtcSec; + } +} + +class Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo extends Google_Model { + public $processingState; + + public function setProcessingState($processingState) { + $this->processingState = $processingState; + } + + public function getProcessingState() { + return $this->processingState; + } +} + +class Google_Service_Books_VolumeVolumeInfo extends Google_Collection { + public $authors; + public $averageRating; + public $canonicalVolumeLink; + public $categories; + public $contentVersion; + public $description; + protected $dimensionsType = 'Google_Service_Books_VolumeVolumeInfoDimensions'; + protected $dimensionsDataType = ''; + protected $imageLinksType = 'Google_Service_Books_VolumeVolumeInfoImageLinks'; + protected $imageLinksDataType = ''; + protected $industryIdentifiersType = 'Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers'; + protected $industryIdentifiersDataType = 'array'; + public $infoLink; + public $language; + public $mainCategory; + public $pageCount; + public $previewLink; + public $printType; + public $printedPageCount; + public $publishedDate; + public $publisher; + public $ratingsCount; + public $readingModes; + public $subtitle; + public $title; + + public function setAuthors($authors) { + $this->authors = $authors; + } + + public function getAuthors() { + return $this->authors; + } + + public function setAverageRating($averageRating) { + $this->averageRating = $averageRating; + } + + public function getAverageRating() { + return $this->averageRating; + } + + public function setCanonicalVolumeLink($canonicalVolumeLink) { + $this->canonicalVolumeLink = $canonicalVolumeLink; + } + + public function getCanonicalVolumeLink() { + return $this->canonicalVolumeLink; + } + + public function setCategories($categories) { + $this->categories = $categories; + } + + public function getCategories() { + return $this->categories; + } + + public function setContentVersion($contentVersion) { + $this->contentVersion = $contentVersion; + } + + public function getContentVersion() { + return $this->contentVersion; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setDimensions(Google_Service_Books_VolumeVolumeInfoDimensions $dimensions) { + $this->dimensions = $dimensions; + } + + public function getDimensions() { + return $this->dimensions; + } + + public function setImageLinks(Google_Service_Books_VolumeVolumeInfoImageLinks $imageLinks) { + $this->imageLinks = $imageLinks; + } + + public function getImageLinks() { + return $this->imageLinks; + } + + public function setIndustryIdentifiers($industryIdentifiers) { + $this->industryIdentifiers = $industryIdentifiers; + } + + public function getIndustryIdentifiers() { + return $this->industryIdentifiers; + } + + public function setInfoLink($infoLink) { + $this->infoLink = $infoLink; + } + + public function getInfoLink() { + return $this->infoLink; + } + + public function setLanguage($language) { + $this->language = $language; + } + + public function getLanguage() { + return $this->language; + } + + public function setMainCategory($mainCategory) { + $this->mainCategory = $mainCategory; + } + + public function getMainCategory() { + return $this->mainCategory; + } + + public function setPageCount($pageCount) { + $this->pageCount = $pageCount; + } + + public function getPageCount() { + return $this->pageCount; + } + + public function setPreviewLink($previewLink) { + $this->previewLink = $previewLink; + } + + public function getPreviewLink() { + return $this->previewLink; + } + + public function setPrintType($printType) { + $this->printType = $printType; + } + + public function getPrintType() { + return $this->printType; + } + + public function setPrintedPageCount($printedPageCount) { + $this->printedPageCount = $printedPageCount; + } + + public function getPrintedPageCount() { + return $this->printedPageCount; + } + + public function setPublishedDate($publishedDate) { + $this->publishedDate = $publishedDate; + } + + public function getPublishedDate() { + return $this->publishedDate; + } + + public function setPublisher($publisher) { + $this->publisher = $publisher; + } + + public function getPublisher() { + return $this->publisher; + } + + public function setRatingsCount($ratingsCount) { + $this->ratingsCount = $ratingsCount; + } + + public function getRatingsCount() { + return $this->ratingsCount; + } + + public function setReadingModes($readingModes) { + $this->readingModes = $readingModes; + } + + public function getReadingModes() { + return $this->readingModes; + } + + public function setSubtitle($subtitle) { + $this->subtitle = $subtitle; + } + + public function getSubtitle() { + return $this->subtitle; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_Books_VolumeannotationContentRanges extends Google_Model -{ - protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $cfiRangeDataType = ''; - public $contentVersion; - protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbImageRangeDataType = ''; - protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange'; - protected $gbTextRangeDataType = ''; - - public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) - { - $this->cfiRange = $cfiRange; - } - - public function getCfiRange() - { - return $this->cfiRange; - } - - public function setContentVersion($contentVersion) - { - $this->contentVersion = $contentVersion; - } - - public function getContentVersion() - { - return $this->contentVersion; - } - - public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) - { - $this->gbImageRange = $gbImageRange; - } - - public function getGbImageRange() - { - return $this->gbImageRange; - } - - public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) - { - $this->gbTextRange = $gbTextRange; - } - - public function getGbTextRange() - { - return $this->gbTextRange; - } +class Google_Service_Books_VolumeVolumeInfoDimensions extends Google_Model { + public $height; + public $thickness; + public $width; + + public function setHeight($height) { + $this->height = $height; + } + + public function getHeight() { + return $this->height; + } + + public function setThickness($thickness) { + $this->thickness = $thickness; + } + + public function getThickness() { + return $this->thickness; + } + + public function setWidth($width) { + $this->width = $width; + } + + public function getWidth() { + return $this->width; + } +} + +class Google_Service_Books_VolumeVolumeInfoImageLinks extends Google_Model { + public $extraLarge; + public $large; + public $medium; + public $small; + public $smallThumbnail; + public $thumbnail; + + public function setExtraLarge($extraLarge) { + $this->extraLarge = $extraLarge; + } + + public function getExtraLarge() { + return $this->extraLarge; + } + + public function setLarge($large) { + $this->large = $large; + } + + public function getLarge() { + return $this->large; + } + + public function setMedium($medium) { + $this->medium = $medium; + } + + public function getMedium() { + return $this->medium; + } + + public function setSmall($small) { + $this->small = $small; + } + + public function getSmall() { + return $this->small; + } + + public function setSmallThumbnail($smallThumbnail) { + $this->smallThumbnail = $smallThumbnail; + } + + public function getSmallThumbnail() { + return $this->smallThumbnail; + } + + public function setThumbnail($thumbnail) { + $this->thumbnail = $thumbnail; + } + + public function getThumbnail() { + return $this->thumbnail; + } +} + +class Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers extends Google_Model { + public $identifier; + public $type; + + public function setIdentifier($identifier) { + $this->identifier = $identifier; + } + + public function getIdentifier() { + return $this->identifier; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } +} + +class Google_Service_Books_Volumeannotation extends Google_Collection { + public $annotationDataId; + public $annotationDataLink; + public $annotationType; + protected $contentRangesType = 'Google_Service_Books_VolumeannotationContentRanges'; + protected $contentRangesDataType = ''; + public $data; + public $deleted; + public $id; + public $kind; + public $layerId; + public $pageIds; + public $selectedText; + public $selfLink; + public $updated; + public $volumeId; + + public function setAnnotationDataId($annotationDataId) { + $this->annotationDataId = $annotationDataId; + } + + public function getAnnotationDataId() { + return $this->annotationDataId; + } + + public function setAnnotationDataLink($annotationDataLink) { + $this->annotationDataLink = $annotationDataLink; + } + + public function getAnnotationDataLink() { + return $this->annotationDataLink; + } + + public function setAnnotationType($annotationType) { + $this->annotationType = $annotationType; + } + + public function getAnnotationType() { + return $this->annotationType; + } + + public function setContentRanges(Google_Service_Books_VolumeannotationContentRanges $contentRanges) { + $this->contentRanges = $contentRanges; + } + + public function getContentRanges() { + return $this->contentRanges; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setDeleted($deleted) { + $this->deleted = $deleted; + } + + public function getDeleted() { + return $this->deleted; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLayerId($layerId) { + $this->layerId = $layerId; + } + + public function getLayerId() { + return $this->layerId; + } + + public function setPageIds($pageIds) { + $this->pageIds = $pageIds; + } + + public function getPageIds() { + return $this->pageIds; + } + + public function setSelectedText($selectedText) { + $this->selectedText = $selectedText; + } + + public function getSelectedText() { + return $this->selectedText; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setVolumeId($volumeId) { + $this->volumeId = $volumeId; + } + + public function getVolumeId() { + return $this->volumeId; + } } -class Google_Service_Books_Volumeannotations extends Google_Collection -{ - protected $itemsType = 'Google_Service_Books_Volumeannotation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; - public $version; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - - public function getTotalItems() - { - return $this->totalItems; - } - - public function setVersion($version) - { - $this->version = $version; - } - - public function getVersion() - { - return $this->version; - } +class Google_Service_Books_VolumeannotationContentRanges extends Google_Model { + protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange'; + protected $cfiRangeDataType = ''; + public $contentVersion; + protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange'; + protected $gbImageRangeDataType = ''; + protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange'; + protected $gbTextRangeDataType = ''; + + public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange) { + $this->cfiRange = $cfiRange; + } + + public function getCfiRange() { + return $this->cfiRange; + } + + public function setContentVersion($contentVersion) { + $this->contentVersion = $contentVersion; + } + + public function getContentVersion() { + return $this->contentVersion; + } + + public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange) { + $this->gbImageRange = $gbImageRange; + } + + public function getGbImageRange() { + return $this->gbImageRange; + } + + public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange) { + $this->gbTextRange = $gbTextRange; + } + + public function getGbTextRange() { + return $this->gbTextRange; + } +} + +class Google_Service_Books_Volumeannotations extends Google_Collection { + protected $itemsType = 'Google_Service_Books_Volumeannotation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $totalItems; + public $version; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } + + public function getTotalItems() { + return $this->totalItems; + } + + public function setVersion($version) { + $this->version = $version; + } + + public function getVersion() { + return $this->version; + } } -class Google_Service_Books_Volumes extends Google_Collection -{ - protected $itemsType = 'Google_Service_Books_Volume'; - protected $itemsDataType = 'array'; - public $kind; - public $totalItems; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - - public function getTotalItems() - { - return $this->totalItems; - } +class Google_Service_Books_Volumes extends Google_Collection { + protected $itemsType = 'Google_Service_Books_Volume'; + protected $itemsDataType = 'array'; + public $kind; + public $totalItems; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } + + public function getTotalItems() { + return $this->totalItems; + } } diff --git a/oauth/Google/Service/Calendar.php b/oauth/Google/Service/Calendar.php index adb1042..ed87b39 100644 --- a/oauth/Google/Service/Calendar.php +++ b/oauth/Google/Service/Calendar.php @@ -29,845 +29,843 @@ * * @author Google, Inc. */ -class Google_Service_Calendar extends Google_Service -{ - /** Manage your calendars. */ - const CALENDAR = "https://www.googleapis.com/auth/calendar"; - /** View your calendars. */ - const CALENDAR_READONLY = "https://www.googleapis.com/auth/calendar.readonly"; +class Google_Service_Calendar extends Google_Service { + /** Manage your calendars. */ + const CALENDAR = "https://www.googleapis.com/auth/calendar"; + /** View your calendars. */ + const CALENDAR_READONLY = "https://www.googleapis.com/auth/calendar.readonly"; - public $acl; - public $calendarList; - public $calendars; - public $channels; - public $colors; - public $events; - public $freebusy; - public $settings; - + public $acl; + public $calendarList; + public $calendars; + public $channels; + public $colors; + public $events; + public $freebusy; + public $settings; - /** - * Constructs the internal representation of the Calendar service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'calendar/v3/'; - $this->version = 'v3'; - $this->serviceName = 'calendar'; - $this->acl = new Google_Service_Calendar_Acl_Resource( - $this, - $this->serviceName, - 'acl', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'calendars/{calendarId}/acl/{ruleId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'calendars/{calendarId}/acl/{ruleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'calendars/{calendarId}/acl', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'calendars/{calendarId}/acl', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'calendars/{calendarId}/acl/{ruleId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'calendars/{calendarId}/acl/{ruleId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ruleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'watch' => array( - 'path' => 'calendars/{calendarId}/acl/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->calendarList = new Google_Service_Calendar_CalendarList_Resource( - $this, - $this->serviceName, - 'calendarList', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/me/calendarList/{calendarId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/me/calendarList/{calendarId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'users/me/calendarList', - 'httpMethod' => 'POST', - 'parameters' => array( - 'colorRgbFormat' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'users/me/calendarList', - 'httpMethod' => 'GET', - 'parameters' => array( - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'minAccessRole' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showHidden' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'users/me/calendarList/{calendarId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'colorRgbFormat' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'users/me/calendarList/{calendarId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'colorRgbFormat' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'watch' => array( - 'path' => 'users/me/calendarList/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'minAccessRole' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showHidden' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->calendars = new Google_Service_Calendar_Calendars_Resource( - $this, - $this->serviceName, - 'calendars', - array( - 'methods' => array( - 'clear' => array( - 'path' => 'calendars/{calendarId}/clear', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'calendars/{calendarId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'calendars/{calendarId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'calendars', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'calendars/{calendarId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'calendars/{calendarId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_Calendar_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'stop' => array( - 'path' => 'channels/stop', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->colors = new Google_Service_Calendar_Colors_Resource( - $this, - $this->serviceName, - 'colors', - array( - 'methods' => array( - 'get' => array( - 'path' => 'colors', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->events = new Google_Service_Calendar_Events_Resource( - $this, - $this->serviceName, - 'events', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'get' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'timeZone' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'import' => array( - 'path' => 'calendars/{calendarId}/events/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'calendars/{calendarId}/events', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'instances' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'timeMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeZone' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'originalStart' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'list' => array( - 'path' => 'calendars/{calendarId}/events', - 'httpMethod' => 'GET', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showHiddenInvitations' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'iCalUID' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'singleEvents' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'timeMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeZone' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'privateExtendedProperty' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sharedExtendedProperty' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'move' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}/move', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destination' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'patch' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'quickAdd' => array( - 'path' => 'calendars/{calendarId}/events/quickAdd', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'text' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'calendars/{calendarId}/events/{eventId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendNotifications' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'watch' => array( - 'path' => 'calendars/{calendarId}/events/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'calendarId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showHiddenInvitations' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'iCalUID' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'singleEvents' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'timeMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'alwaysIncludeEmail' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeZone' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'privateExtendedProperty' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'sharedExtendedProperty' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxAttendees' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->freebusy = new Google_Service_Calendar_Freebusy_Resource( - $this, - $this->serviceName, - 'freebusy', - array( - 'methods' => array( - 'query' => array( - 'path' => 'freeBusy', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->settings = new Google_Service_Calendar_Settings_Resource( - $this, - $this->serviceName, - 'settings', - array( - 'methods' => array( - 'get' => array( - 'path' => 'users/me/settings/{setting}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'setting' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'users/me/settings', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'watch' => array( - 'path' => 'users/me/settings/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Calendar service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'calendar/v3/'; + $this->version = 'v3'; + $this->serviceName = 'calendar'; + + $this->acl = new Google_Service_Calendar_Acl_Resource( + $this, + $this->serviceName, + 'acl', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'calendars/{calendarId}/acl/{ruleId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ruleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'calendars/{calendarId}/acl/{ruleId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ruleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'calendars/{calendarId}/acl', + 'httpMethod' => 'POST', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'calendars/{calendarId}/acl', + 'httpMethod' => 'GET', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'patch' => array( + 'path' => 'calendars/{calendarId}/acl/{ruleId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ruleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'calendars/{calendarId}/acl/{ruleId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ruleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'watch' => array( + 'path' => 'calendars/{calendarId}/acl/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->calendarList = new Google_Service_Calendar_CalendarList_Resource( + $this, + $this->serviceName, + 'calendarList', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'users/me/calendarList/{calendarId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'users/me/calendarList/{calendarId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'users/me/calendarList', + 'httpMethod' => 'POST', + 'parameters' => array( + 'colorRgbFormat' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => 'users/me/calendarList', + 'httpMethod' => 'GET', + 'parameters' => array( + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'minAccessRole' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showHidden' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'patch' => array( + 'path' => 'users/me/calendarList/{calendarId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'colorRgbFormat' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'update' => array( + 'path' => 'users/me/calendarList/{calendarId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'colorRgbFormat' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'watch' => array( + 'path' => 'users/me/calendarList/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'minAccessRole' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showHidden' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->calendars = new Google_Service_Calendar_Calendars_Resource( + $this, + $this->serviceName, + 'calendars', + array( + 'methods' => array( + 'clear' => array( + 'path' => 'calendars/{calendarId}/clear', + 'httpMethod' => 'POST', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => 'calendars/{calendarId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'calendars/{calendarId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'calendars', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'patch' => array( + 'path' => 'calendars/{calendarId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'calendars/{calendarId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->channels = new Google_Service_Calendar_Channels_Resource( + $this, + $this->serviceName, + 'channels', + array( + 'methods' => array( + 'stop' => array( + 'path' => 'channels/stop', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->colors = new Google_Service_Calendar_Colors_Resource( + $this, + $this->serviceName, + 'colors', + array( + 'methods' => array( + 'get' => array( + 'path' => 'colors', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->events = new Google_Service_Calendar_Events_Resource( + $this, + $this->serviceName, + 'events', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'calendars/{calendarId}/events/{eventId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'eventId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sendNotifications' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'get' => array( + 'path' => 'calendars/{calendarId}/events/{eventId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'eventId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'timeZone' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'alwaysIncludeEmail' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxAttendees' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'import' => array( + 'path' => 'calendars/{calendarId}/events/import', + 'httpMethod' => 'POST', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'calendars/{calendarId}/events', + 'httpMethod' => 'POST', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sendNotifications' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxAttendees' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'instances' => array( + 'path' => 'calendars/{calendarId}/events/{eventId}/instances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'eventId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'timeMax' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'alwaysIncludeEmail' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timeMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timeZone' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'originalStart' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxAttendees' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'list' => array( + 'path' => 'calendars/{calendarId}/events', + 'httpMethod' => 'GET', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showHiddenInvitations' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'iCalUID' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updatedMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'singleEvents' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'timeMax' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'alwaysIncludeEmail' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timeMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timeZone' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'privateExtendedProperty' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sharedExtendedProperty' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxAttendees' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'move' => array( + 'path' => 'calendars/{calendarId}/events/{eventId}/move', + 'httpMethod' => 'POST', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'eventId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'destination' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sendNotifications' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'patch' => array( + 'path' => 'calendars/{calendarId}/events/{eventId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'eventId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sendNotifications' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'alwaysIncludeEmail' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxAttendees' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'quickAdd' => array( + 'path' => 'calendars/{calendarId}/events/quickAdd', + 'httpMethod' => 'POST', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'text' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sendNotifications' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'update' => array( + 'path' => 'calendars/{calendarId}/events/{eventId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'eventId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sendNotifications' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'alwaysIncludeEmail' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxAttendees' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'watch' => array( + 'path' => 'calendars/{calendarId}/events/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'calendarId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showHiddenInvitations' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'iCalUID' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updatedMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'singleEvents' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'timeMax' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'alwaysIncludeEmail' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timeMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timeZone' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'privateExtendedProperty' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sharedExtendedProperty' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxAttendees' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->freebusy = new Google_Service_Calendar_Freebusy_Resource( + $this, + $this->serviceName, + 'freebusy', + array( + 'methods' => array( + 'query' => array( + 'path' => 'freeBusy', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->settings = new Google_Service_Calendar_Settings_Resource( + $this, + $this->serviceName, + 'settings', + array( + 'methods' => array( + 'get' => array( + 'path' => 'users/me/settings/{setting}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'setting' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'users/me/settings', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'watch' => array( + 'path' => 'users/me/settings/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -879,161 +877,159 @@ class Google_Service_Calendar extends Google_Service * $acl = $calendarService->acl; * */ -class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource -{ +class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource { - /** - * Deletes an access control rule. (acl.delete) - * - * @param string $calendarId - * Calendar identifier. - * @param string $ruleId - * ACL rule identifier. - * @param array $optParams Optional parameters. - */ - public function delete($calendarId, $ruleId, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns an access control rule. (acl.get) - * - * @param string $calendarId - * Calendar identifier. - * @param string $ruleId - * ACL rule identifier. - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_AclRule - */ - public function get($calendarId, $ruleId, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Calendar_AclRule"); - } - /** - * Creates an access control rule. (acl.insert) - * - * @param string $calendarId - * Calendar identifier. - * @param Google_AclRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_AclRule - */ - public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Calendar_AclRule"); - } - /** - * Returns the rules in the access control list for the calendar. (acl.listAcl) - * - * @param string $calendarId - * Calendar identifier. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. All entries deleted since the previous list request will always be in the - * result set and it is not allowed to set showDeleted to False. - If the syncToken expires, the - * server will respond with a 410 GONE response code and the client should clear its storage and - * perform a full synchronization without any syncToken. - Learn more about incremental - * synchronization. - Optional. The default is to return all entries. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param bool showDeleted - * Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to - * "none". Deleted ACLs will always be included if syncToken is provided. Optional. The default is - * False. - * @return Google_Service_Calendar_Acl - */ - public function listAcl($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Calendar_Acl"); - } - /** - * Updates an access control rule. This method supports patch semantics. - * (acl.patch) - * - * @param string $calendarId - * Calendar identifier. - * @param string $ruleId - * ACL rule identifier. - * @param Google_AclRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_AclRule - */ - public function patch($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Calendar_AclRule"); - } - /** - * Updates an access control rule. (acl.update) - * - * @param string $calendarId - * Calendar identifier. - * @param string $ruleId - * ACL rule identifier. - * @param Google_AclRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_AclRule - */ - public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Calendar_AclRule"); - } - /** - * Watch for changes to ACL resources. (acl.watch) - * - * @param string $calendarId - * Calendar identifier. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. All entries deleted since the previous list request will always be in the - * result set and it is not allowed to set showDeleted to False. - If the syncToken expires, the - * server will respond with a 410 GONE response code and the client should clear its storage and - * perform a full synchronization without any syncToken. - Learn more about incremental - * synchronization. - Optional. The default is to return all entries. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param bool showDeleted - * Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to - * "none". Deleted ACLs will always be included if syncToken is provided. Optional. The default is - * False. - * @return Google_Service_Calendar_Channel - */ - public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); - } + /** + * Deletes an access control rule. (acl.delete) + * + * @param string $calendarId + * Calendar identifier. + * @param string $ruleId + * ACL rule identifier. + * @param array $optParams Optional parameters. + */ + public function delete($calendarId, $ruleId, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns an access control rule. (acl.get) + * + * @param string $calendarId + * Calendar identifier. + * @param string $ruleId + * ACL rule identifier. + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_AclRule + */ + public function get($calendarId, $ruleId, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Calendar_AclRule"); + } + + /** + * Creates an access control rule. (acl.insert) + * + * @param string $calendarId + * Calendar identifier. + * @param Google_AclRule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_AclRule + */ + public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Calendar_AclRule"); + } + + /** + * Returns the rules in the access control list for the calendar. (acl.listAcl) + * + * @param string $calendarId + * Calendar identifier. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Token specifying which result page to return. Optional. + * @opt_param string syncToken + * Token obtained from the nextSyncToken field returned on the last page of results from the + * previous list request. It makes the result of this list request contain only entries that have + * changed since then. All entries deleted since the previous list request will always be in the + * result set and it is not allowed to set showDeleted to False. + * If the syncToken expires, the + * server will respond with a 410 GONE response code and the client should clear its storage and + * perform a full synchronization without any syncToken. + * Learn more about incremental + * synchronization. + * Optional. The default is to return all entries. + * @opt_param int maxResults + * Maximum number of entries returned on one result page. By default the value is 100 entries. The + * page size can never be larger than 250 entries. Optional. + * @opt_param bool showDeleted + * Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to + * "none". Deleted ACLs will always be included if syncToken is provided. Optional. The default is + * False. + * @return Google_Service_Calendar_Acl + */ + public function listAcl($calendarId, $optParams = array()) { + $params = array('calendarId' => $calendarId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Calendar_Acl"); + } + + /** + * Updates an access control rule. This method supports patch semantics. + * (acl.patch) + * + * @param string $calendarId + * Calendar identifier. + * @param string $ruleId + * ACL rule identifier. + * @param Google_AclRule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_AclRule + */ + public function patch($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Calendar_AclRule"); + } + + /** + * Updates an access control rule. (acl.update) + * + * @param string $calendarId + * Calendar identifier. + * @param string $ruleId + * ACL rule identifier. + * @param Google_AclRule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_AclRule + */ + public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Calendar_AclRule"); + } + + /** + * Watch for changes to ACL resources. (acl.watch) + * + * @param string $calendarId + * Calendar identifier. + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Token specifying which result page to return. Optional. + * @opt_param string syncToken + * Token obtained from the nextSyncToken field returned on the last page of results from the + * previous list request. It makes the result of this list request contain only entries that have + * changed since then. All entries deleted since the previous list request will always be in the + * result set and it is not allowed to set showDeleted to False. + * If the syncToken expires, the + * server will respond with a 410 GONE response code and the client should clear its storage and + * perform a full synchronization without any syncToken. + * Learn more about incremental + * synchronization. + * Optional. The default is to return all entries. + * @opt_param int maxResults + * Maximum number of entries returned on one result page. By default the value is 100 entries. The + * page size can never be larger than 250 entries. Optional. + * @opt_param bool showDeleted + * Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to + * "none". Deleted ACLs will always be included if syncToken is provided. Optional. The default is + * False. + * @return Google_Service_Calendar_Channel + */ + public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); + } } /** @@ -1044,176 +1040,174 @@ class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource * $calendarList = $calendarService->calendarList; * */ -class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resource -{ +class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resource { - /** - * Deletes an entry on the user's calendar list. (calendarList.delete) - * - * @param string $calendarId - * Calendar identifier. - * @param array $optParams Optional parameters. - */ - public function delete($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns an entry on the user's calendar list. (calendarList.get) - * - * @param string $calendarId - * Calendar identifier. - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_CalendarListEntry - */ - public function get($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Calendar_CalendarListEntry"); - } - /** - * Adds an entry to the user's calendar list. (calendarList.insert) - * - * @param Google_CalendarListEntry $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool colorRgbFormat - * Whether to use the foregroundColor and backgroundColor fields to write the calendar colors - * (RGB). If this feature is used, the index-based colorId field will be set to the best matching - * option automatically. Optional. The default is False. - * @return Google_Service_Calendar_CalendarListEntry - */ - public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Calendar_CalendarListEntry"); - } - /** - * Returns entries on the user's calendar list. (calendarList.listCalendarList) - * - * @param array $optParams Optional parameters. - * - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. If only read-only fields such as calendar properties or ACLs have changed, - * the entry won't be returned. All entries deleted and hidden since the previous list request will - * always be in the result set and it is not allowed to set showDeleted neither showHidden to - * False. - To ensure client state consistency minAccessRole query parameter cannot be specified - * together with nextSyncToken. - If the syncToken expires, the server will respond with a 410 GONE - * response code and the client should clear its storage and perform a full synchronization without - * any syncToken. - Learn more about incremental synchronization. - Optional. The default is to return - * all entries. - * @opt_param bool showDeleted - * Whether to include deleted calendar list entries in the result. Optional. The default is False. - * @opt_param string minAccessRole - * The minimum access role for the user in the returned entires. Optional. The default is no - * restriction. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param bool showHidden - * Whether to show hidden entries. Optional. The default is False. - * @return Google_Service_Calendar_CalendarList - */ - public function listCalendarList($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Calendar_CalendarList"); - } - /** - * Updates an entry on the user's calendar list. This method supports patch - * semantics. (calendarList.patch) - * - * @param string $calendarId - * Calendar identifier. - * @param Google_CalendarListEntry $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool colorRgbFormat - * Whether to use the foregroundColor and backgroundColor fields to write the calendar colors - * (RGB). If this feature is used, the index-based colorId field will be set to the best matching - * option automatically. Optional. The default is False. - * @return Google_Service_Calendar_CalendarListEntry - */ - public function patch($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Calendar_CalendarListEntry"); - } - /** - * Updates an entry on the user's calendar list. (calendarList.update) - * - * @param string $calendarId - * Calendar identifier. - * @param Google_CalendarListEntry $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool colorRgbFormat - * Whether to use the foregroundColor and backgroundColor fields to write the calendar colors - * (RGB). If this feature is used, the index-based colorId field will be set to the best matching - * option automatically. Optional. The default is False. - * @return Google_Service_Calendar_CalendarListEntry - */ - public function update($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Calendar_CalendarListEntry"); - } - /** - * Watch for changes to CalendarList resources. (calendarList.watch) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. If only read-only fields such as calendar properties or ACLs have changed, - * the entry won't be returned. All entries deleted and hidden since the previous list request will - * always be in the result set and it is not allowed to set showDeleted neither showHidden to - * False. - To ensure client state consistency minAccessRole query parameter cannot be specified - * together with nextSyncToken. - If the syncToken expires, the server will respond with a 410 GONE - * response code and the client should clear its storage and perform a full synchronization without - * any syncToken. - Learn more about incremental synchronization. - Optional. The default is to return - * all entries. - * @opt_param bool showDeleted - * Whether to include deleted calendar list entries in the result. Optional. The default is False. - * @opt_param string minAccessRole - * The minimum access role for the user in the returned entires. Optional. The default is no - * restriction. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param bool showHidden - * Whether to show hidden entries. Optional. The default is False. - * @return Google_Service_Calendar_Channel - */ - public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); - } + /** + * Deletes an entry on the user's calendar list. (calendarList.delete) + * + * @param string $calendarId + * Calendar identifier. + * @param array $optParams Optional parameters. + */ + public function delete($calendarId, $optParams = array()) { + $params = array('calendarId' => $calendarId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns an entry on the user's calendar list. (calendarList.get) + * + * @param string $calendarId + * Calendar identifier. + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_CalendarListEntry + */ + public function get($calendarId, $optParams = array()) { + $params = array('calendarId' => $calendarId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Calendar_CalendarListEntry"); + } + + /** + * Adds an entry to the user's calendar list. (calendarList.insert) + * + * @param Google_CalendarListEntry $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool colorRgbFormat + * Whether to use the foregroundColor and backgroundColor fields to write the calendar colors + * (RGB). If this feature is used, the index-based colorId field will be set to the best matching + * option automatically. Optional. The default is False. + * @return Google_Service_Calendar_CalendarListEntry + */ + public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Calendar_CalendarListEntry"); + } + + /** + * Returns entries on the user's calendar list. (calendarList.listCalendarList) + * + * @param array $optParams Optional parameters. + * + * @opt_param string syncToken + * Token obtained from the nextSyncToken field returned on the last page of results from the + * previous list request. It makes the result of this list request contain only entries that have + * changed since then. If only read-only fields such as calendar properties or ACLs have changed, + * the entry won't be returned. All entries deleted and hidden since the previous list request will + * always be in the result set and it is not allowed to set showDeleted neither showHidden to + * False. + * To ensure client state consistency minAccessRole query parameter cannot be specified + * together with nextSyncToken. + * If the syncToken expires, the server will respond with a 410 GONE + * response code and the client should clear its storage and perform a full synchronization without + * any syncToken. + * Learn more about incremental synchronization. + * Optional. The default is to return + * all entries. + * @opt_param bool showDeleted + * Whether to include deleted calendar list entries in the result. Optional. The default is False. + * @opt_param string minAccessRole + * The minimum access role for the user in the returned entires. Optional. The default is no + * restriction. + * @opt_param int maxResults + * Maximum number of entries returned on one result page. By default the value is 100 entries. The + * page size can never be larger than 250 entries. Optional. + * @opt_param string pageToken + * Token specifying which result page to return. Optional. + * @opt_param bool showHidden + * Whether to show hidden entries. Optional. The default is False. + * @return Google_Service_Calendar_CalendarList + */ + public function listCalendarList($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Calendar_CalendarList"); + } + + /** + * Updates an entry on the user's calendar list. This method supports patch + * semantics. (calendarList.patch) + * + * @param string $calendarId + * Calendar identifier. + * @param Google_CalendarListEntry $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool colorRgbFormat + * Whether to use the foregroundColor and backgroundColor fields to write the calendar colors + * (RGB). If this feature is used, the index-based colorId field will be set to the best matching + * option automatically. Optional. The default is False. + * @return Google_Service_Calendar_CalendarListEntry + */ + public function patch($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Calendar_CalendarListEntry"); + } + + /** + * Updates an entry on the user's calendar list. (calendarList.update) + * + * @param string $calendarId + * Calendar identifier. + * @param Google_CalendarListEntry $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool colorRgbFormat + * Whether to use the foregroundColor and backgroundColor fields to write the calendar colors + * (RGB). If this feature is used, the index-based colorId field will be set to the best matching + * option automatically. Optional. The default is False. + * @return Google_Service_Calendar_CalendarListEntry + */ + public function update($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Calendar_CalendarListEntry"); + } + + /** + * Watch for changes to CalendarList resources. (calendarList.watch) + * + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string syncToken + * Token obtained from the nextSyncToken field returned on the last page of results from the + * previous list request. It makes the result of this list request contain only entries that have + * changed since then. If only read-only fields such as calendar properties or ACLs have changed, + * the entry won't be returned. All entries deleted and hidden since the previous list request will + * always be in the result set and it is not allowed to set showDeleted neither showHidden to + * False. + * To ensure client state consistency minAccessRole query parameter cannot be specified + * together with nextSyncToken. + * If the syncToken expires, the server will respond with a 410 GONE + * response code and the client should clear its storage and perform a full synchronization without + * any syncToken. + * Learn more about incremental synchronization. + * Optional. The default is to return + * all entries. + * @opt_param bool showDeleted + * Whether to include deleted calendar list entries in the result. Optional. The default is False. + * @opt_param string minAccessRole + * The minimum access role for the user in the returned entires. Optional. The default is no + * restriction. + * @opt_param int maxResults + * Maximum number of entries returned on one result page. By default the value is 100 entries. The + * page size can never be larger than 250 entries. Optional. + * @opt_param string pageToken + * Token specifying which result page to return. Optional. + * @opt_param bool showHidden + * Whether to show hidden entries. Optional. The default is False. + * @return Google_Service_Calendar_Channel + */ + public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); + } } /** @@ -1224,94 +1218,92 @@ class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resou * $calendars = $calendarService->calendars; * */ -class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource -{ +class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource { - /** - * Clears a primary calendar. This operation deletes all data associated with - * the primary calendar of an account and cannot be undone. (calendars.clear) - * - * @param string $calendarId - * Calendar identifier. - * @param array $optParams Optional parameters. - */ - public function clear($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('clear', array($params)); - } - /** - * Deletes a secondary calendar. (calendars.delete) - * - * @param string $calendarId - * Calendar identifier. - * @param array $optParams Optional parameters. - */ - public function delete($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns metadata for a calendar. (calendars.get) - * - * @param string $calendarId - * Calendar identifier. - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Calendar - */ - public function get($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Calendar_Calendar"); - } - /** - * Creates a secondary calendar. (calendars.insert) - * - * @param Google_Calendar $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Calendar - */ - public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Calendar_Calendar"); - } - /** - * Updates metadata for a calendar. This method supports patch semantics. - * (calendars.patch) - * - * @param string $calendarId - * Calendar identifier. - * @param Google_Calendar $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Calendar - */ - public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Calendar_Calendar"); - } - /** - * Updates metadata for a calendar. (calendars.update) - * - * @param string $calendarId - * Calendar identifier. - * @param Google_Calendar $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Calendar - */ - public function update($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Calendar_Calendar"); - } + /** + * Clears a primary calendar. This operation deletes all data associated with + * the primary calendar of an account and cannot be undone. (calendars.clear) + * + * @param string $calendarId + * Calendar identifier. + * @param array $optParams Optional parameters. + */ + public function clear($calendarId, $optParams = array()) { + $params = array('calendarId' => $calendarId); + $params = array_merge($params, $optParams); + return $this->call('clear', array($params)); + } + + /** + * Deletes a secondary calendar. (calendars.delete) + * + * @param string $calendarId + * Calendar identifier. + * @param array $optParams Optional parameters. + */ + public function delete($calendarId, $optParams = array()) { + $params = array('calendarId' => $calendarId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns metadata for a calendar. (calendars.get) + * + * @param string $calendarId + * Calendar identifier. + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_Calendar + */ + public function get($calendarId, $optParams = array()) { + $params = array('calendarId' => $calendarId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Calendar_Calendar"); + } + + /** + * Creates a secondary calendar. (calendars.insert) + * + * @param Google_Calendar $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_Calendar + */ + public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Calendar_Calendar"); + } + + /** + * Updates metadata for a calendar. This method supports patch semantics. + * (calendars.patch) + * + * @param string $calendarId + * Calendar identifier. + * @param Google_Calendar $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_Calendar + */ + public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Calendar_Calendar"); + } + + /** + * Updates metadata for a calendar. (calendars.update) + * + * @param string $calendarId + * Calendar identifier. + * @param Google_Calendar $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_Calendar + */ + public function update($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Calendar_Calendar"); + } } /** @@ -1322,21 +1314,19 @@ class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource * $channels = $calendarService->channels; * */ -class Google_Service_Calendar_Channels_Resource extends Google_Service_Resource -{ +class Google_Service_Calendar_Channels_Resource extends Google_Service_Resource { - /** - * Stop watching resources through this channel (channels.stop) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - */ - public function stop(Google_Service_Calendar_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } + /** + * Stop watching resources through this channel (channels.stop) + * + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + */ + public function stop(Google_Service_Calendar_Channel $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('stop', array($params)); + } } /** @@ -1347,21 +1337,19 @@ class Google_Service_Calendar_Channels_Resource extends Google_Service_Resource * $colors = $calendarService->colors; * */ -class Google_Service_Calendar_Colors_Resource extends Google_Service_Resource -{ +class Google_Service_Calendar_Colors_Resource extends Google_Service_Resource { - /** - * Returns the color definitions for calendars and events. (colors.get) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Colors - */ - public function get($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Calendar_Colors"); - } + /** + * Returns the color definitions for calendars and events. (colors.get) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_Colors + */ + public function get($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Calendar_Colors"); + } } /** @@ -1372,417 +1360,415 @@ class Google_Service_Calendar_Colors_Resource extends Google_Service_Resource * $events = $calendarService->events; * */ -class Google_Service_Calendar_Events_Resource extends Google_Service_Resource -{ +class Google_Service_Calendar_Events_Resource extends Google_Service_Resource { - /** - * Deletes an event. (events.delete) - * - * @param string $calendarId - * Calendar identifier. - * @param string $eventId - * Event identifier. - * @param array $optParams Optional parameters. - * - * @opt_param bool sendNotifications - * Whether to send notifications about the deletion of the event. Optional. The default is False. - */ - public function delete($calendarId, $eventId, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'eventId' => $eventId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns an event. (events.get) - * - * @param string $calendarId - * Calendar identifier. - * @param string $eventId - * Event identifier. - * @param array $optParams Optional parameters. - * - * @opt_param string timeZone - * Time zone used in the response. Optional. The default is the time zone of the calendar. - * @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. - * @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. - * @return Google_Service_Calendar_Event - */ - public function get($calendarId, $eventId, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'eventId' => $eventId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Calendar_Event"); - } - /** - * Imports an event. This operation is used to add a private copy of an existing - * event to a calendar. (events.import) - * - * @param string $calendarId - * Calendar identifier. - * @param Google_Event $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Event - */ - public function import($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Calendar_Event"); - } - /** - * Creates an event. (events.insert) - * - * @param string $calendarId - * Calendar identifier. - * @param Google_Event $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool sendNotifications - * Whether to send notifications about the creation of the new event. Optional. The default is - * False. - * @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. - * @return Google_Service_Calendar_Event - */ - public function insert($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Calendar_Event"); - } - /** - * Returns instances of the specified recurring event. (events.instances) - * - * @param string $calendarId - * Calendar identifier. - * @param string $eventId - * Recurring event identifier. - * @param array $optParams Optional parameters. - * - * @opt_param bool showDeleted - * Whether to include deleted events (with status equals "cancelled") in the result. Cancelled - * instances of recurring events will still be included if singleEvents is False. Optional. The - * default is False. - * @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. - * @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. - * @opt_param int maxResults - * Maximum number of events returned on one result page. By default the value is 250 events. The - * page size can never be larger than 2500 events. Optional. - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @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. - * @opt_param string timeZone - * Time zone used in the response. Optional. The default is the time zone of the calendar. - * @opt_param string originalStart - * The original start time of the instance in the result. Optional. - * @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. - * @return Google_Service_Calendar_Events - */ - public function instances($calendarId, $eventId, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'eventId' => $eventId); - $params = array_merge($params, $optParams); - return $this->call('instances', array($params), "Google_Service_Calendar_Events"); - } - /** - * Returns events on the specified calendar. (events.listEvents) - * - * @param string $calendarId - * Calendar identifier. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * The order of the events returned in the result. Optional. The default is an unspecified, stable - * order. - * @opt_param bool showHiddenInvitations - * Whether to include hidden invitations in the result. Optional. The default is False. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. All events deleted since the previous list request will always be in the - * result set and it is not allowed to set showDeleted to False. - There are several query parameters - * that cannot be specified together with nextSyncToken to ensure consistency of the client state. - * These are: - - iCalUID - - orderBy - - privateExtendedProperty - - q - - sharedExtendedProperty - - - * timeMin - - timeMax - - updatedMin If the syncToken expires, the server will respond with a 410 - * GONE response code and the client should clear its storage and perform a full synchronization - * without any syncToken. - Learn more about incremental synchronization. - Optional. The default is to - * return all entries. - * @opt_param bool showDeleted - * Whether to include deleted events (with status equals "cancelled") in the result. Cancelled - * instances of recurring events (but not the underlying recurring event) will still be included if - * showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only - * single instances of deleted events (but not the underlying recurring events) are returned. - * Optional. The default is False. - * @opt_param string iCalUID - * Specifies event ID in the iCalendar format to be included in the response. Optional. - * @opt_param string updatedMin - * Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. When - * specified, entries deleted since this time will always be included regardless of showDeleted. - * Optional. The default is not to filter by last modification time. - * @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. - * @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. - * @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. - * @opt_param int maxResults - * Maximum number of events returned on one result page. By default the value is 250 events. The - * page size can never be larger than 2500 events. Optional. - * @opt_param string q - * Free text search terms to find events that match these terms in any field, except for extended - * properties. Optional. - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @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. - * @opt_param string timeZone - * Time zone used in the response. Optional. The default is the time zone of the calendar. - * @opt_param string privateExtendedProperty - * Extended properties constraint specified as propertyName=value. Matches only private properties. - * This parameter might be repeated multiple times to return events that match all given - * constraints. - * @opt_param string sharedExtendedProperty - * Extended properties constraint specified as propertyName=value. Matches only shared properties. - * This parameter might be repeated multiple times to return events that match all given - * constraints. - * @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. - * @return Google_Service_Calendar_Events - */ - public function listEvents($calendarId, $optParams = array()) - { - $params = array('calendarId' => $calendarId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Calendar_Events"); - } - /** - * Moves an event to another calendar, i.e. changes an event's organizer. - * (events.move) - * - * @param string $calendarId - * Calendar identifier of the source calendar where the event currently is on. - * @param string $eventId - * Event identifier. - * @param string $destination - * Calendar identifier of the target calendar where the event is to be moved to. - * @param array $optParams Optional parameters. - * - * @opt_param bool sendNotifications - * Whether to send notifications about the change of the event's organizer. Optional. The default - * is False. - * @return Google_Service_Calendar_Event - */ - public function move($calendarId, $eventId, $destination, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination); - $params = array_merge($params, $optParams); - return $this->call('move', array($params), "Google_Service_Calendar_Event"); - } - /** - * Updates an event. This method supports patch semantics. (events.patch) - * - * @param string $calendarId - * Calendar identifier. - * @param string $eventId - * Event identifier. - * @param Google_Event $postBody - * @param array $optParams Optional parameters. - * - * @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. - * @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. - * @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. - * @return Google_Service_Calendar_Event - */ - public function patch($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Calendar_Event"); - } - /** - * Creates an event based on a simple text string. (events.quickAdd) - * - * @param string $calendarId - * Calendar identifier. - * @param string $text - * The text describing the event to be created. - * @param array $optParams Optional parameters. - * - * @opt_param bool sendNotifications - * Whether to send notifications about the creation of the event. Optional. The default is False. - * @return Google_Service_Calendar_Event - */ - public function quickAdd($calendarId, $text, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'text' => $text); - $params = array_merge($params, $optParams); - return $this->call('quickAdd', array($params), "Google_Service_Calendar_Event"); - } - /** - * Updates an event. (events.update) - * - * @param string $calendarId - * Calendar identifier. - * @param string $eventId - * Event identifier. - * @param Google_Event $postBody - * @param array $optParams Optional parameters. - * - * @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. - * @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. - * @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. - * @return Google_Service_Calendar_Event - */ - public function update($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Calendar_Event"); - } - /** - * Watch for changes to Events resources. (events.watch) - * - * @param string $calendarId - * Calendar identifier. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * The order of the events returned in the result. Optional. The default is an unspecified, stable - * order. - * @opt_param bool showHiddenInvitations - * Whether to include hidden invitations in the result. Optional. The default is False. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. All events deleted since the previous list request will always be in the - * result set and it is not allowed to set showDeleted to False. - There are several query parameters - * that cannot be specified together with nextSyncToken to ensure consistency of the client state. - * These are: - - iCalUID - - orderBy - - privateExtendedProperty - - q - - sharedExtendedProperty - - - * timeMin - - timeMax - - updatedMin If the syncToken expires, the server will respond with a 410 - * GONE response code and the client should clear its storage and perform a full synchronization - * without any syncToken. - Learn more about incremental synchronization. - Optional. The default is to - * return all entries. - * @opt_param bool showDeleted - * Whether to include deleted events (with status equals "cancelled") in the result. Cancelled - * instances of recurring events (but not the underlying recurring event) will still be included if - * showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only - * single instances of deleted events (but not the underlying recurring events) are returned. - * Optional. The default is False. - * @opt_param string iCalUID - * Specifies event ID in the iCalendar format to be included in the response. Optional. - * @opt_param string updatedMin - * Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. When - * specified, entries deleted since this time will always be included regardless of showDeleted. - * Optional. The default is not to filter by last modification time. - * @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. - * @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. - * @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. - * @opt_param int maxResults - * Maximum number of events returned on one result page. By default the value is 250 events. The - * page size can never be larger than 2500 events. Optional. - * @opt_param string q - * Free text search terms to find events that match these terms in any field, except for extended - * properties. Optional. - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @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. - * @opt_param string timeZone - * Time zone used in the response. Optional. The default is the time zone of the calendar. - * @opt_param string privateExtendedProperty - * Extended properties constraint specified as propertyName=value. Matches only private properties. - * This parameter might be repeated multiple times to return events that match all given - * constraints. - * @opt_param string sharedExtendedProperty - * Extended properties constraint specified as propertyName=value. Matches only shared properties. - * This parameter might be repeated multiple times to return events that match all given - * constraints. - * @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. - * @return Google_Service_Calendar_Channel - */ - public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array()) - { - $params = array('calendarId' => $calendarId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); - } + /** + * Deletes an event. (events.delete) + * + * @param string $calendarId + * Calendar identifier. + * @param string $eventId + * Event identifier. + * @param array $optParams Optional parameters. + * + * @opt_param bool sendNotifications + * Whether to send notifications about the deletion of the event. Optional. The default is False. + */ + public function delete($calendarId, $eventId, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'eventId' => $eventId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns an event. (events.get) + * + * @param string $calendarId + * Calendar identifier. + * @param string $eventId + * Event identifier. + * @param array $optParams Optional parameters. + * + * @opt_param string timeZone + * Time zone used in the response. Optional. The default is the time zone of the calendar. + * @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. + * @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. + * @return Google_Service_Calendar_Event + */ + public function get($calendarId, $eventId, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'eventId' => $eventId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Calendar_Event"); + } + + /** + * Imports an event. This operation is used to add a private copy of an existing + * event to a calendar. (events.import) + * + * @param string $calendarId + * Calendar identifier. + * @param Google_Event $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_Event + */ + public function import($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('import', array($params), "Google_Service_Calendar_Event"); + } + + /** + * Creates an event. (events.insert) + * + * @param string $calendarId + * Calendar identifier. + * @param Google_Event $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool sendNotifications + * Whether to send notifications about the creation of the new event. Optional. The default is + * False. + * @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. + * @return Google_Service_Calendar_Event + */ + public function insert($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Calendar_Event"); + } + + /** + * Returns instances of the specified recurring event. (events.instances) + * + * @param string $calendarId + * Calendar identifier. + * @param string $eventId + * Recurring event identifier. + * @param array $optParams Optional parameters. + * + * @opt_param bool showDeleted + * Whether to include deleted events (with status equals "cancelled") in the result. Cancelled + * instances of recurring events will still be included if singleEvents is False. Optional. The + * default is False. + * @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. + * @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. + * @opt_param int maxResults + * Maximum number of events returned on one result page. By default the value is 250 events. The + * page size can never be larger than 2500 events. Optional. + * @opt_param string pageToken + * Token specifying which result page to return. Optional. + * @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. + * @opt_param string timeZone + * Time zone used in the response. Optional. The default is the time zone of the calendar. + * @opt_param string originalStart + * The original start time of the instance in the result. Optional. + * @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. + * @return Google_Service_Calendar_Events + */ + public function instances($calendarId, $eventId, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'eventId' => $eventId); + $params = array_merge($params, $optParams); + return $this->call('instances', array($params), "Google_Service_Calendar_Events"); + } + + /** + * Returns events on the specified calendar. (events.listEvents) + * + * @param string $calendarId + * Calendar identifier. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * The order of the events returned in the result. Optional. The default is an unspecified, stable + * order. + * @opt_param bool showHiddenInvitations + * Whether to include hidden invitations in the result. Optional. The default is False. + * @opt_param string syncToken + * Token obtained from the nextSyncToken field returned on the last page of results from the + * previous list request. It makes the result of this list request contain only entries that have + * changed since then. All events deleted since the previous list request will always be in the + * result set and it is not allowed to set showDeleted to False. + * There are several query parameters + * that cannot be specified together with nextSyncToken to ensure consistency of the client state. + * These are: + * - iCalUID + * - orderBy + * - privateExtendedProperty + * - q + * - sharedExtendedProperty + * - + * timeMin + * - timeMax + * - updatedMin If the syncToken expires, the server will respond with a 410 + * GONE response code and the client should clear its storage and perform a full synchronization + * without any syncToken. + * Learn more about incremental synchronization. + * Optional. The default is to + * return all entries. + * @opt_param bool showDeleted + * Whether to include deleted events (with status equals "cancelled") in the result. Cancelled + * instances of recurring events (but not the underlying recurring event) will still be included if + * showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only + * single instances of deleted events (but not the underlying recurring events) are returned. + * Optional. The default is False. + * @opt_param string iCalUID + * Specifies event ID in the iCalendar format to be included in the response. Optional. + * @opt_param string updatedMin + * Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. When + * specified, entries deleted since this time will always be included regardless of showDeleted. + * Optional. The default is not to filter by last modification time. + * @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. + * @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. + * @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. + * @opt_param int maxResults + * Maximum number of events returned on one result page. By default the value is 250 events. The + * page size can never be larger than 2500 events. Optional. + * @opt_param string q + * Free text search terms to find events that match these terms in any field, except for extended + * properties. Optional. + * @opt_param string pageToken + * Token specifying which result page to return. Optional. + * @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. + * @opt_param string timeZone + * Time zone used in the response. Optional. The default is the time zone of the calendar. + * @opt_param string privateExtendedProperty + * Extended properties constraint specified as propertyName=value. Matches only private properties. + * This parameter might be repeated multiple times to return events that match all given + * constraints. + * @opt_param string sharedExtendedProperty + * Extended properties constraint specified as propertyName=value. Matches only shared properties. + * This parameter might be repeated multiple times to return events that match all given + * constraints. + * @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. + * @return Google_Service_Calendar_Events + */ + public function listEvents($calendarId, $optParams = array()) { + $params = array('calendarId' => $calendarId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Calendar_Events"); + } + + /** + * Moves an event to another calendar, i.e. changes an event's organizer. + * (events.move) + * + * @param string $calendarId + * Calendar identifier of the source calendar where the event currently is on. + * @param string $eventId + * Event identifier. + * @param string $destination + * Calendar identifier of the target calendar where the event is to be moved to. + * @param array $optParams Optional parameters. + * + * @opt_param bool sendNotifications + * Whether to send notifications about the change of the event's organizer. Optional. The default + * is False. + * @return Google_Service_Calendar_Event + */ + public function move($calendarId, $eventId, $destination, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination); + $params = array_merge($params, $optParams); + return $this->call('move', array($params), "Google_Service_Calendar_Event"); + } + + /** + * Updates an event. This method supports patch semantics. (events.patch) + * + * @param string $calendarId + * Calendar identifier. + * @param string $eventId + * Event identifier. + * @param Google_Event $postBody + * @param array $optParams Optional parameters. + * + * @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. + * @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. + * @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. + * @return Google_Service_Calendar_Event + */ + public function patch($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Calendar_Event"); + } + + /** + * Creates an event based on a simple text string. (events.quickAdd) + * + * @param string $calendarId + * Calendar identifier. + * @param string $text + * The text describing the event to be created. + * @param array $optParams Optional parameters. + * + * @opt_param bool sendNotifications + * Whether to send notifications about the creation of the event. Optional. The default is False. + * @return Google_Service_Calendar_Event + */ + public function quickAdd($calendarId, $text, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'text' => $text); + $params = array_merge($params, $optParams); + return $this->call('quickAdd', array($params), "Google_Service_Calendar_Event"); + } + + /** + * Updates an event. (events.update) + * + * @param string $calendarId + * Calendar identifier. + * @param string $eventId + * Event identifier. + * @param Google_Event $postBody + * @param array $optParams Optional parameters. + * + * @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. + * @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. + * @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. + * @return Google_Service_Calendar_Event + */ + public function update($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Calendar_Event"); + } + + /** + * Watch for changes to Events resources. (events.watch) + * + * @param string $calendarId + * Calendar identifier. + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * The order of the events returned in the result. Optional. The default is an unspecified, stable + * order. + * @opt_param bool showHiddenInvitations + * Whether to include hidden invitations in the result. Optional. The default is False. + * @opt_param string syncToken + * Token obtained from the nextSyncToken field returned on the last page of results from the + * previous list request. It makes the result of this list request contain only entries that have + * changed since then. All events deleted since the previous list request will always be in the + * result set and it is not allowed to set showDeleted to False. + * There are several query parameters + * that cannot be specified together with nextSyncToken to ensure consistency of the client state. + * These are: + * - iCalUID + * - orderBy + * - privateExtendedProperty + * - q + * - sharedExtendedProperty + * - + * timeMin + * - timeMax + * - updatedMin If the syncToken expires, the server will respond with a 410 + * GONE response code and the client should clear its storage and perform a full synchronization + * without any syncToken. + * Learn more about incremental synchronization. + * Optional. The default is to + * return all entries. + * @opt_param bool showDeleted + * Whether to include deleted events (with status equals "cancelled") in the result. Cancelled + * instances of recurring events (but not the underlying recurring event) will still be included if + * showDeleted and singleEvents are both False. If showDeleted and singleEvents are both True, only + * single instances of deleted events (but not the underlying recurring events) are returned. + * Optional. The default is False. + * @opt_param string iCalUID + * Specifies event ID in the iCalendar format to be included in the response. Optional. + * @opt_param string updatedMin + * Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. When + * specified, entries deleted since this time will always be included regardless of showDeleted. + * Optional. The default is not to filter by last modification time. + * @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. + * @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. + * @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. + * @opt_param int maxResults + * Maximum number of events returned on one result page. By default the value is 250 events. The + * page size can never be larger than 2500 events. Optional. + * @opt_param string q + * Free text search terms to find events that match these terms in any field, except for extended + * properties. Optional. + * @opt_param string pageToken + * Token specifying which result page to return. Optional. + * @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. + * @opt_param string timeZone + * Time zone used in the response. Optional. The default is the time zone of the calendar. + * @opt_param string privateExtendedProperty + * Extended properties constraint specified as propertyName=value. Matches only private properties. + * This parameter might be repeated multiple times to return events that match all given + * constraints. + * @opt_param string sharedExtendedProperty + * Extended properties constraint specified as propertyName=value. Matches only shared properties. + * This parameter might be repeated multiple times to return events that match all given + * constraints. + * @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. + * @return Google_Service_Calendar_Channel + */ + public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array()) { + $params = array('calendarId' => $calendarId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); + } } /** @@ -1793,22 +1779,20 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource * $freebusy = $calendarService->freebusy; * */ -class Google_Service_Calendar_Freebusy_Resource extends Google_Service_Resource -{ +class Google_Service_Calendar_Freebusy_Resource extends Google_Service_Resource { - /** - * Returns free/busy information for a set of calendars. (freebusy.query) - * - * @param Google_FreeBusyRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_FreeBusyResponse - */ - public function query(Google_Service_Calendar_FreeBusyRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Calendar_FreeBusyResponse"); - } + /** + * Returns free/busy information for a set of calendars. (freebusy.query) + * + * @param Google_FreeBusyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_FreeBusyResponse + */ + public function query(Google_Service_Calendar_FreeBusyRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Calendar_FreeBusyResponse"); + } } /** @@ -1819,2187 +1803,1796 @@ class Google_Service_Calendar_Freebusy_Resource extends Google_Service_Resource * $settings = $calendarService->settings; * */ -class Google_Service_Calendar_Settings_Resource extends Google_Service_Resource -{ +class Google_Service_Calendar_Settings_Resource extends Google_Service_Resource { - /** - * Returns a single user setting. (settings.get) - * - * @param string $setting - * The id of the user setting. - * @param array $optParams Optional parameters. - * @return Google_Service_Calendar_Setting - */ - public function get($setting, $optParams = array()) - { - $params = array('setting' => $setting); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Calendar_Setting"); - } - /** - * Returns all user settings for the authenticated user. (settings.listSettings) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. - If the syncToken expires, the server will respond with a 410 GONE response - * code and the client should clear its storage and perform a full synchronization without any - * syncToken. - Learn more about incremental synchronization. - Optional. The default is to return all - * entries. - * @return Google_Service_Calendar_Settings - */ - public function listSettings($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Calendar_Settings"); - } - /** - * Watch for changes to Settings resources. (settings.watch) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Token specifying which result page to return. Optional. - * @opt_param int maxResults - * Maximum number of entries returned on one result page. By default the value is 100 entries. The - * page size can never be larger than 250 entries. Optional. - * @opt_param string syncToken - * Token obtained from the nextSyncToken field returned on the last page of results from the - * previous list request. It makes the result of this list request contain only entries that have - * changed since then. - If the syncToken expires, the server will respond with a 410 GONE response - * code and the client should clear its storage and perform a full synchronization without any - * syncToken. - Learn more about incremental synchronization. - Optional. The default is to return all - * entries. - * @return Google_Service_Calendar_Channel - */ - public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); - } + /** + * Returns a single user setting. (settings.get) + * + * @param string $setting + * The id of the user setting. + * @param array $optParams Optional parameters. + * @return Google_Service_Calendar_Setting + */ + public function get($setting, $optParams = array()) { + $params = array('setting' => $setting); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Calendar_Setting"); + } + + /** + * Returns all user settings for the authenticated user. (settings.listSettings) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Token specifying which result page to return. Optional. + * @opt_param int maxResults + * Maximum number of entries returned on one result page. By default the value is 100 entries. The + * page size can never be larger than 250 entries. Optional. + * @opt_param string syncToken + * Token obtained from the nextSyncToken field returned on the last page of results from the + * previous list request. It makes the result of this list request contain only entries that have + * changed since then. + * If the syncToken expires, the server will respond with a 410 GONE response + * code and the client should clear its storage and perform a full synchronization without any + * syncToken. + * Learn more about incremental synchronization. + * Optional. The default is to return all + * entries. + * @return Google_Service_Calendar_Settings + */ + public function listSettings($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Calendar_Settings"); + } + + /** + * Watch for changes to Settings resources. (settings.watch) + * + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Token specifying which result page to return. Optional. + * @opt_param int maxResults + * Maximum number of entries returned on one result page. By default the value is 100 entries. The + * page size can never be larger than 250 entries. Optional. + * @opt_param string syncToken + * Token obtained from the nextSyncToken field returned on the last page of results from the + * previous list request. It makes the result of this list request contain only entries that have + * changed since then. + * If the syncToken expires, the server will respond with a 410 GONE response + * code and the client should clear its storage and perform a full synchronization without any + * syncToken. + * Learn more about incremental synchronization. + * Optional. The default is to return all + * entries. + * @return Google_Service_Calendar_Channel + */ + public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Calendar_Channel"); + } } +class Google_Service_Calendar_Acl extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Calendar_AclRule'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $nextSyncToken; + public function setEtag($etag) { + $this->etag = $etag; + } -class Google_Service_Calendar_Acl extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Calendar_AclRule'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $nextSyncToken; + public function getEtag() { + return $this->etag; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setItems($items) { + $this->items = $items; + } - public function getEtag() - { - return $this->etag; - } + public function getItems() { + return $this->items; + } - public function setItems($items) - { - $this->items = $items; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getItems() - { - return $this->items; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getKind() - { - return $this->kind; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextSyncToken($nextSyncToken) { + $this->nextSyncToken = $nextSyncToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setNextSyncToken($nextSyncToken) - { - $this->nextSyncToken = $nextSyncToken; - } - - public function getNextSyncToken() - { - return $this->nextSyncToken; - } + public function getNextSyncToken() { + return $this->nextSyncToken; + } } -class Google_Service_Calendar_AclRule extends Google_Model -{ - public $etag; - public $id; - public $kind; - public $role; - protected $scopeType = 'Google_Service_Calendar_AclRuleScope'; - protected $scopeDataType = ''; +class Google_Service_Calendar_AclRule extends Google_Model { + public $etag; + public $id; + public $kind; + public $role; + protected $scopeType = 'Google_Service_Calendar_AclRuleScope'; + protected $scopeDataType = ''; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRole($role) - { - $this->role = $role; - } + public function setRole($role) { + $this->role = $role; + } - public function getRole() - { - return $this->role; - } + public function getRole() { + return $this->role; + } - public function setScope(Google_Service_Calendar_AclRuleScope $scope) - { - $this->scope = $scope; - } + public function setScope(Google_Service_Calendar_AclRuleScope $scope) { + $this->scope = $scope; + } - public function getScope() - { - return $this->scope; - } + public function getScope() { + return $this->scope; + } } -class Google_Service_Calendar_AclRuleScope extends Google_Model -{ - public $type; - public $value; +class Google_Service_Calendar_AclRuleScope extends Google_Model { + public $type; + public $value; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Calendar_Calendar extends Google_Model -{ - public $description; - public $etag; - public $id; - public $kind; - public $location; - public $summary; - public $timeZone; +class Google_Service_Calendar_Calendar extends Google_Model { + public $description; + public $etag; + public $id; + public $kind; + public $location; + public $summary; + public $timeZone; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLocation($location) - { - $this->location = $location; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setSummary($summary) - { - $this->summary = $summary; - } + public function setSummary($summary) { + $this->summary = $summary; + } - public function getSummary() - { - return $this->summary; - } + public function getSummary() { + return $this->summary; + } - public function setTimeZone($timeZone) - { - $this->timeZone = $timeZone; - } + public function setTimeZone($timeZone) { + $this->timeZone = $timeZone; + } - public function getTimeZone() - { - return $this->timeZone; - } + public function getTimeZone() { + return $this->timeZone; + } } -class Google_Service_Calendar_CalendarList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Calendar_CalendarListEntry'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $nextSyncToken; +class Google_Service_Calendar_CalendarList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Calendar_CalendarListEntry'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $nextSyncToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setNextSyncToken($nextSyncToken) - { - $this->nextSyncToken = $nextSyncToken; - } + public function setNextSyncToken($nextSyncToken) { + $this->nextSyncToken = $nextSyncToken; + } - public function getNextSyncToken() - { - return $this->nextSyncToken; - } + public function getNextSyncToken() { + return $this->nextSyncToken; + } } -class Google_Service_Calendar_CalendarListEntry extends Google_Collection -{ - public $accessRole; - public $backgroundColor; - public $colorId; - protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder'; - protected $defaultRemindersDataType = 'array'; - public $deleted; - public $description; - public $etag; - public $foregroundColor; - public $hidden; - public $id; - public $kind; - public $location; - protected $notificationSettingsType = 'Google_Service_Calendar_CalendarListEntryNotificationSettings'; - protected $notificationSettingsDataType = ''; - public $primary; - public $selected; - public $summary; - public $summaryOverride; - public $timeZone; +class Google_Service_Calendar_CalendarListEntry extends Google_Collection { + public $accessRole; + public $backgroundColor; + public $colorId; + protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder'; + protected $defaultRemindersDataType = 'array'; + public $deleted; + public $description; + public $etag; + public $foregroundColor; + public $hidden; + public $id; + public $kind; + public $location; + protected $notificationSettingsType = 'Google_Service_Calendar_CalendarListEntryNotificationSettings'; + protected $notificationSettingsDataType = ''; + public $primary; + public $selected; + public $summary; + public $summaryOverride; + public $timeZone; - public function setAccessRole($accessRole) - { - $this->accessRole = $accessRole; - } + public function setAccessRole($accessRole) { + $this->accessRole = $accessRole; + } - public function getAccessRole() - { - return $this->accessRole; - } + public function getAccessRole() { + return $this->accessRole; + } - public function setBackgroundColor($backgroundColor) - { - $this->backgroundColor = $backgroundColor; - } + public function setBackgroundColor($backgroundColor) { + $this->backgroundColor = $backgroundColor; + } - public function getBackgroundColor() - { - return $this->backgroundColor; - } + public function getBackgroundColor() { + return $this->backgroundColor; + } - public function setColorId($colorId) - { - $this->colorId = $colorId; - } + public function setColorId($colorId) { + $this->colorId = $colorId; + } - public function getColorId() - { - return $this->colorId; - } + public function getColorId() { + return $this->colorId; + } - public function setDefaultReminders($defaultReminders) - { - $this->defaultReminders = $defaultReminders; - } + public function setDefaultReminders($defaultReminders) { + $this->defaultReminders = $defaultReminders; + } - public function getDefaultReminders() - { - return $this->defaultReminders; - } + public function getDefaultReminders() { + return $this->defaultReminders; + } - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } + public function setDeleted($deleted) { + $this->deleted = $deleted; + } - public function getDeleted() - { - return $this->deleted; - } + public function getDeleted() { + return $this->deleted; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setForegroundColor($foregroundColor) - { - $this->foregroundColor = $foregroundColor; - } + public function setForegroundColor($foregroundColor) { + $this->foregroundColor = $foregroundColor; + } - public function getForegroundColor() - { - return $this->foregroundColor; - } + public function getForegroundColor() { + return $this->foregroundColor; + } - public function setHidden($hidden) - { - $this->hidden = $hidden; - } + public function setHidden($hidden) { + $this->hidden = $hidden; + } - public function getHidden() - { - return $this->hidden; - } + public function getHidden() { + return $this->hidden; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLocation($location) - { - $this->location = $location; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setNotificationSettings(Google_Service_Calendar_CalendarListEntryNotificationSettings $notificationSettings) - { - $this->notificationSettings = $notificationSettings; - } + public function setNotificationSettings(Google_Service_Calendar_CalendarListEntryNotificationSettings $notificationSettings) { + $this->notificationSettings = $notificationSettings; + } - public function getNotificationSettings() - { - return $this->notificationSettings; - } + public function getNotificationSettings() { + return $this->notificationSettings; + } - public function setPrimary($primary) - { - $this->primary = $primary; - } + public function setPrimary($primary) { + $this->primary = $primary; + } - public function getPrimary() - { - return $this->primary; - } + public function getPrimary() { + return $this->primary; + } - public function setSelected($selected) - { - $this->selected = $selected; - } + public function setSelected($selected) { + $this->selected = $selected; + } - public function getSelected() - { - return $this->selected; - } + public function getSelected() { + return $this->selected; + } - public function setSummary($summary) - { - $this->summary = $summary; - } + public function setSummary($summary) { + $this->summary = $summary; + } - public function getSummary() - { - return $this->summary; - } + public function getSummary() { + return $this->summary; + } - public function setSummaryOverride($summaryOverride) - { - $this->summaryOverride = $summaryOverride; - } + public function setSummaryOverride($summaryOverride) { + $this->summaryOverride = $summaryOverride; + } - public function getSummaryOverride() - { - return $this->summaryOverride; - } + public function getSummaryOverride() { + return $this->summaryOverride; + } - public function setTimeZone($timeZone) - { - $this->timeZone = $timeZone; - } + public function setTimeZone($timeZone) { + $this->timeZone = $timeZone; + } - public function getTimeZone() - { - return $this->timeZone; - } + public function getTimeZone() { + return $this->timeZone; + } } -class Google_Service_Calendar_CalendarListEntryNotificationSettings extends Google_Collection -{ - protected $notificationsType = 'Google_Service_Calendar_CalendarNotification'; - protected $notificationsDataType = 'array'; +class Google_Service_Calendar_CalendarListEntryNotificationSettings extends Google_Collection { + protected $notificationsType = 'Google_Service_Calendar_CalendarNotification'; + protected $notificationsDataType = 'array'; - public function setNotifications($notifications) - { - $this->notifications = $notifications; - } + public function setNotifications($notifications) { + $this->notifications = $notifications; + } - public function getNotifications() - { - return $this->notifications; - } + public function getNotifications() { + return $this->notifications; + } } -class Google_Service_Calendar_CalendarNotification extends Google_Model -{ - public $method; - public $type; +class Google_Service_Calendar_CalendarNotification extends Google_Model { + public $method; + public $type; - public function setMethod($method) - { - $this->method = $method; - } + public function setMethod($method) { + $this->method = $method; + } - public function getMethod() - { - return $this->method; - } + public function getMethod() { + return $this->method; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Calendar_Channel extends Google_Model -{ - public $address; - public $expiration; - public $id; - public $kind; - public $params; - public $payload; - public $resourceId; - public $resourceUri; - public $token; - public $type; +class Google_Service_Calendar_Channel extends Google_Model { + public $address; + public $expiration; + public $id; + public $kind; + public $params; + public $payload; + public $resourceId; + public $resourceUri; + public $token; + public $type; - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setExpiration($expiration) - { - $this->expiration = $expiration; - } + public function setExpiration($expiration) { + $this->expiration = $expiration; + } - public function getExpiration() - { - return $this->expiration; - } + public function getExpiration() { + return $this->expiration; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setParams($params) - { - $this->params = $params; - } + public function setParams($params) { + $this->params = $params; + } - public function getParams() - { - return $this->params; - } + public function getParams() { + return $this->params; + } - public function setPayload($payload) - { - $this->payload = $payload; - } + public function setPayload($payload) { + $this->payload = $payload; + } - public function getPayload() - { - return $this->payload; - } + public function getPayload() { + return $this->payload; + } - public function setResourceId($resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId($resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } - public function setResourceUri($resourceUri) - { - $this->resourceUri = $resourceUri; - } + public function setResourceUri($resourceUri) { + $this->resourceUri = $resourceUri; + } - public function getResourceUri() - { - return $this->resourceUri; - } + public function getResourceUri() { + return $this->resourceUri; + } - public function setToken($token) - { - $this->token = $token; - } + public function setToken($token) { + $this->token = $token; + } - public function getToken() - { - return $this->token; - } + public function getToken() { + return $this->token; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Calendar_ChannelParams extends Google_Model -{ +class Google_Service_Calendar_ChannelParams extends Google_Model { } -class Google_Service_Calendar_ColorDefinition extends Google_Model -{ - public $background; - public $foreground; +class Google_Service_Calendar_ColorDefinition extends Google_Model { + public $background; + public $foreground; - public function setBackground($background) - { - $this->background = $background; - } + public function setBackground($background) { + $this->background = $background; + } - public function getBackground() - { - return $this->background; - } + public function getBackground() { + return $this->background; + } - public function setForeground($foreground) - { - $this->foreground = $foreground; - } + public function setForeground($foreground) { + $this->foreground = $foreground; + } - public function getForeground() - { - return $this->foreground; - } + public function getForeground() { + return $this->foreground; + } } -class Google_Service_Calendar_Colors extends Google_Model -{ - protected $calendarType = 'Google_Service_Calendar_ColorDefinition'; - protected $calendarDataType = 'map'; - protected $eventType = 'Google_Service_Calendar_ColorDefinition'; - protected $eventDataType = 'map'; - public $kind; - public $updated; +class Google_Service_Calendar_Colors extends Google_Model { + protected $calendarType = 'Google_Service_Calendar_ColorDefinition'; + protected $calendarDataType = 'map'; + protected $eventType = 'Google_Service_Calendar_ColorDefinition'; + protected $eventDataType = 'map'; + public $kind; + public $updated; - public function setCalendar($calendar) - { - $this->calendar = $calendar; - } + public function setCalendar($calendar) { + $this->calendar = $calendar; + } - public function getCalendar() - { - return $this->calendar; - } + public function getCalendar() { + return $this->calendar; + } - public function setEvent($event) - { - $this->event = $event; - } + public function setEvent($event) { + $this->event = $event; + } - public function getEvent() - { - return $this->event; - } + public function getEvent() { + return $this->event; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Calendar_ColorsCalendar extends Google_Model -{ +class Google_Service_Calendar_ColorsCalendar extends Google_Model { } -class Google_Service_Calendar_ColorsEvent extends Google_Model -{ +class Google_Service_Calendar_ColorsEvent extends Google_Model { } -class Google_Service_Calendar_Error extends Google_Model -{ - public $domain; - public $reason; +class Google_Service_Calendar_Error extends Google_Model { + public $domain; + public $reason; - public function setDomain($domain) - { - $this->domain = $domain; - } + public function setDomain($domain) { + $this->domain = $domain; + } - public function getDomain() - { - return $this->domain; - } + public function getDomain() { + return $this->domain; + } - public function setReason($reason) - { - $this->reason = $reason; - } + public function setReason($reason) { + $this->reason = $reason; + } - public function getReason() - { - return $this->reason; - } + public function getReason() { + return $this->reason; + } } -class Google_Service_Calendar_Event extends Google_Collection -{ - public $anyoneCanAddSelf; - protected $attendeesType = 'Google_Service_Calendar_EventAttendee'; - protected $attendeesDataType = 'array'; - public $attendeesOmitted; - public $colorId; - public $created; - protected $creatorType = 'Google_Service_Calendar_EventCreator'; - protected $creatorDataType = ''; - public $description; - protected $endType = 'Google_Service_Calendar_EventDateTime'; - protected $endDataType = ''; - public $endTimeUnspecified; - public $etag; - protected $extendedPropertiesType = 'Google_Service_Calendar_EventExtendedProperties'; - protected $extendedPropertiesDataType = ''; - protected $gadgetType = 'Google_Service_Calendar_EventGadget'; - protected $gadgetDataType = ''; - public $guestsCanInviteOthers; - public $guestsCanModify; - public $guestsCanSeeOtherGuests; - public $hangoutLink; - public $htmlLink; - public $iCalUID; - public $id; - public $kind; - public $location; - public $locked; - protected $organizerType = 'Google_Service_Calendar_EventOrganizer'; - protected $organizerDataType = ''; - protected $originalStartTimeType = 'Google_Service_Calendar_EventDateTime'; - protected $originalStartTimeDataType = ''; - public $privateCopy; - public $recurrence; - public $recurringEventId; - protected $remindersType = 'Google_Service_Calendar_EventReminders'; - protected $remindersDataType = ''; - public $sequence; - protected $sourceType = 'Google_Service_Calendar_EventSource'; - protected $sourceDataType = ''; - protected $startType = 'Google_Service_Calendar_EventDateTime'; - protected $startDataType = ''; - public $status; - public $summary; - public $transparency; - public $updated; - public $visibility; - - public function setAnyoneCanAddSelf($anyoneCanAddSelf) - { - $this->anyoneCanAddSelf = $anyoneCanAddSelf; - } - - public function getAnyoneCanAddSelf() - { - return $this->anyoneCanAddSelf; - } - - public function setAttendees($attendees) - { - $this->attendees = $attendees; - } - - public function getAttendees() - { - return $this->attendees; - } - - public function setAttendeesOmitted($attendeesOmitted) - { - $this->attendeesOmitted = $attendeesOmitted; - } - - public function getAttendeesOmitted() - { - return $this->attendeesOmitted; - } - - public function setColorId($colorId) - { - $this->colorId = $colorId; - } - - public function getColorId() - { - return $this->colorId; - } - - public function setCreated($created) - { - $this->created = $created; - } - - public function getCreated() - { - return $this->created; - } - - public function setCreator(Google_Service_Calendar_EventCreator $creator) - { - $this->creator = $creator; - } - - public function getCreator() - { - return $this->creator; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setEnd(Google_Service_Calendar_EventDateTime $end) - { - $this->end = $end; - } - - public function getEnd() - { - return $this->end; - } - - public function setEndTimeUnspecified($endTimeUnspecified) - { - $this->endTimeUnspecified = $endTimeUnspecified; - } - - public function getEndTimeUnspecified() - { - return $this->endTimeUnspecified; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setExtendedProperties(Google_Service_Calendar_EventExtendedProperties $extendedProperties) - { - $this->extendedProperties = $extendedProperties; - } - - public function getExtendedProperties() - { - return $this->extendedProperties; - } - - public function setGadget(Google_Service_Calendar_EventGadget $gadget) - { - $this->gadget = $gadget; - } - - public function getGadget() - { - return $this->gadget; - } - - public function setGuestsCanInviteOthers($guestsCanInviteOthers) - { - $this->guestsCanInviteOthers = $guestsCanInviteOthers; - } - - public function getGuestsCanInviteOthers() - { - return $this->guestsCanInviteOthers; - } - - public function setGuestsCanModify($guestsCanModify) - { - $this->guestsCanModify = $guestsCanModify; - } - - public function getGuestsCanModify() - { - return $this->guestsCanModify; - } - - public function setGuestsCanSeeOtherGuests($guestsCanSeeOtherGuests) - { - $this->guestsCanSeeOtherGuests = $guestsCanSeeOtherGuests; - } - - public function getGuestsCanSeeOtherGuests() - { - return $this->guestsCanSeeOtherGuests; - } - - public function setHangoutLink($hangoutLink) - { - $this->hangoutLink = $hangoutLink; - } - - public function getHangoutLink() - { - return $this->hangoutLink; - } - - public function setHtmlLink($htmlLink) - { - $this->htmlLink = $htmlLink; - } - - public function getHtmlLink() - { - return $this->htmlLink; - } - - public function setICalUID($iCalUID) - { - $this->iCalUID = $iCalUID; - } - - public function getICalUID() - { - return $this->iCalUID; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLocation($location) - { - $this->location = $location; - } - - public function getLocation() - { - return $this->location; - } - - public function setLocked($locked) - { - $this->locked = $locked; - } - - public function getLocked() - { - return $this->locked; - } - - public function setOrganizer(Google_Service_Calendar_EventOrganizer $organizer) - { - $this->organizer = $organizer; - } - - public function getOrganizer() - { - return $this->organizer; - } - - public function setOriginalStartTime(Google_Service_Calendar_EventDateTime $originalStartTime) - { - $this->originalStartTime = $originalStartTime; - } - - public function getOriginalStartTime() - { - return $this->originalStartTime; - } - - public function setPrivateCopy($privateCopy) - { - $this->privateCopy = $privateCopy; - } - - public function getPrivateCopy() - { - return $this->privateCopy; - } - - public function setRecurrence($recurrence) - { - $this->recurrence = $recurrence; - } - - public function getRecurrence() - { - return $this->recurrence; - } - - public function setRecurringEventId($recurringEventId) - { - $this->recurringEventId = $recurringEventId; - } - - public function getRecurringEventId() - { - return $this->recurringEventId; - } - - public function setReminders(Google_Service_Calendar_EventReminders $reminders) - { - $this->reminders = $reminders; - } - - public function getReminders() - { - return $this->reminders; - } - - public function setSequence($sequence) - { - $this->sequence = $sequence; - } - - public function getSequence() - { - return $this->sequence; - } - - public function setSource(Google_Service_Calendar_EventSource $source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } - - public function setStart(Google_Service_Calendar_EventDateTime $start) - { - $this->start = $start; - } - - public function getStart() - { - return $this->start; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setSummary($summary) - { - $this->summary = $summary; - } - - public function getSummary() - { - return $this->summary; - } - - public function setTransparency($transparency) - { - $this->transparency = $transparency; - } - - public function getTransparency() - { - return $this->transparency; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } - - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - - public function getVisibility() - { - return $this->visibility; - } +class Google_Service_Calendar_Event extends Google_Collection { + public $anyoneCanAddSelf; + protected $attendeesType = 'Google_Service_Calendar_EventAttendee'; + protected $attendeesDataType = 'array'; + public $attendeesOmitted; + public $colorId; + public $created; + protected $creatorType = 'Google_Service_Calendar_EventCreator'; + protected $creatorDataType = ''; + public $description; + protected $endType = 'Google_Service_Calendar_EventDateTime'; + protected $endDataType = ''; + public $endTimeUnspecified; + public $etag; + protected $extendedPropertiesType = 'Google_Service_Calendar_EventExtendedProperties'; + protected $extendedPropertiesDataType = ''; + protected $gadgetType = 'Google_Service_Calendar_EventGadget'; + protected $gadgetDataType = ''; + public $guestsCanInviteOthers; + public $guestsCanModify; + public $guestsCanSeeOtherGuests; + public $hangoutLink; + public $htmlLink; + public $iCalUID; + public $id; + public $kind; + public $location; + public $locked; + protected $organizerType = 'Google_Service_Calendar_EventOrganizer'; + protected $organizerDataType = ''; + protected $originalStartTimeType = 'Google_Service_Calendar_EventDateTime'; + protected $originalStartTimeDataType = ''; + public $privateCopy; + public $recurrence; + public $recurringEventId; + protected $remindersType = 'Google_Service_Calendar_EventReminders'; + protected $remindersDataType = ''; + public $sequence; + protected $sourceType = 'Google_Service_Calendar_EventSource'; + protected $sourceDataType = ''; + protected $startType = 'Google_Service_Calendar_EventDateTime'; + protected $startDataType = ''; + public $status; + public $summary; + public $transparency; + public $updated; + public $visibility; + + public function setAnyoneCanAddSelf($anyoneCanAddSelf) { + $this->anyoneCanAddSelf = $anyoneCanAddSelf; + } + + public function getAnyoneCanAddSelf() { + return $this->anyoneCanAddSelf; + } + + public function setAttendees($attendees) { + $this->attendees = $attendees; + } + + public function getAttendees() { + return $this->attendees; + } + + public function setAttendeesOmitted($attendeesOmitted) { + $this->attendeesOmitted = $attendeesOmitted; + } + + public function getAttendeesOmitted() { + return $this->attendeesOmitted; + } + + public function setColorId($colorId) { + $this->colorId = $colorId; + } + + public function getColorId() { + return $this->colorId; + } + + public function setCreated($created) { + $this->created = $created; + } + + public function getCreated() { + return $this->created; + } + + public function setCreator(Google_Service_Calendar_EventCreator $creator) { + $this->creator = $creator; + } + + public function getCreator() { + return $this->creator; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setEnd(Google_Service_Calendar_EventDateTime $end) { + $this->end = $end; + } + + public function getEnd() { + return $this->end; + } + + public function setEndTimeUnspecified($endTimeUnspecified) { + $this->endTimeUnspecified = $endTimeUnspecified; + } + + public function getEndTimeUnspecified() { + return $this->endTimeUnspecified; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setExtendedProperties(Google_Service_Calendar_EventExtendedProperties $extendedProperties) { + $this->extendedProperties = $extendedProperties; + } + + public function getExtendedProperties() { + return $this->extendedProperties; + } + + public function setGadget(Google_Service_Calendar_EventGadget $gadget) { + $this->gadget = $gadget; + } + + public function getGadget() { + return $this->gadget; + } + + public function setGuestsCanInviteOthers($guestsCanInviteOthers) { + $this->guestsCanInviteOthers = $guestsCanInviteOthers; + } + + public function getGuestsCanInviteOthers() { + return $this->guestsCanInviteOthers; + } + + public function setGuestsCanModify($guestsCanModify) { + $this->guestsCanModify = $guestsCanModify; + } + + public function getGuestsCanModify() { + return $this->guestsCanModify; + } + + public function setGuestsCanSeeOtherGuests($guestsCanSeeOtherGuests) { + $this->guestsCanSeeOtherGuests = $guestsCanSeeOtherGuests; + } + + public function getGuestsCanSeeOtherGuests() { + return $this->guestsCanSeeOtherGuests; + } + + public function setHangoutLink($hangoutLink) { + $this->hangoutLink = $hangoutLink; + } + + public function getHangoutLink() { + return $this->hangoutLink; + } + + public function setHtmlLink($htmlLink) { + $this->htmlLink = $htmlLink; + } + + public function getHtmlLink() { + return $this->htmlLink; + } + + public function setICalUID($iCalUID) { + $this->iCalUID = $iCalUID; + } + + public function getICalUID() { + return $this->iCalUID; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLocation($location) { + $this->location = $location; + } + + public function getLocation() { + return $this->location; + } + + public function setLocked($locked) { + $this->locked = $locked; + } + + public function getLocked() { + return $this->locked; + } + + public function setOrganizer(Google_Service_Calendar_EventOrganizer $organizer) { + $this->organizer = $organizer; + } + + public function getOrganizer() { + return $this->organizer; + } + + public function setOriginalStartTime(Google_Service_Calendar_EventDateTime $originalStartTime) { + $this->originalStartTime = $originalStartTime; + } + + public function getOriginalStartTime() { + return $this->originalStartTime; + } + + public function setPrivateCopy($privateCopy) { + $this->privateCopy = $privateCopy; + } + + public function getPrivateCopy() { + return $this->privateCopy; + } + + public function setRecurrence($recurrence) { + $this->recurrence = $recurrence; + } + + public function getRecurrence() { + return $this->recurrence; + } + + public function setRecurringEventId($recurringEventId) { + $this->recurringEventId = $recurringEventId; + } + + public function getRecurringEventId() { + return $this->recurringEventId; + } + + public function setReminders(Google_Service_Calendar_EventReminders $reminders) { + $this->reminders = $reminders; + } + + public function getReminders() { + return $this->reminders; + } + + public function setSequence($sequence) { + $this->sequence = $sequence; + } + + public function getSequence() { + return $this->sequence; + } + + public function setSource(Google_Service_Calendar_EventSource $source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } + + public function setStart(Google_Service_Calendar_EventDateTime $start) { + $this->start = $start; + } + + public function getStart() { + return $this->start; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setSummary($summary) { + $this->summary = $summary; + } + + public function getSummary() { + return $this->summary; + } + + public function setTransparency($transparency) { + $this->transparency = $transparency; + } + + public function getTransparency() { + return $this->transparency; + } + + public function setUpdated($updated) { + $this->updated = $updated; + } + + public function getUpdated() { + return $this->updated; + } + + public function setVisibility($visibility) { + $this->visibility = $visibility; + } + + public function getVisibility() { + return $this->visibility; + } } -class Google_Service_Calendar_EventAttendee extends Google_Model -{ - public $additionalGuests; - public $comment; - public $displayName; - public $email; - public $id; - public $optional; - public $organizer; - public $resource; - public $responseStatus; - public $self; +class Google_Service_Calendar_EventAttendee extends Google_Model { + public $additionalGuests; + public $comment; + public $displayName; + public $email; + public $id; + public $optional; + public $organizer; + public $resource; + public $responseStatus; + public $self; - public function setAdditionalGuests($additionalGuests) - { - $this->additionalGuests = $additionalGuests; - } + public function setAdditionalGuests($additionalGuests) { + $this->additionalGuests = $additionalGuests; + } - public function getAdditionalGuests() - { - return $this->additionalGuests; - } + public function getAdditionalGuests() { + return $this->additionalGuests; + } - public function setComment($comment) - { - $this->comment = $comment; - } + public function setComment($comment) { + $this->comment = $comment; + } - public function getComment() - { - return $this->comment; - } + public function getComment() { + return $this->comment; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setOptional($optional) - { - $this->optional = $optional; - } + public function setOptional($optional) { + $this->optional = $optional; + } - public function getOptional() - { - return $this->optional; - } + public function getOptional() { + return $this->optional; + } - public function setOrganizer($organizer) - { - $this->organizer = $organizer; - } + public function setOrganizer($organizer) { + $this->organizer = $organizer; + } - public function getOrganizer() - { - return $this->organizer; - } + public function getOrganizer() { + return $this->organizer; + } - public function setResource($resource) - { - $this->resource = $resource; - } + public function setResource($resource) { + $this->resource = $resource; + } - public function getResource() - { - return $this->resource; - } + public function getResource() { + return $this->resource; + } - public function setResponseStatus($responseStatus) - { - $this->responseStatus = $responseStatus; - } + public function setResponseStatus($responseStatus) { + $this->responseStatus = $responseStatus; + } - public function getResponseStatus() - { - return $this->responseStatus; - } + public function getResponseStatus() { + return $this->responseStatus; + } - public function setSelf($self) - { - $this->self = $self; - } + public function setSelf($self) { + $this->self = $self; + } - public function getSelf() - { - return $this->self; - } + public function getSelf() { + return $this->self; + } } -class Google_Service_Calendar_EventCreator extends Google_Model -{ - public $displayName; - public $email; - public $id; - public $self; +class Google_Service_Calendar_EventCreator extends Google_Model { + public $displayName; + public $email; + public $id; + public $self; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setSelf($self) - { - $this->self = $self; - } + public function setSelf($self) { + $this->self = $self; + } - public function getSelf() - { - return $this->self; - } + public function getSelf() { + return $this->self; + } } -class Google_Service_Calendar_EventDateTime extends Google_Model -{ - public $date; - public $dateTime; - public $timeZone; +class Google_Service_Calendar_EventDateTime extends Google_Model { + public $date; + public $dateTime; + public $timeZone; - public function setDate($date) - { - $this->date = $date; - } + public function setDate($date) { + $this->date = $date; + } - public function getDate() - { - return $this->date; - } + public function getDate() { + return $this->date; + } - public function setDateTime($dateTime) - { - $this->dateTime = $dateTime; - } + public function setDateTime($dateTime) { + $this->dateTime = $dateTime; + } - public function getDateTime() - { - return $this->dateTime; - } + public function getDateTime() { + return $this->dateTime; + } - public function setTimeZone($timeZone) - { - $this->timeZone = $timeZone; - } + public function setTimeZone($timeZone) { + $this->timeZone = $timeZone; + } - public function getTimeZone() - { - return $this->timeZone; - } + public function getTimeZone() { + return $this->timeZone; + } } -class Google_Service_Calendar_EventExtendedProperties extends Google_Model -{ - public $private; - public $shared; +class Google_Service_Calendar_EventExtendedProperties extends Google_Model { + public $private; + public $shared; - public function setPrivate($private) - { - $this->private = $private; - } + public function setPrivate($private) { + $this->private = $private; + } - public function getPrivate() - { - return $this->private; - } + public function getPrivate() { + return $this->private; + } - public function setShared($shared) - { - $this->shared = $shared; - } + public function setShared($shared) { + $this->shared = $shared; + } - public function getShared() - { - return $this->shared; - } + public function getShared() { + return $this->shared; + } } -class Google_Service_Calendar_EventExtendedPropertiesPrivate extends Google_Model -{ +class Google_Service_Calendar_EventExtendedPropertiesPrivate extends Google_Model { } -class Google_Service_Calendar_EventExtendedPropertiesShared extends Google_Model -{ +class Google_Service_Calendar_EventExtendedPropertiesShared extends Google_Model { } -class Google_Service_Calendar_EventGadget extends Google_Model -{ - public $display; - public $height; - public $iconLink; - public $link; - public $preferences; - public $title; - public $type; - public $width; +class Google_Service_Calendar_EventGadget extends Google_Model { + public $display; + public $height; + public $iconLink; + public $link; + public $preferences; + public $title; + public $type; + public $width; - public function setDisplay($display) - { - $this->display = $display; - } + public function setDisplay($display) { + $this->display = $display; + } - public function getDisplay() - { - return $this->display; - } + public function getDisplay() { + return $this->display; + } - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setIconLink($iconLink) - { - $this->iconLink = $iconLink; - } + public function setIconLink($iconLink) { + $this->iconLink = $iconLink; + } - public function getIconLink() - { - return $this->iconLink; - } + public function getIconLink() { + return $this->iconLink; + } - public function setLink($link) - { - $this->link = $link; - } + public function setLink($link) { + $this->link = $link; + } - public function getLink() - { - return $this->link; - } + public function getLink() { + return $this->link; + } - public function setPreferences($preferences) - { - $this->preferences = $preferences; - } + public function setPreferences($preferences) { + $this->preferences = $preferences; + } - public function getPreferences() - { - return $this->preferences; - } + public function getPreferences() { + return $this->preferences; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_Calendar_EventGadgetPreferences extends Google_Model -{ +class Google_Service_Calendar_EventGadgetPreferences extends Google_Model { } -class Google_Service_Calendar_EventOrganizer extends Google_Model -{ - public $displayName; - public $email; - public $id; - public $self; +class Google_Service_Calendar_EventOrganizer extends Google_Model { + public $displayName; + public $email; + public $id; + public $self; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setSelf($self) - { - $this->self = $self; - } + public function setSelf($self) { + $this->self = $self; + } - public function getSelf() - { - return $this->self; - } + public function getSelf() { + return $this->self; + } } -class Google_Service_Calendar_EventReminder extends Google_Model -{ - public $method; - public $minutes; +class Google_Service_Calendar_EventReminder extends Google_Model { + public $method; + public $minutes; - public function setMethod($method) - { - $this->method = $method; - } + public function setMethod($method) { + $this->method = $method; + } - public function getMethod() - { - return $this->method; - } + public function getMethod() { + return $this->method; + } - public function setMinutes($minutes) - { - $this->minutes = $minutes; - } + public function setMinutes($minutes) { + $this->minutes = $minutes; + } - public function getMinutes() - { - return $this->minutes; - } + public function getMinutes() { + return $this->minutes; + } } -class Google_Service_Calendar_EventReminders extends Google_Collection -{ - protected $overridesType = 'Google_Service_Calendar_EventReminder'; - protected $overridesDataType = 'array'; - public $useDefault; +class Google_Service_Calendar_EventReminders extends Google_Collection { + protected $overridesType = 'Google_Service_Calendar_EventReminder'; + protected $overridesDataType = 'array'; + public $useDefault; - public function setOverrides($overrides) - { - $this->overrides = $overrides; - } + public function setOverrides($overrides) { + $this->overrides = $overrides; + } - public function getOverrides() - { - return $this->overrides; - } + public function getOverrides() { + return $this->overrides; + } - public function setUseDefault($useDefault) - { - $this->useDefault = $useDefault; - } + public function setUseDefault($useDefault) { + $this->useDefault = $useDefault; + } - public function getUseDefault() - { - return $this->useDefault; - } + public function getUseDefault() { + return $this->useDefault; + } } -class Google_Service_Calendar_EventSource extends Google_Model -{ - public $title; - public $url; +class Google_Service_Calendar_EventSource extends Google_Model { + public $title; + public $url; - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Calendar_Events extends Google_Collection -{ - public $accessRole; - protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder'; - protected $defaultRemindersDataType = 'array'; - public $description; - public $etag; - protected $itemsType = 'Google_Service_Calendar_Event'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $nextSyncToken; - public $summary; - public $timeZone; - public $updated; +class Google_Service_Calendar_Events extends Google_Collection { + public $accessRole; + protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder'; + protected $defaultRemindersDataType = 'array'; + public $description; + public $etag; + protected $itemsType = 'Google_Service_Calendar_Event'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $nextSyncToken; + public $summary; + public $timeZone; + public $updated; - public function setAccessRole($accessRole) - { - $this->accessRole = $accessRole; - } + public function setAccessRole($accessRole) { + $this->accessRole = $accessRole; + } - public function getAccessRole() - { - return $this->accessRole; - } + public function getAccessRole() { + return $this->accessRole; + } - public function setDefaultReminders($defaultReminders) - { - $this->defaultReminders = $defaultReminders; - } + public function setDefaultReminders($defaultReminders) { + $this->defaultReminders = $defaultReminders; + } - public function getDefaultReminders() - { - return $this->defaultReminders; - } + public function getDefaultReminders() { + return $this->defaultReminders; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setNextSyncToken($nextSyncToken) - { - $this->nextSyncToken = $nextSyncToken; - } + public function setNextSyncToken($nextSyncToken) { + $this->nextSyncToken = $nextSyncToken; + } - public function getNextSyncToken() - { - return $this->nextSyncToken; - } + public function getNextSyncToken() { + return $this->nextSyncToken; + } - public function setSummary($summary) - { - $this->summary = $summary; - } + public function setSummary($summary) { + $this->summary = $summary; + } - public function getSummary() - { - return $this->summary; - } + public function getSummary() { + return $this->summary; + } - public function setTimeZone($timeZone) - { - $this->timeZone = $timeZone; - } + public function setTimeZone($timeZone) { + $this->timeZone = $timeZone; + } - public function getTimeZone() - { - return $this->timeZone; - } + public function getTimeZone() { + return $this->timeZone; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection -{ - protected $busyType = 'Google_Service_Calendar_TimePeriod'; - protected $busyDataType = 'array'; - protected $errorsType = 'Google_Service_Calendar_Error'; - protected $errorsDataType = 'array'; +class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection { + protected $busyType = 'Google_Service_Calendar_TimePeriod'; + protected $busyDataType = 'array'; + protected $errorsType = 'Google_Service_Calendar_Error'; + protected $errorsDataType = 'array'; - public function setBusy($busy) - { - $this->busy = $busy; - } + public function setBusy($busy) { + $this->busy = $busy; + } - public function getBusy() - { - return $this->busy; - } + public function getBusy() { + return $this->busy; + } - public function setErrors($errors) - { - $this->errors = $errors; - } + public function setErrors($errors) { + $this->errors = $errors; + } - public function getErrors() - { - return $this->errors; - } + public function getErrors() { + return $this->errors; + } } -class Google_Service_Calendar_FreeBusyGroup extends Google_Collection -{ - public $calendars; - protected $errorsType = 'Google_Service_Calendar_Error'; - protected $errorsDataType = 'array'; +class Google_Service_Calendar_FreeBusyGroup extends Google_Collection { + public $calendars; + protected $errorsType = 'Google_Service_Calendar_Error'; + protected $errorsDataType = 'array'; - public function setCalendars($calendars) - { - $this->calendars = $calendars; - } + public function setCalendars($calendars) { + $this->calendars = $calendars; + } - public function getCalendars() - { - return $this->calendars; - } + public function getCalendars() { + return $this->calendars; + } - public function setErrors($errors) - { - $this->errors = $errors; - } + public function setErrors($errors) { + $this->errors = $errors; + } - public function getErrors() - { - return $this->errors; - } + public function getErrors() { + return $this->errors; + } } -class Google_Service_Calendar_FreeBusyRequest extends Google_Collection -{ - public $calendarExpansionMax; - public $groupExpansionMax; - protected $itemsType = 'Google_Service_Calendar_FreeBusyRequestItem'; - protected $itemsDataType = 'array'; - public $timeMax; - public $timeMin; - public $timeZone; +class Google_Service_Calendar_FreeBusyRequest extends Google_Collection { + public $calendarExpansionMax; + public $groupExpansionMax; + protected $itemsType = 'Google_Service_Calendar_FreeBusyRequestItem'; + protected $itemsDataType = 'array'; + public $timeMax; + public $timeMin; + public $timeZone; - public function setCalendarExpansionMax($calendarExpansionMax) - { - $this->calendarExpansionMax = $calendarExpansionMax; - } + public function setCalendarExpansionMax($calendarExpansionMax) { + $this->calendarExpansionMax = $calendarExpansionMax; + } - public function getCalendarExpansionMax() - { - return $this->calendarExpansionMax; - } + public function getCalendarExpansionMax() { + return $this->calendarExpansionMax; + } - public function setGroupExpansionMax($groupExpansionMax) - { - $this->groupExpansionMax = $groupExpansionMax; - } + public function setGroupExpansionMax($groupExpansionMax) { + $this->groupExpansionMax = $groupExpansionMax; + } - public function getGroupExpansionMax() - { - return $this->groupExpansionMax; - } + public function getGroupExpansionMax() { + return $this->groupExpansionMax; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setTimeMax($timeMax) - { - $this->timeMax = $timeMax; - } + public function setTimeMax($timeMax) { + $this->timeMax = $timeMax; + } - public function getTimeMax() - { - return $this->timeMax; - } + public function getTimeMax() { + return $this->timeMax; + } - public function setTimeMin($timeMin) - { - $this->timeMin = $timeMin; - } + public function setTimeMin($timeMin) { + $this->timeMin = $timeMin; + } - public function getTimeMin() - { - return $this->timeMin; - } + public function getTimeMin() { + return $this->timeMin; + } - public function setTimeZone($timeZone) - { - $this->timeZone = $timeZone; - } + public function setTimeZone($timeZone) { + $this->timeZone = $timeZone; + } - public function getTimeZone() - { - return $this->timeZone; - } + public function getTimeZone() { + return $this->timeZone; + } } -class Google_Service_Calendar_FreeBusyRequestItem extends Google_Model -{ - public $id; +class Google_Service_Calendar_FreeBusyRequestItem extends Google_Model { + public $id; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } } -class Google_Service_Calendar_FreeBusyResponse extends Google_Model -{ - protected $calendarsType = 'Google_Service_Calendar_FreeBusyCalendar'; - protected $calendarsDataType = 'map'; - protected $groupsType = 'Google_Service_Calendar_FreeBusyGroup'; - protected $groupsDataType = 'map'; - public $kind; - public $timeMax; - public $timeMin; +class Google_Service_Calendar_FreeBusyResponse extends Google_Model { + protected $calendarsType = 'Google_Service_Calendar_FreeBusyCalendar'; + protected $calendarsDataType = 'map'; + protected $groupsType = 'Google_Service_Calendar_FreeBusyGroup'; + protected $groupsDataType = 'map'; + public $kind; + public $timeMax; + public $timeMin; - public function setCalendars($calendars) - { - $this->calendars = $calendars; - } + public function setCalendars($calendars) { + $this->calendars = $calendars; + } - public function getCalendars() - { - return $this->calendars; - } + public function getCalendars() { + return $this->calendars; + } - public function setGroups($groups) - { - $this->groups = $groups; - } + public function setGroups($groups) { + $this->groups = $groups; + } - public function getGroups() - { - return $this->groups; - } + public function getGroups() { + return $this->groups; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setTimeMax($timeMax) - { - $this->timeMax = $timeMax; - } + public function setTimeMax($timeMax) { + $this->timeMax = $timeMax; + } - public function getTimeMax() - { - return $this->timeMax; - } + public function getTimeMax() { + return $this->timeMax; + } - public function setTimeMin($timeMin) - { - $this->timeMin = $timeMin; - } + public function setTimeMin($timeMin) { + $this->timeMin = $timeMin; + } - public function getTimeMin() - { - return $this->timeMin; - } + public function getTimeMin() { + return $this->timeMin; + } } -class Google_Service_Calendar_FreeBusyResponseCalendars extends Google_Model -{ +class Google_Service_Calendar_FreeBusyResponseCalendars extends Google_Model { } -class Google_Service_Calendar_FreeBusyResponseGroups extends Google_Model -{ +class Google_Service_Calendar_FreeBusyResponseGroups extends Google_Model { } -class Google_Service_Calendar_Setting extends Google_Model -{ - public $etag; - public $id; - public $kind; - public $value; +class Google_Service_Calendar_Setting extends Google_Model { + public $etag; + public $id; + public $kind; + public $value; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Calendar_Settings extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Calendar_Setting'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $nextSyncToken; +class Google_Service_Calendar_Settings extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Calendar_Setting'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $nextSyncToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setNextSyncToken($nextSyncToken) - { - $this->nextSyncToken = $nextSyncToken; - } + public function setNextSyncToken($nextSyncToken) { + $this->nextSyncToken = $nextSyncToken; + } - public function getNextSyncToken() - { - return $this->nextSyncToken; - } + public function getNextSyncToken() { + return $this->nextSyncToken; + } } -class Google_Service_Calendar_TimePeriod extends Google_Model -{ - public $end; - public $start; +class Google_Service_Calendar_TimePeriod extends Google_Model { + public $end; + public $start; - public function setEnd($end) - { - $this->end = $end; - } + public function setEnd($end) { + $this->end = $end; + } - public function getEnd() - { - return $this->end; - } + public function getEnd() { + return $this->end; + } - public function setStart($start) - { - $this->start = $start; - } + public function setStart($start) { + $this->start = $start; + } - public function getStart() - { - return $this->start; - } + public function getStart() { + return $this->start; + } } diff --git a/oauth/Google/Service/CivicInfo.php b/oauth/Google/Service/CivicInfo.php index daa6586..2ce6c01 100644 --- a/oauth/Google/Service/CivicInfo.php +++ b/oauth/Google/Service/CivicInfo.php @@ -29,102 +29,100 @@ * * @author Google, Inc. */ -class Google_Service_CivicInfo extends Google_Service -{ +class Google_Service_CivicInfo extends Google_Service { - public $divisions; - public $elections; - public $representatives; - + public $divisions; + public $elections; + public $representatives; - /** - * Constructs the internal representation of the CivicInfo service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'civicinfo/v1/'; - $this->version = 'v1'; - $this->serviceName = 'civicinfo'; - $this->divisions = new Google_Service_CivicInfo_Divisions_Resource( - $this, - $this->serviceName, - 'divisions', - array( - 'methods' => array( - 'search' => array( - 'path' => 'representatives/division_search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->elections = new Google_Service_CivicInfo_Elections_Resource( - $this, - $this->serviceName, - 'elections', - array( - 'methods' => array( - 'electionQuery' => array( - 'path' => 'elections', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'voterInfoQuery' => array( - 'path' => 'voterinfo/{electionId}/lookup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'electionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'officialOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->representatives = new Google_Service_CivicInfo_Representatives_Resource( - $this, - $this->serviceName, - 'representatives', - array( - 'methods' => array( - 'representativeInfoQuery' => array( - 'path' => 'representatives/lookup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'ocdId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeOffices' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'recursive' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the CivicInfo service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'civicinfo/v1/'; + $this->version = 'v1'; + $this->serviceName = 'civicinfo'; + + $this->divisions = new Google_Service_CivicInfo_Divisions_Resource( + $this, + $this->serviceName, + 'divisions', + array( + 'methods' => array( + 'search' => array( + 'path' => 'representatives/division_search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->elections = new Google_Service_CivicInfo_Elections_Resource( + $this, + $this->serviceName, + 'elections', + array( + 'methods' => array( + 'electionQuery' => array( + 'path' => 'elections', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), 'voterInfoQuery' => array( + 'path' => 'voterinfo/{electionId}/lookup', + 'httpMethod' => 'POST', + 'parameters' => array( + 'electionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'officialOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->representatives = new Google_Service_CivicInfo_Representatives_Resource( + $this, + $this->serviceName, + 'representatives', + array( + 'methods' => array( + 'representativeInfoQuery' => array( + 'path' => 'representatives/lookup', + 'httpMethod' => 'POST', + 'parameters' => array( + 'ocdId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeOffices' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'recursive' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + } } @@ -136,28 +134,26 @@ class Google_Service_CivicInfo extends Google_Service * $divisions = $civicinfoService->divisions; * */ -class Google_Service_CivicInfo_Divisions_Resource extends Google_Service_Resource -{ +class Google_Service_CivicInfo_Divisions_Resource extends Google_Service_Resource { - /** - * Searches for political divisions by their natural name or OCD ID. - * (divisions.search) - * - * @param array $optParams Optional parameters. - * - * @opt_param string query - * The search query. Queries can cover any parts of a OCD ID or a human readable division name. All - * words given in the query are treated as required patterns. In addition to that, most query - * operators of the Apache Lucene library are supported. See - * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html - * @return Google_Service_CivicInfo_DivisionSearchResponse - */ - public function search($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_CivicInfo_DivisionSearchResponse"); - } + /** + * Searches for political divisions by their natural name or OCD ID. + * (divisions.search) + * + * @param array $optParams Optional parameters. + * + * @opt_param string query + * The search query. Queries can cover any parts of a OCD ID or a human readable division name. All + * words given in the query are treated as required patterns. In addition to that, most query + * operators of the Apache Lucene library are supported. See + * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html + * @return Google_Service_CivicInfo_DivisionSearchResponse + */ + public function search($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_CivicInfo_DivisionSearchResponse"); + } } /** @@ -168,41 +164,39 @@ class Google_Service_CivicInfo_Divisions_Resource extends Google_Service_Resourc * $elections = $civicinfoService->elections; * */ -class Google_Service_CivicInfo_Elections_Resource extends Google_Service_Resource -{ +class Google_Service_CivicInfo_Elections_Resource extends Google_Service_Resource { - /** - * List of available elections to query. (elections.electionQuery) - * - * @param array $optParams Optional parameters. - * @return Google_Service_CivicInfo_ElectionsQueryResponse - */ - public function electionQuery($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('electionQuery', array($params), "Google_Service_CivicInfo_ElectionsQueryResponse"); - } - /** - * Looks up information relevant to a voter based on the voter's registered - * address. (elections.voterInfoQuery) - * - * @param string $electionId - * The unique ID of the election to look up. A list of election IDs can be obtained at - * https://www.googleapis.com/civicinfo/{version}/elections - * @param Google_VoterInfoRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool officialOnly - * If set to true, only data from official state sources will be returned. - * @return Google_Service_CivicInfo_VoterInfoResponse - */ - public function voterInfoQuery($electionId, Google_Service_CivicInfo_VoterInfoRequest $postBody, $optParams = array()) - { - $params = array('electionId' => $electionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('voterInfoQuery', array($params), "Google_Service_CivicInfo_VoterInfoResponse"); - } + /** + * List of available elections to query. (elections.electionQuery) + * + * @param array $optParams Optional parameters. + * @return Google_Service_CivicInfo_ElectionsQueryResponse + */ + public function electionQuery($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('electionQuery', array($params), "Google_Service_CivicInfo_ElectionsQueryResponse"); + } + + /** + * Looks up information relevant to a voter based on the voter's registered + * address. (elections.voterInfoQuery) + * + * @param string $electionId + * The unique ID of the election to look up. A list of election IDs can be obtained at + * https://www.googleapis.com/civicinfo/{version}/elections + * @param Google_VoterInfoRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool officialOnly + * If set to true, only data from official state sources will be returned. + * @return Google_Service_CivicInfo_VoterInfoResponse + */ + public function voterInfoQuery($electionId, Google_Service_CivicInfo_VoterInfoRequest $postBody, $optParams = array()) { + $params = array('electionId' => $electionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('voterInfoQuery', array($params), "Google_Service_CivicInfo_VoterInfoResponse"); + } } /** @@ -213,1416 +207,1160 @@ class Google_Service_CivicInfo_Elections_Resource extends Google_Service_Resourc * $representatives = $civicinfoService->representatives; * */ -class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_Resource -{ +class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_Resource { - /** - * Looks up political geography and representative information based on an - * address or Open Civic Data division identifier. - * (representatives.representativeInfoQuery) - * - * @param Google_RepresentativeInfoRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string ocdId - * The division to look up. May only be specified if the address field is not given in the request - * body. - * @opt_param bool includeOffices - * Whether to return information about offices and officials. If false, only the top-level district - * information will be returned. - * @opt_param bool recursive - * When ocd_id is supplied, return all divisions which are hierarchically nested within the queried - * division. For example, if querying ocd-division/country:us/district:dc, this would also return - * all DC's wards and ANCs. - * @return Google_Service_CivicInfo_RepresentativeInfoResponse - */ - public function representativeInfoQuery(Google_Service_CivicInfo_RepresentativeInfoRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('representativeInfoQuery', array($params), "Google_Service_CivicInfo_RepresentativeInfoResponse"); - } + /** + * Looks up political geography and representative information based on an + * address or Open Civic Data division identifier. + * (representatives.representativeInfoQuery) + * + * @param Google_RepresentativeInfoRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string ocdId + * The division to look up. May only be specified if the address field is not given in the request + * body. + * @opt_param bool includeOffices + * Whether to return information about offices and officials. If false, only the top-level district + * information will be returned. + * @opt_param bool recursive + * When ocd_id is supplied, return all divisions which are hierarchically nested within the queried + * division. For example, if querying ocd-division/country:us/district:dc, this would also return + * all DC's wards and ANCs. + * @return Google_Service_CivicInfo_RepresentativeInfoResponse + */ + public function representativeInfoQuery(Google_Service_CivicInfo_RepresentativeInfoRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('representativeInfoQuery', array($params), "Google_Service_CivicInfo_RepresentativeInfoResponse"); + } } +class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection { + protected $electionAdministrationBodyType = 'Google_Service_CivicInfo_AdministrativeBody'; + protected $electionAdministrationBodyDataType = ''; + public $id; + protected $localJurisdictionType = 'Google_Service_CivicInfo_AdministrationRegion'; + protected $localJurisdictionDataType = ''; + public $name; + protected $sourcesType = 'Google_Service_CivicInfo_Source'; + protected $sourcesDataType = 'array'; + public function setElectionAdministrationBody(Google_Service_CivicInfo_AdministrativeBody $electionAdministrationBody) { + $this->electionAdministrationBody = $electionAdministrationBody; + } -class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection -{ - protected $electionAdministrationBodyType = 'Google_Service_CivicInfo_AdministrativeBody'; - protected $electionAdministrationBodyDataType = ''; - public $id; - protected $localJurisdictionType = 'Google_Service_CivicInfo_AdministrationRegion'; - protected $localJurisdictionDataType = ''; - public $name; - protected $sourcesType = 'Google_Service_CivicInfo_Source'; - protected $sourcesDataType = 'array'; + public function getElectionAdministrationBody() { + return $this->electionAdministrationBody; + } - public function setElectionAdministrationBody(Google_Service_CivicInfo_AdministrativeBody $electionAdministrationBody) - { - $this->electionAdministrationBody = $electionAdministrationBody; - } + public function setId($id) { + $this->id = $id; + } - public function getElectionAdministrationBody() - { - return $this->electionAdministrationBody; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setLocalJurisdiction(Google_Service_CivicInfo_AdministrationRegion $localJurisdiction) { + $this->localJurisdiction = $localJurisdiction; + } - public function getId() - { - return $this->id; - } + public function getLocalJurisdiction() { + return $this->localJurisdiction; + } - public function setLocalJurisdiction(Google_Service_CivicInfo_AdministrationRegion $localJurisdiction) - { - $this->localJurisdiction = $localJurisdiction; - } + public function setName($name) { + $this->name = $name; + } - public function getLocalJurisdiction() - { - return $this->localJurisdiction; - } + public function getName() { + return $this->name; + } - public function setName($name) - { - $this->name = $name; - } + public function setSources($sources) { + $this->sources = $sources; + } - public function getName() - { - return $this->name; - } - - public function setSources($sources) - { - $this->sources = $sources; - } - - public function getSources() - { - return $this->sources; - } + public function getSources() { + return $this->sources; + } } -class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection -{ - public $absenteeVotingInfoUrl; - public $ballotInfoUrl; - protected $correspondenceAddressType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $correspondenceAddressDataType = ''; - public $electionInfoUrl; - protected $electionOfficialsType = 'Google_Service_CivicInfo_ElectionOfficial'; - protected $electionOfficialsDataType = 'array'; - public $electionRegistrationConfirmationUrl; - public $electionRegistrationUrl; - public $electionRulesUrl; - public $hoursOfOperation; - public $name; - protected $physicalAddressType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $physicalAddressDataType = ''; - public $voterServices; - public $votingLocationFinderUrl; +class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection { + public $absenteeVotingInfoUrl; + public $ballotInfoUrl; + protected $correspondenceAddressType = 'Google_Service_CivicInfo_SimpleAddressType'; + protected $correspondenceAddressDataType = ''; + public $electionInfoUrl; + protected $electionOfficialsType = 'Google_Service_CivicInfo_ElectionOfficial'; + protected $electionOfficialsDataType = 'array'; + public $electionRegistrationConfirmationUrl; + public $electionRegistrationUrl; + public $electionRulesUrl; + public $hoursOfOperation; + public $name; + protected $physicalAddressType = 'Google_Service_CivicInfo_SimpleAddressType'; + protected $physicalAddressDataType = ''; + public $voterServices; + public $votingLocationFinderUrl; - public function setAbsenteeVotingInfoUrl($absenteeVotingInfoUrl) - { - $this->absenteeVotingInfoUrl = $absenteeVotingInfoUrl; - } + public function setAbsenteeVotingInfoUrl($absenteeVotingInfoUrl) { + $this->absenteeVotingInfoUrl = $absenteeVotingInfoUrl; + } - public function getAbsenteeVotingInfoUrl() - { - return $this->absenteeVotingInfoUrl; - } + public function getAbsenteeVotingInfoUrl() { + return $this->absenteeVotingInfoUrl; + } - public function setBallotInfoUrl($ballotInfoUrl) - { - $this->ballotInfoUrl = $ballotInfoUrl; - } + public function setBallotInfoUrl($ballotInfoUrl) { + $this->ballotInfoUrl = $ballotInfoUrl; + } - public function getBallotInfoUrl() - { - return $this->ballotInfoUrl; - } + public function getBallotInfoUrl() { + return $this->ballotInfoUrl; + } - public function setCorrespondenceAddress(Google_Service_CivicInfo_SimpleAddressType $correspondenceAddress) - { - $this->correspondenceAddress = $correspondenceAddress; - } + public function setCorrespondenceAddress(Google_Service_CivicInfo_SimpleAddressType $correspondenceAddress) { + $this->correspondenceAddress = $correspondenceAddress; + } - public function getCorrespondenceAddress() - { - return $this->correspondenceAddress; - } + public function getCorrespondenceAddress() { + return $this->correspondenceAddress; + } - public function setElectionInfoUrl($electionInfoUrl) - { - $this->electionInfoUrl = $electionInfoUrl; - } + public function setElectionInfoUrl($electionInfoUrl) { + $this->electionInfoUrl = $electionInfoUrl; + } - public function getElectionInfoUrl() - { - return $this->electionInfoUrl; - } + public function getElectionInfoUrl() { + return $this->electionInfoUrl; + } - public function setElectionOfficials($electionOfficials) - { - $this->electionOfficials = $electionOfficials; - } + public function setElectionOfficials($electionOfficials) { + $this->electionOfficials = $electionOfficials; + } - public function getElectionOfficials() - { - return $this->electionOfficials; - } + public function getElectionOfficials() { + return $this->electionOfficials; + } - public function setElectionRegistrationConfirmationUrl($electionRegistrationConfirmationUrl) - { - $this->electionRegistrationConfirmationUrl = $electionRegistrationConfirmationUrl; - } + public function setElectionRegistrationConfirmationUrl($electionRegistrationConfirmationUrl) { + $this->electionRegistrationConfirmationUrl = $electionRegistrationConfirmationUrl; + } - public function getElectionRegistrationConfirmationUrl() - { - return $this->electionRegistrationConfirmationUrl; - } + public function getElectionRegistrationConfirmationUrl() { + return $this->electionRegistrationConfirmationUrl; + } - public function setElectionRegistrationUrl($electionRegistrationUrl) - { - $this->electionRegistrationUrl = $electionRegistrationUrl; - } + public function setElectionRegistrationUrl($electionRegistrationUrl) { + $this->electionRegistrationUrl = $electionRegistrationUrl; + } - public function getElectionRegistrationUrl() - { - return $this->electionRegistrationUrl; - } + public function getElectionRegistrationUrl() { + return $this->electionRegistrationUrl; + } - public function setElectionRulesUrl($electionRulesUrl) - { - $this->electionRulesUrl = $electionRulesUrl; - } + public function setElectionRulesUrl($electionRulesUrl) { + $this->electionRulesUrl = $electionRulesUrl; + } - public function getElectionRulesUrl() - { - return $this->electionRulesUrl; - } + public function getElectionRulesUrl() { + return $this->electionRulesUrl; + } - public function setHoursOfOperation($hoursOfOperation) - { - $this->hoursOfOperation = $hoursOfOperation; - } + public function setHoursOfOperation($hoursOfOperation) { + $this->hoursOfOperation = $hoursOfOperation; + } - public function getHoursOfOperation() - { - return $this->hoursOfOperation; - } + public function getHoursOfOperation() { + return $this->hoursOfOperation; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPhysicalAddress(Google_Service_CivicInfo_SimpleAddressType $physicalAddress) - { - $this->physicalAddress = $physicalAddress; - } + public function setPhysicalAddress(Google_Service_CivicInfo_SimpleAddressType $physicalAddress) { + $this->physicalAddress = $physicalAddress; + } - public function getPhysicalAddress() - { - return $this->physicalAddress; - } + public function getPhysicalAddress() { + return $this->physicalAddress; + } - public function setVoterServices($voterServices) - { - $this->voterServices = $voterServices; - } + public function setVoterServices($voterServices) { + $this->voterServices = $voterServices; + } - public function getVoterServices() - { - return $this->voterServices; - } + public function getVoterServices() { + return $this->voterServices; + } - public function setVotingLocationFinderUrl($votingLocationFinderUrl) - { - $this->votingLocationFinderUrl = $votingLocationFinderUrl; - } + public function setVotingLocationFinderUrl($votingLocationFinderUrl) { + $this->votingLocationFinderUrl = $votingLocationFinderUrl; + } - public function getVotingLocationFinderUrl() - { - return $this->votingLocationFinderUrl; - } + public function getVotingLocationFinderUrl() { + return $this->votingLocationFinderUrl; + } } -class Google_Service_CivicInfo_Candidate extends Google_Collection -{ - public $candidateUrl; - protected $channelsType = 'Google_Service_CivicInfo_Channel'; - protected $channelsDataType = 'array'; - public $email; - public $name; - public $orderOnBallot; - public $party; - public $phone; - public $photoUrl; +class Google_Service_CivicInfo_Candidate extends Google_Collection { + public $candidateUrl; + protected $channelsType = 'Google_Service_CivicInfo_Channel'; + protected $channelsDataType = 'array'; + public $email; + public $name; + public $orderOnBallot; + public $party; + public $phone; + public $photoUrl; - public function setCandidateUrl($candidateUrl) - { - $this->candidateUrl = $candidateUrl; - } + public function setCandidateUrl($candidateUrl) { + $this->candidateUrl = $candidateUrl; + } - public function getCandidateUrl() - { - return $this->candidateUrl; - } + public function getCandidateUrl() { + return $this->candidateUrl; + } - public function setChannels($channels) - { - $this->channels = $channels; - } + public function setChannels($channels) { + $this->channels = $channels; + } - public function getChannels() - { - return $this->channels; - } + public function getChannels() { + return $this->channels; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOrderOnBallot($orderOnBallot) - { - $this->orderOnBallot = $orderOnBallot; - } + public function setOrderOnBallot($orderOnBallot) { + $this->orderOnBallot = $orderOnBallot; + } - public function getOrderOnBallot() - { - return $this->orderOnBallot; - } + public function getOrderOnBallot() { + return $this->orderOnBallot; + } - public function setParty($party) - { - $this->party = $party; - } + public function setParty($party) { + $this->party = $party; + } - public function getParty() - { - return $this->party; - } + public function getParty() { + return $this->party; + } - public function setPhone($phone) - { - $this->phone = $phone; - } + public function setPhone($phone) { + $this->phone = $phone; + } - public function getPhone() - { - return $this->phone; - } + public function getPhone() { + return $this->phone; + } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } + public function setPhotoUrl($photoUrl) { + $this->photoUrl = $photoUrl; + } - public function getPhotoUrl() - { - return $this->photoUrl; - } + public function getPhotoUrl() { + return $this->photoUrl; + } } -class Google_Service_CivicInfo_Channel extends Google_Model -{ - public $id; - public $type; +class Google_Service_CivicInfo_Channel extends Google_Model { + public $id; + public $type; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_CivicInfo_Contest extends Google_Collection -{ - public $ballotPlacement; - protected $candidatesType = 'Google_Service_CivicInfo_Candidate'; - protected $candidatesDataType = 'array'; - protected $districtType = 'Google_Service_CivicInfo_ElectoralDistrict'; - protected $districtDataType = ''; - public $electorateSpecifications; - public $id; - public $level; - public $numberElected; - public $numberVotingFor; - public $office; - public $primaryParty; - public $referendumSubtitle; - public $referendumTitle; - public $referendumUrl; - protected $sourcesType = 'Google_Service_CivicInfo_Source'; - protected $sourcesDataType = 'array'; - public $special; - public $type; +class Google_Service_CivicInfo_Contest extends Google_Collection { + public $ballotPlacement; + protected $candidatesType = 'Google_Service_CivicInfo_Candidate'; + protected $candidatesDataType = 'array'; + protected $districtType = 'Google_Service_CivicInfo_ElectoralDistrict'; + protected $districtDataType = ''; + public $electorateSpecifications; + public $id; + public $level; + public $numberElected; + public $numberVotingFor; + public $office; + public $primaryParty; + public $referendumSubtitle; + public $referendumTitle; + public $referendumUrl; + protected $sourcesType = 'Google_Service_CivicInfo_Source'; + protected $sourcesDataType = 'array'; + public $special; + public $type; - public function setBallotPlacement($ballotPlacement) - { - $this->ballotPlacement = $ballotPlacement; - } + public function setBallotPlacement($ballotPlacement) { + $this->ballotPlacement = $ballotPlacement; + } - public function getBallotPlacement() - { - return $this->ballotPlacement; - } + public function getBallotPlacement() { + return $this->ballotPlacement; + } - public function setCandidates($candidates) - { - $this->candidates = $candidates; - } + public function setCandidates($candidates) { + $this->candidates = $candidates; + } - public function getCandidates() - { - return $this->candidates; - } + public function getCandidates() { + return $this->candidates; + } - public function setDistrict(Google_Service_CivicInfo_ElectoralDistrict $district) - { - $this->district = $district; - } + public function setDistrict(Google_Service_CivicInfo_ElectoralDistrict $district) { + $this->district = $district; + } - public function getDistrict() - { - return $this->district; - } + public function getDistrict() { + return $this->district; + } - public function setElectorateSpecifications($electorateSpecifications) - { - $this->electorateSpecifications = $electorateSpecifications; - } + public function setElectorateSpecifications($electorateSpecifications) { + $this->electorateSpecifications = $electorateSpecifications; + } - public function getElectorateSpecifications() - { - return $this->electorateSpecifications; - } + public function getElectorateSpecifications() { + return $this->electorateSpecifications; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLevel($level) - { - $this->level = $level; - } + public function setLevel($level) { + $this->level = $level; + } - public function getLevel() - { - return $this->level; - } + public function getLevel() { + return $this->level; + } - public function setNumberElected($numberElected) - { - $this->numberElected = $numberElected; - } + public function setNumberElected($numberElected) { + $this->numberElected = $numberElected; + } - public function getNumberElected() - { - return $this->numberElected; - } + public function getNumberElected() { + return $this->numberElected; + } - public function setNumberVotingFor($numberVotingFor) - { - $this->numberVotingFor = $numberVotingFor; - } + public function setNumberVotingFor($numberVotingFor) { + $this->numberVotingFor = $numberVotingFor; + } - public function getNumberVotingFor() - { - return $this->numberVotingFor; - } + public function getNumberVotingFor() { + return $this->numberVotingFor; + } - public function setOffice($office) - { - $this->office = $office; - } + public function setOffice($office) { + $this->office = $office; + } - public function getOffice() - { - return $this->office; - } + public function getOffice() { + return $this->office; + } - public function setPrimaryParty($primaryParty) - { - $this->primaryParty = $primaryParty; - } + public function setPrimaryParty($primaryParty) { + $this->primaryParty = $primaryParty; + } - public function getPrimaryParty() - { - return $this->primaryParty; - } + public function getPrimaryParty() { + return $this->primaryParty; + } - public function setReferendumSubtitle($referendumSubtitle) - { - $this->referendumSubtitle = $referendumSubtitle; - } + public function setReferendumSubtitle($referendumSubtitle) { + $this->referendumSubtitle = $referendumSubtitle; + } - public function getReferendumSubtitle() - { - return $this->referendumSubtitle; - } + public function getReferendumSubtitle() { + return $this->referendumSubtitle; + } - public function setReferendumTitle($referendumTitle) - { - $this->referendumTitle = $referendumTitle; - } + public function setReferendumTitle($referendumTitle) { + $this->referendumTitle = $referendumTitle; + } - public function getReferendumTitle() - { - return $this->referendumTitle; - } + public function getReferendumTitle() { + return $this->referendumTitle; + } - public function setReferendumUrl($referendumUrl) - { - $this->referendumUrl = $referendumUrl; - } + public function setReferendumUrl($referendumUrl) { + $this->referendumUrl = $referendumUrl; + } - public function getReferendumUrl() - { - return $this->referendumUrl; - } + public function getReferendumUrl() { + return $this->referendumUrl; + } - public function setSources($sources) - { - $this->sources = $sources; - } + public function setSources($sources) { + $this->sources = $sources; + } - public function getSources() - { - return $this->sources; - } + public function getSources() { + return $this->sources; + } - public function setSpecial($special) - { - $this->special = $special; - } + public function setSpecial($special) { + $this->special = $special; + } - public function getSpecial() - { - return $this->special; - } + public function getSpecial() { + return $this->special; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection -{ - public $kind; - protected $resultsType = 'Google_Service_CivicInfo_DivisionSearchResult'; - protected $resultsDataType = 'array'; - public $status; +class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection { + public $kind; + protected $resultsType = 'Google_Service_CivicInfo_DivisionSearchResult'; + protected $resultsDataType = 'array'; + public $status; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setResults($results) - { - $this->results = $results; - } + public function setResults($results) { + $this->results = $results; + } - public function getResults() - { - return $this->results; - } + public function getResults() { + return $this->results; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_CivicInfo_DivisionSearchResult extends Google_Collection -{ - public $aliases; - public $name; - public $ocdId; +class Google_Service_CivicInfo_DivisionSearchResult extends Google_Collection { + public $aliases; + public $name; + public $ocdId; - public function setAliases($aliases) - { - $this->aliases = $aliases; - } + public function setAliases($aliases) { + $this->aliases = $aliases; + } - public function getAliases() - { - return $this->aliases; - } + public function getAliases() { + return $this->aliases; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOcdId($ocdId) - { - $this->ocdId = $ocdId; - } + public function setOcdId($ocdId) { + $this->ocdId = $ocdId; + } - public function getOcdId() - { - return $this->ocdId; - } + public function getOcdId() { + return $this->ocdId; + } } -class Google_Service_CivicInfo_Election extends Google_Model -{ - public $electionDay; - public $id; - public $name; +class Google_Service_CivicInfo_Election extends Google_Model { + public $electionDay; + public $id; + public $name; - public function setElectionDay($electionDay) - { - $this->electionDay = $electionDay; - } + public function setElectionDay($electionDay) { + $this->electionDay = $electionDay; + } - public function getElectionDay() - { - return $this->electionDay; - } + public function getElectionDay() { + return $this->electionDay; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_CivicInfo_ElectionOfficial extends Google_Model -{ - public $emailAddress; - public $faxNumber; - public $name; - public $officePhoneNumber; - public $title; +class Google_Service_CivicInfo_ElectionOfficial extends Google_Model { + public $emailAddress; + public $faxNumber; + public $name; + public $officePhoneNumber; + public $title; - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } + public function setEmailAddress($emailAddress) { + $this->emailAddress = $emailAddress; + } - public function getEmailAddress() - { - return $this->emailAddress; - } + public function getEmailAddress() { + return $this->emailAddress; + } - public function setFaxNumber($faxNumber) - { - $this->faxNumber = $faxNumber; - } + public function setFaxNumber($faxNumber) { + $this->faxNumber = $faxNumber; + } - public function getFaxNumber() - { - return $this->faxNumber; - } + public function getFaxNumber() { + return $this->faxNumber; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOfficePhoneNumber($officePhoneNumber) - { - $this->officePhoneNumber = $officePhoneNumber; - } + public function setOfficePhoneNumber($officePhoneNumber) { + $this->officePhoneNumber = $officePhoneNumber; + } - public function getOfficePhoneNumber() - { - return $this->officePhoneNumber; - } + public function getOfficePhoneNumber() { + return $this->officePhoneNumber; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection -{ - protected $electionsType = 'Google_Service_CivicInfo_Election'; - protected $electionsDataType = 'array'; - public $kind; +class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection { + protected $electionsType = 'Google_Service_CivicInfo_Election'; + protected $electionsDataType = 'array'; + public $kind; - public function setElections($elections) - { - $this->elections = $elections; - } + public function setElections($elections) { + $this->elections = $elections; + } - public function getElections() - { - return $this->elections; - } + public function getElections() { + return $this->elections; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model -{ - public $id; - public $name; - public $scope; +class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model { + public $id; + public $name; + public $scope; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setScope($scope) - { - $this->scope = $scope; - } + public function setScope($scope) { + $this->scope = $scope; + } - public function getScope() - { - return $this->scope; - } + public function getScope() { + return $this->scope; + } } -class Google_Service_CivicInfo_GeographicDivision extends Google_Collection -{ - public $alsoKnownAs; - public $name; - public $officeIds; - public $scope; +class Google_Service_CivicInfo_GeographicDivision extends Google_Collection { + public $alsoKnownAs; + public $name; + public $officeIds; + public $scope; - public function setAlsoKnownAs($alsoKnownAs) - { - $this->alsoKnownAs = $alsoKnownAs; - } + public function setAlsoKnownAs($alsoKnownAs) { + $this->alsoKnownAs = $alsoKnownAs; + } - public function getAlsoKnownAs() - { - return $this->alsoKnownAs; - } + public function getAlsoKnownAs() { + return $this->alsoKnownAs; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOfficeIds($officeIds) - { - $this->officeIds = $officeIds; - } + public function setOfficeIds($officeIds) { + $this->officeIds = $officeIds; + } - public function getOfficeIds() - { - return $this->officeIds; - } + public function getOfficeIds() { + return $this->officeIds; + } - public function setScope($scope) - { - $this->scope = $scope; - } + public function setScope($scope) { + $this->scope = $scope; + } - public function getScope() - { - return $this->scope; - } + public function getScope() { + return $this->scope; + } } -class Google_Service_CivicInfo_Office extends Google_Collection -{ - public $divisionId; - public $level; - public $name; - public $officialIds; - protected $sourcesType = 'Google_Service_CivicInfo_Source'; - protected $sourcesDataType = 'array'; +class Google_Service_CivicInfo_Office extends Google_Collection { + public $divisionId; + public $level; + public $name; + public $officialIds; + protected $sourcesType = 'Google_Service_CivicInfo_Source'; + protected $sourcesDataType = 'array'; - public function setDivisionId($divisionId) - { - $this->divisionId = $divisionId; - } + public function setDivisionId($divisionId) { + $this->divisionId = $divisionId; + } - public function getDivisionId() - { - return $this->divisionId; - } + public function getDivisionId() { + return $this->divisionId; + } - public function setLevel($level) - { - $this->level = $level; - } + public function setLevel($level) { + $this->level = $level; + } - public function getLevel() - { - return $this->level; - } + public function getLevel() { + return $this->level; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOfficialIds($officialIds) - { - $this->officialIds = $officialIds; - } + public function setOfficialIds($officialIds) { + $this->officialIds = $officialIds; + } - public function getOfficialIds() - { - return $this->officialIds; - } + public function getOfficialIds() { + return $this->officialIds; + } - public function setSources($sources) - { - $this->sources = $sources; - } + public function setSources($sources) { + $this->sources = $sources; + } - public function getSources() - { - return $this->sources; - } + public function getSources() { + return $this->sources; + } } -class Google_Service_CivicInfo_Official extends Google_Collection -{ - protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $addressDataType = 'array'; - protected $channelsType = 'Google_Service_CivicInfo_Channel'; - protected $channelsDataType = 'array'; - public $emails; - public $name; - public $party; - public $phones; - public $photoUrl; - public $urls; +class Google_Service_CivicInfo_Official extends Google_Collection { + protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType'; + protected $addressDataType = 'array'; + protected $channelsType = 'Google_Service_CivicInfo_Channel'; + protected $channelsDataType = 'array'; + public $emails; + public $name; + public $party; + public $phones; + public $photoUrl; + public $urls; - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setChannels($channels) - { - $this->channels = $channels; - } + public function setChannels($channels) { + $this->channels = $channels; + } - public function getChannels() - { - return $this->channels; - } + public function getChannels() { + return $this->channels; + } - public function setEmails($emails) - { - $this->emails = $emails; - } + public function setEmails($emails) { + $this->emails = $emails; + } - public function getEmails() - { - return $this->emails; - } + public function getEmails() { + return $this->emails; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setParty($party) - { - $this->party = $party; - } + public function setParty($party) { + $this->party = $party; + } - public function getParty() - { - return $this->party; - } + public function getParty() { + return $this->party; + } - public function setPhones($phones) - { - $this->phones = $phones; - } + public function setPhones($phones) { + $this->phones = $phones; + } - public function getPhones() - { - return $this->phones; - } + public function getPhones() { + return $this->phones; + } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } + public function setPhotoUrl($photoUrl) { + $this->photoUrl = $photoUrl; + } - public function getPhotoUrl() - { - return $this->photoUrl; - } + public function getPhotoUrl() { + return $this->photoUrl; + } - public function setUrls($urls) - { - $this->urls = $urls; - } + public function setUrls($urls) { + $this->urls = $urls; + } - public function getUrls() - { - return $this->urls; - } + public function getUrls() { + return $this->urls; + } } -class Google_Service_CivicInfo_PollingLocation extends Google_Collection -{ - protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $addressDataType = ''; - public $endDate; - public $id; - public $name; - public $notes; - public $pollingHours; - protected $sourcesType = 'Google_Service_CivicInfo_Source'; - protected $sourcesDataType = 'array'; - public $startDate; - public $voterServices; +class Google_Service_CivicInfo_PollingLocation extends Google_Collection { + protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType'; + protected $addressDataType = ''; + public $endDate; + public $id; + public $name; + public $notes; + public $pollingHours; + protected $sourcesType = 'Google_Service_CivicInfo_Source'; + protected $sourcesDataType = 'array'; + public $startDate; + public $voterServices; - public function setAddress(Google_Service_CivicInfo_SimpleAddressType $address) - { - $this->address = $address; - } + public function setAddress(Google_Service_CivicInfo_SimpleAddressType $address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } + public function setEndDate($endDate) { + $this->endDate = $endDate; + } - public function getEndDate() - { - return $this->endDate; - } + public function getEndDate() { + return $this->endDate; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setNotes($notes) - { - $this->notes = $notes; - } + public function setNotes($notes) { + $this->notes = $notes; + } - public function getNotes() - { - return $this->notes; - } + public function getNotes() { + return $this->notes; + } - public function setPollingHours($pollingHours) - { - $this->pollingHours = $pollingHours; - } + public function setPollingHours($pollingHours) { + $this->pollingHours = $pollingHours; + } - public function getPollingHours() - { - return $this->pollingHours; - } + public function getPollingHours() { + return $this->pollingHours; + } - public function setSources($sources) - { - $this->sources = $sources; - } + public function setSources($sources) { + $this->sources = $sources; + } - public function getSources() - { - return $this->sources; - } + public function getSources() { + return $this->sources; + } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } + public function setStartDate($startDate) { + $this->startDate = $startDate; + } - public function getStartDate() - { - return $this->startDate; - } + public function getStartDate() { + return $this->startDate; + } - public function setVoterServices($voterServices) - { - $this->voterServices = $voterServices; - } + public function setVoterServices($voterServices) { + $this->voterServices = $voterServices; + } - public function getVoterServices() - { - return $this->voterServices; - } + public function getVoterServices() { + return $this->voterServices; + } } -class Google_Service_CivicInfo_RepresentativeInfoRequest extends Google_Model -{ - public $address; +class Google_Service_CivicInfo_RepresentativeInfoRequest extends Google_Model { + public $address; - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } } -class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Model -{ - protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision'; - protected $divisionsDataType = 'map'; - public $kind; - protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $normalizedInputDataType = ''; - protected $officesType = 'Google_Service_CivicInfo_Office'; - protected $officesDataType = 'map'; - protected $officialsType = 'Google_Service_CivicInfo_Official'; - protected $officialsDataType = 'map'; - public $status; +class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Model { + protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision'; + protected $divisionsDataType = 'map'; + public $kind; + protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType'; + protected $normalizedInputDataType = ''; + protected $officesType = 'Google_Service_CivicInfo_Office'; + protected $officesDataType = 'map'; + protected $officialsType = 'Google_Service_CivicInfo_Official'; + protected $officialsDataType = 'map'; + public $status; - public function setDivisions($divisions) - { - $this->divisions = $divisions; - } + public function setDivisions($divisions) { + $this->divisions = $divisions; + } - public function getDivisions() - { - return $this->divisions; - } + public function getDivisions() { + return $this->divisions; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput) - { - $this->normalizedInput = $normalizedInput; - } + public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput) { + $this->normalizedInput = $normalizedInput; + } - public function getNormalizedInput() - { - return $this->normalizedInput; - } + public function getNormalizedInput() { + return $this->normalizedInput; + } - public function setOffices($offices) - { - $this->offices = $offices; - } + public function setOffices($offices) { + $this->offices = $offices; + } - public function getOffices() - { - return $this->offices; - } + public function getOffices() { + return $this->offices; + } - public function setOfficials($officials) - { - $this->officials = $officials; - } + public function setOfficials($officials) { + $this->officials = $officials; + } - public function getOfficials() - { - return $this->officials; - } + public function getOfficials() { + return $this->officials; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_CivicInfo_RepresentativeInfoResponseDivisions extends Google_Model -{ +class Google_Service_CivicInfo_RepresentativeInfoResponseDivisions extends Google_Model { } -class Google_Service_CivicInfo_RepresentativeInfoResponseOffices extends Google_Model -{ +class Google_Service_CivicInfo_RepresentativeInfoResponseOffices extends Google_Model { } -class Google_Service_CivicInfo_RepresentativeInfoResponseOfficials extends Google_Model -{ +class Google_Service_CivicInfo_RepresentativeInfoResponseOfficials extends Google_Model { } -class Google_Service_CivicInfo_SimpleAddressType extends Google_Model -{ - public $city; - public $line1; - public $line2; - public $line3; - public $locationName; - public $state; - public $zip; +class Google_Service_CivicInfo_SimpleAddressType extends Google_Model { + public $city; + public $line1; + public $line2; + public $line3; + public $locationName; + public $state; + public $zip; - public function setCity($city) - { - $this->city = $city; - } + public function setCity($city) { + $this->city = $city; + } - public function getCity() - { - return $this->city; - } + public function getCity() { + return $this->city; + } - public function setLine1($line1) - { - $this->line1 = $line1; - } + public function setLine1($line1) { + $this->line1 = $line1; + } - public function getLine1() - { - return $this->line1; - } + public function getLine1() { + return $this->line1; + } - public function setLine2($line2) - { - $this->line2 = $line2; - } + public function setLine2($line2) { + $this->line2 = $line2; + } - public function getLine2() - { - return $this->line2; - } + public function getLine2() { + return $this->line2; + } - public function setLine3($line3) - { - $this->line3 = $line3; - } + public function setLine3($line3) { + $this->line3 = $line3; + } - public function getLine3() - { - return $this->line3; - } + public function getLine3() { + return $this->line3; + } - public function setLocationName($locationName) - { - $this->locationName = $locationName; - } + public function setLocationName($locationName) { + $this->locationName = $locationName; + } - public function getLocationName() - { - return $this->locationName; - } + public function getLocationName() { + return $this->locationName; + } - public function setState($state) - { - $this->state = $state; - } + public function setState($state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } - public function setZip($zip) - { - $this->zip = $zip; - } + public function setZip($zip) { + $this->zip = $zip; + } - public function getZip() - { - return $this->zip; - } + public function getZip() { + return $this->zip; + } } -class Google_Service_CivicInfo_Source extends Google_Model -{ - public $name; - public $official; +class Google_Service_CivicInfo_Source extends Google_Model { + public $name; + public $official; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOfficial($official) - { - $this->official = $official; - } + public function setOfficial($official) { + $this->official = $official; + } - public function getOfficial() - { - return $this->official; - } + public function getOfficial() { + return $this->official; + } } -class Google_Service_CivicInfo_VoterInfoRequest extends Google_Model -{ - public $address; +class Google_Service_CivicInfo_VoterInfoRequest extends Google_Model { + public $address; - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } } -class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection -{ - protected $contestsType = 'Google_Service_CivicInfo_Contest'; - protected $contestsDataType = 'array'; - protected $earlyVoteSitesType = 'Google_Service_CivicInfo_PollingLocation'; - protected $earlyVoteSitesDataType = 'array'; - protected $electionType = 'Google_Service_CivicInfo_Election'; - protected $electionDataType = ''; - public $kind; - protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType'; - protected $normalizedInputDataType = ''; - protected $pollingLocationsType = 'Google_Service_CivicInfo_PollingLocation'; - protected $pollingLocationsDataType = 'array'; - protected $stateType = 'Google_Service_CivicInfo_AdministrationRegion'; - protected $stateDataType = 'array'; - public $status; +class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection { + protected $contestsType = 'Google_Service_CivicInfo_Contest'; + protected $contestsDataType = 'array'; + protected $earlyVoteSitesType = 'Google_Service_CivicInfo_PollingLocation'; + protected $earlyVoteSitesDataType = 'array'; + protected $electionType = 'Google_Service_CivicInfo_Election'; + protected $electionDataType = ''; + public $kind; + protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType'; + protected $normalizedInputDataType = ''; + protected $pollingLocationsType = 'Google_Service_CivicInfo_PollingLocation'; + protected $pollingLocationsDataType = 'array'; + protected $stateType = 'Google_Service_CivicInfo_AdministrationRegion'; + protected $stateDataType = 'array'; + public $status; - public function setContests($contests) - { - $this->contests = $contests; - } + public function setContests($contests) { + $this->contests = $contests; + } - public function getContests() - { - return $this->contests; - } + public function getContests() { + return $this->contests; + } - public function setEarlyVoteSites($earlyVoteSites) - { - $this->earlyVoteSites = $earlyVoteSites; - } + public function setEarlyVoteSites($earlyVoteSites) { + $this->earlyVoteSites = $earlyVoteSites; + } - public function getEarlyVoteSites() - { - return $this->earlyVoteSites; - } + public function getEarlyVoteSites() { + return $this->earlyVoteSites; + } - public function setElection(Google_Service_CivicInfo_Election $election) - { - $this->election = $election; - } + public function setElection(Google_Service_CivicInfo_Election $election) { + $this->election = $election; + } - public function getElection() - { - return $this->election; - } + public function getElection() { + return $this->election; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput) - { - $this->normalizedInput = $normalizedInput; - } + public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput) { + $this->normalizedInput = $normalizedInput; + } - public function getNormalizedInput() - { - return $this->normalizedInput; - } + public function getNormalizedInput() { + return $this->normalizedInput; + } - public function setPollingLocations($pollingLocations) - { - $this->pollingLocations = $pollingLocations; - } + public function setPollingLocations($pollingLocations) { + $this->pollingLocations = $pollingLocations; + } - public function getPollingLocations() - { - return $this->pollingLocations; - } + public function getPollingLocations() { + return $this->pollingLocations; + } - public function setState($state) - { - $this->state = $state; - } + public function setState($state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } diff --git a/oauth/Google/Service/CloudMonitoring.php b/oauth/Google/Service/CloudMonitoring.php index 03fca0f..6236a4e 100644 --- a/oauth/Google/Service/CloudMonitoring.php +++ b/oauth/Google/Service/CloudMonitoring.php @@ -29,163 +29,161 @@ * * @author Google, Inc. */ -class Google_Service_CloudMonitoring extends Google_Service -{ - /** View monitoring data for all of your Google Cloud and API projects. */ - const MONITORING_READONLY = "https://www.googleapis.com/auth/monitoring.readonly"; +class Google_Service_CloudMonitoring extends Google_Service { + /** View monitoring data for all of your Google Cloud and API projects. */ + const MONITORING_READONLY = "https://www.googleapis.com/auth/monitoring.readonly"; - public $metricDescriptors; - public $timeseries; - public $timeseriesDescriptors; - + public $metricDescriptors; + public $timeseries; + public $timeseriesDescriptors; - /** - * Constructs the internal representation of the CloudMonitoring service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'cloudmonitoring/v2beta1/projects/'; - $this->version = 'v2beta1'; - $this->serviceName = 'cloudmonitoring'; - $this->metricDescriptors = new Google_Service_CloudMonitoring_MetricDescriptors_Resource( - $this, - $this->serviceName, - 'metricDescriptors', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/metricDescriptors', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->timeseries = new Google_Service_CloudMonitoring_Timeseries_Resource( - $this, - $this->serviceName, - 'timeseries', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/timeseries/{metric}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'metric' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'youngest' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'timespan' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'oldest' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->timeseriesDescriptors = new Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource( - $this, - $this->serviceName, - 'timeseriesDescriptors', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/timeseriesDescriptors/{metric}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'metric' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'youngest' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'count' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'timespan' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'labels' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'oldest' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the CloudMonitoring service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'cloudmonitoring/v2beta1/projects/'; + $this->version = 'v2beta1'; + $this->serviceName = 'cloudmonitoring'; + + $this->metricDescriptors = new Google_Service_CloudMonitoring_MetricDescriptors_Resource( + $this, + $this->serviceName, + 'metricDescriptors', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/metricDescriptors', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'count' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->timeseries = new Google_Service_CloudMonitoring_Timeseries_Resource( + $this, + $this->serviceName, + 'timeseries', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/timeseries/{metric}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metric' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'youngest' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'count' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'timespan' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'labels' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'oldest' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->timeseriesDescriptors = new Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource( + $this, + $this->serviceName, + 'timeseriesDescriptors', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/timeseriesDescriptors/{metric}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metric' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'youngest' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'count' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'timespan' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'labels' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'oldest' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -197,39 +195,37 @@ class Google_Service_CloudMonitoring extends Google_Service * $metricDescriptors = $cloudmonitoringService->metricDescriptors; * */ -class Google_Service_CloudMonitoring_MetricDescriptors_Resource extends Google_Service_Resource -{ +class Google_Service_CloudMonitoring_MetricDescriptors_Resource extends Google_Service_Resource { - /** - * List metric descriptors that match the query. If the query is not set, then - * all of the metric descriptors will be returned. Large responses will be - * paginated, use the nextPageToken returned in the response to request - * subsequent pages of results by setting the pageToken query parameter to the - * value of the nextPageToken. (metricDescriptors.listMetricDescriptors) - * - * @param string $project - * The project id. The value can be the numeric project ID or string-based project name. - * @param array $optParams Optional parameters. - * - * @opt_param int count - * Maximum number of metric descriptors per page. Used for pagination. If not specified, count = - * 100. - * @opt_param string pageToken - * The pagination token, which is used to page through large result sets. Set this value to the - * value of the nextPageToken to retrieve the next page of results. - * @opt_param string query - * The query used to search against existing metrics. Separate keywords with a space; the service - * joins all keywords with AND, meaning that all keywords must match for a metric to be returned. - * If this field is omitted, all metrics are returned. If an empty string is passed with this - * field, no metrics are returned. - * @return Google_Service_CloudMonitoring_ListMetricDescriptorsResponse - */ - public function listMetricDescriptors($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListMetricDescriptorsResponse"); - } + /** + * List metric descriptors that match the query. If the query is not set, then + * all of the metric descriptors will be returned. Large responses will be + * paginated, use the nextPageToken returned in the response to request + * subsequent pages of results by setting the pageToken query parameter to the + * value of the nextPageToken. (metricDescriptors.listMetricDescriptors) + * + * @param string $project + * The project id. The value can be the numeric project ID or string-based project name. + * @param array $optParams Optional parameters. + * + * @opt_param int count + * Maximum number of metric descriptors per page. Used for pagination. If not specified, count = + * 100. + * @opt_param string pageToken + * The pagination token, which is used to page through large result sets. Set this value to the + * value of the nextPageToken to retrieve the next page of results. + * @opt_param string query + * The query used to search against existing metrics. Separate keywords with a space; the service + * joins all keywords with AND, meaning that all keywords must match for a metric to be returned. + * If this field is omitted, all metrics are returned. If an empty string is passed with this + * field, no metrics are returned. + * @return Google_Service_CloudMonitoring_ListMetricDescriptorsResponse + */ + public function listMetricDescriptors($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListMetricDescriptorsResponse"); + } } /** @@ -240,66 +236,64 @@ class Google_Service_CloudMonitoring_MetricDescriptors_Resource extends Google_S * $timeseries = $cloudmonitoringService->timeseries; * */ -class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_Resource -{ +class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_Resource { - /** - * List the data points of the time series that match the metric and labels - * values and that have data points in the interval. Large responses are - * paginated; use the nextPageToken returned in the response to request - * subsequent pages of results by setting the pageToken query parameter to the - * value of the nextPageToken. (timeseries.listTimeseries) - * - * @param string $project - * The project ID to which this time series belongs. The value can be the numeric project ID or - * string-based project name. - * @param string $metric - * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, - * compute.googleapis.com/instance/disk/read_ops_count. - * @param string $youngest - * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. - * @param array $optParams Optional parameters. - * - * @opt_param int count - * Maximum number of data points per page, which is used for pagination of results. - * @opt_param string timespan - * Length of the time interval to query, which is an alternative way to declare the interval: - * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. - * Units: - - s: second - - m: minute - - h: hour - - d: day - - w: week Examples: 2s, 3m, 4w. Only - * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. - If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest]. - * @opt_param string labels - * A collection of labels for the matching time series, which are represented as: - - key==value: - * key equals the value - - key=~value: key regex matches the value - - key!=value: key does not - * equal the value - - key!~value: key regex does not match the value For example, to list all of - * the time series descriptors for the region us-central1, you could specify: - * label=cloud.googleapis.com%2Flocation=~us-central1.* - * @opt_param string pageToken - * The pagination token, which is used to page through large result sets. Set this value to the - * value of the nextPageToken to retrieve the next page of results. - * @opt_param string oldest - * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest] - * @return Google_Service_CloudMonitoring_ListTimeseriesResponse - */ - public function listTimeseries($project, $metric, $youngest, $optParams = array()) - { - $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesResponse"); - } + /** + * List the data points of the time series that match the metric and labels + * values and that have data points in the interval. Large responses are + * paginated; use the nextPageToken returned in the response to request + * subsequent pages of results by setting the pageToken query parameter to the + * value of the nextPageToken. (timeseries.listTimeseries) + * + * @param string $project + * The project ID to which this time series belongs. The value can be the numeric project ID or + * string-based project name. + * @param string $metric + * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, + * compute.googleapis.com/instance/disk/read_ops_count. + * @param string $youngest + * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. + * @param array $optParams Optional parameters. + * + * @opt_param int count + * Maximum number of data points per page, which is used for pagination of results. + * @opt_param string timespan + * Length of the time interval to query, which is an alternative way to declare the interval: + * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. + * Units: + * - s: second + * - m: minute + * - h: hour + * - d: day + * - w: week Examples: 2s, 3m, 4w. Only + * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. + * If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest]. + * @opt_param string labels + * A collection of labels for the matching time series, which are represented as: + * - key==value: + * key equals the value + * - key=~value: key regex matches the value + * - key!=value: key does not + * equal the value + * - key!~value: key regex does not match the value For example, to list all of + * the time series descriptors for the region us-central1, you could specify: + * label=cloud.googleapis.com%2Flocation=~us-central1.* + * @opt_param string pageToken + * The pagination token, which is used to page through large result sets. Set this value to the + * value of the nextPageToken to retrieve the next page of results. + * @opt_param string oldest + * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest] + * @return Google_Service_CloudMonitoring_ListTimeseriesResponse + */ + public function listTimeseries($project, $metric, $youngest, $optParams = array()) { + $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesResponse"); + } } /** @@ -310,665 +304,550 @@ class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_ * $timeseriesDescriptors = $cloudmonitoringService->timeseriesDescriptors; * */ -class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Google_Service_Resource -{ +class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Google_Service_Resource { - /** - * List the descriptors of the time series that match the metric and labels - * values and that have data points in the interval. Large responses are - * paginated; use the nextPageToken returned in the response to request - * subsequent pages of results by setting the pageToken query parameter to the - * value of the nextPageToken. (timeseriesDescriptors.listTimeseriesDescriptors) - * - * @param string $project - * The project ID to which this time series belongs. The value can be the numeric project ID or - * string-based project name. - * @param string $metric - * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, - * compute.googleapis.com/instance/disk/read_ops_count. - * @param string $youngest - * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. - * @param array $optParams Optional parameters. - * - * @opt_param int count - * Maximum number of time series descriptors per page. Used for pagination. If not specified, count - * = 100. - * @opt_param string timespan - * Length of the time interval to query, which is an alternative way to declare the interval: - * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. - * Units: - - s: second - - m: minute - - h: hour - - d: day - - w: week Examples: 2s, 3m, 4w. Only - * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. - If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest]. - * @opt_param string labels - * A collection of labels for the matching time series, which are represented as: - - key==value: - * key equals the value - - key=~value: key regex matches the value - - key!=value: key does not - * equal the value - - key!~value: key regex does not match the value For example, to list all of - * the time series descriptors for the region us-central1, you could specify: - * label=cloud.googleapis.com%2Flocation=~us-central1.* - * @opt_param string pageToken - * The pagination token, which is used to page through large result sets. Set this value to the - * value of the nextPageToken to retrieve the next page of results. - * @opt_param string oldest - * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither - * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, - * youngest] - * @return Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse - */ - public function listTimeseriesDescriptors($project, $metric, $youngest, $optParams = array()) - { - $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse"); - } + /** + * List the descriptors of the time series that match the metric and labels + * values and that have data points in the interval. Large responses are + * paginated; use the nextPageToken returned in the response to request + * subsequent pages of results by setting the pageToken query parameter to the + * value of the nextPageToken. (timeseriesDescriptors.listTimeseriesDescriptors) + * + * @param string $project + * The project ID to which this time series belongs. The value can be the numeric project ID or + * string-based project name. + * @param string $metric + * Metric names are protocol-free URLs as listed in the Supported Metrics page. For example, + * compute.googleapis.com/instance/disk/read_ops_count. + * @param string $youngest + * End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp. + * @param array $optParams Optional parameters. + * + * @opt_param int count + * Maximum number of time series descriptors per page. Used for pagination. If not specified, count + * = 100. + * @opt_param string timespan + * Length of the time interval to query, which is an alternative way to declare the interval: + * (youngest - timespan, youngest]. The timespan and oldest parameters should not be used together. + * Units: + * - s: second + * - m: minute + * - h: hour + * - d: day + * - w: week Examples: 2s, 3m, 4w. Only + * one unit is allowed, for example: 2w3d is not allowed; you should use 17d instead. + * If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest]. + * @opt_param string labels + * A collection of labels for the matching time series, which are represented as: + * - key==value: + * key equals the value + * - key=~value: key regex matches the value + * - key!=value: key does not + * equal the value + * - key!~value: key regex does not match the value For example, to list all of + * the time series descriptors for the region us-central1, you could specify: + * label=cloud.googleapis.com%2Flocation=~us-central1.* + * @opt_param string pageToken + * The pagination token, which is used to page through large result sets. Set this value to the + * value of the nextPageToken to retrieve the next page of results. + * @opt_param string oldest + * Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp. If neither + * oldest nor timespan is specified, the default time interval will be (youngest - 4 hours, + * youngest] + * @return Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse + */ + public function listTimeseriesDescriptors($project, $metric, $youngest, $optParams = array()) { + $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse"); + } } +class Google_Service_CloudMonitoring_ListMetricDescriptorsRequest extends Google_Model { + public $kind; + public function setKind($kind) { + $this->kind = $kind; + } -class Google_Service_CloudMonitoring_ListMetricDescriptorsRequest extends Google_Model -{ - public $kind; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_CloudMonitoring_ListMetricDescriptorsResponse extends Google_Collection -{ - public $kind; - protected $metricsType = 'Google_Service_CloudMonitoring_MetricDescriptor'; - protected $metricsDataType = 'array'; - public $nextPageToken; +class Google_Service_CloudMonitoring_ListMetricDescriptorsResponse extends Google_Collection { + public $kind; + protected $metricsType = 'Google_Service_CloudMonitoring_MetricDescriptor'; + protected $metricsDataType = 'array'; + public $nextPageToken; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } + public function setMetrics($metrics) { + $this->metrics = $metrics; + } - public function getMetrics() - { - return $this->metrics; - } + public function getMetrics() { + return $this->metrics; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsRequest extends Google_Model -{ - public $kind; +class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsRequest extends Google_Model { + public $kind; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - public $oldest; - protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; - protected $timeseriesDataType = 'array'; - public $youngest; +class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection { + public $kind; + public $nextPageToken; + public $oldest; + protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; + protected $timeseriesDataType = 'array'; + public $youngest; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setOldest($oldest) - { - $this->oldest = $oldest; - } + public function setOldest($oldest) { + $this->oldest = $oldest; + } - public function getOldest() - { - return $this->oldest; - } + public function getOldest() { + return $this->oldest; + } - public function setTimeseries($timeseries) - { - $this->timeseries = $timeseries; - } + public function setTimeseries($timeseries) { + $this->timeseries = $timeseries; + } - public function getTimeseries() - { - return $this->timeseries; - } + public function getTimeseries() { + return $this->timeseries; + } - public function setYoungest($youngest) - { - $this->youngest = $youngest; - } + public function setYoungest($youngest) { + $this->youngest = $youngest; + } - public function getYoungest() - { - return $this->youngest; - } + public function getYoungest() { + return $this->youngest; + } } -class Google_Service_CloudMonitoring_ListTimeseriesRequest extends Google_Model -{ - public $kind; +class Google_Service_CloudMonitoring_ListTimeseriesRequest extends Google_Model { + public $kind; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_CloudMonitoring_ListTimeseriesResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - public $oldest; - protected $timeseriesType = 'Google_Service_CloudMonitoring_Timeseries'; - protected $timeseriesDataType = 'array'; - public $youngest; +class Google_Service_CloudMonitoring_ListTimeseriesResponse extends Google_Collection { + public $kind; + public $nextPageToken; + public $oldest; + protected $timeseriesType = 'Google_Service_CloudMonitoring_Timeseries'; + protected $timeseriesDataType = 'array'; + public $youngest; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setOldest($oldest) - { - $this->oldest = $oldest; - } + public function setOldest($oldest) { + $this->oldest = $oldest; + } - public function getOldest() - { - return $this->oldest; - } + public function getOldest() { + return $this->oldest; + } - public function setTimeseries($timeseries) - { - $this->timeseries = $timeseries; - } + public function setTimeseries($timeseries) { + $this->timeseries = $timeseries; + } - public function getTimeseries() - { - return $this->timeseries; - } + public function getTimeseries() { + return $this->timeseries; + } - public function setYoungest($youngest) - { - $this->youngest = $youngest; - } + public function setYoungest($youngest) { + $this->youngest = $youngest; + } - public function getYoungest() - { - return $this->youngest; - } + public function getYoungest() { + return $this->youngest; + } } -class Google_Service_CloudMonitoring_MetricDescriptor extends Google_Collection -{ - public $description; - protected $labelsType = 'Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor'; - protected $labelsDataType = 'array'; - public $name; - public $project; - protected $typeDescriptorType = 'Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor'; - protected $typeDescriptorDataType = ''; +class Google_Service_CloudMonitoring_MetricDescriptor extends Google_Collection { + public $description; + protected $labelsType = 'Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor'; + protected $labelsDataType = 'array'; + public $name; + public $project; + protected $typeDescriptorType = 'Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor'; + protected $typeDescriptorDataType = ''; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setLabels($labels) - { - $this->labels = $labels; - } + public function setLabels($labels) { + $this->labels = $labels; + } - public function getLabels() - { - return $this->labels; - } + public function getLabels() { + return $this->labels; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setProject($project) - { - $this->project = $project; - } + public function setProject($project) { + $this->project = $project; + } - public function getProject() - { - return $this->project; - } + public function getProject() { + return $this->project; + } - public function setTypeDescriptor(Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor $typeDescriptor) - { - $this->typeDescriptor = $typeDescriptor; - } + public function setTypeDescriptor(Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor $typeDescriptor) { + $this->typeDescriptor = $typeDescriptor; + } - public function getTypeDescriptor() - { - return $this->typeDescriptor; - } + public function getTypeDescriptor() { + return $this->typeDescriptor; + } } -class Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor extends Google_Model -{ - public $description; - public $key; +class Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor extends Google_Model { + public $description; + public $key; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } } -class Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor extends Google_Model -{ - public $metricType; - public $valueType; +class Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor extends Google_Model { + public $metricType; + public $valueType; - public function setMetricType($metricType) - { - $this->metricType = $metricType; - } + public function setMetricType($metricType) { + $this->metricType = $metricType; + } - public function getMetricType() - { - return $this->metricType; - } + public function getMetricType() { + return $this->metricType; + } - public function setValueType($valueType) - { - $this->valueType = $valueType; - } + public function setValueType($valueType) { + $this->valueType = $valueType; + } - public function getValueType() - { - return $this->valueType; - } + public function getValueType() { + return $this->valueType; + } } -class Google_Service_CloudMonitoring_Point extends Google_Model -{ - public $boolValue; - protected $distributionValueType = 'Google_Service_CloudMonitoring_PointDistribution'; - protected $distributionValueDataType = ''; - public $doubleValue; - public $end; - public $int64Value; - public $start; - public $stringValue; +class Google_Service_CloudMonitoring_Point extends Google_Model { + public $boolValue; + protected $distributionValueType = 'Google_Service_CloudMonitoring_PointDistribution'; + protected $distributionValueDataType = ''; + public $doubleValue; + public $end; + public $int64Value; + public $start; + public $stringValue; - public function setBoolValue($boolValue) - { - $this->boolValue = $boolValue; - } + public function setBoolValue($boolValue) { + $this->boolValue = $boolValue; + } - public function getBoolValue() - { - return $this->boolValue; - } + public function getBoolValue() { + return $this->boolValue; + } - public function setDistributionValue(Google_Service_CloudMonitoring_PointDistribution $distributionValue) - { - $this->distributionValue = $distributionValue; - } + public function setDistributionValue(Google_Service_CloudMonitoring_PointDistribution $distributionValue) { + $this->distributionValue = $distributionValue; + } - public function getDistributionValue() - { - return $this->distributionValue; - } + public function getDistributionValue() { + return $this->distributionValue; + } - public function setDoubleValue($doubleValue) - { - $this->doubleValue = $doubleValue; - } + public function setDoubleValue($doubleValue) { + $this->doubleValue = $doubleValue; + } - public function getDoubleValue() - { - return $this->doubleValue; - } + public function getDoubleValue() { + return $this->doubleValue; + } - public function setEnd($end) - { - $this->end = $end; - } + public function setEnd($end) { + $this->end = $end; + } - public function getEnd() - { - return $this->end; - } + public function getEnd() { + return $this->end; + } - public function setInt64Value($int64Value) - { - $this->int64Value = $int64Value; - } + public function setInt64Value($int64Value) { + $this->int64Value = $int64Value; + } - public function getInt64Value() - { - return $this->int64Value; - } + public function getInt64Value() { + return $this->int64Value; + } - public function setStart($start) - { - $this->start = $start; - } + public function setStart($start) { + $this->start = $start; + } - public function getStart() - { - return $this->start; - } + public function getStart() { + return $this->start; + } - public function setStringValue($stringValue) - { - $this->stringValue = $stringValue; - } + public function setStringValue($stringValue) { + $this->stringValue = $stringValue; + } - public function getStringValue() - { - return $this->stringValue; - } + public function getStringValue() { + return $this->stringValue; + } } -class Google_Service_CloudMonitoring_PointDistribution extends Google_Collection -{ - protected $bucketsType = 'Google_Service_CloudMonitoring_PointDistributionBucket'; - protected $bucketsDataType = 'array'; - protected $overflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionOverflowBucket'; - protected $overflowBucketDataType = ''; - protected $underflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionUnderflowBucket'; - protected $underflowBucketDataType = ''; +class Google_Service_CloudMonitoring_PointDistribution extends Google_Collection { + protected $bucketsType = 'Google_Service_CloudMonitoring_PointDistributionBucket'; + protected $bucketsDataType = 'array'; + protected $overflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionOverflowBucket'; + protected $overflowBucketDataType = ''; + protected $underflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionUnderflowBucket'; + protected $underflowBucketDataType = ''; - public function setBuckets($buckets) - { - $this->buckets = $buckets; - } + public function setBuckets($buckets) { + $this->buckets = $buckets; + } - public function getBuckets() - { - return $this->buckets; - } + public function getBuckets() { + return $this->buckets; + } - public function setOverflowBucket(Google_Service_CloudMonitoring_PointDistributionOverflowBucket $overflowBucket) - { - $this->overflowBucket = $overflowBucket; - } + public function setOverflowBucket(Google_Service_CloudMonitoring_PointDistributionOverflowBucket $overflowBucket) { + $this->overflowBucket = $overflowBucket; + } - public function getOverflowBucket() - { - return $this->overflowBucket; - } + public function getOverflowBucket() { + return $this->overflowBucket; + } - public function setUnderflowBucket(Google_Service_CloudMonitoring_PointDistributionUnderflowBucket $underflowBucket) - { - $this->underflowBucket = $underflowBucket; - } + public function setUnderflowBucket(Google_Service_CloudMonitoring_PointDistributionUnderflowBucket $underflowBucket) { + $this->underflowBucket = $underflowBucket; + } - public function getUnderflowBucket() - { - return $this->underflowBucket; - } + public function getUnderflowBucket() { + return $this->underflowBucket; + } } -class Google_Service_CloudMonitoring_PointDistributionBucket extends Google_Model -{ - public $count; - public $lowerBound; - public $upperBound; +class Google_Service_CloudMonitoring_PointDistributionBucket extends Google_Model { + public $count; + public $lowerBound; + public $upperBound; - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } - public function setLowerBound($lowerBound) - { - $this->lowerBound = $lowerBound; - } + public function setLowerBound($lowerBound) { + $this->lowerBound = $lowerBound; + } - public function getLowerBound() - { - return $this->lowerBound; - } + public function getLowerBound() { + return $this->lowerBound; + } - public function setUpperBound($upperBound) - { - $this->upperBound = $upperBound; - } + public function setUpperBound($upperBound) { + $this->upperBound = $upperBound; + } - public function getUpperBound() - { - return $this->upperBound; - } + public function getUpperBound() { + return $this->upperBound; + } } -class Google_Service_CloudMonitoring_PointDistributionOverflowBucket extends Google_Model -{ - public $count; - public $lowerBound; +class Google_Service_CloudMonitoring_PointDistributionOverflowBucket extends Google_Model { + public $count; + public $lowerBound; - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } - public function setLowerBound($lowerBound) - { - $this->lowerBound = $lowerBound; - } + public function setLowerBound($lowerBound) { + $this->lowerBound = $lowerBound; + } - public function getLowerBound() - { - return $this->lowerBound; - } + public function getLowerBound() { + return $this->lowerBound; + } } -class Google_Service_CloudMonitoring_PointDistributionUnderflowBucket extends Google_Model -{ - public $count; - public $upperBound; +class Google_Service_CloudMonitoring_PointDistributionUnderflowBucket extends Google_Model { + public $count; + public $upperBound; - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } - public function setUpperBound($upperBound) - { - $this->upperBound = $upperBound; - } + public function setUpperBound($upperBound) { + $this->upperBound = $upperBound; + } - public function getUpperBound() - { - return $this->upperBound; - } + public function getUpperBound() { + return $this->upperBound; + } } -class Google_Service_CloudMonitoring_Timeseries extends Google_Collection -{ - protected $pointsType = 'Google_Service_CloudMonitoring_Point'; - protected $pointsDataType = 'array'; - protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; - protected $timeseriesDescDataType = ''; +class Google_Service_CloudMonitoring_Timeseries extends Google_Collection { + protected $pointsType = 'Google_Service_CloudMonitoring_Point'; + protected $pointsDataType = 'array'; + protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; + protected $timeseriesDescDataType = ''; - public function setPoints($points) - { - $this->points = $points; - } + public function setPoints($points) { + $this->points = $points; + } - public function getPoints() - { - return $this->points; - } + public function getPoints() { + return $this->points; + } - public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc) - { - $this->timeseriesDesc = $timeseriesDesc; - } + public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc) { + $this->timeseriesDesc = $timeseriesDesc; + } - public function getTimeseriesDesc() - { - return $this->timeseriesDesc; - } + public function getTimeseriesDesc() { + return $this->timeseriesDesc; + } } -class Google_Service_CloudMonitoring_TimeseriesDescriptor extends Google_Model -{ - public $labels; - public $metric; - public $project; +class Google_Service_CloudMonitoring_TimeseriesDescriptor extends Google_Model { + public $labels; + public $metric; + public $project; - public function setLabels($labels) - { - $this->labels = $labels; - } + public function setLabels($labels) { + $this->labels = $labels; + } - public function getLabels() - { - return $this->labels; - } + public function getLabels() { + return $this->labels; + } - public function setMetric($metric) - { - $this->metric = $metric; - } + public function setMetric($metric) { + $this->metric = $metric; + } - public function getMetric() - { - return $this->metric; - } + public function getMetric() { + return $this->metric; + } - public function setProject($project) - { - $this->project = $project; - } + public function setProject($project) { + $this->project = $project; + } - public function getProject() - { - return $this->project; - } + public function getProject() { + return $this->project; + } } -class Google_Service_CloudMonitoring_TimeseriesDescriptorLabels extends Google_Model -{ +class Google_Service_CloudMonitoring_TimeseriesDescriptorLabels extends Google_Model { } diff --git a/oauth/Google/Service/Compute.php b/oauth/Google/Service/Compute.php index 4d704e4..3562ee9 100644 --- a/oauth/Google/Service/Compute.php +++ b/oauth/Google/Service/Compute.php @@ -29,2674 +29,2672 @@ * * @author Google, Inc. */ -class Google_Service_Compute extends Google_Service -{ - /** View and manage your Google Compute Engine resources. */ - const COMPUTE = "https://www.googleapis.com/auth/compute"; - /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; - /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; - /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; +class Google_Service_Compute extends Google_Service { + /** View and manage your Google Compute Engine resources. */ + const COMPUTE = "https://www.googleapis.com/auth/compute"; + /** View your Google Compute Engine resources. */ + const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; + /** Manage your data and permissions in Google Cloud Storage. */ + const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; + /** View your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; + /** Manage your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; - public $addresses; - public $backendServices; - public $diskTypes; - public $disks; - public $firewalls; - public $forwardingRules; - public $globalAddresses; - public $globalForwardingRules; - public $globalOperations; - public $httpHealthChecks; - public $images; - public $instances; - public $licenses; - public $machineTypes; - public $networks; - public $projects; - public $regionOperations; - public $regions; - public $routes; - public $snapshots; - public $targetHttpProxies; - public $targetInstances; - public $targetPools; - public $urlMaps; - public $zoneOperations; - public $zones; - + public $addresses; + public $backendServices; + public $diskTypes; + public $disks; + public $firewalls; + public $forwardingRules; + public $globalAddresses; + public $globalForwardingRules; + public $globalOperations; + public $httpHealthChecks; + public $images; + public $instances; + public $licenses; + public $machineTypes; + public $networks; + public $projects; + public $regionOperations; + public $regions; + public $routes; + public $snapshots; + public $targetHttpProxies; + public $targetInstances; + public $targetPools; + public $urlMaps; + public $zoneOperations; + public $zones; - /** - * Constructs the internal representation of the Compute service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'compute/v1/projects/'; - $this->version = 'v1'; - $this->serviceName = 'compute'; - $this->addresses = new Google_Service_Compute_Addresses_Resource( - $this, - $this->serviceName, - 'addresses', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/addresses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/addresses/{address}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/addresses/{address}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/addresses', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/addresses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->backendServices = new Google_Service_Compute_BackendServices_Resource( - $this, - $this->serviceName, - 'backendServices', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getHealth' => array( - 'path' => '{project}/global/backendServices/{backendService}/getHealth', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/backendServices', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/backendServices', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/backendServices/{backendService}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backendService' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->diskTypes = new Google_Service_Compute_DiskTypes_Resource( - $this, - $this->serviceName, - 'diskTypes', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/diskTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/diskTypes/{diskType}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'diskType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/diskTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->disks = new Google_Service_Compute_Disks_Resource( - $this, - $this->serviceName, - 'disks', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/disks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'createSnapshot' => array( - 'path' => '{project}/zones/{zone}/disks/{disk}/createSnapshot', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'disk' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/disks/{disk}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'disk' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/disks/{disk}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'disk' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/disks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sourceImage' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/disks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->firewalls = new Google_Service_Compute_Firewalls_Resource( - $this, - $this->serviceName, - 'firewalls', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/firewalls', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/firewalls', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/firewalls/{firewall}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'firewall' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->forwardingRules = new Google_Service_Compute_ForwardingRules_Resource( - $this, - $this->serviceName, - 'forwardingRules', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/forwardingRules', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/forwardingRules', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/forwardingRules', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'setTarget' => array( - 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->globalAddresses = new Google_Service_Compute_GlobalAddresses_Resource( - $this, - $this->serviceName, - 'globalAddresses', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/addresses/{address}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/addresses/{address}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/addresses', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/addresses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->globalForwardingRules = new Google_Service_Compute_GlobalForwardingRules_Resource( - $this, - $this->serviceName, - 'globalForwardingRules', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/forwardingRules/{forwardingRule}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/forwardingRules/{forwardingRule}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/forwardingRules', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/forwardingRules', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'setTarget' => array( - 'path' => '{project}/global/forwardingRules/{forwardingRule}/setTarget', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingRule' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->globalOperations = new Google_Service_Compute_GlobalOperations_Resource( - $this, - $this->serviceName, - 'globalOperations', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->httpHealthChecks = new Google_Service_Compute_HttpHealthChecks_Resource( - $this, - $this->serviceName, - 'httpHealthChecks', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/httpHealthChecks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/httpHealthChecks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'httpHealthCheck' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->images = new Google_Service_Compute_Images_Resource( - $this, - $this->serviceName, - 'images', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/images/{image}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'image' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deprecate' => array( - 'path' => '{project}/global/images/{image}/deprecate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'image' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/images/{image}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'image' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/images', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/images', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->instances = new Google_Service_Compute_Instances_Resource( - $this, - $this->serviceName, - 'instances', - array( - 'methods' => array( - 'addAccessConfig' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/addAccessConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'networkInterface' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'aggregatedList' => array( - 'path' => '{project}/aggregated/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'attachDisk' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/attachDisk', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteAccessConfig' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accessConfig' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'networkInterface' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'detachDisk' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/detachDisk', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceName' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getSerialPortOutput' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/serialPort', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/instances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'reset' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/reset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setDiskAutoDelete' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'autoDelete' => array( - 'location' => 'query', - 'type' => 'boolean', - 'required' => true, - ), - 'deviceName' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setMetadata' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setMetadata', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setScheduling' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setScheduling', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setTags' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setTags', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->licenses = new Google_Service_Compute_Licenses_Resource( - $this, - $this->serviceName, - 'licenses', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/global/licenses/{license}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'license' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->machineTypes = new Google_Service_Compute_MachineTypes_Resource( - $this, - $this->serviceName, - 'machineTypes', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/machineTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/machineTypes/{machineType}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'machineType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/machineTypes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->networks = new Google_Service_Compute_Networks_Resource( - $this, - $this->serviceName, - 'networks', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/networks/{network}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'network' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/networks/{network}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'network' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/networks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/networks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_Compute_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setCommonInstanceMetadata' => array( - 'path' => '{project}/setCommonInstanceMetadata', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setUsageExportBucket' => array( - 'path' => '{project}/setUsageExportBucket', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->regionOperations = new Google_Service_Compute_RegionOperations_Resource( - $this, - $this->serviceName, - 'regionOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/regions/{region}/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->regions = new Google_Service_Compute_Regions_Resource( - $this, - $this->serviceName, - 'regions', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/regions/{region}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->routes = new Google_Service_Compute_Routes_Resource( - $this, - $this->serviceName, - 'routes', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/routes/{route}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'route' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/routes/{route}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'route' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/routes', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/routes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->snapshots = new Google_Service_Compute_Snapshots_Resource( - $this, - $this->serviceName, - 'snapshots', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/snapshots/{snapshot}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'snapshot' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/snapshots/{snapshot}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'snapshot' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/snapshots', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->targetHttpProxies = new Google_Service_Compute_TargetHttpProxies_Resource( - $this, - $this->serviceName, - 'targetHttpProxies', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/targetHttpProxies', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/targetHttpProxies', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'setUrlMap' => array( - 'path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetHttpProxy' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource( - $this, - $this->serviceName, - 'targetInstances', - array( - 'methods' => array( - 'aggregatedList' => array( - 'path' => '{project}/aggregated/targetInstances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetInstance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetInstance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/targetInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/targetInstances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->targetPools = new Google_Service_Compute_TargetPools_Resource( - $this, - $this->serviceName, - 'targetPools', - array( - 'methods' => array( - 'addHealthCheck' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'addInstance' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addInstance', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'aggregatedList' => array( - 'path' => '{project}/aggregated/targetPools', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getHealth' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/getHealth', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/regions/{region}/targetPools', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/regions/{region}/targetPools', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'removeHealthCheck' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'removeInstance' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setBackup' => array( - 'path' => '{project}/regions/{region}/targetPools/{targetPool}/setBackup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetPool' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'failoverRatio' => array( - 'location' => 'query', - 'type' => 'number', - ), - ), - ), - ) - ) - ); - $this->urlMaps = new Google_Service_Compute_UrlMaps_Resource( - $this, - $this->serviceName, - 'urlMaps', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/urlMaps', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/global/urlMaps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'validate' => array( - 'path' => '{project}/global/urlMaps/{urlMap}/validate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource( - $this, - $this->serviceName, - 'zoneOperations', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->zones = new Google_Service_Compute_Zones_Resource( - $this, - $this->serviceName, - 'zones', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/zones/{zone}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/zones', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Compute service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'compute/v1/projects/'; + $this->version = 'v1'; + $this->serviceName = 'compute'; + + $this->addresses = new Google_Service_Compute_Addresses_Resource( + $this, + $this->serviceName, + 'addresses', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/addresses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'delete' => array( + 'path' => '{project}/regions/{region}/addresses/{address}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'address' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/regions/{region}/addresses/{address}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'address' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/regions/{region}/addresses', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/regions/{region}/addresses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->backendServices = new Google_Service_Compute_BackendServices_Resource( + $this, + $this->serviceName, + 'backendServices', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getHealth' => array( + 'path' => '{project}/global/backendServices/{backendService}/getHealth', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/global/backendServices', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/backendServices', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{project}/global/backendServices/{backendService}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->diskTypes = new Google_Service_Compute_DiskTypes_Resource( + $this, + $this->serviceName, + 'diskTypes', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/diskTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'get' => array( + 'path' => '{project}/zones/{zone}/diskTypes/{diskType}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'diskType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/zones/{zone}/diskTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->disks = new Google_Service_Compute_Disks_Resource( + $this, + $this->serviceName, + 'disks', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/disks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'createSnapshot' => array( + 'path' => '{project}/zones/{zone}/disks/{disk}/createSnapshot', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disk' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => '{project}/zones/{zone}/disks/{disk}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disk' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/zones/{zone}/disks/{disk}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disk' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/zones/{zone}/disks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sourceImage' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => '{project}/zones/{zone}/disks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->firewalls = new Google_Service_Compute_Firewalls_Resource( + $this, + $this->serviceName, + 'firewalls', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/firewalls/{firewall}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'firewall' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/firewalls/{firewall}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'firewall' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/global/firewalls', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/firewalls', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => '{project}/global/firewalls/{firewall}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'firewall' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{project}/global/firewalls/{firewall}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'firewall' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->forwardingRules = new Google_Service_Compute_ForwardingRules_Resource( + $this, + $this->serviceName, + 'forwardingRules', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/forwardingRules', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'delete' => array( + 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/regions/{region}/forwardingRules', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/regions/{region}/forwardingRules', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'setTarget' => array( + 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->globalAddresses = new Google_Service_Compute_GlobalAddresses_Resource( + $this, + $this->serviceName, + 'globalAddresses', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/addresses/{address}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'address' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/addresses/{address}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'address' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/global/addresses', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/addresses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->globalForwardingRules = new Google_Service_Compute_GlobalForwardingRules_Resource( + $this, + $this->serviceName, + 'globalForwardingRules', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/forwardingRules/{forwardingRule}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/forwardingRules/{forwardingRule}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/global/forwardingRules', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/forwardingRules', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'setTarget' => array( + 'path' => '{project}/global/forwardingRules/{forwardingRule}/setTarget', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'forwardingRule' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->globalOperations = new Google_Service_Compute_GlobalOperations_Resource( + $this, + $this->serviceName, + 'globalOperations', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'delete' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->httpHealthChecks = new Google_Service_Compute_HttpHealthChecks_Resource( + $this, + $this->serviceName, + 'httpHealthChecks', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/global/httpHealthChecks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/httpHealthChecks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'httpHealthCheck' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->images = new Google_Service_Compute_Images_Resource( + $this, + $this->serviceName, + 'images', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/images/{image}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'image' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'deprecate' => array( + 'path' => '{project}/global/images/{image}/deprecate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'image' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/images/{image}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'image' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/global/images', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/images', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->instances = new Google_Service_Compute_Instances_Resource( + $this, + $this->serviceName, + 'instances', + array( + 'methods' => array( + 'addAccessConfig' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/addAccessConfig', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'networkInterface' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'aggregatedList' => array( + 'path' => '{project}/aggregated/instances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'attachDisk' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/attachDisk', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'deleteAccessConfig' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accessConfig' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'networkInterface' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'detachDisk' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/detachDisk', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceName' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getSerialPortOutput' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/serialPort', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/zones/{zone}/instances', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/zones/{zone}/instances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'reset' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/reset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'setDiskAutoDelete' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'autoDelete' => array( + 'location' => 'query', + 'type' => 'boolean', + 'required' => true, + ), + 'deviceName' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'setMetadata' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setMetadata', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'setScheduling' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setScheduling', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'setTags' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setTags', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->licenses = new Google_Service_Compute_Licenses_Resource( + $this, + $this->serviceName, + 'licenses', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/global/licenses/{license}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'license' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->machineTypes = new Google_Service_Compute_MachineTypes_Resource( + $this, + $this->serviceName, + 'machineTypes', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/machineTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'get' => array( + 'path' => '{project}/zones/{zone}/machineTypes/{machineType}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'machineType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/zones/{zone}/machineTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->networks = new Google_Service_Compute_Networks_Resource( + $this, + $this->serviceName, + 'networks', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/networks/{network}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'network' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/networks/{network}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'network' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/global/networks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/networks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects = new Google_Service_Compute_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'setCommonInstanceMetadata' => array( + 'path' => '{project}/setCommonInstanceMetadata', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'setUsageExportBucket' => array( + 'path' => '{project}/setUsageExportBucket', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->regionOperations = new Google_Service_Compute_RegionOperations_Resource( + $this, + $this->serviceName, + 'regionOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/regions/{region}/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/regions/{region}/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/regions/{region}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->regions = new Google_Service_Compute_Regions_Resource( + $this, + $this->serviceName, + 'regions', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/regions/{region}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/regions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->routes = new Google_Service_Compute_Routes_Resource( + $this, + $this->serviceName, + 'routes', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/routes/{route}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'route' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/routes/{route}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'route' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/global/routes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/routes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->snapshots = new Google_Service_Compute_Snapshots_Resource( + $this, + $this->serviceName, + 'snapshots', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/snapshots/{snapshot}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'snapshot' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/snapshots/{snapshot}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'snapshot' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/snapshots', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->targetHttpProxies = new Google_Service_Compute_TargetHttpProxies_Resource( + $this, + $this->serviceName, + 'targetHttpProxies', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/global/targetHttpProxies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/targetHttpProxies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'setUrlMap' => array( + 'path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource( + $this, + $this->serviceName, + 'targetInstances', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/targetInstances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'delete' => array( + 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetInstance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetInstance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/zones/{zone}/targetInstances', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/zones/{zone}/targetInstances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->targetPools = new Google_Service_Compute_TargetPools_Resource( + $this, + $this->serviceName, + 'targetPools', + array( + 'methods' => array( + 'addHealthCheck' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'addInstance' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addInstance', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'aggregatedList' => array( + 'path' => '{project}/aggregated/targetPools', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'delete' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getHealth' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/getHealth', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/regions/{region}/targetPools', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/regions/{region}/targetPools', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'removeHealthCheck' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'removeInstance' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeInstance', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'setBackup' => array( + 'path' => '{project}/regions/{region}/targetPools/{targetPool}/setBackup', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetPool' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'failoverRatio' => array( + 'location' => 'query', + 'type' => 'number', + ), + ), + ), + ) + ) + ); + $this->urlMaps = new Google_Service_Compute_UrlMaps_Resource( + $this, + $this->serviceName, + 'urlMaps', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/global/urlMaps', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/global/urlMaps', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{project}/global/urlMaps/{urlMap}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'validate' => array( + 'path' => '{project}/global/urlMaps/{urlMap}/validate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'urlMap' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource( + $this, + $this->serviceName, + 'zoneOperations', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/zones/{zone}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->zones = new Google_Service_Compute_Zones_Resource( + $this, + $this->serviceName, + 'zones', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/zones/{zone}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/zones', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } } @@ -2708,112 +2706,110 @@ class Google_Service_Compute extends Google_Service * $addresses = $computeService->addresses; * */ -class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource { - /** - * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_AddressAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_AddressAggregatedList"); - } - /** - * Deletes the specified address resource. (addresses.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $address - * Name of the address resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $address, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified address resource. (addresses.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $address - * Name of the address resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Address - */ - public function get($project, $region, $address, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Address"); - } - /** - * Creates an address resource in the specified project using the data included - * in the request. (addresses.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param Google_Address $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_Address $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of address resources contained within the specified - * region. (addresses.listAddresses) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_AddressList - */ - public function listAddresses($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_AddressList"); - } + /** + * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_AddressAggregatedList + */ + public function aggregatedList($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_AddressAggregatedList"); + } + + /** + * Deletes the specified address resource. (addresses.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param string $address + * Name of the address resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $address, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified address resource. (addresses.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param string $address + * Name of the address resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Address + */ + public function get($project, $region, $address, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Address"); + } + + /** + * Creates an address resource in the specified project using the data included + * in the request. (addresses.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param Google_Address $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_Address $postBody, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of address resources contained within the specified + * region. (addresses.listAddresses) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_AddressList + */ + public function listAddresses($project, $region, $optParams = array()) { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_AddressList"); + } } /** @@ -2824,135 +2820,133 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource * $backendServices = $computeService->backendServices; * */ -class Google_Service_Compute_BackendServices_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_BackendServices_Resource extends Google_Service_Resource { - /** - * Deletes the specified BackendService resource. (backendServices.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $backendService - * Name of the BackendService resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $backendService, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified BackendService resource. (backendServices.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $backendService - * Name of the BackendService resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_BackendService - */ - public function get($project, $backendService, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_BackendService"); - } - /** - * Gets the most recent health check results for this BackendService. - * (backendServices.getHealth) - * - * @param string $project - * - * @param string $backendService - * Name of the BackendService resource to which the queried instance belongs. - * @param Google_ResourceGroupReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_BackendServiceGroupHealth - */ - public function getHealth($project, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth"); - } - /** - * Creates a BackendService resource in the specified project using the data - * included in the request. (backendServices.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_BackendService $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of BackendService resources available to the specified - * project. (backendServices.listBackendServices) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_BackendServiceList - */ - public function listBackendServices($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList"); - } - /** - * Update the entire content of the BackendService resource. This method - * supports patch semantics. (backendServices.patch) - * - * @param string $project - * Name of the project scoping this request. - * @param string $backendService - * Name of the BackendService resource to update. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - /** - * Update the entire content of the BackendService resource. - * (backendServices.update) - * - * @param string $project - * Name of the project scoping this request. - * @param string $backendService - * Name of the BackendService resource to update. - * @param Google_BackendService $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) - { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } + /** + * Deletes the specified BackendService resource. (backendServices.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $backendService + * Name of the BackendService resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $backendService, $optParams = array()) { + $params = array('project' => $project, 'backendService' => $backendService); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified BackendService resource. (backendServices.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $backendService + * Name of the BackendService resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_BackendService + */ + public function get($project, $backendService, $optParams = array()) { + $params = array('project' => $project, 'backendService' => $backendService); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_BackendService"); + } + + /** + * Gets the most recent health check results for this BackendService. + * (backendServices.getHealth) + * + * @param string $project + * + * @param string $backendService + * Name of the BackendService resource to which the queried instance belongs. + * @param Google_ResourceGroupReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_BackendServiceGroupHealth + */ + public function getHealth($project, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array()) { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth"); + } + + /** + * Creates a BackendService resource in the specified project using the data + * included in the request. (backendServices.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_BackendService $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of BackendService resources available to the specified + * project. (backendServices.listBackendServices) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_BackendServiceList + */ + public function listBackendServices($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList"); + } + + /** + * Update the entire content of the BackendService resource. This method + * supports patch semantics. (backendServices.patch) + * + * @param string $project + * Name of the project scoping this request. + * @param string $backendService + * Name of the BackendService resource to update. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Update the entire content of the BackendService resource. + * (backendServices.update) + * + * @param string $project + * Name of the project scoping this request. + * @param string $backendService + * Name of the BackendService resource to update. + * @param Google_BackendService $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } } /** @@ -2963,77 +2957,75 @@ class Google_Service_Compute_BackendServices_Resource extends Google_Service_Res * $diskTypes = $computeService->diskTypes; * */ -class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource { - /** - * Retrieves the list of disk type resources grouped by scope. - * (diskTypes.aggregatedList) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_DiskTypeAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); - } - /** - * Returns the specified disk type resource. (diskTypes.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $diskType - * Name of the disk type resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_DiskType - */ - public function get($project, $zone, $diskType, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'diskType' => $diskType); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_DiskType"); - } - /** - * Retrieves the list of disk type resources available to the specified project. - * (diskTypes.listDiskTypes) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_DiskTypeList - */ - public function listDiskTypes($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_DiskTypeList"); - } + /** + * Retrieves the list of disk type resources grouped by scope. + * (diskTypes.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_DiskTypeAggregatedList + */ + public function aggregatedList($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); + } + + /** + * Returns the specified disk type resource. (diskTypes.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $diskType + * Name of the disk type resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_DiskType + */ + public function get($project, $zone, $diskType, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'diskType' => $diskType); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_DiskType"); + } + + /** + * Retrieves the list of disk type resources available to the specified project. + * (diskTypes.listDiskTypes) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_DiskTypeList + */ + public function listDiskTypes($project, $zone, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_DiskTypeList"); + } } /** @@ -3044,134 +3036,132 @@ class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource * $disks = $computeService->disks; * */ -class Google_Service_Compute_Disks_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_Disks_Resource extends Google_Service_Resource { - /** - * Retrieves the list of disks grouped by scope. (disks.aggregatedList) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_DiskAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList"); - } - /** - * (disks.createSnapshot) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $disk - * Name of the persistent disk resource to snapshot. - * @param Google_Snapshot $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Snapshot $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation"); - } - /** - * Deletes the specified persistent disk resource. (disks.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $disk - * Name of the persistent disk resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $disk, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified persistent disk resource. (disks.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $disk - * Name of the persistent disk resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Disk - */ - public function get($project, $zone, $disk, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Disk"); - } - /** - * Creates a persistent disk resource in the specified project using the data - * included in the request. (disks.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param Google_Disk $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string sourceImage - * Optional. Source image to restore onto a disk. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of persistent disk resources contained within the - * specified zone. (disks.listDisks) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_DiskList - */ - public function listDisks($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_DiskList"); - } + /** + * Retrieves the list of disks grouped by scope. (disks.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_DiskAggregatedList + */ + public function aggregatedList($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList"); + } + + /** + * (disks.createSnapshot) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $disk + * Name of the persistent disk resource to snapshot. + * @param Google_Snapshot $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Snapshot $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Deletes the specified persistent disk resource. (disks.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $disk + * Name of the persistent disk resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $disk, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified persistent disk resource. (disks.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $disk + * Name of the persistent disk resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Disk + */ + public function get($project, $zone, $disk, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Disk"); + } + + /** + * Creates a persistent disk resource in the specified project using the data + * included in the request. (disks.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param Google_Disk $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string sourceImage + * Optional. Source image to restore onto a disk. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of persistent disk resources contained within the + * specified zone. (disks.listDisks) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_DiskList + */ + public function listDisks($project, $zone, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_DiskList"); + } } /** @@ -3182,117 +3172,115 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource * $firewalls = $computeService->firewalls; * */ -class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource { - /** - * Deletes the specified firewall resource. (firewalls.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $firewall - * Name of the firewall resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $firewall, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified firewall resource. (firewalls.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $firewall - * Name of the firewall resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Firewall - */ - public function get($project, $firewall, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Firewall"); - } - /** - * Creates a firewall resource in the specified project using the data included - * in the request. (firewalls.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_Firewall $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Firewall $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of firewall resources available to the specified project. - * (firewalls.listFirewalls) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_FirewallList - */ - public function listFirewalls($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_FirewallList"); - } - /** - * Updates the specified firewall resource with the data included in the - * request. This method supports patch semantics. (firewalls.patch) - * - * @param string $project - * Name of the project scoping this request. - * @param string $firewall - * Name of the firewall resource to update. - * @param Google_Firewall $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - /** - * Updates the specified firewall resource with the data included in the - * request. (firewalls.update) - * - * @param string $project - * Name of the project scoping this request. - * @param string $firewall - * Name of the firewall resource to update. - * @param Google_Firewall $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) - { - $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } + /** + * Deletes the specified firewall resource. (firewalls.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $firewall + * Name of the firewall resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $firewall, $optParams = array()) { + $params = array('project' => $project, 'firewall' => $firewall); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified firewall resource. (firewalls.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $firewall + * Name of the firewall resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Firewall + */ + public function get($project, $firewall, $optParams = array()) { + $params = array('project' => $project, 'firewall' => $firewall); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Firewall"); + } + + /** + * Creates a firewall resource in the specified project using the data included + * in the request. (firewalls.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_Firewall $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Firewall $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of firewall resources available to the specified project. + * (firewalls.listFirewalls) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_FirewallList + */ + public function listFirewalls($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_FirewallList"); + } + + /** + * Updates the specified firewall resource with the data included in the + * request. This method supports patch semantics. (firewalls.patch) + * + * @param string $project + * Name of the project scoping this request. + * @param string $firewall + * Name of the firewall resource to update. + * @param Google_Firewall $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) { + $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Updates the specified firewall resource with the data included in the + * request. (firewalls.update) + * + * @param string $project + * Name of the project scoping this request. + * @param string $firewall + * Name of the firewall resource to update. + * @param Google_Firewall $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) { + $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } } /** @@ -3303,132 +3291,130 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource * $forwardingRules = $computeService->forwardingRules; * */ -class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Resource { - /** - * Retrieves the list of forwarding rules grouped by scope. - * (forwardingRules.aggregatedList) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_ForwardingRuleAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_ForwardingRuleAggregatedList"); - } - /** - * Deletes the specified ForwardingRule resource. (forwardingRules.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified ForwardingRule resource. (forwardingRules.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_ForwardingRule - */ - public function get($project, $region, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); - } - /** - * Creates a ForwardingRule resource in the specified project and region using - * the data included in the request. (forwardingRules.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param Google_ForwardingRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of ForwardingRule resources available to the specified - * project and region. (forwardingRules.listForwardingRules) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_ForwardingRuleList - */ - public function listForwardingRules($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); - } - /** - * Changes target url for forwarding rule. (forwardingRules.setTarget) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource in which target is to be set. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTarget($project, $region, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); - } + /** + * Retrieves the list of forwarding rules grouped by scope. + * (forwardingRules.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_ForwardingRuleAggregatedList + */ + public function aggregatedList($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_ForwardingRuleAggregatedList"); + } + + /** + * Deletes the specified ForwardingRule resource. (forwardingRules.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param string $forwardingRule + * Name of the ForwardingRule resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $forwardingRule, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified ForwardingRule resource. (forwardingRules.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param string $forwardingRule + * Name of the ForwardingRule resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_ForwardingRule + */ + public function get($project, $region, $forwardingRule, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); + } + + /** + * Creates a ForwardingRule resource in the specified project and region using + * the data included in the request. (forwardingRules.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param Google_ForwardingRule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of ForwardingRule resources available to the specified + * project and region. (forwardingRules.listForwardingRules) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_ForwardingRuleList + */ + public function listForwardingRules($project, $region, $optParams = array()) { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); + } + + /** + * Changes target url for forwarding rule. (forwardingRules.setTarget) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param string $forwardingRule + * Name of the ForwardingRule resource in which target is to be set. + * @param Google_TargetReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setTarget($project, $region, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); + } } /** @@ -3439,81 +3425,79 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res * $globalAddresses = $computeService->globalAddresses; * */ -class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Resource { - /** - * Deletes the specified address resource. (globalAddresses.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $address - * Name of the address resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $address, $optParams = array()) - { - $params = array('project' => $project, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified address resource. (globalAddresses.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $address - * Name of the address resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Address - */ - public function get($project, $address, $optParams = array()) - { - $params = array('project' => $project, 'address' => $address); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Address"); - } - /** - * Creates an address resource in the specified project using the data included - * in the request. (globalAddresses.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_Address $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Address $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of global address resources. - * (globalAddresses.listGlobalAddresses) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_AddressList - */ - public function listGlobalAddresses($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_AddressList"); - } + /** + * Deletes the specified address resource. (globalAddresses.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $address + * Name of the address resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $address, $optParams = array()) { + $params = array('project' => $project, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified address resource. (globalAddresses.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $address + * Name of the address resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Address + */ + public function get($project, $address, $optParams = array()) { + $params = array('project' => $project, 'address' => $address); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Address"); + } + + /** + * Creates an address resource in the specified project using the data included + * in the request. (globalAddresses.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_Address $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Address $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of global address resources. + * (globalAddresses.listGlobalAddresses) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_AddressList + */ + public function listGlobalAddresses($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_AddressList"); + } } /** @@ -3524,98 +3508,96 @@ class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Res * $globalForwardingRules = $computeService->globalForwardingRules; * */ -class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Service_Resource { - /** - * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified ForwardingRule resource. (globalForwardingRules.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_ForwardingRule - */ - public function get($project, $forwardingRule, $optParams = array()) - { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); - } - /** - * Creates a ForwardingRule resource in the specified project and region using - * the data included in the request. (globalForwardingRules.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_ForwardingRule $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of ForwardingRule resources available to the specified - * project. (globalForwardingRules.listGlobalForwardingRules) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_ForwardingRuleList - */ - public function listGlobalForwardingRules($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); - } - /** - * Changes target url for forwarding rule. (globalForwardingRules.setTarget) - * - * @param string $project - * Name of the project scoping this request. - * @param string $forwardingRule - * Name of the ForwardingRule resource in which target is to be set. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTarget($project, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); - } + /** + * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $forwardingRule + * Name of the ForwardingRule resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $forwardingRule, $optParams = array()) { + $params = array('project' => $project, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified ForwardingRule resource. (globalForwardingRules.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $forwardingRule + * Name of the ForwardingRule resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_ForwardingRule + */ + public function get($project, $forwardingRule, $optParams = array()) { + $params = array('project' => $project, 'forwardingRule' => $forwardingRule); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); + } + + /** + * Creates a ForwardingRule resource in the specified project and region using + * the data included in the request. (globalForwardingRules.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_ForwardingRule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of ForwardingRule resources available to the specified + * project. (globalForwardingRules.listGlobalForwardingRules) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_ForwardingRuleList + */ + public function listGlobalForwardingRules($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); + } + + /** + * Changes target url for forwarding rule. (globalForwardingRules.setTarget) + * + * @param string $project + * Name of the project scoping this request. + * @param string $forwardingRule + * Name of the ForwardingRule resource in which target is to be set. + * @param Google_TargetReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setTarget($project, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) { + $params = array('project' => $project, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); + } } /** @@ -3626,88 +3608,86 @@ class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Servi * $globalOperations = $computeService->globalOperations; * */ -class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource { - /** - * Retrieves the list of all operations grouped by scope. - * (globalOperations.aggregatedList) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_OperationAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList"); - } - /** - * Deletes the specified operation resource. (globalOperations.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $operation - * Name of the operation resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves the specified operation resource. (globalOperations.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $operation - * Name of the operation resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function get($project, $operation, $optParams = array()) - { - $params = array('project' => $project, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of operation resources contained within the specified - * project. (globalOperations.listGlobalOperations) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_OperationList - */ - public function listGlobalOperations($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); - } + /** + * Retrieves the list of all operations grouped by scope. + * (globalOperations.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_OperationAggregatedList + */ + public function aggregatedList($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList"); + } + + /** + * Deletes the specified operation resource. (globalOperations.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $operation + * Name of the operation resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $operation, $optParams = array()) { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified operation resource. (globalOperations.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $operation + * Name of the operation resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function get($project, $operation, $optParams = array()) { + $params = array('project' => $project, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * project. (globalOperations.listGlobalOperations) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_OperationList + */ + public function listGlobalOperations($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + } } /** @@ -3718,118 +3698,116 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re * $httpHealthChecks = $computeService->httpHealthChecks; * */ -class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Resource { - /** - * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $httpHealthCheck, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_HttpHealthCheck - */ - public function get($project, $httpHealthCheck, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck"); - } - /** - * Creates a HttpHealthCheck resource in the specified project using the data - * included in the request. (httpHealthChecks.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of HttpHealthCheck resources available to the specified - * project. (httpHealthChecks.listHttpHealthChecks) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_HttpHealthCheckList - */ - public function listHttpHealthChecks($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList"); - } - /** - * Updates a HttpHealthCheck resource in the specified project using the data - * included in the request. This method supports patch semantics. - * (httpHealthChecks.patch) - * - * @param string $project - * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to update. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - /** - * Updates a HttpHealthCheck resource in the specified project using the data - * included in the request. (httpHealthChecks.update) - * - * @param string $project - * Name of the project scoping this request. - * @param string $httpHealthCheck - * Name of the HttpHealthCheck resource to update. - * @param Google_HttpHealthCheck $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) - { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } + /** + * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $httpHealthCheck + * Name of the HttpHealthCheck resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $httpHealthCheck, $optParams = array()) { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $httpHealthCheck + * Name of the HttpHealthCheck resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_HttpHealthCheck + */ + public function get($project, $httpHealthCheck, $optParams = array()) { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck"); + } + + /** + * Creates a HttpHealthCheck resource in the specified project using the data + * included in the request. (httpHealthChecks.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of HttpHealthCheck resources available to the specified + * project. (httpHealthChecks.listHttpHealthChecks) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_HttpHealthCheckList + */ + public function listHttpHealthChecks($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList"); + } + + /** + * Updates a HttpHealthCheck resource in the specified project using the data + * included in the request. This method supports patch semantics. + * (httpHealthChecks.patch) + * + * @param string $project + * Name of the project scoping this request. + * @param string $httpHealthCheck + * Name of the HttpHealthCheck resource to update. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Updates a HttpHealthCheck resource in the specified project using the data + * included in the request. (httpHealthChecks.update) + * + * @param string $project + * Name of the project scoping this request. + * @param string $httpHealthCheck + * Name of the HttpHealthCheck resource to update. + * @param Google_HttpHealthCheck $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) { + $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } } /** @@ -3840,99 +3818,97 @@ class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Re * $images = $computeService->images; * */ -class Google_Service_Compute_Images_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_Images_Resource extends Google_Service_Resource { - /** - * Deletes the specified image resource. (images.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $image - * Name of the image resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $image, $optParams = array()) - { - $params = array('project' => $project, 'image' => $image); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Sets the deprecation status of an image. If no message body is given, clears - * the deprecation status instead. (images.deprecate) - * - * @param string $project - * Name of the project scoping this request. - * @param string $image - * Image name. - * @param Google_DeprecationStatus $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function deprecate($project, $image, Google_Service_Compute_DeprecationStatus $postBody, $optParams = array()) - { - $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('deprecate', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified image resource. (images.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $image - * Name of the image resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Image - */ - public function get($project, $image, $optParams = array()) - { - $params = array('project' => $project, 'image' => $image); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Image"); - } - /** - * Creates an image resource in the specified project using the data included in - * the request. (images.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_Image $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Image $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of image resources available to the specified project. - * (images.listImages) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_ImageList - */ - public function listImages($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ImageList"); - } + /** + * Deletes the specified image resource. (images.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $image + * Name of the image resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $image, $optParams = array()) { + $params = array('project' => $project, 'image' => $image); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets the deprecation status of an image. If no message body is given, clears + * the deprecation status instead. (images.deprecate) + * + * @param string $project + * Name of the project scoping this request. + * @param string $image + * Image name. + * @param Google_DeprecationStatus $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function deprecate($project, $image, Google_Service_Compute_DeprecationStatus $postBody, $optParams = array()) { + $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('deprecate', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified image resource. (images.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $image + * Name of the image resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Image + */ + public function get($project, $image, $optParams = array()) { + $params = array('project' => $project, 'image' => $image); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Image"); + } + + /** + * Creates an image resource in the specified project using the data included in + * the request. (images.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_Image $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Image $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of image resources available to the specified project. + * (images.listImages) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_ImageList + */ + public function listImages($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ImageList"); + } } /** @@ -3943,315 +3919,313 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource * $instances = $computeService->instances; * */ -class Google_Service_Compute_Instances_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_Instances_Resource extends Google_Service_Resource { - /** - * Adds an access config to an instance's network interface. - * (instances.addAccessConfig) - * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. - * @param string $networkInterface - * Network interface name. - * @param Google_AccessConfig $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addAccessConfig($project, $zone, $instance, $networkInterface, Google_Service_Compute_AccessConfig $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addAccessConfig', array($params), "Google_Service_Compute_Operation"); - } - /** - * (instances.aggregatedList) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_InstanceAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceAggregatedList"); - } - /** - * Attaches a disk resource to an instance. (instances.attachDisk) - * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. - * @param Google_AttachedDisk $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function attachDisk($project, $zone, $instance, Google_Service_Compute_AttachedDisk $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('attachDisk', array($params), "Google_Service_Compute_Operation"); - } - /** - * Deletes the specified instance resource. (instances.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Deletes an access config from an instance's network interface. - * (instances.deleteAccessConfig) - * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. - * @param string $accessConfig - * Access config name. - * @param string $networkInterface - * Network interface name. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface); - $params = array_merge($params, $optParams); - return $this->call('deleteAccessConfig', array($params), "Google_Service_Compute_Operation"); - } - /** - * Detaches a disk from an instance. (instances.detachDisk) - * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. - * @param string $deviceName - * Disk device name to detach. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function detachDisk($project, $zone, $instance, $deviceName, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName); - $params = array_merge($params, $optParams); - return $this->call('detachDisk', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified instance resource. (instances.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Instance - */ - public function get($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Instance"); - } - /** - * Returns the specified instance's serial port output. - * (instances.getSerialPortOutput) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance scoping this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_SerialPortOutput - */ - public function getSerialPortOutput($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('getSerialPortOutput', array($params), "Google_Service_Compute_SerialPortOutput"); - } - /** - * Creates an instance resource in the specified project using the data included - * in the request. (instances.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param Google_Instance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_Instance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of instance resources contained within the specified zone. - * (instances.listInstances) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_InstanceList - */ - public function listInstances($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_InstanceList"); - } - /** - * Performs a hard reset on the instance. (instances.reset) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance scoping this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function reset($project, $zone, $instance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params), "Google_Service_Compute_Operation"); - } - /** - * Sets the auto-delete flag for a disk attached to an instance - * (instances.setDiskAutoDelete) - * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. - * @param bool $autoDelete - * Whether to auto-delete the disk when the instance is deleted. - * @param string $deviceName - * Disk device name to modify. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $deviceName, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'autoDelete' => $autoDelete, 'deviceName' => $deviceName); - $params = array_merge($params, $optParams); - return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Sets metadata for the specified instance to the data included in the request. - * (instances.setMetadata) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance scoping this request. - * @param Google_Metadata $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setMetadata($project, $zone, $instance, Google_Service_Compute_Metadata $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setMetadata', array($params), "Google_Service_Compute_Operation"); - } - /** - * Sets an instance's scheduling options. (instances.setScheduling) - * - * @param string $project - * Project name. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Instance name. - * @param Google_Scheduling $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setScheduling($project, $zone, $instance, Google_Service_Compute_Scheduling $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setScheduling', array($params), "Google_Service_Compute_Operation"); - } - /** - * Sets tags for the specified instance to the data included in the request. - * (instances.setTags) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $instance - * Name of the instance scoping this request. - * @param Google_Tags $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setTags($project, $zone, $instance, Google_Service_Compute_Tags $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTags', array($params), "Google_Service_Compute_Operation"); - } + /** + * Adds an access config to an instance's network interface. + * (instances.addAccessConfig) + * + * @param string $project + * Project name. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Instance name. + * @param string $networkInterface + * Network interface name. + * @param Google_AccessConfig $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function addAccessConfig($project, $zone, $instance, $networkInterface, Google_Service_Compute_AccessConfig $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addAccessConfig', array($params), "Google_Service_Compute_Operation"); + } + + /** + * (instances.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_InstanceAggregatedList + */ + public function aggregatedList($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceAggregatedList"); + } + + /** + * Attaches a disk resource to an instance. (instances.attachDisk) + * + * @param string $project + * Project name. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Instance name. + * @param Google_AttachedDisk $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function attachDisk($project, $zone, $instance, Google_Service_Compute_AttachedDisk $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('attachDisk', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Deletes the specified instance resource. (instances.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Name of the instance resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $instance, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Deletes an access config from an instance's network interface. + * (instances.deleteAccessConfig) + * + * @param string $project + * Project name. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Instance name. + * @param string $accessConfig + * Access config name. + * @param string $networkInterface + * Network interface name. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface); + $params = array_merge($params, $optParams); + return $this->call('deleteAccessConfig', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Detaches a disk from an instance. (instances.detachDisk) + * + * @param string $project + * Project name. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Instance name. + * @param string $deviceName + * Disk device name to detach. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function detachDisk($project, $zone, $instance, $deviceName, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName); + $params = array_merge($params, $optParams); + return $this->call('detachDisk', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified instance resource. (instances.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Name of the instance resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Instance + */ + public function get($project, $zone, $instance, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Instance"); + } + + /** + * Returns the specified instance's serial port output. + * (instances.getSerialPortOutput) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Name of the instance scoping this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_SerialPortOutput + */ + public function getSerialPortOutput($project, $zone, $instance, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('getSerialPortOutput', array($params), "Google_Service_Compute_SerialPortOutput"); + } + + /** + * Creates an instance resource in the specified project using the data included + * in the request. (instances.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param Google_Instance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_Instance $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of instance resources contained within the specified zone. + * (instances.listInstances) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_InstanceList + */ + public function listInstances($project, $zone, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_InstanceList"); + } + + /** + * Performs a hard reset on the instance. (instances.reset) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Name of the instance scoping this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function reset($project, $zone, $instance, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets the auto-delete flag for a disk attached to an instance + * (instances.setDiskAutoDelete) + * + * @param string $project + * Project name. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Instance name. + * @param bool $autoDelete + * Whether to auto-delete the disk when the instance is deleted. + * @param string $deviceName + * Disk device name to modify. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $deviceName, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'autoDelete' => $autoDelete, 'deviceName' => $deviceName); + $params = array_merge($params, $optParams); + return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets metadata for the specified instance to the data included in the request. + * (instances.setMetadata) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Name of the instance scoping this request. + * @param Google_Metadata $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setMetadata($project, $zone, $instance, Google_Service_Compute_Metadata $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setMetadata', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets an instance's scheduling options. (instances.setScheduling) + * + * @param string $project + * Project name. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Instance name. + * @param Google_Scheduling $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setScheduling($project, $zone, $instance, Google_Service_Compute_Scheduling $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setScheduling', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets tags for the specified instance to the data included in the request. + * (instances.setTags) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $instance + * Name of the instance scoping this request. + * @param Google_Tags $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setTags($project, $zone, $instance, Google_Service_Compute_Tags $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setTags', array($params), "Google_Service_Compute_Operation"); + } } /** @@ -4262,25 +4236,23 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource * $licenses = $computeService->licenses; * */ -class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource { - /** - * Returns the specified license resource. (licenses.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $license - * Name of the license resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_License - */ - public function get($project, $license, $optParams = array()) - { - $params = array('project' => $project, 'license' => $license); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_License"); - } + /** + * Returns the specified license resource. (licenses.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $license + * Name of the license resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_License + */ + public function get($project, $license, $optParams = array()) { + $params = array('project' => $project, 'license' => $license); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_License"); + } } /** @@ -4291,77 +4263,75 @@ class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource * $machineTypes = $computeService->machineTypes; * */ -class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resource { - /** - * Retrieves the list of machine type resources grouped by scope. - * (machineTypes.aggregatedList) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_MachineTypeAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_MachineTypeAggregatedList"); - } - /** - * Returns the specified machine type resource. (machineTypes.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $machineType - * Name of the machine type resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_MachineType - */ - public function get($project, $zone, $machineType, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_MachineType"); - } - /** - * Retrieves the list of machine type resources available to the specified - * project. (machineTypes.listMachineTypes) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_MachineTypeList - */ - public function listMachineTypes($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_MachineTypeList"); - } + /** + * Retrieves the list of machine type resources grouped by scope. + * (machineTypes.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_MachineTypeAggregatedList + */ + public function aggregatedList($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_MachineTypeAggregatedList"); + } + + /** + * Returns the specified machine type resource. (machineTypes.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $machineType + * Name of the machine type resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_MachineType + */ + public function get($project, $zone, $machineType, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_MachineType"); + } + + /** + * Retrieves the list of machine type resources available to the specified + * project. (machineTypes.listMachineTypes) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_MachineTypeList + */ + public function listMachineTypes($project, $zone, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_MachineTypeList"); + } } /** @@ -4372,81 +4342,79 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour * $networks = $computeService->networks; * */ -class Google_Service_Compute_Networks_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_Networks_Resource extends Google_Service_Resource { - /** - * Deletes the specified network resource. (networks.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $network - * Name of the network resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $network, $optParams = array()) - { - $params = array('project' => $project, 'network' => $network); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified network resource. (networks.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $network - * Name of the network resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Network - */ - public function get($project, $network, $optParams = array()) - { - $params = array('project' => $project, 'network' => $network); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Network"); - } - /** - * Creates a network resource in the specified project using the data included - * in the request. (networks.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_Network $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Network $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of network resources available to the specified project. - * (networks.listNetworks) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_NetworkList - */ - public function listNetworks($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_NetworkList"); - } + /** + * Deletes the specified network resource. (networks.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $network + * Name of the network resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $network, $optParams = array()) { + $params = array('project' => $project, 'network' => $network); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified network resource. (networks.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $network + * Name of the network resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Network + */ + public function get($project, $network, $optParams = array()) { + $params = array('project' => $project, 'network' => $network); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Network"); + } + + /** + * Creates a network resource in the specified project using the data included + * in the request. (networks.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_Network $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Network $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of network resources available to the specified project. + * (networks.listNetworks) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_NetworkList + */ + public function listNetworks($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_NetworkList"); + } } /** @@ -4457,54 +4425,52 @@ class Google_Service_Compute_Networks_Resource extends Google_Service_Resource * $projects = $computeService->projects; * */ -class Google_Service_Compute_Projects_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_Projects_Resource extends Google_Service_Resource { - /** - * Returns the specified project resource. (projects.get) - * - * @param string $project - * Name of the project resource to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Project - */ - public function get($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Project"); - } - /** - * Sets metadata common to all instances within the specified project using the - * data included in the request. (projects.setCommonInstanceMetadata) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_Metadata $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setCommonInstanceMetadata($project, Google_Service_Compute_Metadata $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation"); - } - /** - * Sets usage export location (projects.setUsageExportBucket) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_UsageExportLocation $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setUsageExportBucket($project, Google_Service_Compute_UsageExportLocation $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setUsageExportBucket', array($params), "Google_Service_Compute_Operation"); - } + /** + * Returns the specified project resource. (projects.get) + * + * @param string $project + * Name of the project resource to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Project + */ + public function get($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Project"); + } + + /** + * Sets metadata common to all instances within the specified project using the + * data included in the request. (projects.setCommonInstanceMetadata) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_Metadata $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setCommonInstanceMetadata($project, Google_Service_Compute_Metadata $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Sets usage export location (projects.setUsageExportBucket) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_UsageExportLocation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setUsageExportBucket($project, Google_Service_Compute_UsageExportLocation $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setUsageExportBucket', array($params), "Google_Service_Compute_Operation"); + } } /** @@ -4515,72 +4481,70 @@ class Google_Service_Compute_Projects_Resource extends Google_Service_Resource * $regionOperations = $computeService->regionOperations; * */ -class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Resource { - /** - * Deletes the specified region-specific operation resource. - * (regionOperations.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $operation - * Name of the operation resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $region, $operation, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves the specified region-specific operation resource. - * (regionOperations.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the zone scoping this request. - * @param string $operation - * Name of the operation resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function get($project, $region, $operation, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of operation resources contained within the specified - * region. (regionOperations.listRegionOperations) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_OperationList - */ - public function listRegionOperations($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); - } + /** + * Deletes the specified region-specific operation resource. + * (regionOperations.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param string $operation + * Name of the operation resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $region, $operation, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified region-specific operation resource. + * (regionOperations.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the zone scoping this request. + * @param string $operation + * Name of the operation resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function get($project, $region, $operation, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * region. (regionOperations.listRegionOperations) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_OperationList + */ + public function listRegionOperations($project, $region, $optParams = array()) { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + } } /** @@ -4591,49 +4555,47 @@ class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Re * $regions = $computeService->regions; * */ -class Google_Service_Compute_Regions_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_Regions_Resource extends Google_Service_Resource { - /** - * Returns the specified region resource. (regions.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Region - */ - public function get($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Region"); - } - /** - * Retrieves the list of region resources available to the specified project. - * (regions.listRegions) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_RegionList - */ - public function listRegions($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_RegionList"); - } + /** + * Returns the specified region resource. (regions.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Region + */ + public function get($project, $region, $optParams = array()) { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Region"); + } + + /** + * Retrieves the list of region resources available to the specified project. + * (regions.listRegions) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_RegionList + */ + public function listRegions($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_RegionList"); + } } /** @@ -4644,81 +4606,79 @@ class Google_Service_Compute_Regions_Resource extends Google_Service_Resource * $routes = $computeService->routes; * */ -class Google_Service_Compute_Routes_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_Routes_Resource extends Google_Service_Resource { - /** - * Deletes the specified route resource. (routes.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $route - * Name of the route resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $route, $optParams = array()) - { - $params = array('project' => $project, 'route' => $route); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified route resource. (routes.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $route - * Name of the route resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Route - */ - public function get($project, $route, $optParams = array()) - { - $params = array('project' => $project, 'route' => $route); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Route"); - } - /** - * Creates a route resource in the specified project using the data included in - * the request. (routes.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_Route $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_Route $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of route resources available to the specified project. - * (routes.listRoutes) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_RouteList - */ - public function listRoutes($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_RouteList"); - } + /** + * Deletes the specified route resource. (routes.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $route + * Name of the route resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $route, $optParams = array()) { + $params = array('project' => $project, 'route' => $route); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified route resource. (routes.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $route + * Name of the route resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Route + */ + public function get($project, $route, $optParams = array()) { + $params = array('project' => $project, 'route' => $route); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Route"); + } + + /** + * Creates a route resource in the specified project using the data included in + * the request. (routes.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_Route $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_Route $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of route resources available to the specified project. + * (routes.listRoutes) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_RouteList + */ + public function listRoutes($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_RouteList"); + } } /** @@ -4729,65 +4689,63 @@ class Google_Service_Compute_Routes_Resource extends Google_Service_Resource * $snapshots = $computeService->snapshots; * */ -class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource { - /** - * Deletes the specified persistent disk snapshot resource. (snapshots.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $snapshot - * Name of the persistent disk snapshot resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $snapshot, $optParams = array()) - { - $params = array('project' => $project, 'snapshot' => $snapshot); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified persistent disk snapshot resource. (snapshots.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $snapshot - * Name of the persistent disk snapshot resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Snapshot - */ - public function get($project, $snapshot, $optParams = array()) - { - $params = array('project' => $project, 'snapshot' => $snapshot); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); - } - /** - * Retrieves the list of persistent disk snapshot resources contained within the - * specified project. (snapshots.listSnapshots) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_SnapshotList - */ - public function listSnapshots($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_SnapshotList"); - } + /** + * Deletes the specified persistent disk snapshot resource. (snapshots.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $snapshot + * Name of the persistent disk snapshot resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $snapshot, $optParams = array()) { + $params = array('project' => $project, 'snapshot' => $snapshot); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified persistent disk snapshot resource. (snapshots.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $snapshot + * Name of the persistent disk snapshot resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Snapshot + */ + public function get($project, $snapshot, $optParams = array()) { + $params = array('project' => $project, 'snapshot' => $snapshot); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); + } + + /** + * Retrieves the list of persistent disk snapshot resources contained within the + * specified project. (snapshots.listSnapshots) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_SnapshotList + */ + public function listSnapshots($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_SnapshotList"); + } } /** @@ -4798,98 +4756,96 @@ class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource * $targetHttpProxies = $computeService->targetHttpProxies; * */ -class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_Resource { - /** - * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $targetHttpProxy - * Name of the TargetHttpProxy resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $targetHttpProxy, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified TargetHttpProxy resource. (targetHttpProxies.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $targetHttpProxy - * Name of the TargetHttpProxy resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetHttpProxy - */ - public function get($project, $targetHttpProxy, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy"); - } - /** - * Creates a TargetHttpProxy resource in the specified project using the data - * included in the request. (targetHttpProxies.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_TargetHttpProxy $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_TargetHttpProxy $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of TargetHttpProxy resources available to the specified - * project. (targetHttpProxies.listTargetHttpProxies) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_TargetHttpProxyList - */ - public function listTargetHttpProxies($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList"); - } - /** - * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) - * - * @param string $project - * Name of the project scoping this request. - * @param string $targetHttpProxy - * Name of the TargetHttpProxy resource whose URL map is to be set. - * @param Google_UrlMapReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function setUrlMap($project, $targetHttpProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); - } + /** + * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $targetHttpProxy + * Name of the TargetHttpProxy resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $targetHttpProxy, $optParams = array()) { + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetHttpProxy resource. (targetHttpProxies.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $targetHttpProxy + * Name of the TargetHttpProxy resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetHttpProxy + */ + public function get($project, $targetHttpProxy, $optParams = array()) { + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy"); + } + + /** + * Creates a TargetHttpProxy resource in the specified project using the data + * included in the request. (targetHttpProxies.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_TargetHttpProxy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_TargetHttpProxy $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetHttpProxy resources available to the specified + * project. (targetHttpProxies.listTargetHttpProxies) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_TargetHttpProxyList + */ + public function listTargetHttpProxies($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList"); + } + + /** + * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) + * + * @param string $project + * Name of the project scoping this request. + * @param string $targetHttpProxy + * Name of the TargetHttpProxy resource whose URL map is to be set. + * @param Google_UrlMapReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function setUrlMap($project, $targetHttpProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) { + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); + } } /** @@ -4900,113 +4856,111 @@ class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_R * $targetInstances = $computeService->targetInstances; * */ -class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource { - /** - * Retrieves the list of target instances grouped by scope. - * (targetInstances.aggregatedList) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_TargetInstanceAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); - } - /** - * Deletes the specified TargetInstance resource. (targetInstances.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $targetInstance - * Name of the TargetInstance resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $zone, $targetInstance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified TargetInstance resource. (targetInstances.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $targetInstance - * Name of the TargetInstance resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetInstance - */ - public function get($project, $zone, $targetInstance, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); - } - /** - * Creates a TargetInstance resource in the specified project and zone using the - * data included in the request. (targetInstances.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param Google_TargetInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of TargetInstance resources available to the specified - * project and zone. (targetInstances.listTargetInstances) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_TargetInstanceList - */ - public function listTargetInstances($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList"); - } + /** + * Retrieves the list of target instances grouped by scope. + * (targetInstances.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_TargetInstanceAggregatedList + */ + public function aggregatedList($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); + } + + /** + * Deletes the specified TargetInstance resource. (targetInstances.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $targetInstance + * Name of the TargetInstance resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $targetInstance, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetInstance resource. (targetInstances.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $targetInstance + * Name of the TargetInstance resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetInstance + */ + public function get($project, $zone, $targetInstance, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); + } + + /** + * Creates a TargetInstance resource in the specified project and zone using the + * data included in the request. (targetInstances.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param Google_TargetInstance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetInstance resources available to the specified + * project and zone. (targetInstances.listTargetInstances) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_TargetInstanceList + */ + public function listTargetInstances($project, $zone, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList"); + } } /** @@ -5017,231 +4971,229 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res * $targetPools = $computeService->targetPools; * */ -class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resource { - /** - * Adds health check URL to targetPool. (targetPools.addHealthCheck) - * - * @param string $project - * - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to which health_check_url is to be added. - * @param Google_TargetPoolsAddHealthCheckRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addHealthCheck', array($params), "Google_Service_Compute_Operation"); - } - /** - * Adds instance url to targetPool. (targetPools.addInstance) - * - * @param string $project - * - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to which instance_url is to be added. - * @param Google_TargetPoolsAddInstanceRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function addInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddInstanceRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addInstance', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of target pools grouped by scope. - * (targetPools.aggregatedList) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_TargetPoolAggregatedList - */ - public function aggregatedList($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList"); - } - /** - * Deletes the specified TargetPool resource. (targetPools.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $region, $targetPool, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified TargetPool resource. (targetPools.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetPool - */ - public function get($project, $region, $targetPool, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetPool"); - } - /** - * Gets the most recent health check results for each IP for the given instance - * that is referenced by given TargetPool. (targetPools.getHealth) - * - * @param string $project - * - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to which the queried instance belongs. - * @param Google_InstanceReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_TargetPoolInstanceHealth - */ - public function getHealth($project, $region, $targetPool, Google_Service_Compute_InstanceReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getHealth', array($params), "Google_Service_Compute_TargetPoolInstanceHealth"); - } - /** - * Creates a TargetPool resource in the specified project and region using the - * data included in the request. (targetPools.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param Google_TargetPool $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, $region, Google_Service_Compute_TargetPool $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of TargetPool resources available to the specified project - * and region. (targetPools.listTargetPools) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_TargetPoolList - */ - public function listTargetPools($project, $region, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList"); - } - /** - * Removes health check URL from targetPool. (targetPools.removeHealthCheck) - * - * @param string $project - * - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to which health_check_url is to be removed. - * @param Google_TargetPoolsRemoveHealthCheckRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function removeHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeHealthCheck', array($params), "Google_Service_Compute_Operation"); - } - /** - * Removes instance URL from targetPool. (targetPools.removeInstance) - * - * @param string $project - * - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource to which instance_url is to be removed. - * @param Google_TargetPoolsRemoveInstanceRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function removeInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveInstanceRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeInstance', array($params), "Google_Service_Compute_Operation"); - } - /** - * Changes backup pool configurations. (targetPools.setBackup) - * - * @param string $project - * Name of the project scoping this request. - * @param string $region - * Name of the region scoping this request. - * @param string $targetPool - * Name of the TargetPool resource for which the backup is to be set. - * @param Google_TargetReference $postBody - * @param array $optParams Optional parameters. - * - * @opt_param float failoverRatio - * New failoverRatio value for the containing target pool. - * @return Google_Service_Compute_Operation - */ - public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array()) - { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setBackup', array($params), "Google_Service_Compute_Operation"); - } + /** + * Adds health check URL to targetPool. (targetPools.addHealthCheck) + * + * @param string $project + * + * @param string $region + * Name of the region scoping this request. + * @param string $targetPool + * Name of the TargetPool resource to which health_check_url is to be added. + * @param Google_TargetPoolsAddHealthCheckRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function addHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addHealthCheck', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Adds instance url to targetPool. (targetPools.addInstance) + * + * @param string $project + * + * @param string $region + * Name of the region scoping this request. + * @param string $targetPool + * Name of the TargetPool resource to which instance_url is to be added. + * @param Google_TargetPoolsAddInstanceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function addInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddInstanceRequest $postBody, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addInstance', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of target pools grouped by scope. + * (targetPools.aggregatedList) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_TargetPoolAggregatedList + */ + public function aggregatedList($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList"); + } + + /** + * Deletes the specified TargetPool resource. (targetPools.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param string $targetPool + * Name of the TargetPool resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $targetPool, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetPool resource. (targetPools.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param string $targetPool + * Name of the TargetPool resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetPool + */ + public function get($project, $region, $targetPool, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetPool"); + } + + /** + * Gets the most recent health check results for each IP for the given instance + * that is referenced by given TargetPool. (targetPools.getHealth) + * + * @param string $project + * + * @param string $region + * Name of the region scoping this request. + * @param string $targetPool + * Name of the TargetPool resource to which the queried instance belongs. + * @param Google_InstanceReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetPoolInstanceHealth + */ + public function getHealth($project, $region, $targetPool, Google_Service_Compute_InstanceReference $postBody, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getHealth', array($params), "Google_Service_Compute_TargetPoolInstanceHealth"); + } + + /** + * Creates a TargetPool resource in the specified project and region using the + * data included in the request. (targetPools.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param Google_TargetPool $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_TargetPool $postBody, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetPool resources available to the specified project + * and region. (targetPools.listTargetPools) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_TargetPoolList + */ + public function listTargetPools($project, $region, $optParams = array()) { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList"); + } + + /** + * Removes health check URL from targetPool. (targetPools.removeHealthCheck) + * + * @param string $project + * + * @param string $region + * Name of the region scoping this request. + * @param string $targetPool + * Name of the TargetPool resource to which health_check_url is to be removed. + * @param Google_TargetPoolsRemoveHealthCheckRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function removeHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest $postBody, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeHealthCheck', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Removes instance URL from targetPool. (targetPools.removeInstance) + * + * @param string $project + * + * @param string $region + * Name of the region scoping this request. + * @param string $targetPool + * Name of the TargetPool resource to which instance_url is to be removed. + * @param Google_TargetPoolsRemoveInstanceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function removeInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveInstanceRequest $postBody, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeInstance', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Changes backup pool configurations. (targetPools.setBackup) + * + * @param string $project + * Name of the project scoping this request. + * @param string $region + * Name of the region scoping this request. + * @param string $targetPool + * Name of the TargetPool resource for which the backup is to be set. + * @param Google_TargetReference $postBody + * @param array $optParams Optional parameters. + * + * @opt_param float failoverRatio + * New failoverRatio value for the containing target pool. + * @return Google_Service_Compute_Operation + */ + public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array()) { + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setBackup', array($params), "Google_Service_Compute_Operation"); + } } /** @@ -5252,135 +5204,133 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc * $urlMaps = $computeService->urlMaps; * */ -class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource { - /** - * Deletes the specified UrlMap resource. (urlMaps.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $urlMap - * Name of the UrlMap resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function delete($project, $urlMap, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); - } - /** - * Returns the specified UrlMap resource. (urlMaps.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $urlMap - * Name of the UrlMap resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_UrlMap - */ - public function get($project, $urlMap, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); - } - /** - * Creates a UrlMap resource in the specified project using the data included in - * the request. (urlMaps.insert) - * - * @param string $project - * Name of the project scoping this request. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of UrlMap resources available to the specified project. - * (urlMaps.listUrlMaps) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_UrlMapList - */ - public function listUrlMaps($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_UrlMapList"); - } - /** - * Update the entire content of the UrlMap resource. This method supports patch - * semantics. (urlMaps.patch) - * - * @param string $project - * Name of the project scoping this request. - * @param string $urlMap - * Name of the UrlMap resource to update. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); - } - /** - * Update the entire content of the UrlMap resource. (urlMaps.update) - * - * @param string $project - * Name of the project scoping this request. - * @param string $urlMap - * Name of the UrlMap resource to update. - * @param Google_UrlMap $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); - } - /** - * Run static validation for the UrlMap. In particular, the tests of the - * provided UrlMap will be run. Calling this method does NOT create the UrlMap. - * (urlMaps.validate) - * - * @param string $project - * Name of the project scoping this request. - * @param string $urlMap - * Name of the UrlMap resource to be validated as. - * @param Google_UrlMapsValidateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_UrlMapsValidateResponse - */ - public function validate($project, $urlMap, Google_Service_Compute_UrlMapsValidateRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('validate', array($params), "Google_Service_Compute_UrlMapsValidateResponse"); - } + /** + * Deletes the specified UrlMap resource. (urlMaps.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $urlMap + * Name of the UrlMap resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $urlMap, $optParams = array()) { + $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified UrlMap resource. (urlMaps.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $urlMap + * Name of the UrlMap resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_UrlMap + */ + public function get($project, $urlMap, $optParams = array()) { + $params = array('project' => $project, 'urlMap' => $urlMap); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); + } + + /** + * Creates a UrlMap resource in the specified project using the data included in + * the request. (urlMaps.insert) + * + * @param string $project + * Name of the project scoping this request. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of UrlMap resources available to the specified project. + * (urlMaps.listUrlMaps) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_UrlMapList + */ + public function listUrlMaps($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_UrlMapList"); + } + + /** + * Update the entire content of the UrlMap resource. This method supports patch + * semantics. (urlMaps.patch) + * + * @param string $project + * Name of the project scoping this request. + * @param string $urlMap + * Name of the UrlMap resource to update. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Update the entire content of the UrlMap resource. (urlMaps.update) + * + * @param string $project + * Name of the project scoping this request. + * @param string $urlMap + * Name of the UrlMap resource to update. + * @param Google_UrlMap $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Run static validation for the UrlMap. In particular, the tests of the + * provided UrlMap will be run. Calling this method does NOT create the UrlMap. + * (urlMaps.validate) + * + * @param string $project + * Name of the project scoping this request. + * @param string $urlMap + * Name of the UrlMap resource to be validated as. + * @param Google_UrlMapsValidateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_UrlMapsValidateResponse + */ + public function validate($project, $urlMap, Google_Service_Compute_UrlMapsValidateRequest $postBody, $optParams = array()) { + $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('validate', array($params), "Google_Service_Compute_UrlMapsValidateResponse"); + } } /** @@ -5391,72 +5341,70 @@ class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource * $zoneOperations = $computeService->zoneOperations; * */ -class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Resource -{ +class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Resource { - /** - * Deletes the specified zone-specific operation resource. - * (zoneOperations.delete) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $operation - * Name of the operation resource to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves the specified zone-specific operation resource. - * (zoneOperations.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param string $operation - * Name of the operation resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation - */ - public function get($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); - } - /** - * Retrieves the list of operation resources contained within the specified - * zone. (zoneOperations.listZoneOperations) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_OperationList - */ - public function listZoneOperations($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); - } + /** + * Deletes the specified zone-specific operation resource. + * (zoneOperations.delete) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $operation + * Name of the operation resource to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $zone, $operation, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the specified zone-specific operation resource. + * (zoneOperations.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param string $operation + * Name of the operation resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function get($project, $zone, $operation, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of operation resources contained within the specified + * zone. (zoneOperations.listZoneOperations) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_OperationList + */ + public function listZoneOperations($project, $zone, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + } } /** @@ -5467,7083 +5415,5784 @@ class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Reso * $zones = $computeService->zones; * */ -class Google_Service_Compute_Zones_Resource extends Google_Service_Resource -{ - - /** - * Returns the specified zone resource. (zones.get) - * - * @param string $project - * Name of the project scoping this request. - * @param string $zone - * Name of the zone resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Zone - */ - public function get($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Zone"); - } - /** - * Retrieves the list of zone resources available to the specified project. - * (zones.listZones) - * - * @param string $project - * Name of the project scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * Optional. Filter expression for filtering listed resources. - * @opt_param string pageToken - * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a - * previous list request. - * @opt_param string maxResults - * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is - * 500. - * @return Google_Service_Compute_ZoneList - */ - public function listZones($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ZoneList"); - } -} - - - - -class Google_Service_Compute_AccessConfig extends Google_Model -{ - public $kind; - public $name; - public $natIP; - public $type; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setNatIP($natIP) - { - $this->natIP = $natIP; - } - - public function getNatIP() - { - return $this->natIP; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } -} - -class Google_Service_Compute_Address extends Google_Collection -{ - public $address; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $region; - public $selfLink; - public $status; - public $users; - - public function setAddress($address) - { - $this->address = $address; - } - - public function getAddress() - { - return $this->address; - } - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setRegion($region) - { - $this->region = $region; - } - - public function getRegion() - { - return $this->region; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setUsers($users) - { - $this->users = $users; - } - - public function getUsers() - { - return $this->users; - } -} - -class Google_Service_Compute_AddressAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_AddressesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_AddressAggregatedListItems extends Google_Model -{ - -} - -class Google_Service_Compute_AddressList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_Address'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_AddressesScopedList extends Google_Collection -{ - protected $addressesType = 'Google_Service_Compute_Address'; - protected $addressesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning'; - protected $warningDataType = ''; - - public function setAddresses($addresses) - { - $this->addresses = $addresses; - } - - public function getAddresses() - { - return $this->addresses; - } - - public function setWarning(Google_Service_Compute_AddressesScopedListWarning $warning) - { - $this->warning = $warning; - } - - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_AddressesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_AttachedDisk extends Google_Collection -{ - public $autoDelete; - public $boot; - public $deviceName; - public $index; - protected $initializeParamsType = 'Google_Service_Compute_AttachedDiskInitializeParams'; - protected $initializeParamsDataType = ''; - public $kind; - public $licenses; - public $mode; - public $source; - public $type; - - public function setAutoDelete($autoDelete) - { - $this->autoDelete = $autoDelete; - } - - public function getAutoDelete() - { - return $this->autoDelete; - } - - public function setBoot($boot) - { - $this->boot = $boot; - } - - public function getBoot() - { - return $this->boot; - } - - public function setDeviceName($deviceName) - { - $this->deviceName = $deviceName; - } - - public function getDeviceName() - { - return $this->deviceName; - } - - public function setIndex($index) - { - $this->index = $index; - } - - public function getIndex() - { - return $this->index; - } - - public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams) - { - $this->initializeParams = $initializeParams; - } - - public function getInitializeParams() - { - return $this->initializeParams; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - - public function getLicenses() - { - return $this->licenses; - } - - public function setMode($mode) - { - $this->mode = $mode; - } - - public function getMode() - { - return $this->mode; - } - - public function setSource($source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } -} - -class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model -{ - public $diskName; - public $diskSizeGb; - public $diskType; - public $sourceImage; - - public function setDiskName($diskName) - { - $this->diskName = $diskName; - } - - public function getDiskName() - { - return $this->diskName; - } - - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - - public function setDiskType($diskType) - { - $this->diskType = $diskType; - } - - public function getDiskType() - { - return $this->diskType; - } - - public function setSourceImage($sourceImage) - { - $this->sourceImage = $sourceImage; - } - - public function getSourceImage() - { - return $this->sourceImage; - } -} - -class Google_Service_Compute_Backend extends Google_Model -{ - public $balancingMode; - public $capacityScaler; - public $description; - public $group; - public $maxRate; - public $maxRatePerInstance; - public $maxUtilization; - - public function setBalancingMode($balancingMode) - { - $this->balancingMode = $balancingMode; - } - - public function getBalancingMode() - { - return $this->balancingMode; - } - - public function setCapacityScaler($capacityScaler) - { - $this->capacityScaler = $capacityScaler; - } - - public function getCapacityScaler() - { - return $this->capacityScaler; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setGroup($group) - { - $this->group = $group; - } - - public function getGroup() - { - return $this->group; - } - - public function setMaxRate($maxRate) - { - $this->maxRate = $maxRate; - } - - public function getMaxRate() - { - return $this->maxRate; - } - - public function setMaxRatePerInstance($maxRatePerInstance) - { - $this->maxRatePerInstance = $maxRatePerInstance; - } - - public function getMaxRatePerInstance() - { - return $this->maxRatePerInstance; - } - - public function setMaxUtilization($maxUtilization) - { - $this->maxUtilization = $maxUtilization; - } - - public function getMaxUtilization() - { - return $this->maxUtilization; - } -} - -class Google_Service_Compute_BackendService extends Google_Collection -{ - protected $backendsType = 'Google_Service_Compute_Backend'; - protected $backendsDataType = 'array'; - public $creationTimestamp; - public $description; - public $fingerprint; - public $healthChecks; - public $id; - public $kind; - public $name; - public $port; - public $portName; - public $protocol; - public $selfLink; - public $timeoutSec; - - public function setBackends($backends) - { - $this->backends = $backends; - } - - public function getBackends() - { - return $this->backends; - } - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - - public function getHealthChecks() - { - return $this->healthChecks; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPort($port) - { - $this->port = $port; - } - - public function getPort() - { - return $this->port; - } - - public function setPortName($portName) - { - $this->portName = $portName; - } - - public function getPortName() - { - return $this->portName; - } - - public function setProtocol($protocol) - { - $this->protocol = $protocol; - } - - public function getProtocol() - { - return $this->protocol; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setTimeoutSec($timeoutSec) - { - $this->timeoutSec = $timeoutSec; - } - - public function getTimeoutSec() - { - return $this->timeoutSec; - } -} - -class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection -{ - protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; - protected $healthStatusDataType = 'array'; - public $kind; - - public function setHealthStatus($healthStatus) - { - $this->healthStatus = $healthStatus; - } - - public function getHealthStatus() - { - return $this->healthStatus; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Compute_BackendServiceList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_BackendService'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DeprecationStatus extends Google_Model -{ - public $deleted; - public $deprecated; - public $obsolete; - public $replacement; - public $state; - - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - - public function getDeleted() - { - return $this->deleted; - } - - public function setDeprecated($deprecated) - { - $this->deprecated = $deprecated; - } - - public function getDeprecated() - { - return $this->deprecated; - } - - public function setObsolete($obsolete) - { - $this->obsolete = $obsolete; - } - - public function getObsolete() - { - return $this->obsolete; - } - - public function setReplacement($replacement) - { - $this->replacement = $replacement; - } - - public function getReplacement() - { - return $this->replacement; - } - - public function setState($state) - { - $this->state = $state; - } - - public function getState() - { - return $this->state; - } -} - -class Google_Service_Compute_Disk extends Google_Collection -{ - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $licenses; - public $name; - public $options; - public $selfLink; - public $sizeGb; - public $sourceImage; - public $sourceImageId; - public $sourceSnapshot; - public $sourceSnapshotId; - public $status; - public $type; - public $zone; - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - - public function getLicenses() - { - return $this->licenses; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setOptions($options) - { - $this->options = $options; - } - - public function getOptions() - { - return $this->options; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setSizeGb($sizeGb) - { - $this->sizeGb = $sizeGb; - } - - public function getSizeGb() - { - return $this->sizeGb; - } - - public function setSourceImage($sourceImage) - { - $this->sourceImage = $sourceImage; - } - - public function getSourceImage() - { - return $this->sourceImage; - } - - public function setSourceImageId($sourceImageId) - { - $this->sourceImageId = $sourceImageId; - } - - public function getSourceImageId() - { - return $this->sourceImageId; - } - - public function setSourceSnapshot($sourceSnapshot) - { - $this->sourceSnapshot = $sourceSnapshot; - } - - public function getSourceSnapshot() - { - return $this->sourceSnapshot; - } - - public function setSourceSnapshotId($sourceSnapshotId) - { - $this->sourceSnapshotId = $sourceSnapshotId; - } - - public function getSourceSnapshotId() - { - return $this->sourceSnapshotId; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setZone($zone) - { - $this->zone = $zone; - } - - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_DiskAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_DisksScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskAggregatedListItems extends Google_Model -{ - -} - -class Google_Service_Compute_DiskList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_Disk'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskType extends Google_Model -{ - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $id; - public $kind; - public $name; - public $selfLink; - public $validDiskSize; - public $zone; - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - - public function getDeprecated() - { - return $this->deprecated; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setValidDiskSize($validDiskSize) - { - $this->validDiskSize = $validDiskSize; - } - - public function getValidDiskSize() - { - return $this->validDiskSize; - } - - public function setZone($zone) - { - $this->zone = $zone; - } - - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model -{ - -} - -class Google_Service_Compute_DiskTypeList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_DiskType'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_DiskTypesScopedList extends Google_Collection -{ - protected $diskTypesType = 'Google_Service_Compute_DiskType'; - protected $diskTypesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; - protected $warningDataType = ''; - - public function setDiskTypes($diskTypes) - { - $this->diskTypes = $diskTypes; - } - - public function getDiskTypes() - { - return $this->diskTypes; - } - - public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning) - { - $this->warning = $warning; - } - - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_DisksScopedList extends Google_Collection -{ - protected $disksType = 'Google_Service_Compute_Disk'; - protected $disksDataType = 'array'; - protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; - protected $warningDataType = ''; - - public function setDisks($disks) - { - $this->disks = $disks; - } - - public function getDisks() - { - return $this->disks; - } - - public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning) - { - $this->warning = $warning; - } - - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_DisksScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_DisksScopedListWarningData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_Firewall extends Google_Collection -{ - protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; - protected $allowedDataType = 'array'; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $network; - public $selfLink; - public $sourceRanges; - public $sourceTags; - public $targetTags; - - public function setAllowed($allowed) - { - $this->allowed = $allowed; - } - - public function getAllowed() - { - return $this->allowed; - } - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setNetwork($network) - { - $this->network = $network; - } - - public function getNetwork() - { - return $this->network; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setSourceRanges($sourceRanges) - { - $this->sourceRanges = $sourceRanges; - } - - public function getSourceRanges() - { - return $this->sourceRanges; - } - - public function setSourceTags($sourceTags) - { - $this->sourceTags = $sourceTags; - } - - public function getSourceTags() - { - return $this->sourceTags; - } - - public function setTargetTags($targetTags) - { - $this->targetTags = $targetTags; - } - - public function getTargetTags() - { - return $this->targetTags; - } -} - -class Google_Service_Compute_FirewallAllowed extends Google_Collection -{ - public $iPProtocol; - public $ports; - - public function setIPProtocol($iPProtocol) - { - $this->iPProtocol = $iPProtocol; - } - - public function getIPProtocol() - { - return $this->iPProtocol; - } - - public function setPorts($ports) - { - $this->ports = $ports; - } - - public function getPorts() - { - return $this->ports; - } -} - -class Google_Service_Compute_FirewallList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_Firewall'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ForwardingRule extends Google_Model -{ - public $iPAddress; - public $iPProtocol; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $portRange; - public $region; - public $selfLink; - public $target; - - public function setIPAddress($iPAddress) - { - $this->iPAddress = $iPAddress; - } - - public function getIPAddress() - { - return $this->iPAddress; - } - - public function setIPProtocol($iPProtocol) - { - $this->iPProtocol = $iPProtocol; - } - - public function getIPProtocol() - { - return $this->iPProtocol; - } - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPortRange($portRange) - { - $this->portRange = $portRange; - } - - public function getPortRange() - { - return $this->portRange; - } - - public function setRegion($region) - { - $this->region = $region; - } - - public function getRegion() - { - return $this->region; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setTarget($target) - { - $this->target = $target; - } - - public function getTarget() - { - return $this->target; - } -} - -class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model -{ - -} - -class Google_Service_Compute_ForwardingRuleList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_ForwardingRule'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection -{ - protected $forwardingRulesType = 'Google_Service_Compute_ForwardingRule'; - protected $forwardingRulesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning'; - protected $warningDataType = ''; - - public function setForwardingRules($forwardingRules) - { - $this->forwardingRules = $forwardingRules; - } - - public function getForwardingRules() - { - return $this->forwardingRules; - } - - public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarning $warning) - { - $this->warning = $warning; - } - - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_ForwardingRulesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_HealthCheckReference extends Google_Model -{ - public $healthCheck; - - public function setHealthCheck($healthCheck) - { - $this->healthCheck = $healthCheck; - } - - public function getHealthCheck() - { - return $this->healthCheck; - } -} - -class Google_Service_Compute_HealthStatus extends Google_Model -{ - public $healthState; - public $instance; - public $ipAddress; - - public function setHealthState($healthState) - { - $this->healthState = $healthState; - } - - public function getHealthState() - { - return $this->healthState; - } - - public function setInstance($instance) - { - $this->instance = $instance; - } - - public function getInstance() - { - return $this->instance; - } - - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } - - public function getIpAddress() - { - return $this->ipAddress; - } -} - -class Google_Service_Compute_HostRule extends Google_Collection -{ - public $description; - public $hosts; - public $pathMatcher; - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setHosts($hosts) - { - $this->hosts = $hosts; - } - - public function getHosts() - { - return $this->hosts; - } - - public function setPathMatcher($pathMatcher) - { - $this->pathMatcher = $pathMatcher; - } - - public function getPathMatcher() - { - return $this->pathMatcher; - } -} - -class Google_Service_Compute_HttpHealthCheck extends Google_Model -{ - public $checkIntervalSec; - public $creationTimestamp; - public $description; - public $healthyThreshold; - public $host; - public $id; - public $kind; - public $name; - public $port; - public $requestPath; - public $selfLink; - public $timeoutSec; - public $unhealthyThreshold; - - public function setCheckIntervalSec($checkIntervalSec) - { - $this->checkIntervalSec = $checkIntervalSec; - } - - public function getCheckIntervalSec() - { - return $this->checkIntervalSec; - } - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setHealthyThreshold($healthyThreshold) - { - $this->healthyThreshold = $healthyThreshold; - } - - public function getHealthyThreshold() - { - return $this->healthyThreshold; - } - - public function setHost($host) - { - $this->host = $host; - } - - public function getHost() - { - return $this->host; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPort($port) - { - $this->port = $port; - } - - public function getPort() - { - return $this->port; - } - - public function setRequestPath($requestPath) - { - $this->requestPath = $requestPath; - } - - public function getRequestPath() - { - return $this->requestPath; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setTimeoutSec($timeoutSec) - { - $this->timeoutSec = $timeoutSec; - } - - public function getTimeoutSec() - { - return $this->timeoutSec; - } - - public function setUnhealthyThreshold($unhealthyThreshold) - { - $this->unhealthyThreshold = $unhealthyThreshold; - } - - public function getUnhealthyThreshold() - { - return $this->unhealthyThreshold; - } -} - -class Google_Service_Compute_HttpHealthCheckList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_Image extends Google_Collection -{ - public $archiveSizeBytes; - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $diskSizeGb; - public $id; - public $kind; - public $licenses; - public $name; - protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; - protected $rawDiskDataType = ''; - public $selfLink; - public $sourceDisk; - public $sourceDiskId; - public $sourceType; - public $status; - - public function setArchiveSizeBytes($archiveSizeBytes) - { - $this->archiveSizeBytes = $archiveSizeBytes; - } - - public function getArchiveSizeBytes() - { - return $this->archiveSizeBytes; - } - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - - public function getDeprecated() - { - return $this->deprecated; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - - public function getLicenses() - { - return $this->licenses; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) - { - $this->rawDisk = $rawDisk; - } - - public function getRawDisk() - { - return $this->rawDisk; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setSourceDisk($sourceDisk) - { - $this->sourceDisk = $sourceDisk; - } - - public function getSourceDisk() - { - return $this->sourceDisk; - } - - public function setSourceDiskId($sourceDiskId) - { - $this->sourceDiskId = $sourceDiskId; - } - - public function getSourceDiskId() - { - return $this->sourceDiskId; - } - - public function setSourceType($sourceType) - { - $this->sourceType = $sourceType; - } - - public function getSourceType() - { - return $this->sourceType; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Compute_ImageList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_Image'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ImageRawDisk extends Google_Model -{ - public $containerType; - public $sha1Checksum; - public $source; - - public function setContainerType($containerType) - { - $this->containerType = $containerType; - } - - public function getContainerType() - { - return $this->containerType; - } - - public function setSha1Checksum($sha1Checksum) - { - $this->sha1Checksum = $sha1Checksum; - } - - public function getSha1Checksum() - { - return $this->sha1Checksum; - } - - public function setSource($source) - { - $this->source = $source; - } - - public function getSource() - { - return $this->source; - } -} - -class Google_Service_Compute_Instance extends Google_Collection -{ - public $canIpForward; - public $creationTimestamp; - public $description; - protected $disksType = 'Google_Service_Compute_AttachedDisk'; - protected $disksDataType = 'array'; - public $id; - public $kind; - public $machineType; - protected $metadataType = 'Google_Service_Compute_Metadata'; - protected $metadataDataType = ''; - public $name; - protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; - protected $networkInterfacesDataType = 'array'; - protected $schedulingType = 'Google_Service_Compute_Scheduling'; - protected $schedulingDataType = ''; - public $selfLink; - protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - public $status; - public $statusMessage; - protected $tagsType = 'Google_Service_Compute_Tags'; - protected $tagsDataType = ''; - public $zone; - - public function setCanIpForward($canIpForward) - { - $this->canIpForward = $canIpForward; - } - - public function getCanIpForward() - { - return $this->canIpForward; - } - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDisks($disks) - { - $this->disks = $disks; - } - - public function getDisks() - { - return $this->disks; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMachineType($machineType) - { - $this->machineType = $machineType; - } - - public function getMachineType() - { - return $this->machineType; - } - - public function setMetadata(Google_Service_Compute_Metadata $metadata) - { - $this->metadata = $metadata; - } - - public function getMetadata() - { - return $this->metadata; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setNetworkInterfaces($networkInterfaces) - { - $this->networkInterfaces = $networkInterfaces; - } - - public function getNetworkInterfaces() - { - return $this->networkInterfaces; - } - - public function setScheduling(Google_Service_Compute_Scheduling $scheduling) - { - $this->scheduling = $scheduling; - } - - public function getScheduling() - { - return $this->scheduling; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setServiceAccounts($serviceAccounts) - { - $this->serviceAccounts = $serviceAccounts; - } - - public function getServiceAccounts() - { - return $this->serviceAccounts; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - - public function getStatusMessage() - { - return $this->statusMessage; - } - - public function setTags(Google_Service_Compute_Tags $tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } - - public function setZone($zone) - { - $this->zone = $zone; - } - - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_InstanceAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_InstancesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model -{ - -} - -class Google_Service_Compute_InstanceList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_Instance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_InstanceReference extends Google_Model -{ - public $instance; - - public function setInstance($instance) - { - $this->instance = $instance; - } - - public function getInstance() - { - return $this->instance; - } -} - -class Google_Service_Compute_InstancesScopedList extends Google_Collection -{ - protected $instancesType = 'Google_Service_Compute_Instance'; - protected $instancesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning'; - protected $warningDataType = ''; - - public function setInstances($instances) - { - $this->instances = $instances; - } - - public function getInstances() - { - return $this->instances; - } - - public function setWarning(Google_Service_Compute_InstancesScopedListWarning $warning) - { - $this->warning = $warning; - } - - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_InstancesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_License extends Google_Model -{ - public $kind; - public $name; - public $selfLink; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_MachineType extends Google_Collection -{ - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $guestCpus; - public $id; - public $imageSpaceGb; - public $kind; - public $maximumPersistentDisks; - public $maximumPersistentDisksSizeGb; - public $memoryMb; - public $name; - protected $scratchDisksType = 'Google_Service_Compute_MachineTypeScratchDisks'; - protected $scratchDisksDataType = 'array'; - public $selfLink; - public $zone; - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - - public function getDeprecated() - { - return $this->deprecated; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setGuestCpus($guestCpus) - { - $this->guestCpus = $guestCpus; - } - - public function getGuestCpus() - { - return $this->guestCpus; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setImageSpaceGb($imageSpaceGb) - { - $this->imageSpaceGb = $imageSpaceGb; - } - - public function getImageSpaceGb() - { - return $this->imageSpaceGb; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMaximumPersistentDisks($maximumPersistentDisks) - { - $this->maximumPersistentDisks = $maximumPersistentDisks; - } - - public function getMaximumPersistentDisks() - { - return $this->maximumPersistentDisks; - } - - public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) - { - $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb; - } - - public function getMaximumPersistentDisksSizeGb() - { - return $this->maximumPersistentDisksSizeGb; - } - - public function setMemoryMb($memoryMb) - { - $this->memoryMb = $memoryMb; - } - - public function getMemoryMb() - { - return $this->memoryMb; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setScratchDisks($scratchDisks) - { - $this->scratchDisks = $scratchDisks; - } - - public function getScratchDisks() - { - return $this->scratchDisks; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setZone($zone) - { - $this->zone = $zone; - } - - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_MachineTypesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_MachineTypeAggregatedListItems extends Google_Model -{ - -} - -class Google_Service_Compute_MachineTypeList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_MachineType'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model -{ - public $diskGb; - - public function setDiskGb($diskGb) - { - $this->diskGb = $diskGb; - } - - public function getDiskGb() - { - return $this->diskGb; - } -} - -class Google_Service_Compute_MachineTypesScopedList extends Google_Collection -{ - protected $machineTypesType = 'Google_Service_Compute_MachineType'; - protected $machineTypesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning'; - protected $warningDataType = ''; - - public function setMachineTypes($machineTypes) - { - $this->machineTypes = $machineTypes; - } - - public function getMachineTypes() - { - return $this->machineTypes; - } - - public function setWarning(Google_Service_Compute_MachineTypesScopedListWarning $warning) - { - $this->warning = $warning; - } - - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_MachineTypesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_Metadata extends Google_Collection -{ - public $fingerprint; - protected $itemsType = 'Google_Service_Compute_MetadataItems'; - protected $itemsDataType = 'array'; - public $kind; - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Compute_MetadataItems extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_Network extends Google_Model -{ - public $iPv4Range; - public $creationTimestamp; - public $description; - public $gatewayIPv4; - public $id; - public $kind; - public $name; - public $selfLink; - - public function setIPv4Range($iPv4Range) - { - $this->iPv4Range = $iPv4Range; - } - - public function getIPv4Range() - { - return $this->iPv4Range; - } - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setGatewayIPv4($gatewayIPv4) - { - $this->gatewayIPv4 = $gatewayIPv4; - } - - public function getGatewayIPv4() - { - return $this->gatewayIPv4; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_NetworkInterface extends Google_Collection -{ - protected $accessConfigsType = 'Google_Service_Compute_AccessConfig'; - protected $accessConfigsDataType = 'array'; - public $name; - public $network; - public $networkIP; - - public function setAccessConfigs($accessConfigs) - { - $this->accessConfigs = $accessConfigs; - } - - public function getAccessConfigs() - { - return $this->accessConfigs; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setNetwork($network) - { - $this->network = $network; - } - - public function getNetwork() - { - return $this->network; - } - - public function setNetworkIP($networkIP) - { - $this->networkIP = $networkIP; - } - - public function getNetworkIP() - { - return $this->networkIP; - } -} - -class Google_Service_Compute_NetworkList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_Network'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_Operation extends Google_Collection -{ - public $clientOperationId; - public $creationTimestamp; - public $endTime; - protected $errorType = 'Google_Service_Compute_OperationError'; - protected $errorDataType = ''; - public $httpErrorMessage; - public $httpErrorStatusCode; - public $id; - public $insertTime; - public $kind; - public $name; - public $operationType; - public $progress; - public $region; - public $selfLink; - public $startTime; - public $status; - public $statusMessage; - public $targetId; - public $targetLink; - public $user; - protected $warningsType = 'Google_Service_Compute_OperationWarnings'; - protected $warningsDataType = 'array'; - public $zone; - - public function setClientOperationId($clientOperationId) - { - $this->clientOperationId = $clientOperationId; - } - - public function getClientOperationId() - { - return $this->clientOperationId; - } - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function getEndTime() - { - return $this->endTime; - } - - public function setError(Google_Service_Compute_OperationError $error) - { - $this->error = $error; - } - - public function getError() - { - return $this->error; - } - - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - - public function getInsertTime() - { - return $this->insertTime; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - - public function getOperationType() - { - return $this->operationType; - } - - public function setProgress($progress) - { - $this->progress = $progress; - } - - public function getProgress() - { - return $this->progress; - } - - public function setRegion($region) - { - $this->region = $region; - } - - public function getRegion() - { - return $this->region; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - - public function getStartTime() - { - return $this->startTime; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - - public function getStatusMessage() - { - return $this->statusMessage; - } - - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - - public function getTargetId() - { - return $this->targetId; - } - - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - - public function getTargetLink() - { - return $this->targetLink; - } - - public function setUser($user) - { - $this->user = $user; - } - - public function getUser() - { - return $this->user; - } - - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - - public function getWarnings() - { - return $this->warnings; - } - - public function setZone($zone) - { - $this->zone = $zone; - } - - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_OperationAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_OperationsScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_OperationAggregatedListItems extends Google_Model -{ - -} - -class Google_Service_Compute_OperationError extends Google_Collection -{ - protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; - protected $errorsDataType = 'array'; - - public function setErrors($errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_Compute_OperationErrorErrors extends Google_Model -{ - public $code; - public $location; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setLocation($location) - { - $this->location = $location; - } - - public function getLocation() - { - return $this->location; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_OperationList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_Operation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_OperationWarnings extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_OperationWarningsData'; - protected $dataDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_OperationWarningsData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_OperationsScopedList extends Google_Collection -{ - protected $operationsType = 'Google_Service_Compute_Operation'; - protected $operationsDataType = 'array'; - protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning'; - protected $warningDataType = ''; - - public function setOperations($operations) - { - $this->operations = $operations; - } - - public function getOperations() - { - return $this->operations; - } - - public function setWarning(Google_Service_Compute_OperationsScopedListWarning $warning) - { - $this->warning = $warning; - } - - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_OperationsScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_PathMatcher extends Google_Collection -{ - public $defaultService; - public $description; - public $name; - protected $pathRulesType = 'Google_Service_Compute_PathRule'; - protected $pathRulesDataType = 'array'; - - public function setDefaultService($defaultService) - { - $this->defaultService = $defaultService; - } - - public function getDefaultService() - { - return $this->defaultService; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPathRules($pathRules) - { - $this->pathRules = $pathRules; - } - - public function getPathRules() - { - return $this->pathRules; - } -} - -class Google_Service_Compute_PathRule extends Google_Collection -{ - public $paths; - public $service; - - public function setPaths($paths) - { - $this->paths = $paths; - } - - public function getPaths() - { - return $this->paths; - } - - public function setService($service) - { - $this->service = $service; - } - - public function getService() - { - return $this->service; - } -} - -class Google_Service_Compute_Project extends Google_Collection -{ - protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata'; - protected $commonInstanceMetadataDataType = ''; - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - protected $quotasType = 'Google_Service_Compute_Quota'; - protected $quotasDataType = 'array'; - public $selfLink; - protected $usageExportLocationType = 'Google_Service_Compute_UsageExportLocation'; - protected $usageExportLocationDataType = ''; - - public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata) - { - $this->commonInstanceMetadata = $commonInstanceMetadata; - } - - public function getCommonInstanceMetadata() - { - return $this->commonInstanceMetadata; - } - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setQuotas($quotas) - { - $this->quotas = $quotas; - } - - public function getQuotas() - { - return $this->quotas; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setUsageExportLocation(Google_Service_Compute_UsageExportLocation $usageExportLocation) - { - $this->usageExportLocation = $usageExportLocation; - } - - public function getUsageExportLocation() - { - return $this->usageExportLocation; - } -} - -class Google_Service_Compute_Quota extends Google_Model -{ - public $limit; - public $metric; - public $usage; - - public function setLimit($limit) - { - $this->limit = $limit; - } - - public function getLimit() - { - return $this->limit; - } - - public function setMetric($metric) - { - $this->metric = $metric; - } - - public function getMetric() - { - return $this->metric; - } - - public function setUsage($usage) - { - $this->usage = $usage; - } - - public function getUsage() - { - return $this->usage; - } -} - -class Google_Service_Compute_Region extends Google_Collection -{ - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $id; - public $kind; - public $name; - protected $quotasType = 'Google_Service_Compute_Quota'; - protected $quotasDataType = 'array'; - public $selfLink; - public $status; - public $zones; - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - - public function getDeprecated() - { - return $this->deprecated; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setQuotas($quotas) - { - $this->quotas = $quotas; - } - - public function getQuotas() - { - return $this->quotas; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setZones($zones) - { - $this->zones = $zones; - } - - public function getZones() - { - return $this->zones; - } -} - -class Google_Service_Compute_RegionList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_Region'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ResourceGroupReference extends Google_Model -{ - public $group; - - public function setGroup($group) - { - $this->group = $group; - } - - public function getGroup() - { - return $this->group; - } -} - -class Google_Service_Compute_Route extends Google_Collection -{ - public $creationTimestamp; - public $description; - public $destRange; - public $id; - public $kind; - public $name; - public $network; - public $nextHopGateway; - public $nextHopInstance; - public $nextHopIp; - public $nextHopNetwork; - public $priority; - public $selfLink; - public $tags; - protected $warningsType = 'Google_Service_Compute_RouteWarnings'; - protected $warningsDataType = 'array'; - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDestRange($destRange) - { - $this->destRange = $destRange; - } - - public function getDestRange() - { - return $this->destRange; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setNetwork($network) - { - $this->network = $network; - } - - public function getNetwork() - { - return $this->network; - } - - public function setNextHopGateway($nextHopGateway) - { - $this->nextHopGateway = $nextHopGateway; - } - - public function getNextHopGateway() - { - return $this->nextHopGateway; - } - - public function setNextHopInstance($nextHopInstance) - { - $this->nextHopInstance = $nextHopInstance; - } - - public function getNextHopInstance() - { - return $this->nextHopInstance; - } - - public function setNextHopIp($nextHopIp) - { - $this->nextHopIp = $nextHopIp; - } - - public function getNextHopIp() - { - return $this->nextHopIp; - } - - public function setNextHopNetwork($nextHopNetwork) - { - $this->nextHopNetwork = $nextHopNetwork; - } - - public function getNextHopNetwork() - { - return $this->nextHopNetwork; - } - - public function setPriority($priority) - { - $this->priority = $priority; - } - - public function getPriority() - { - return $this->priority; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } - - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_Compute_RouteList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_Route'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_RouteWarnings extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_RouteWarningsData'; - protected $dataDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_RouteWarningsData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_Scheduling extends Google_Model -{ - public $automaticRestart; - public $onHostMaintenance; - - public function setAutomaticRestart($automaticRestart) - { - $this->automaticRestart = $automaticRestart; - } - - public function getAutomaticRestart() - { - return $this->automaticRestart; - } - - public function setOnHostMaintenance($onHostMaintenance) - { - $this->onHostMaintenance = $onHostMaintenance; - } - - public function getOnHostMaintenance() - { - return $this->onHostMaintenance; - } -} - -class Google_Service_Compute_SerialPortOutput extends Google_Model -{ - public $contents; - public $kind; - public $selfLink; - - public function setContents($contents) - { - $this->contents = $contents; - } - - public function getContents() - { - return $this->contents; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ServiceAccount extends Google_Collection -{ - public $email; - public $scopes; - - public function setEmail($email) - { - $this->email = $email; - } - - public function getEmail() - { - return $this->email; - } - - public function setScopes($scopes) - { - $this->scopes = $scopes; - } - - public function getScopes() - { - return $this->scopes; - } -} - -class Google_Service_Compute_Snapshot extends Google_Collection -{ - public $creationTimestamp; - public $description; - public $diskSizeGb; - public $id; - public $kind; - public $licenses; - public $name; - public $selfLink; - public $sourceDisk; - public $sourceDiskId; - public $status; - public $storageBytes; - public $storageBytesStatus; - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } - - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLicenses($licenses) - { - $this->licenses = $licenses; - } - - public function getLicenses() - { - return $this->licenses; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setSourceDisk($sourceDisk) - { - $this->sourceDisk = $sourceDisk; - } - - public function getSourceDisk() - { - return $this->sourceDisk; - } - - public function setSourceDiskId($sourceDiskId) - { - $this->sourceDiskId = $sourceDiskId; - } - - public function getSourceDiskId() - { - return $this->sourceDiskId; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setStorageBytes($storageBytes) - { - $this->storageBytes = $storageBytes; - } - - public function getStorageBytes() - { - return $this->storageBytes; - } - - public function setStorageBytesStatus($storageBytesStatus) - { - $this->storageBytesStatus = $storageBytesStatus; - } - - public function getStorageBytesStatus() - { - return $this->storageBytesStatus; - } -} - -class Google_Service_Compute_SnapshotList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_Snapshot'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_Tags extends Google_Collection -{ - public $fingerprint; - public $items; - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } -} - -class Google_Service_Compute_TargetHttpProxy extends Google_Model -{ - public $creationTimestamp; - public $description; - public $id; - public $kind; - public $name; - public $selfLink; - public $urlMap; - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setUrlMap($urlMap) - { - $this->urlMap = $urlMap; - } - - public function getUrlMap() - { - return $this->urlMap; - } -} - -class Google_Service_Compute_TargetHttpProxyList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_TargetHttpProxy'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetInstance extends Google_Model -{ - public $creationTimestamp; - public $description; - public $id; - public $instance; - public $kind; - public $name; - public $natPolicy; - public $selfLink; - public $zone; - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInstance($instance) - { - $this->instance = $instance; - } - - public function getInstance() - { - return $this->instance; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setNatPolicy($natPolicy) - { - $this->natPolicy = $natPolicy; - } - - public function getNatPolicy() - { - return $this->natPolicy; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setZone($zone) - { - $this->zone = $zone; - } - - public function getZone() - { - return $this->zone; - } -} - -class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_TargetInstancesScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetInstanceAggregatedListItems extends Google_Model -{ - -} - -class Google_Service_Compute_TargetInstanceList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_TargetInstance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection -{ - protected $targetInstancesType = 'Google_Service_Compute_TargetInstance'; - protected $targetInstancesDataType = 'array'; - protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning'; - protected $warningDataType = ''; - - public function setTargetInstances($targetInstances) - { - $this->targetInstances = $targetInstances; - } - - public function getTargetInstances() - { - return $this->targetInstances; - } - - public function setWarning(Google_Service_Compute_TargetInstancesScopedListWarning $warning) - { - $this->warning = $warning; - } - - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_TargetInstancesScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_TargetPool extends Google_Collection -{ - public $backupPool; - public $creationTimestamp; - public $description; - public $failoverRatio; - public $healthChecks; - public $id; - public $instances; - public $kind; - public $name; - public $region; - public $selfLink; - public $sessionAffinity; - - public function setBackupPool($backupPool) - { - $this->backupPool = $backupPool; - } - - public function getBackupPool() - { - return $this->backupPool; - } - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setFailoverRatio($failoverRatio) - { - $this->failoverRatio = $failoverRatio; - } - - public function getFailoverRatio() - { - return $this->failoverRatio; - } - - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - - public function getHealthChecks() - { - return $this->healthChecks; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInstances($instances) - { - $this->instances = $instances; - } - - public function getInstances() - { - return $this->instances; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setRegion($region) - { - $this->region = $region; - } - - public function getRegion() - { - return $this->region; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setSessionAffinity($sessionAffinity) - { - $this->sessionAffinity = $sessionAffinity; - } - - public function getSessionAffinity() - { - return $this->sessionAffinity; - } -} - -class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model -{ - public $id; - protected $itemsType = 'Google_Service_Compute_TargetPoolsScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetPoolAggregatedListItems extends Google_Model -{ - -} - -class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection -{ - protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; - protected $healthStatusDataType = 'array'; - public $kind; - - public function setHealthStatus($healthStatus) - { - $this->healthStatus = $healthStatus; - } - - public function getHealthStatus() - { - return $this->healthStatus; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_Compute_TargetPoolList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_TargetPool'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection -{ - protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; - protected $healthChecksDataType = 'array'; - - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - - public function getHealthChecks() - { - return $this->healthChecks; - } -} - -class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection -{ - protected $instancesType = 'Google_Service_Compute_InstanceReference'; - protected $instancesDataType = 'array'; - - public function setInstances($instances) - { - $this->instances = $instances; - } - - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection -{ - protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; - protected $healthChecksDataType = 'array'; - - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } - - public function getHealthChecks() - { - return $this->healthChecks; - } -} - -class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection -{ - protected $instancesType = 'Google_Service_Compute_InstanceReference'; - protected $instancesDataType = 'array'; - - public function setInstances($instances) - { - $this->instances = $instances; - } - - public function getInstances() - { - return $this->instances; - } -} - -class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection -{ - protected $targetPoolsType = 'Google_Service_Compute_TargetPool'; - protected $targetPoolsDataType = 'array'; - protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning'; - protected $warningDataType = ''; - - public function setTargetPools($targetPools) - { - $this->targetPools = $targetPools; - } - - public function getTargetPools() - { - return $this->targetPools; - } - - public function setWarning(Google_Service_Compute_TargetPoolsScopedListWarning $warning) - { - $this->warning = $warning; - } - - public function getWarning() - { - return $this->warning; - } -} - -class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Compute_TargetPoolsScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model -{ - public $key; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Compute_TargetReference extends Google_Model -{ - public $target; - - public function setTarget($target) - { - $this->target = $target; - } - - public function getTarget() - { - return $this->target; - } -} - -class Google_Service_Compute_TestFailure extends Google_Model -{ - public $actualService; - public $expectedService; - public $host; - public $path; - - public function setActualService($actualService) - { - $this->actualService = $actualService; - } - - public function getActualService() - { - return $this->actualService; - } - - public function setExpectedService($expectedService) - { - $this->expectedService = $expectedService; - } - - public function getExpectedService() - { - return $this->expectedService; - } - - public function setHost($host) - { - $this->host = $host; - } - - public function getHost() - { - return $this->host; - } - - public function setPath($path) - { - $this->path = $path; - } - - public function getPath() - { - return $this->path; - } -} - -class Google_Service_Compute_UrlMap extends Google_Collection -{ - public $creationTimestamp; - public $defaultService; - public $description; - public $fingerprint; - protected $hostRulesType = 'Google_Service_Compute_HostRule'; - protected $hostRulesDataType = 'array'; - public $id; - public $kind; - public $name; - protected $pathMatchersType = 'Google_Service_Compute_PathMatcher'; - protected $pathMatchersDataType = 'array'; - public $selfLink; - protected $testsType = 'Google_Service_Compute_UrlMapTest'; - protected $testsDataType = 'array'; - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDefaultService($defaultService) - { - $this->defaultService = $defaultService; - } - - public function getDefaultService() - { - return $this->defaultService; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - - public function getFingerprint() - { - return $this->fingerprint; - } - - public function setHostRules($hostRules) - { - $this->hostRules = $hostRules; - } - - public function getHostRules() - { - return $this->hostRules; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPathMatchers($pathMatchers) - { - $this->pathMatchers = $pathMatchers; - } - - public function getPathMatchers() - { - return $this->pathMatchers; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setTests($tests) - { - $this->tests = $tests; - } - - public function getTests() - { - return $this->tests; - } -} - -class Google_Service_Compute_UrlMapList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_UrlMap'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_UrlMapReference extends Google_Model -{ - public $urlMap; - - public function setUrlMap($urlMap) - { - $this->urlMap = $urlMap; - } - - public function getUrlMap() - { - return $this->urlMap; - } -} - -class Google_Service_Compute_UrlMapTest extends Google_Model -{ - public $description; - public $host; - public $path; - public $service; - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setHost($host) - { - $this->host = $host; - } - - public function getHost() - { - return $this->host; - } - - public function setPath($path) - { - $this->path = $path; - } - - public function getPath() - { - return $this->path; - } - - public function setService($service) - { - $this->service = $service; - } - - public function getService() - { - return $this->service; - } -} - -class Google_Service_Compute_UrlMapValidationResult extends Google_Collection -{ - public $loadErrors; - public $loadSucceeded; - protected $testFailuresType = 'Google_Service_Compute_TestFailure'; - protected $testFailuresDataType = 'array'; - public $testPassed; - - public function setLoadErrors($loadErrors) - { - $this->loadErrors = $loadErrors; - } - - public function getLoadErrors() - { - return $this->loadErrors; - } - - public function setLoadSucceeded($loadSucceeded) - { - $this->loadSucceeded = $loadSucceeded; - } - - public function getLoadSucceeded() - { - return $this->loadSucceeded; - } - - public function setTestFailures($testFailures) - { - $this->testFailures = $testFailures; - } - - public function getTestFailures() - { - return $this->testFailures; - } - - public function setTestPassed($testPassed) - { - $this->testPassed = $testPassed; - } - - public function getTestPassed() - { - return $this->testPassed; - } -} - -class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model -{ - protected $resourceType = 'Google_Service_Compute_UrlMap'; - protected $resourceDataType = ''; - - public function setResource(Google_Service_Compute_UrlMap $resource) - { - $this->resource = $resource; - } - - public function getResource() - { - return $this->resource; - } -} - -class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model -{ - protected $resultType = 'Google_Service_Compute_UrlMapValidationResult'; - protected $resultDataType = ''; - - public function setResult(Google_Service_Compute_UrlMapValidationResult $result) - { - $this->result = $result; - } - - public function getResult() - { - return $this->result; - } -} - -class Google_Service_Compute_UsageExportLocation extends Google_Model -{ - public $bucketName; - public $reportNamePrefix; - - public function setBucketName($bucketName) - { - $this->bucketName = $bucketName; - } - - public function getBucketName() - { - return $this->bucketName; - } - - public function setReportNamePrefix($reportNamePrefix) - { - $this->reportNamePrefix = $reportNamePrefix; - } - - public function getReportNamePrefix() - { - return $this->reportNamePrefix; - } -} - -class Google_Service_Compute_Zone extends Google_Collection -{ - public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; - public $description; - public $id; - public $kind; - protected $maintenanceWindowsType = 'Google_Service_Compute_ZoneMaintenanceWindows'; - protected $maintenanceWindowsDataType = 'array'; - public $name; - public $region; - public $selfLink; - public $status; - - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) - { - $this->deprecated = $deprecated; - } - - public function getDeprecated() - { - return $this->deprecated; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMaintenanceWindows($maintenanceWindows) - { - $this->maintenanceWindows = $maintenanceWindows; - } - - public function getMaintenanceWindows() - { - return $this->maintenanceWindows; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setRegion($region) - { - $this->region = $region; - } - - public function getRegion() - { - return $this->region; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Compute_ZoneList extends Google_Collection -{ - public $id; - protected $itemsType = 'Google_Service_Compute_Zone'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } -} - -class Google_Service_Compute_ZoneMaintenanceWindows extends Google_Model -{ - public $beginTime; - public $description; - public $endTime; - public $name; - - public function setBeginTime($beginTime) - { - $this->beginTime = $beginTime; - } - - public function getBeginTime() - { - return $this->beginTime; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function getEndTime() - { - return $this->endTime; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } +class Google_Service_Compute_Zones_Resource extends Google_Service_Resource { + + /** + * Returns the specified zone resource. (zones.get) + * + * @param string $project + * Name of the project scoping this request. + * @param string $zone + * Name of the zone resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Zone + */ + public function get($project, $zone, $optParams = array()) { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Zone"); + } + + /** + * Retrieves the list of zone resources available to the specified project. + * (zones.listZones) + * + * @param string $project + * Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter + * Optional. Filter expression for filtering listed resources. + * @opt_param string pageToken + * Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a + * previous list request. + * @opt_param string maxResults + * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is + * 500. + * @return Google_Service_Compute_ZoneList + */ + public function listZones($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_ZoneList"); + } +} + + +class Google_Service_Compute_AccessConfig extends Google_Model { + public $kind; + public $name; + public $natIP; + public $type; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setNatIP($natIP) { + $this->natIP = $natIP; + } + + public function getNatIP() { + return $this->natIP; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } +} + +class Google_Service_Compute_Address extends Google_Collection { + public $address; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $region; + public $selfLink; + public $status; + public $users; + + public function setAddress($address) { + $this->address = $address; + } + + public function getAddress() { + return $this->address; + } + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setRegion($region) { + $this->region = $region; + } + + public function getRegion() { + return $this->region; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setUsers($users) { + $this->users = $users; + } + + public function getUsers() { + return $this->users; + } +} + +class Google_Service_Compute_AddressAggregatedList extends Google_Model { + public $id; + protected $itemsType = 'Google_Service_Compute_AddressesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_AddressAggregatedListItems extends Google_Model { + +} + +class Google_Service_Compute_AddressList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_Address'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_AddressesScopedList extends Google_Collection { + protected $addressesType = 'Google_Service_Compute_Address'; + protected $addressesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning'; + protected $warningDataType = ''; + + public function setAddresses($addresses) { + $this->addresses = $addresses; + } + + public function getAddresses() { + return $this->addresses; + } + + public function setWarning(Google_Service_Compute_AddressesScopedListWarning $warning) { + $this->warning = $warning; + } + + public function getWarning() { + return $this->warning; + } +} + +class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Compute_AddressesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_AttachedDisk extends Google_Collection { + public $autoDelete; + public $boot; + public $deviceName; + public $index; + protected $initializeParamsType = 'Google_Service_Compute_AttachedDiskInitializeParams'; + protected $initializeParamsDataType = ''; + public $kind; + public $licenses; + public $mode; + public $source; + public $type; + + public function setAutoDelete($autoDelete) { + $this->autoDelete = $autoDelete; + } + + public function getAutoDelete() { + return $this->autoDelete; + } + + public function setBoot($boot) { + $this->boot = $boot; + } + + public function getBoot() { + return $this->boot; + } + + public function setDeviceName($deviceName) { + $this->deviceName = $deviceName; + } + + public function getDeviceName() { + return $this->deviceName; + } + + public function setIndex($index) { + $this->index = $index; + } + + public function getIndex() { + return $this->index; + } + + public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams) { + $this->initializeParams = $initializeParams; + } + + public function getInitializeParams() { + return $this->initializeParams; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLicenses($licenses) { + $this->licenses = $licenses; + } + + public function getLicenses() { + return $this->licenses; + } + + public function setMode($mode) { + $this->mode = $mode; + } + + public function getMode() { + return $this->mode; + } + + public function setSource($source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } +} + +class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model { + public $diskName; + public $diskSizeGb; + public $diskType; + public $sourceImage; + + public function setDiskName($diskName) { + $this->diskName = $diskName; + } + + public function getDiskName() { + return $this->diskName; + } + + public function setDiskSizeGb($diskSizeGb) { + $this->diskSizeGb = $diskSizeGb; + } + + public function getDiskSizeGb() { + return $this->diskSizeGb; + } + + public function setDiskType($diskType) { + $this->diskType = $diskType; + } + + public function getDiskType() { + return $this->diskType; + } + + public function setSourceImage($sourceImage) { + $this->sourceImage = $sourceImage; + } + + public function getSourceImage() { + return $this->sourceImage; + } +} + +class Google_Service_Compute_Backend extends Google_Model { + public $balancingMode; + public $capacityScaler; + public $description; + public $group; + public $maxRate; + public $maxRatePerInstance; + public $maxUtilization; + + public function setBalancingMode($balancingMode) { + $this->balancingMode = $balancingMode; + } + + public function getBalancingMode() { + return $this->balancingMode; + } + + public function setCapacityScaler($capacityScaler) { + $this->capacityScaler = $capacityScaler; + } + + public function getCapacityScaler() { + return $this->capacityScaler; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setGroup($group) { + $this->group = $group; + } + + public function getGroup() { + return $this->group; + } + + public function setMaxRate($maxRate) { + $this->maxRate = $maxRate; + } + + public function getMaxRate() { + return $this->maxRate; + } + + public function setMaxRatePerInstance($maxRatePerInstance) { + $this->maxRatePerInstance = $maxRatePerInstance; + } + + public function getMaxRatePerInstance() { + return $this->maxRatePerInstance; + } + + public function setMaxUtilization($maxUtilization) { + $this->maxUtilization = $maxUtilization; + } + + public function getMaxUtilization() { + return $this->maxUtilization; + } +} + +class Google_Service_Compute_BackendService extends Google_Collection { + protected $backendsType = 'Google_Service_Compute_Backend'; + protected $backendsDataType = 'array'; + public $creationTimestamp; + public $description; + public $fingerprint; + public $healthChecks; + public $id; + public $kind; + public $name; + public $port; + public $portName; + public $protocol; + public $selfLink; + public $timeoutSec; + + public function setBackends($backends) { + $this->backends = $backends; + } + + public function getBackends() { + return $this->backends; + } + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setFingerprint($fingerprint) { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() { + return $this->fingerprint; + } + + public function setHealthChecks($healthChecks) { + $this->healthChecks = $healthChecks; + } + + public function getHealthChecks() { + return $this->healthChecks; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setPort($port) { + $this->port = $port; + } + + public function getPort() { + return $this->port; + } + + public function setPortName($portName) { + $this->portName = $portName; + } + + public function getPortName() { + return $this->portName; + } + + public function setProtocol($protocol) { + $this->protocol = $protocol; + } + + public function getProtocol() { + return $this->protocol; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setTimeoutSec($timeoutSec) { + $this->timeoutSec = $timeoutSec; + } + + public function getTimeoutSec() { + return $this->timeoutSec; + } +} + +class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection { + protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; + protected $healthStatusDataType = 'array'; + public $kind; + + public function setHealthStatus($healthStatus) { + $this->healthStatus = $healthStatus; + } + + public function getHealthStatus() { + return $this->healthStatus; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_Compute_BackendServiceList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_BackendService'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_DeprecationStatus extends Google_Model { + public $deleted; + public $deprecated; + public $obsolete; + public $replacement; + public $state; + + public function setDeleted($deleted) { + $this->deleted = $deleted; + } + + public function getDeleted() { + return $this->deleted; + } + + public function setDeprecated($deprecated) { + $this->deprecated = $deprecated; + } + + public function getDeprecated() { + return $this->deprecated; + } + + public function setObsolete($obsolete) { + $this->obsolete = $obsolete; + } + + public function getObsolete() { + return $this->obsolete; + } + + public function setReplacement($replacement) { + $this->replacement = $replacement; + } + + public function getReplacement() { + return $this->replacement; + } + + public function setState($state) { + $this->state = $state; + } + + public function getState() { + return $this->state; + } +} + +class Google_Service_Compute_Disk extends Google_Collection { + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $licenses; + public $name; + public $options; + public $selfLink; + public $sizeGb; + public $sourceImage; + public $sourceImageId; + public $sourceSnapshot; + public $sourceSnapshotId; + public $status; + public $type; + public $zone; + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLicenses($licenses) { + $this->licenses = $licenses; + } + + public function getLicenses() { + return $this->licenses; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setOptions($options) { + $this->options = $options; + } + + public function getOptions() { + return $this->options; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setSizeGb($sizeGb) { + $this->sizeGb = $sizeGb; + } + + public function getSizeGb() { + return $this->sizeGb; + } + + public function setSourceImage($sourceImage) { + $this->sourceImage = $sourceImage; + } + + public function getSourceImage() { + return $this->sourceImage; + } + + public function setSourceImageId($sourceImageId) { + $this->sourceImageId = $sourceImageId; + } + + public function getSourceImageId() { + return $this->sourceImageId; + } + + public function setSourceSnapshot($sourceSnapshot) { + $this->sourceSnapshot = $sourceSnapshot; + } + + public function getSourceSnapshot() { + return $this->sourceSnapshot; + } + + public function setSourceSnapshotId($sourceSnapshotId) { + $this->sourceSnapshotId = $sourceSnapshotId; + } + + public function getSourceSnapshotId() { + return $this->sourceSnapshotId; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setZone($zone) { + $this->zone = $zone; + } + + public function getZone() { + return $this->zone; + } +} + +class Google_Service_Compute_DiskAggregatedList extends Google_Model { + public $id; + protected $itemsType = 'Google_Service_Compute_DisksScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_DiskAggregatedListItems extends Google_Model { + +} + +class Google_Service_Compute_DiskList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_Disk'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_DiskType extends Google_Model { + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $id; + public $kind; + public $name; + public $selfLink; + public $validDiskSize; + public $zone; + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { + $this->deprecated = $deprecated; + } + + public function getDeprecated() { + return $this->deprecated; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setValidDiskSize($validDiskSize) { + $this->validDiskSize = $validDiskSize; + } + + public function getValidDiskSize() { + return $this->validDiskSize; + } + + public function setZone($zone) { + $this->zone = $zone; + } + + public function getZone() { + return $this->zone; + } +} + +class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model { + public $id; + protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model { + +} + +class Google_Service_Compute_DiskTypeList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_DiskType'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_DiskTypesScopedList extends Google_Collection { + protected $diskTypesType = 'Google_Service_Compute_DiskType'; + protected $diskTypesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; + protected $warningDataType = ''; + + public function setDiskTypes($diskTypes) { + $this->diskTypes = $diskTypes; + } + + public function getDiskTypes() { + return $this->diskTypes; + } + + public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning) { + $this->warning = $warning; + } + + public function getWarning() { + return $this->warning; + } +} + +class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_DisksScopedList extends Google_Collection { + protected $disksType = 'Google_Service_Compute_Disk'; + protected $disksDataType = 'array'; + protected $warningType = 'Google_Service_Compute_DisksScopedListWarning'; + protected $warningDataType = ''; + + public function setDisks($disks) { + $this->disks = $disks; + } + + public function getDisks() { + return $this->disks; + } + + public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning) { + $this->warning = $warning; + } + + public function getWarning() { + return $this->warning; + } +} + +class Google_Service_Compute_DisksScopedListWarning extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_DisksScopedListWarningData extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_Firewall extends Google_Collection { + protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; + protected $allowedDataType = 'array'; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $network; + public $selfLink; + public $sourceRanges; + public $sourceTags; + public $targetTags; + + public function setAllowed($allowed) { + $this->allowed = $allowed; + } + + public function getAllowed() { + return $this->allowed; + } + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setNetwork($network) { + $this->network = $network; + } + + public function getNetwork() { + return $this->network; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setSourceRanges($sourceRanges) { + $this->sourceRanges = $sourceRanges; + } + + public function getSourceRanges() { + return $this->sourceRanges; + } + + public function setSourceTags($sourceTags) { + $this->sourceTags = $sourceTags; + } + + public function getSourceTags() { + return $this->sourceTags; + } + + public function setTargetTags($targetTags) { + $this->targetTags = $targetTags; + } + + public function getTargetTags() { + return $this->targetTags; + } +} + +class Google_Service_Compute_FirewallAllowed extends Google_Collection { + public $iPProtocol; + public $ports; + + public function setIPProtocol($iPProtocol) { + $this->iPProtocol = $iPProtocol; + } + + public function getIPProtocol() { + return $this->iPProtocol; + } + + public function setPorts($ports) { + $this->ports = $ports; + } + + public function getPorts() { + return $this->ports; + } +} + +class Google_Service_Compute_FirewallList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_Firewall'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_ForwardingRule extends Google_Model { + public $iPAddress; + public $iPProtocol; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $portRange; + public $region; + public $selfLink; + public $target; + + public function setIPAddress($iPAddress) { + $this->iPAddress = $iPAddress; + } + + public function getIPAddress() { + return $this->iPAddress; + } + + public function setIPProtocol($iPProtocol) { + $this->iPProtocol = $iPProtocol; + } + + public function getIPProtocol() { + return $this->iPProtocol; + } + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setPortRange($portRange) { + $this->portRange = $portRange; + } + + public function getPortRange() { + return $this->portRange; + } + + public function setRegion($region) { + $this->region = $region; + } + + public function getRegion() { + return $this->region; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setTarget($target) { + $this->target = $target; + } + + public function getTarget() { + return $this->target; + } +} + +class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model { + public $id; + protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model { + +} + +class Google_Service_Compute_ForwardingRuleList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_ForwardingRule'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection { + protected $forwardingRulesType = 'Google_Service_Compute_ForwardingRule'; + protected $forwardingRulesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning'; + protected $warningDataType = ''; + + public function setForwardingRules($forwardingRules) { + $this->forwardingRules = $forwardingRules; + } + + public function getForwardingRules() { + return $this->forwardingRules; + } + + public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarning $warning) { + $this->warning = $warning; + } + + public function getWarning() { + return $this->warning; + } +} + +class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Compute_ForwardingRulesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_HealthCheckReference extends Google_Model { + public $healthCheck; + + public function setHealthCheck($healthCheck) { + $this->healthCheck = $healthCheck; + } + + public function getHealthCheck() { + return $this->healthCheck; + } +} + +class Google_Service_Compute_HealthStatus extends Google_Model { + public $healthState; + public $instance; + public $ipAddress; + + public function setHealthState($healthState) { + $this->healthState = $healthState; + } + + public function getHealthState() { + return $this->healthState; + } + + public function setInstance($instance) { + $this->instance = $instance; + } + + public function getInstance() { + return $this->instance; + } + + public function setIpAddress($ipAddress) { + $this->ipAddress = $ipAddress; + } + + public function getIpAddress() { + return $this->ipAddress; + } +} + +class Google_Service_Compute_HostRule extends Google_Collection { + public $description; + public $hosts; + public $pathMatcher; + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setHosts($hosts) { + $this->hosts = $hosts; + } + + public function getHosts() { + return $this->hosts; + } + + public function setPathMatcher($pathMatcher) { + $this->pathMatcher = $pathMatcher; + } + + public function getPathMatcher() { + return $this->pathMatcher; + } +} + +class Google_Service_Compute_HttpHealthCheck extends Google_Model { + public $checkIntervalSec; + public $creationTimestamp; + public $description; + public $healthyThreshold; + public $host; + public $id; + public $kind; + public $name; + public $port; + public $requestPath; + public $selfLink; + public $timeoutSec; + public $unhealthyThreshold; + + public function setCheckIntervalSec($checkIntervalSec) { + $this->checkIntervalSec = $checkIntervalSec; + } + + public function getCheckIntervalSec() { + return $this->checkIntervalSec; + } + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setHealthyThreshold($healthyThreshold) { + $this->healthyThreshold = $healthyThreshold; + } + + public function getHealthyThreshold() { + return $this->healthyThreshold; + } + + public function setHost($host) { + $this->host = $host; + } + + public function getHost() { + return $this->host; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setPort($port) { + $this->port = $port; + } + + public function getPort() { + return $this->port; + } + + public function setRequestPath($requestPath) { + $this->requestPath = $requestPath; + } + + public function getRequestPath() { + return $this->requestPath; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setTimeoutSec($timeoutSec) { + $this->timeoutSec = $timeoutSec; + } + + public function getTimeoutSec() { + return $this->timeoutSec; + } + + public function setUnhealthyThreshold($unhealthyThreshold) { + $this->unhealthyThreshold = $unhealthyThreshold; + } + + public function getUnhealthyThreshold() { + return $this->unhealthyThreshold; + } +} + +class Google_Service_Compute_HttpHealthCheckList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_Image extends Google_Collection { + public $archiveSizeBytes; + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $diskSizeGb; + public $id; + public $kind; + public $licenses; + public $name; + protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; + protected $rawDiskDataType = ''; + public $selfLink; + public $sourceDisk; + public $sourceDiskId; + public $sourceType; + public $status; + + public function setArchiveSizeBytes($archiveSizeBytes) { + $this->archiveSizeBytes = $archiveSizeBytes; + } + + public function getArchiveSizeBytes() { + return $this->archiveSizeBytes; + } + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { + $this->deprecated = $deprecated; + } + + public function getDeprecated() { + return $this->deprecated; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setDiskSizeGb($diskSizeGb) { + $this->diskSizeGb = $diskSizeGb; + } + + public function getDiskSizeGb() { + return $this->diskSizeGb; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLicenses($licenses) { + $this->licenses = $licenses; + } + + public function getLicenses() { + return $this->licenses; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) { + $this->rawDisk = $rawDisk; + } + + public function getRawDisk() { + return $this->rawDisk; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setSourceDisk($sourceDisk) { + $this->sourceDisk = $sourceDisk; + } + + public function getSourceDisk() { + return $this->sourceDisk; + } + + public function setSourceDiskId($sourceDiskId) { + $this->sourceDiskId = $sourceDiskId; + } + + public function getSourceDiskId() { + return $this->sourceDiskId; + } + + public function setSourceType($sourceType) { + $this->sourceType = $sourceType; + } + + public function getSourceType() { + return $this->sourceType; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } +} + +class Google_Service_Compute_ImageList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_Image'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_ImageRawDisk extends Google_Model { + public $containerType; + public $sha1Checksum; + public $source; + + public function setContainerType($containerType) { + $this->containerType = $containerType; + } + + public function getContainerType() { + return $this->containerType; + } + + public function setSha1Checksum($sha1Checksum) { + $this->sha1Checksum = $sha1Checksum; + } + + public function getSha1Checksum() { + return $this->sha1Checksum; + } + + public function setSource($source) { + $this->source = $source; + } + + public function getSource() { + return $this->source; + } +} + +class Google_Service_Compute_Instance extends Google_Collection { + public $canIpForward; + public $creationTimestamp; + public $description; + protected $disksType = 'Google_Service_Compute_AttachedDisk'; + protected $disksDataType = 'array'; + public $id; + public $kind; + public $machineType; + protected $metadataType = 'Google_Service_Compute_Metadata'; + protected $metadataDataType = ''; + public $name; + protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface'; + protected $networkInterfacesDataType = 'array'; + protected $schedulingType = 'Google_Service_Compute_Scheduling'; + protected $schedulingDataType = ''; + public $selfLink; + protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount'; + protected $serviceAccountsDataType = 'array'; + public $status; + public $statusMessage; + protected $tagsType = 'Google_Service_Compute_Tags'; + protected $tagsDataType = ''; + public $zone; + + public function setCanIpForward($canIpForward) { + $this->canIpForward = $canIpForward; + } + + public function getCanIpForward() { + return $this->canIpForward; + } + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setDisks($disks) { + $this->disks = $disks; + } + + public function getDisks() { + return $this->disks; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMachineType($machineType) { + $this->machineType = $machineType; + } + + public function getMachineType() { + return $this->machineType; + } + + public function setMetadata(Google_Service_Compute_Metadata $metadata) { + $this->metadata = $metadata; + } + + public function getMetadata() { + return $this->metadata; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setNetworkInterfaces($networkInterfaces) { + $this->networkInterfaces = $networkInterfaces; + } + + public function getNetworkInterfaces() { + return $this->networkInterfaces; + } + + public function setScheduling(Google_Service_Compute_Scheduling $scheduling) { + $this->scheduling = $scheduling; + } + + public function getScheduling() { + return $this->scheduling; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setServiceAccounts($serviceAccounts) { + $this->serviceAccounts = $serviceAccounts; + } + + public function getServiceAccounts() { + return $this->serviceAccounts; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setStatusMessage($statusMessage) { + $this->statusMessage = $statusMessage; + } + + public function getStatusMessage() { + return $this->statusMessage; + } + + public function setTags(Google_Service_Compute_Tags $tags) { + $this->tags = $tags; + } + + public function getTags() { + return $this->tags; + } + + public function setZone($zone) { + $this->zone = $zone; + } + + public function getZone() { + return $this->zone; + } +} + +class Google_Service_Compute_InstanceAggregatedList extends Google_Model { + public $id; + protected $itemsType = 'Google_Service_Compute_InstancesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model { + +} + +class Google_Service_Compute_InstanceList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_Instance'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_InstanceReference extends Google_Model { + public $instance; + + public function setInstance($instance) { + $this->instance = $instance; + } + + public function getInstance() { + return $this->instance; + } +} + +class Google_Service_Compute_InstancesScopedList extends Google_Collection { + protected $instancesType = 'Google_Service_Compute_Instance'; + protected $instancesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning'; + protected $warningDataType = ''; + + public function setInstances($instances) { + $this->instances = $instances; + } + + public function getInstances() { + return $this->instances; + } + + public function setWarning(Google_Service_Compute_InstancesScopedListWarning $warning) { + $this->warning = $warning; + } + + public function getWarning() { + return $this->warning; + } +} + +class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Compute_InstancesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_License extends Google_Model { + public $kind; + public $name; + public $selfLink; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_MachineType extends Google_Collection { + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $guestCpus; + public $id; + public $imageSpaceGb; + public $kind; + public $maximumPersistentDisks; + public $maximumPersistentDisksSizeGb; + public $memoryMb; + public $name; + protected $scratchDisksType = 'Google_Service_Compute_MachineTypeScratchDisks'; + protected $scratchDisksDataType = 'array'; + public $selfLink; + public $zone; + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { + $this->deprecated = $deprecated; + } + + public function getDeprecated() { + return $this->deprecated; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setGuestCpus($guestCpus) { + $this->guestCpus = $guestCpus; + } + + public function getGuestCpus() { + return $this->guestCpus; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setImageSpaceGb($imageSpaceGb) { + $this->imageSpaceGb = $imageSpaceGb; + } + + public function getImageSpaceGb() { + return $this->imageSpaceGb; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMaximumPersistentDisks($maximumPersistentDisks) { + $this->maximumPersistentDisks = $maximumPersistentDisks; + } + + public function getMaximumPersistentDisks() { + return $this->maximumPersistentDisks; + } + + public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb) { + $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb; + } + + public function getMaximumPersistentDisksSizeGb() { + return $this->maximumPersistentDisksSizeGb; + } + + public function setMemoryMb($memoryMb) { + $this->memoryMb = $memoryMb; + } + + public function getMemoryMb() { + return $this->memoryMb; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setScratchDisks($scratchDisks) { + $this->scratchDisks = $scratchDisks; + } + + public function getScratchDisks() { + return $this->scratchDisks; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setZone($zone) { + $this->zone = $zone; + } + + public function getZone() { + return $this->zone; + } +} + +class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model { + public $id; + protected $itemsType = 'Google_Service_Compute_MachineTypesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_MachineTypeAggregatedListItems extends Google_Model { + +} + +class Google_Service_Compute_MachineTypeList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_MachineType'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model { + public $diskGb; + + public function setDiskGb($diskGb) { + $this->diskGb = $diskGb; + } + + public function getDiskGb() { + return $this->diskGb; + } +} + +class Google_Service_Compute_MachineTypesScopedList extends Google_Collection { + protected $machineTypesType = 'Google_Service_Compute_MachineType'; + protected $machineTypesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning'; + protected $warningDataType = ''; + + public function setMachineTypes($machineTypes) { + $this->machineTypes = $machineTypes; + } + + public function getMachineTypes() { + return $this->machineTypes; + } + + public function setWarning(Google_Service_Compute_MachineTypesScopedListWarning $warning) { + $this->warning = $warning; + } + + public function getWarning() { + return $this->warning; + } +} + +class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Compute_MachineTypesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_Metadata extends Google_Collection { + public $fingerprint; + protected $itemsType = 'Google_Service_Compute_MetadataItems'; + protected $itemsDataType = 'array'; + public $kind; + + public function setFingerprint($fingerprint) { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() { + return $this->fingerprint; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_Compute_MetadataItems extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_Network extends Google_Model { + public $iPv4Range; + public $creationTimestamp; + public $description; + public $gatewayIPv4; + public $id; + public $kind; + public $name; + public $selfLink; + + public function setIPv4Range($iPv4Range) { + $this->iPv4Range = $iPv4Range; + } + + public function getIPv4Range() { + return $this->iPv4Range; + } + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setGatewayIPv4($gatewayIPv4) { + $this->gatewayIPv4 = $gatewayIPv4; + } + + public function getGatewayIPv4() { + return $this->gatewayIPv4; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_NetworkInterface extends Google_Collection { + protected $accessConfigsType = 'Google_Service_Compute_AccessConfig'; + protected $accessConfigsDataType = 'array'; + public $name; + public $network; + public $networkIP; + + public function setAccessConfigs($accessConfigs) { + $this->accessConfigs = $accessConfigs; + } + + public function getAccessConfigs() { + return $this->accessConfigs; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setNetwork($network) { + $this->network = $network; + } + + public function getNetwork() { + return $this->network; + } + + public function setNetworkIP($networkIP) { + $this->networkIP = $networkIP; + } + + public function getNetworkIP() { + return $this->networkIP; + } +} + +class Google_Service_Compute_NetworkList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_Network'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_Operation extends Google_Collection { + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Compute_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Compute_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + public function setClientOperationId($clientOperationId) { + $this->clientOperationId = $clientOperationId; + } + + public function getClientOperationId() { + return $this->clientOperationId; + } + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setEndTime($endTime) { + $this->endTime = $endTime; + } + + public function getEndTime() { + return $this->endTime; + } + + public function setError(Google_Service_Compute_OperationError $error) { + $this->error = $error; + } + + public function getError() { + return $this->error; + } + + public function setHttpErrorMessage($httpErrorMessage) { + $this->httpErrorMessage = $httpErrorMessage; + } + + public function getHttpErrorMessage() { + return $this->httpErrorMessage; + } + + public function setHttpErrorStatusCode($httpErrorStatusCode) { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + + public function getHttpErrorStatusCode() { + return $this->httpErrorStatusCode; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInsertTime($insertTime) { + $this->insertTime = $insertTime; + } + + public function getInsertTime() { + return $this->insertTime; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setOperationType($operationType) { + $this->operationType = $operationType; + } + + public function getOperationType() { + return $this->operationType; + } + + public function setProgress($progress) { + $this->progress = $progress; + } + + public function getProgress() { + return $this->progress; + } + + public function setRegion($region) { + $this->region = $region; + } + + public function getRegion() { + return $this->region; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setStartTime($startTime) { + $this->startTime = $startTime; + } + + public function getStartTime() { + return $this->startTime; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setStatusMessage($statusMessage) { + $this->statusMessage = $statusMessage; + } + + public function getStatusMessage() { + return $this->statusMessage; + } + + public function setTargetId($targetId) { + $this->targetId = $targetId; + } + + public function getTargetId() { + return $this->targetId; + } + + public function setTargetLink($targetLink) { + $this->targetLink = $targetLink; + } + + public function getTargetLink() { + return $this->targetLink; + } + + public function setUser($user) { + $this->user = $user; + } + + public function getUser() { + return $this->user; + } + + public function setWarnings($warnings) { + $this->warnings = $warnings; + } + + public function getWarnings() { + return $this->warnings; + } + + public function setZone($zone) { + $this->zone = $zone; + } + + public function getZone() { + return $this->zone; + } +} + +class Google_Service_Compute_OperationAggregatedList extends Google_Model { + public $id; + protected $itemsType = 'Google_Service_Compute_OperationsScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_OperationAggregatedListItems extends Google_Model { + +} + +class Google_Service_Compute_OperationError extends Google_Collection { + protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + public function setErrors($errors) { + $this->errors = $errors; + } + + public function getErrors() { + return $this->errors; + } +} + +class Google_Service_Compute_OperationErrorErrors extends Google_Model { + public $code; + public $location; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setLocation($location) { + $this->location = $location; + } + + public function getLocation() { + return $this->location; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_OperationList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_Operation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_OperationWarnings extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Compute_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_OperationWarningsData extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_OperationsScopedList extends Google_Collection { + protected $operationsType = 'Google_Service_Compute_Operation'; + protected $operationsDataType = 'array'; + protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning'; + protected $warningDataType = ''; + + public function setOperations($operations) { + $this->operations = $operations; + } + + public function getOperations() { + return $this->operations; + } + + public function setWarning(Google_Service_Compute_OperationsScopedListWarning $warning) { + $this->warning = $warning; + } + + public function getWarning() { + return $this->warning; + } +} + +class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Compute_OperationsScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_PathMatcher extends Google_Collection { + public $defaultService; + public $description; + public $name; + protected $pathRulesType = 'Google_Service_Compute_PathRule'; + protected $pathRulesDataType = 'array'; + + public function setDefaultService($defaultService) { + $this->defaultService = $defaultService; + } + + public function getDefaultService() { + return $this->defaultService; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setPathRules($pathRules) { + $this->pathRules = $pathRules; + } + + public function getPathRules() { + return $this->pathRules; + } +} + +class Google_Service_Compute_PathRule extends Google_Collection { + public $paths; + public $service; + + public function setPaths($paths) { + $this->paths = $paths; + } + + public function getPaths() { + return $this->paths; + } + + public function setService($service) { + $this->service = $service; + } + + public function getService() { + return $this->service; + } +} + +class Google_Service_Compute_Project extends Google_Collection { + protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata'; + protected $commonInstanceMetadataDataType = ''; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + protected $quotasType = 'Google_Service_Compute_Quota'; + protected $quotasDataType = 'array'; + public $selfLink; + protected $usageExportLocationType = 'Google_Service_Compute_UsageExportLocation'; + protected $usageExportLocationDataType = ''; + + public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata) { + $this->commonInstanceMetadata = $commonInstanceMetadata; + } + + public function getCommonInstanceMetadata() { + return $this->commonInstanceMetadata; + } + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setQuotas($quotas) { + $this->quotas = $quotas; + } + + public function getQuotas() { + return $this->quotas; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setUsageExportLocation(Google_Service_Compute_UsageExportLocation $usageExportLocation) { + $this->usageExportLocation = $usageExportLocation; + } + + public function getUsageExportLocation() { + return $this->usageExportLocation; + } +} + +class Google_Service_Compute_Quota extends Google_Model { + public $limit; + public $metric; + public $usage; + + public function setLimit($limit) { + $this->limit = $limit; + } + + public function getLimit() { + return $this->limit; + } + + public function setMetric($metric) { + $this->metric = $metric; + } + + public function getMetric() { + return $this->metric; + } + + public function setUsage($usage) { + $this->usage = $usage; + } + + public function getUsage() { + return $this->usage; + } +} + +class Google_Service_Compute_Region extends Google_Collection { + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $id; + public $kind; + public $name; + protected $quotasType = 'Google_Service_Compute_Quota'; + protected $quotasDataType = 'array'; + public $selfLink; + public $status; + public $zones; + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { + $this->deprecated = $deprecated; + } + + public function getDeprecated() { + return $this->deprecated; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setQuotas($quotas) { + $this->quotas = $quotas; + } + + public function getQuotas() { + return $this->quotas; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setZones($zones) { + $this->zones = $zones; + } + + public function getZones() { + return $this->zones; + } +} + +class Google_Service_Compute_RegionList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_Region'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_ResourceGroupReference extends Google_Model { + public $group; + + public function setGroup($group) { + $this->group = $group; + } + + public function getGroup() { + return $this->group; + } +} + +class Google_Service_Compute_Route extends Google_Collection { + public $creationTimestamp; + public $description; + public $destRange; + public $id; + public $kind; + public $name; + public $network; + public $nextHopGateway; + public $nextHopInstance; + public $nextHopIp; + public $nextHopNetwork; + public $priority; + public $selfLink; + public $tags; + protected $warningsType = 'Google_Service_Compute_RouteWarnings'; + protected $warningsDataType = 'array'; + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setDestRange($destRange) { + $this->destRange = $destRange; + } + + public function getDestRange() { + return $this->destRange; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setNetwork($network) { + $this->network = $network; + } + + public function getNetwork() { + return $this->network; + } + + public function setNextHopGateway($nextHopGateway) { + $this->nextHopGateway = $nextHopGateway; + } + + public function getNextHopGateway() { + return $this->nextHopGateway; + } + + public function setNextHopInstance($nextHopInstance) { + $this->nextHopInstance = $nextHopInstance; + } + + public function getNextHopInstance() { + return $this->nextHopInstance; + } + + public function setNextHopIp($nextHopIp) { + $this->nextHopIp = $nextHopIp; + } + + public function getNextHopIp() { + return $this->nextHopIp; + } + + public function setNextHopNetwork($nextHopNetwork) { + $this->nextHopNetwork = $nextHopNetwork; + } + + public function getNextHopNetwork() { + return $this->nextHopNetwork; + } + + public function setPriority($priority) { + $this->priority = $priority; + } + + public function getPriority() { + return $this->priority; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setTags($tags) { + $this->tags = $tags; + } + + public function getTags() { + return $this->tags; + } + + public function setWarnings($warnings) { + $this->warnings = $warnings; + } + + public function getWarnings() { + return $this->warnings; + } +} + +class Google_Service_Compute_RouteList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_Route'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_RouteWarnings extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Compute_RouteWarningsData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_RouteWarningsData extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_Scheduling extends Google_Model { + public $automaticRestart; + public $onHostMaintenance; + + public function setAutomaticRestart($automaticRestart) { + $this->automaticRestart = $automaticRestart; + } + + public function getAutomaticRestart() { + return $this->automaticRestart; + } + + public function setOnHostMaintenance($onHostMaintenance) { + $this->onHostMaintenance = $onHostMaintenance; + } + + public function getOnHostMaintenance() { + return $this->onHostMaintenance; + } +} + +class Google_Service_Compute_SerialPortOutput extends Google_Model { + public $contents; + public $kind; + public $selfLink; + + public function setContents($contents) { + $this->contents = $contents; + } + + public function getContents() { + return $this->contents; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_ServiceAccount extends Google_Collection { + public $email; + public $scopes; + + public function setEmail($email) { + $this->email = $email; + } + + public function getEmail() { + return $this->email; + } + + public function setScopes($scopes) { + $this->scopes = $scopes; + } + + public function getScopes() { + return $this->scopes; + } +} + +class Google_Service_Compute_Snapshot extends Google_Collection { + public $creationTimestamp; + public $description; + public $diskSizeGb; + public $id; + public $kind; + public $licenses; + public $name; + public $selfLink; + public $sourceDisk; + public $sourceDiskId; + public $status; + public $storageBytes; + public $storageBytesStatus; + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setDiskSizeGb($diskSizeGb) { + $this->diskSizeGb = $diskSizeGb; + } + + public function getDiskSizeGb() { + return $this->diskSizeGb; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLicenses($licenses) { + $this->licenses = $licenses; + } + + public function getLicenses() { + return $this->licenses; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setSourceDisk($sourceDisk) { + $this->sourceDisk = $sourceDisk; + } + + public function getSourceDisk() { + return $this->sourceDisk; + } + + public function setSourceDiskId($sourceDiskId) { + $this->sourceDiskId = $sourceDiskId; + } + + public function getSourceDiskId() { + return $this->sourceDiskId; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setStorageBytes($storageBytes) { + $this->storageBytes = $storageBytes; + } + + public function getStorageBytes() { + return $this->storageBytes; + } + + public function setStorageBytesStatus($storageBytesStatus) { + $this->storageBytesStatus = $storageBytesStatus; + } + + public function getStorageBytesStatus() { + return $this->storageBytesStatus; + } +} + +class Google_Service_Compute_SnapshotList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_Snapshot'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_Tags extends Google_Collection { + public $fingerprint; + public $items; + + public function setFingerprint($fingerprint) { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() { + return $this->fingerprint; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } +} + +class Google_Service_Compute_TargetHttpProxy extends Google_Model { + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $selfLink; + public $urlMap; + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setUrlMap($urlMap) { + $this->urlMap = $urlMap; + } + + public function getUrlMap() { + return $this->urlMap; + } +} + +class Google_Service_Compute_TargetHttpProxyList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_TargetHttpProxy'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetInstance extends Google_Model { + public $creationTimestamp; + public $description; + public $id; + public $instance; + public $kind; + public $name; + public $natPolicy; + public $selfLink; + public $zone; + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInstance($instance) { + $this->instance = $instance; + } + + public function getInstance() { + return $this->instance; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setNatPolicy($natPolicy) { + $this->natPolicy = $natPolicy; + } + + public function getNatPolicy() { + return $this->natPolicy; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setZone($zone) { + $this->zone = $zone; + } + + public function getZone() { + return $this->zone; + } +} + +class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model { + public $id; + protected $itemsType = 'Google_Service_Compute_TargetInstancesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetInstanceAggregatedListItems extends Google_Model { + +} + +class Google_Service_Compute_TargetInstanceList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_TargetInstance'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection { + protected $targetInstancesType = 'Google_Service_Compute_TargetInstance'; + protected $targetInstancesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning'; + protected $warningDataType = ''; + + public function setTargetInstances($targetInstances) { + $this->targetInstances = $targetInstances; + } + + public function getTargetInstances() { + return $this->targetInstances; + } + + public function setWarning(Google_Service_Compute_TargetInstancesScopedListWarning $warning) { + $this->warning = $warning; + } + + public function getWarning() { + return $this->warning; + } +} + +class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Compute_TargetInstancesScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_TargetPool extends Google_Collection { + public $backupPool; + public $creationTimestamp; + public $description; + public $failoverRatio; + public $healthChecks; + public $id; + public $instances; + public $kind; + public $name; + public $region; + public $selfLink; + public $sessionAffinity; + + public function setBackupPool($backupPool) { + $this->backupPool = $backupPool; + } + + public function getBackupPool() { + return $this->backupPool; + } + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setFailoverRatio($failoverRatio) { + $this->failoverRatio = $failoverRatio; + } + + public function getFailoverRatio() { + return $this->failoverRatio; + } + + public function setHealthChecks($healthChecks) { + $this->healthChecks = $healthChecks; + } + + public function getHealthChecks() { + return $this->healthChecks; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInstances($instances) { + $this->instances = $instances; + } + + public function getInstances() { + return $this->instances; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setRegion($region) { + $this->region = $region; + } + + public function getRegion() { + return $this->region; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setSessionAffinity($sessionAffinity) { + $this->sessionAffinity = $sessionAffinity; + } + + public function getSessionAffinity() { + return $this->sessionAffinity; + } +} + +class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model { + public $id; + protected $itemsType = 'Google_Service_Compute_TargetPoolsScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetPoolAggregatedListItems extends Google_Model { + +} + +class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection { + protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; + protected $healthStatusDataType = 'array'; + public $kind; + + public function setHealthStatus($healthStatus) { + $this->healthStatus = $healthStatus; + } + + public function getHealthStatus() { + return $this->healthStatus; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_Compute_TargetPoolList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_TargetPool'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection { + protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; + protected $healthChecksDataType = 'array'; + + public function setHealthChecks($healthChecks) { + $this->healthChecks = $healthChecks; + } + + public function getHealthChecks() { + return $this->healthChecks; + } +} + +class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection { + protected $instancesType = 'Google_Service_Compute_InstanceReference'; + protected $instancesDataType = 'array'; + + public function setInstances($instances) { + $this->instances = $instances; + } + + public function getInstances() { + return $this->instances; + } +} + +class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection { + protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference'; + protected $healthChecksDataType = 'array'; + + public function setHealthChecks($healthChecks) { + $this->healthChecks = $healthChecks; + } + + public function getHealthChecks() { + return $this->healthChecks; + } +} + +class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection { + protected $instancesType = 'Google_Service_Compute_InstanceReference'; + protected $instancesDataType = 'array'; + + public function setInstances($instances) { + $this->instances = $instances; + } + + public function getInstances() { + return $this->instances; + } +} + +class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection { + protected $targetPoolsType = 'Google_Service_Compute_TargetPool'; + protected $targetPoolsDataType = 'array'; + protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning'; + protected $warningDataType = ''; + + public function setTargetPools($targetPools) { + $this->targetPools = $targetPools; + } + + public function getTargetPools() { + return $this->targetPools; + } + + public function setWarning(Google_Service_Compute_TargetPoolsScopedListWarning $warning) { + $this->warning = $warning; + } + + public function getWarning() { + return $this->warning; + } +} + +class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Compute_TargetPoolsScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model { + public $key; + public $value; + + public function setKey($key) { + $this->key = $key; + } + + public function getKey() { + return $this->key; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_Compute_TargetReference extends Google_Model { + public $target; + + public function setTarget($target) { + $this->target = $target; + } + + public function getTarget() { + return $this->target; + } +} + +class Google_Service_Compute_TestFailure extends Google_Model { + public $actualService; + public $expectedService; + public $host; + public $path; + + public function setActualService($actualService) { + $this->actualService = $actualService; + } + + public function getActualService() { + return $this->actualService; + } + + public function setExpectedService($expectedService) { + $this->expectedService = $expectedService; + } + + public function getExpectedService() { + return $this->expectedService; + } + + public function setHost($host) { + $this->host = $host; + } + + public function getHost() { + return $this->host; + } + + public function setPath($path) { + $this->path = $path; + } + + public function getPath() { + return $this->path; + } +} + +class Google_Service_Compute_UrlMap extends Google_Collection { + public $creationTimestamp; + public $defaultService; + public $description; + public $fingerprint; + protected $hostRulesType = 'Google_Service_Compute_HostRule'; + protected $hostRulesDataType = 'array'; + public $id; + public $kind; + public $name; + protected $pathMatchersType = 'Google_Service_Compute_PathMatcher'; + protected $pathMatchersDataType = 'array'; + public $selfLink; + protected $testsType = 'Google_Service_Compute_UrlMapTest'; + protected $testsDataType = 'array'; + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDefaultService($defaultService) { + $this->defaultService = $defaultService; + } + + public function getDefaultService() { + return $this->defaultService; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setFingerprint($fingerprint) { + $this->fingerprint = $fingerprint; + } + + public function getFingerprint() { + return $this->fingerprint; + } + + public function setHostRules($hostRules) { + $this->hostRules = $hostRules; + } + + public function getHostRules() { + return $this->hostRules; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setPathMatchers($pathMatchers) { + $this->pathMatchers = $pathMatchers; + } + + public function getPathMatchers() { + return $this->pathMatchers; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setTests($tests) { + $this->tests = $tests; + } + + public function getTests() { + return $this->tests; + } +} + +class Google_Service_Compute_UrlMapList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_UrlMap'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_UrlMapReference extends Google_Model { + public $urlMap; + + public function setUrlMap($urlMap) { + $this->urlMap = $urlMap; + } + + public function getUrlMap() { + return $this->urlMap; + } +} + +class Google_Service_Compute_UrlMapTest extends Google_Model { + public $description; + public $host; + public $path; + public $service; + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setHost($host) { + $this->host = $host; + } + + public function getHost() { + return $this->host; + } + + public function setPath($path) { + $this->path = $path; + } + + public function getPath() { + return $this->path; + } + + public function setService($service) { + $this->service = $service; + } + + public function getService() { + return $this->service; + } +} + +class Google_Service_Compute_UrlMapValidationResult extends Google_Collection { + public $loadErrors; + public $loadSucceeded; + protected $testFailuresType = 'Google_Service_Compute_TestFailure'; + protected $testFailuresDataType = 'array'; + public $testPassed; + + public function setLoadErrors($loadErrors) { + $this->loadErrors = $loadErrors; + } + + public function getLoadErrors() { + return $this->loadErrors; + } + + public function setLoadSucceeded($loadSucceeded) { + $this->loadSucceeded = $loadSucceeded; + } + + public function getLoadSucceeded() { + return $this->loadSucceeded; + } + + public function setTestFailures($testFailures) { + $this->testFailures = $testFailures; + } + + public function getTestFailures() { + return $this->testFailures; + } + + public function setTestPassed($testPassed) { + $this->testPassed = $testPassed; + } + + public function getTestPassed() { + return $this->testPassed; + } +} + +class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model { + protected $resourceType = 'Google_Service_Compute_UrlMap'; + protected $resourceDataType = ''; + + public function setResource(Google_Service_Compute_UrlMap $resource) { + $this->resource = $resource; + } + + public function getResource() { + return $this->resource; + } +} + +class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model { + protected $resultType = 'Google_Service_Compute_UrlMapValidationResult'; + protected $resultDataType = ''; + + public function setResult(Google_Service_Compute_UrlMapValidationResult $result) { + $this->result = $result; + } + + public function getResult() { + return $this->result; + } +} + +class Google_Service_Compute_UsageExportLocation extends Google_Model { + public $bucketName; + public $reportNamePrefix; + + public function setBucketName($bucketName) { + $this->bucketName = $bucketName; + } + + public function getBucketName() { + return $this->bucketName; + } + + public function setReportNamePrefix($reportNamePrefix) { + $this->reportNamePrefix = $reportNamePrefix; + } + + public function getReportNamePrefix() { + return $this->reportNamePrefix; + } +} + +class Google_Service_Compute_Zone extends Google_Collection { + public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; + public $description; + public $id; + public $kind; + protected $maintenanceWindowsType = 'Google_Service_Compute_ZoneMaintenanceWindows'; + protected $maintenanceWindowsDataType = 'array'; + public $name; + public $region; + public $selfLink; + public $status; + + public function setCreationTimestamp($creationTimestamp) { + $this->creationTimestamp = $creationTimestamp; + } + + public function getCreationTimestamp() { + return $this->creationTimestamp; + } + + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { + $this->deprecated = $deprecated; + } + + public function getDeprecated() { + return $this->deprecated; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMaintenanceWindows($maintenanceWindows) { + $this->maintenanceWindows = $maintenanceWindows; + } + + public function getMaintenanceWindows() { + return $this->maintenanceWindows; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setRegion($region) { + $this->region = $region; + } + + public function getRegion() { + return $this->region; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } +} + +class Google_Service_Compute_ZoneList extends Google_Collection { + public $id; + protected $itemsType = 'Google_Service_Compute_Zone'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } +} + +class Google_Service_Compute_ZoneMaintenanceWindows extends Google_Model { + public $beginTime; + public $description; + public $endTime; + public $name; + + public function setBeginTime($beginTime) { + $this->beginTime = $beginTime; + } + + public function getBeginTime() { + return $this->beginTime; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setEndTime($endTime) { + $this->endTime = $endTime; + } + + public function getEndTime() { + return $this->endTime; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } } diff --git a/oauth/Google/Service/Coordinate.php b/oauth/Google/Service/Coordinate.php index 285da1f..73b66c5 100644 --- a/oauth/Google/Service/Coordinate.php +++ b/oauth/Google/Service/Coordinate.php @@ -29,408 +29,406 @@ * * @author Google, Inc. */ -class Google_Service_Coordinate extends Google_Service -{ - /** View and manage your Google Maps Coordinate jobs. */ - const COORDINATE = "https://www.googleapis.com/auth/coordinate"; - /** View your Google Coordinate jobs. */ - const COORDINATE_READONLY = "https://www.googleapis.com/auth/coordinate.readonly"; +class Google_Service_Coordinate extends Google_Service { + /** View and manage your Google Maps Coordinate jobs. */ + const COORDINATE = "https://www.googleapis.com/auth/coordinate"; + /** View your Google Coordinate jobs. */ + const COORDINATE_READONLY = "https://www.googleapis.com/auth/coordinate.readonly"; - public $customFieldDef; - public $jobs; - public $location; - public $schedule; - public $worker; - + public $customFieldDef; + public $jobs; + public $location; + public $schedule; + public $worker; - /** - * Constructs the internal representation of the Coordinate service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'coordinate/v1/teams/'; - $this->version = 'v1'; - $this->serviceName = 'coordinate'; - $this->customFieldDef = new Google_Service_Coordinate_CustomFieldDef_Resource( - $this, - $this->serviceName, - 'customFieldDef', - array( - 'methods' => array( - 'list' => array( - 'path' => '{teamId}/custom_fields', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->jobs = new Google_Service_Coordinate_Jobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'get' => array( - 'path' => '{teamId}/jobs/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{teamId}/jobs', - 'httpMethod' => 'POST', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'address' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'lat' => array( - 'location' => 'query', - 'type' => 'number', - 'required' => true, - ), - 'lng' => array( - 'location' => 'query', - 'type' => 'number', - 'required' => true, - ), - 'title' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'customerName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'note' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'assignee' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerPhoneNumber' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customField' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'list' => array( - 'path' => '{teamId}/jobs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'minModifiedTimestampMs' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => '{teamId}/jobs/{jobId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customerName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'title' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'note' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'assignee' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerPhoneNumber' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'address' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'lat' => array( - 'location' => 'query', - 'type' => 'number', - ), - 'progress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'lng' => array( - 'location' => 'query', - 'type' => 'number', - ), - 'customField' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'update' => array( - 'path' => '{teamId}/jobs/{jobId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customerName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'title' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'note' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'assignee' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerPhoneNumber' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'address' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'lat' => array( - 'location' => 'query', - 'type' => 'number', - ), - 'progress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'lng' => array( - 'location' => 'query', - 'type' => 'number', - ), - 'customField' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - $this->location = new Google_Service_Coordinate_Location_Resource( - $this, - $this->serviceName, - 'location', - array( - 'methods' => array( - 'list' => array( - 'path' => '{teamId}/workers/{workerEmail}/locations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'workerEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startTimestampMs' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->schedule = new Google_Service_Coordinate_Schedule_Resource( - $this, - $this->serviceName, - 'schedule', - array( - 'methods' => array( - 'get' => array( - 'path' => '{teamId}/jobs/{jobId}/schedule', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{teamId}/jobs/{jobId}/schedule', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'allDay' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'duration' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => '{teamId}/jobs/{jobId}/schedule', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'allDay' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'duration' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->worker = new Google_Service_Coordinate_Worker_Resource( - $this, - $this->serviceName, - 'worker', - array( - 'methods' => array( - 'list' => array( - 'path' => '{teamId}/workers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'teamId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Coordinate service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'coordinate/v1/teams/'; + $this->version = 'v1'; + $this->serviceName = 'coordinate'; + + $this->customFieldDef = new Google_Service_Coordinate_CustomFieldDef_Resource( + $this, + $this->serviceName, + 'customFieldDef', + array( + 'methods' => array( + 'list' => array( + 'path' => '{teamId}/custom_fields', + 'httpMethod' => 'GET', + 'parameters' => array( + 'teamId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->jobs = new Google_Service_Coordinate_Jobs_Resource( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'get' => array( + 'path' => '{teamId}/jobs/{jobId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'teamId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{teamId}/jobs', + 'httpMethod' => 'POST', + 'parameters' => array( + 'teamId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'address' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'lat' => array( + 'location' => 'query', + 'type' => 'number', + 'required' => true, + ), + 'lng' => array( + 'location' => 'query', + 'type' => 'number', + 'required' => true, + ), + 'title' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'customerName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'note' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'assignee' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customerPhoneNumber' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customField' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), 'list' => array( + 'path' => '{teamId}/jobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'teamId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'minModifiedTimestampMs' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => '{teamId}/jobs/{jobId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'teamId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customerName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'title' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'note' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'assignee' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customerPhoneNumber' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'address' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'lat' => array( + 'location' => 'query', + 'type' => 'number', + ), + 'progress' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'lng' => array( + 'location' => 'query', + 'type' => 'number', + ), + 'customField' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), 'update' => array( + 'path' => '{teamId}/jobs/{jobId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'teamId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customerName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'title' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'note' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'assignee' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customerPhoneNumber' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'address' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'lat' => array( + 'location' => 'query', + 'type' => 'number', + ), + 'progress' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'lng' => array( + 'location' => 'query', + 'type' => 'number', + ), + 'customField' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->location = new Google_Service_Coordinate_Location_Resource( + $this, + $this->serviceName, + 'location', + array( + 'methods' => array( + 'list' => array( + 'path' => '{teamId}/workers/{workerEmail}/locations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'teamId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'workerEmail' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startTimestampMs' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->schedule = new Google_Service_Coordinate_Schedule_Resource( + $this, + $this->serviceName, + 'schedule', + array( + 'methods' => array( + 'get' => array( + 'path' => '{teamId}/jobs/{jobId}/schedule', + 'httpMethod' => 'GET', + 'parameters' => array( + 'teamId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => '{teamId}/jobs/{jobId}/schedule', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'teamId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'allDay' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'duration' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => '{teamId}/jobs/{jobId}/schedule', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'teamId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'allDay' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'duration' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->worker = new Google_Service_Coordinate_Worker_Resource( + $this, + $this->serviceName, + 'worker', + array( + 'methods' => array( + 'list' => array( + 'path' => '{teamId}/workers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'teamId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -442,24 +440,22 @@ class Google_Service_Coordinate extends Google_Service * $customFieldDef = $coordinateService->customFieldDef; * */ -class Google_Service_Coordinate_CustomFieldDef_Resource extends Google_Service_Resource -{ +class Google_Service_Coordinate_CustomFieldDef_Resource extends Google_Service_Resource { - /** - * Retrieves a list of custom field definitions for a team. - * (customFieldDef.listCustomFieldDef) - * - * @param string $teamId - * Team ID - * @param array $optParams Optional parameters. - * @return Google_Service_Coordinate_CustomFieldDefListResponse - */ - public function listCustomFieldDef($teamId, $optParams = array()) - { - $params = array('teamId' => $teamId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Coordinate_CustomFieldDefListResponse"); - } + /** + * Retrieves a list of custom field definitions for a team. + * (customFieldDef.listCustomFieldDef) + * + * @param string $teamId + * Team ID + * @param array $optParams Optional parameters. + * @return Google_Service_Coordinate_CustomFieldDefListResponse + */ + public function listCustomFieldDef($teamId, $optParams = array()) { + $params = array('teamId' => $teamId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Coordinate_CustomFieldDefListResponse"); + } } /** @@ -470,159 +466,157 @@ class Google_Service_Coordinate_CustomFieldDef_Resource extends Google_Service_R * $jobs = $coordinateService->jobs; * */ -class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource -{ +class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource { - /** - * Retrieves a job, including all the changes made to the job. (jobs.get) - * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number - * @param array $optParams Optional parameters. - * @return Google_Service_Coordinate_Job - */ - public function get($teamId, $jobId, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Coordinate_Job"); - } - /** - * Inserts a new job. Only the state field of the job should be set. - * (jobs.insert) - * - * @param string $teamId - * Team ID - * @param string $address - * Job address as newline (Unix) separated string - * @param double $lat - * The latitude coordinate of this job's location. - * @param double $lng - * The longitude coordinate of this job's location. - * @param string $title - * Job title - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string customerName - * Customer name - * @opt_param string note - * Job note as newline (Unix) separated string - * @opt_param string assignee - * Assignee email address, or empty string to unassign. - * @opt_param string customerPhoneNumber - * Customer phone number - * @opt_param string customField - * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' - * @return Google_Service_Coordinate_Job - */ - public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coordinate_Job $postBody, $optParams = array()) - { - $params = array('teamId' => $teamId, 'address' => $address, 'lat' => $lat, 'lng' => $lng, 'title' => $title, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Coordinate_Job"); - } - /** - * Retrieves jobs created or modified since the given timestamp. (jobs.listJobs) - * - * @param string $teamId - * Team ID - * @param array $optParams Optional parameters. - * - * @opt_param string minModifiedTimestampMs - * Minimum time a job was modified in milliseconds since epoch. - * @opt_param string maxResults - * Maximum number of results to return in one page. - * @opt_param string pageToken - * Continuation token - * @return Google_Service_Coordinate_JobListResponse - */ - public function listJobs($teamId, $optParams = array()) - { - $params = array('teamId' => $teamId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Coordinate_JobListResponse"); - } - /** - * Updates a job. Fields that are set in the job state will be updated. This - * method supports patch semantics. (jobs.patch) - * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string customerName - * Customer name - * @opt_param string title - * Job title - * @opt_param string note - * Job note as newline (Unix) separated string - * @opt_param string assignee - * Assignee email address, or empty string to unassign. - * @opt_param string customerPhoneNumber - * Customer phone number - * @opt_param string address - * Job address as newline (Unix) separated string - * @opt_param double lat - * The latitude coordinate of this job's location. - * @opt_param string progress - * Job progress - * @opt_param double lng - * The longitude coordinate of this job's location. - * @opt_param string customField - * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' - * @return Google_Service_Coordinate_Job - */ - public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Coordinate_Job"); - } - /** - * Updates a job. Fields that are set in the job state will be updated. - * (jobs.update) - * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number - * @param Google_Job $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string customerName - * Customer name - * @opt_param string title - * Job title - * @opt_param string note - * Job note as newline (Unix) separated string - * @opt_param string assignee - * Assignee email address, or empty string to unassign. - * @opt_param string customerPhoneNumber - * Customer phone number - * @opt_param string address - * Job address as newline (Unix) separated string - * @opt_param double lat - * The latitude coordinate of this job's location. - * @opt_param string progress - * Job progress - * @opt_param double lng - * The longitude coordinate of this job's location. - * @opt_param string customField - * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' - * @return Google_Service_Coordinate_Job - */ - public function update($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Coordinate_Job"); - } + /** + * Retrieves a job, including all the changes made to the job. (jobs.get) + * + * @param string $teamId + * Team ID + * @param string $jobId + * Job number + * @param array $optParams Optional parameters. + * @return Google_Service_Coordinate_Job + */ + public function get($teamId, $jobId, $optParams = array()) { + $params = array('teamId' => $teamId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Coordinate_Job"); + } + + /** + * Inserts a new job. Only the state field of the job should be set. + * (jobs.insert) + * + * @param string $teamId + * Team ID + * @param string $address + * Job address as newline (Unix) separated string + * @param double $lat + * The latitude coordinate of this job's location. + * @param double $lng + * The longitude coordinate of this job's location. + * @param string $title + * Job title + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string customerName + * Customer name + * @opt_param string note + * Job note as newline (Unix) separated string + * @opt_param string assignee + * Assignee email address, or empty string to unassign. + * @opt_param string customerPhoneNumber + * Customer phone number + * @opt_param string customField + * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' + * @return Google_Service_Coordinate_Job + */ + public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coordinate_Job $postBody, $optParams = array()) { + $params = array('teamId' => $teamId, 'address' => $address, 'lat' => $lat, 'lng' => $lng, 'title' => $title, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Coordinate_Job"); + } + + /** + * Retrieves jobs created or modified since the given timestamp. (jobs.listJobs) + * + * @param string $teamId + * Team ID + * @param array $optParams Optional parameters. + * + * @opt_param string minModifiedTimestampMs + * Minimum time a job was modified in milliseconds since epoch. + * @opt_param string maxResults + * Maximum number of results to return in one page. + * @opt_param string pageToken + * Continuation token + * @return Google_Service_Coordinate_JobListResponse + */ + public function listJobs($teamId, $optParams = array()) { + $params = array('teamId' => $teamId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Coordinate_JobListResponse"); + } + + /** + * Updates a job. Fields that are set in the job state will be updated. This + * method supports patch semantics. (jobs.patch) + * + * @param string $teamId + * Team ID + * @param string $jobId + * Job number + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string customerName + * Customer name + * @opt_param string title + * Job title + * @opt_param string note + * Job note as newline (Unix) separated string + * @opt_param string assignee + * Assignee email address, or empty string to unassign. + * @opt_param string customerPhoneNumber + * Customer phone number + * @opt_param string address + * Job address as newline (Unix) separated string + * @opt_param double lat + * The latitude coordinate of this job's location. + * @opt_param string progress + * Job progress + * @opt_param double lng + * The longitude coordinate of this job's location. + * @opt_param string customField + * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' + * @return Google_Service_Coordinate_Job + */ + public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) { + $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Coordinate_Job"); + } + + /** + * Updates a job. Fields that are set in the job state will be updated. + * (jobs.update) + * + * @param string $teamId + * Team ID + * @param string $jobId + * Job number + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string customerName + * Customer name + * @opt_param string title + * Job title + * @opt_param string note + * Job note as newline (Unix) separated string + * @opt_param string assignee + * Assignee email address, or empty string to unassign. + * @opt_param string customerPhoneNumber + * Customer phone number + * @opt_param string address + * Job address as newline (Unix) separated string + * @opt_param double lat + * The latitude coordinate of this job's location. + * @opt_param string progress + * Job progress + * @opt_param double lng + * The longitude coordinate of this job's location. + * @opt_param string customField + * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' + * @return Google_Service_Coordinate_Job + */ + public function update($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) { + $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Coordinate_Job"); + } } /** @@ -633,32 +627,30 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource * $location = $coordinateService->location; * */ -class Google_Service_Coordinate_Location_Resource extends Google_Service_Resource -{ +class Google_Service_Coordinate_Location_Resource extends Google_Service_Resource { - /** - * Retrieves a list of locations for a worker. (location.listLocation) - * - * @param string $teamId - * Team ID - * @param string $workerEmail - * Worker email address. - * @param string $startTimestampMs - * Start timestamp in milliseconds since the epoch. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Continuation token - * @opt_param string maxResults - * Maximum number of results to return in one page. - * @return Google_Service_Coordinate_LocationListResponse - */ - public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array()) - { - $params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Coordinate_LocationListResponse"); - } + /** + * Retrieves a list of locations for a worker. (location.listLocation) + * + * @param string $teamId + * Team ID + * @param string $workerEmail + * Worker email address. + * @param string $startTimestampMs + * Start timestamp in milliseconds since the epoch. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Continuation token + * @opt_param string maxResults + * Maximum number of results to return in one page. + * @return Google_Service_Coordinate_LocationListResponse + */ + public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array()) { + $params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Coordinate_LocationListResponse"); + } } /** @@ -669,80 +661,78 @@ class Google_Service_Coordinate_Location_Resource extends Google_Service_Resourc * $schedule = $coordinateService->schedule; * */ -class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resource -{ +class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resource { - /** - * Retrieves the schedule for a job. (schedule.get) - * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number - * @param array $optParams Optional parameters. - * @return Google_Service_Coordinate_Schedule - */ - public function get($teamId, $jobId, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Coordinate_Schedule"); - } - /** - * Replaces the schedule of a job with the provided schedule. This method - * supports patch semantics. (schedule.patch) - * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number - * @param Google_Schedule $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool allDay - * Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if - * this is true. - * @opt_param string startTime - * Scheduled start time in milliseconds since epoch. - * @opt_param string duration - * Job duration in milliseconds. - * @opt_param string endTime - * Scheduled end time in milliseconds since epoch. - * @return Google_Service_Coordinate_Schedule - */ - public function patch($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Coordinate_Schedule"); - } - /** - * Replaces the schedule of a job with the provided schedule. (schedule.update) - * - * @param string $teamId - * Team ID - * @param string $jobId - * Job number - * @param Google_Schedule $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool allDay - * Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if - * this is true. - * @opt_param string startTime - * Scheduled start time in milliseconds since epoch. - * @opt_param string duration - * Job duration in milliseconds. - * @opt_param string endTime - * Scheduled end time in milliseconds since epoch. - * @return Google_Service_Coordinate_Schedule - */ - public function update($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) - { - $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Coordinate_Schedule"); - } + /** + * Retrieves the schedule for a job. (schedule.get) + * + * @param string $teamId + * Team ID + * @param string $jobId + * Job number + * @param array $optParams Optional parameters. + * @return Google_Service_Coordinate_Schedule + */ + public function get($teamId, $jobId, $optParams = array()) { + $params = array('teamId' => $teamId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Coordinate_Schedule"); + } + + /** + * Replaces the schedule of a job with the provided schedule. This method + * supports patch semantics. (schedule.patch) + * + * @param string $teamId + * Team ID + * @param string $jobId + * Job number + * @param Google_Schedule $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool allDay + * Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if + * this is true. + * @opt_param string startTime + * Scheduled start time in milliseconds since epoch. + * @opt_param string duration + * Job duration in milliseconds. + * @opt_param string endTime + * Scheduled end time in milliseconds since epoch. + * @return Google_Service_Coordinate_Schedule + */ + public function patch($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) { + $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Coordinate_Schedule"); + } + + /** + * Replaces the schedule of a job with the provided schedule. (schedule.update) + * + * @param string $teamId + * Team ID + * @param string $jobId + * Job number + * @param Google_Schedule $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool allDay + * Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if + * this is true. + * @opt_param string startTime + * Scheduled start time in milliseconds since epoch. + * @opt_param string duration + * Job duration in milliseconds. + * @opt_param string endTime + * Scheduled end time in milliseconds since epoch. + * @return Google_Service_Coordinate_Schedule + */ + public function update($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array()) { + $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Coordinate_Schedule"); + } } /** @@ -753,722 +743,589 @@ class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resourc * $worker = $coordinateService->worker; * */ -class Google_Service_Coordinate_Worker_Resource extends Google_Service_Resource -{ +class Google_Service_Coordinate_Worker_Resource extends Google_Service_Resource { - /** - * Retrieves a list of workers in a team. (worker.listWorker) - * - * @param string $teamId - * Team ID - * @param array $optParams Optional parameters. - * @return Google_Service_Coordinate_WorkerListResponse - */ - public function listWorker($teamId, $optParams = array()) - { - $params = array('teamId' => $teamId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Coordinate_WorkerListResponse"); - } + /** + * Retrieves a list of workers in a team. (worker.listWorker) + * + * @param string $teamId + * Team ID + * @param array $optParams Optional parameters. + * @return Google_Service_Coordinate_WorkerListResponse + */ + public function listWorker($teamId, $optParams = array()) { + $params = array('teamId' => $teamId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Coordinate_WorkerListResponse"); + } } +class Google_Service_Coordinate_CustomField extends Google_Model { + public $customFieldId; + public $kind; + public $value; + public function setCustomFieldId($customFieldId) { + $this->customFieldId = $customFieldId; + } -class Google_Service_Coordinate_CustomField extends Google_Model -{ - public $customFieldId; - public $kind; - public $value; + public function getCustomFieldId() { + return $this->customFieldId; + } - public function setCustomFieldId($customFieldId) - { - $this->customFieldId = $customFieldId; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getCustomFieldId() - { - return $this->customFieldId; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setValue($value) { + $this->value = $value; + } - public function getKind() - { - return $this->kind; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Coordinate_CustomFieldDef extends Google_Model -{ - public $enabled; - public $id; - public $kind; - public $name; - public $requiredForCheckout; - public $type; +class Google_Service_Coordinate_CustomFieldDef extends Google_Model { + public $enabled; + public $id; + public $kind; + public $name; + public $requiredForCheckout; + public $type; - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } + public function setEnabled($enabled) { + $this->enabled = $enabled; + } - public function getEnabled() - { - return $this->enabled; - } + public function getEnabled() { + return $this->enabled; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setRequiredForCheckout($requiredForCheckout) - { - $this->requiredForCheckout = $requiredForCheckout; - } + public function setRequiredForCheckout($requiredForCheckout) { + $this->requiredForCheckout = $requiredForCheckout; + } - public function getRequiredForCheckout() - { - return $this->requiredForCheckout; - } + public function getRequiredForCheckout() { + return $this->requiredForCheckout; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Coordinate_CustomFieldDef'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Coordinate_CustomFieldDef'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Coordinate_CustomFields extends Google_Collection -{ - protected $customFieldType = 'Google_Service_Coordinate_CustomField'; - protected $customFieldDataType = 'array'; - public $kind; +class Google_Service_Coordinate_CustomFields extends Google_Collection { + protected $customFieldType = 'Google_Service_Coordinate_CustomField'; + protected $customFieldDataType = 'array'; + public $kind; - public function setCustomField($customField) - { - $this->customField = $customField; - } + public function setCustomField($customField) { + $this->customField = $customField; + } - public function getCustomField() - { - return $this->customField; - } + public function getCustomField() { + return $this->customField; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Coordinate_Job extends Google_Collection -{ - public $id; - protected $jobChangeType = 'Google_Service_Coordinate_JobChange'; - protected $jobChangeDataType = 'array'; - public $kind; - protected $stateType = 'Google_Service_Coordinate_JobState'; - protected $stateDataType = ''; +class Google_Service_Coordinate_Job extends Google_Collection { + public $id; + protected $jobChangeType = 'Google_Service_Coordinate_JobChange'; + protected $jobChangeDataType = 'array'; + public $kind; + protected $stateType = 'Google_Service_Coordinate_JobState'; + protected $stateDataType = ''; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setJobChange($jobChange) - { - $this->jobChange = $jobChange; - } + public function setJobChange($jobChange) { + $this->jobChange = $jobChange; + } - public function getJobChange() - { - return $this->jobChange; - } + public function getJobChange() { + return $this->jobChange; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setState(Google_Service_Coordinate_JobState $state) - { - $this->state = $state; - } + public function setState(Google_Service_Coordinate_JobState $state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } } -class Google_Service_Coordinate_JobChange extends Google_Model -{ - public $kind; - protected $stateType = 'Google_Service_Coordinate_JobState'; - protected $stateDataType = ''; - public $timestamp; +class Google_Service_Coordinate_JobChange extends Google_Model { + public $kind; + protected $stateType = 'Google_Service_Coordinate_JobState'; + protected $stateDataType = ''; + public $timestamp; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setState(Google_Service_Coordinate_JobState $state) - { - $this->state = $state; - } + public function setState(Google_Service_Coordinate_JobState $state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } + public function setTimestamp($timestamp) { + $this->timestamp = $timestamp; + } - public function getTimestamp() - { - return $this->timestamp; - } + public function getTimestamp() { + return $this->timestamp; + } } -class Google_Service_Coordinate_JobListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Coordinate_Job'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Coordinate_JobListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Coordinate_Job'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Coordinate_JobState extends Google_Collection -{ - public $assignee; - protected $customFieldsType = 'Google_Service_Coordinate_CustomFields'; - protected $customFieldsDataType = ''; - public $customerName; - public $customerPhoneNumber; - public $kind; - protected $locationType = 'Google_Service_Coordinate_Location'; - protected $locationDataType = ''; - public $note; - public $progress; - public $title; +class Google_Service_Coordinate_JobState extends Google_Collection { + public $assignee; + protected $customFieldsType = 'Google_Service_Coordinate_CustomFields'; + protected $customFieldsDataType = ''; + public $customerName; + public $customerPhoneNumber; + public $kind; + protected $locationType = 'Google_Service_Coordinate_Location'; + protected $locationDataType = ''; + public $note; + public $progress; + public $title; - public function setAssignee($assignee) - { - $this->assignee = $assignee; - } + public function setAssignee($assignee) { + $this->assignee = $assignee; + } - public function getAssignee() - { - return $this->assignee; - } + public function getAssignee() { + return $this->assignee; + } - public function setCustomFields(Google_Service_Coordinate_CustomFields $customFields) - { - $this->customFields = $customFields; - } + public function setCustomFields(Google_Service_Coordinate_CustomFields $customFields) { + $this->customFields = $customFields; + } - public function getCustomFields() - { - return $this->customFields; - } + public function getCustomFields() { + return $this->customFields; + } - public function setCustomerName($customerName) - { - $this->customerName = $customerName; - } + public function setCustomerName($customerName) { + $this->customerName = $customerName; + } - public function getCustomerName() - { - return $this->customerName; - } + public function getCustomerName() { + return $this->customerName; + } - public function setCustomerPhoneNumber($customerPhoneNumber) - { - $this->customerPhoneNumber = $customerPhoneNumber; - } + public function setCustomerPhoneNumber($customerPhoneNumber) { + $this->customerPhoneNumber = $customerPhoneNumber; + } - public function getCustomerPhoneNumber() - { - return $this->customerPhoneNumber; - } + public function getCustomerPhoneNumber() { + return $this->customerPhoneNumber; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLocation(Google_Service_Coordinate_Location $location) - { - $this->location = $location; - } + public function setLocation(Google_Service_Coordinate_Location $location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setNote($note) - { - $this->note = $note; - } + public function setNote($note) { + $this->note = $note; + } - public function getNote() - { - return $this->note; - } + public function getNote() { + return $this->note; + } - public function setProgress($progress) - { - $this->progress = $progress; - } + public function setProgress($progress) { + $this->progress = $progress; + } - public function getProgress() - { - return $this->progress; - } + public function getProgress() { + return $this->progress; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_Coordinate_Location extends Google_Collection -{ - public $addressLine; - public $kind; - public $lat; - public $lng; +class Google_Service_Coordinate_Location extends Google_Collection { + public $addressLine; + public $kind; + public $lat; + public $lng; - public function setAddressLine($addressLine) - { - $this->addressLine = $addressLine; - } + public function setAddressLine($addressLine) { + $this->addressLine = $addressLine; + } - public function getAddressLine() - { - return $this->addressLine; - } + public function getAddressLine() { + return $this->addressLine; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLat($lat) - { - $this->lat = $lat; - } + public function setLat($lat) { + $this->lat = $lat; + } - public function getLat() - { - return $this->lat; - } + public function getLat() { + return $this->lat; + } - public function setLng($lng) - { - $this->lng = $lng; - } + public function setLng($lng) { + $this->lng = $lng; + } - public function getLng() - { - return $this->lng; - } + public function getLng() { + return $this->lng; + } } -class Google_Service_Coordinate_LocationListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Coordinate_LocationRecord'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $tokenPaginationType = 'Google_Service_Coordinate_TokenPagination'; - protected $tokenPaginationDataType = ''; +class Google_Service_Coordinate_LocationListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Coordinate_LocationRecord'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $tokenPaginationType = 'Google_Service_Coordinate_TokenPagination'; + protected $tokenPaginationDataType = ''; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTokenPagination(Google_Service_Coordinate_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } + public function setTokenPagination(Google_Service_Coordinate_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } - public function getTokenPagination() - { - return $this->tokenPagination; - } + public function getTokenPagination() { + return $this->tokenPagination; + } } -class Google_Service_Coordinate_LocationRecord extends Google_Model -{ - public $collectionTime; - public $confidenceRadius; - public $kind; - public $latitude; - public $longitude; +class Google_Service_Coordinate_LocationRecord extends Google_Model { + public $collectionTime; + public $confidenceRadius; + public $kind; + public $latitude; + public $longitude; - public function setCollectionTime($collectionTime) - { - $this->collectionTime = $collectionTime; - } + public function setCollectionTime($collectionTime) { + $this->collectionTime = $collectionTime; + } - public function getCollectionTime() - { - return $this->collectionTime; - } + public function getCollectionTime() { + return $this->collectionTime; + } - public function setConfidenceRadius($confidenceRadius) - { - $this->confidenceRadius = $confidenceRadius; - } + public function setConfidenceRadius($confidenceRadius) { + $this->confidenceRadius = $confidenceRadius; + } - public function getConfidenceRadius() - { - return $this->confidenceRadius; - } + public function getConfidenceRadius() { + return $this->confidenceRadius; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } + public function setLatitude($latitude) { + $this->latitude = $latitude; + } - public function getLatitude() - { - return $this->latitude; - } + public function getLatitude() { + return $this->latitude; + } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } + public function setLongitude($longitude) { + $this->longitude = $longitude; + } - public function getLongitude() - { - return $this->longitude; - } + public function getLongitude() { + return $this->longitude; + } } -class Google_Service_Coordinate_Schedule extends Google_Model -{ - public $allDay; - public $duration; - public $endTime; - public $kind; - public $startTime; +class Google_Service_Coordinate_Schedule extends Google_Model { + public $allDay; + public $duration; + public $endTime; + public $kind; + public $startTime; - public function setAllDay($allDay) - { - $this->allDay = $allDay; - } + public function setAllDay($allDay) { + $this->allDay = $allDay; + } - public function getAllDay() - { - return $this->allDay; - } + public function getAllDay() { + return $this->allDay; + } - public function setDuration($duration) - { - $this->duration = $duration; - } + public function setDuration($duration) { + $this->duration = $duration; + } - public function getDuration() - { - return $this->duration; - } + public function getDuration() { + return $this->duration; + } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } + public function setEndTime($endTime) { + $this->endTime = $endTime; + } - public function getEndTime() - { - return $this->endTime; - } + public function getEndTime() { + return $this->endTime; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getStartTime() - { - return $this->startTime; - } + public function getStartTime() { + return $this->startTime; + } } -class Google_Service_Coordinate_TokenPagination extends Google_Model -{ - public $kind; - public $nextPageToken; - public $previousPageToken; +class Google_Service_Coordinate_TokenPagination extends Google_Model { + public $kind; + public $nextPageToken; + public $previousPageToken; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setPreviousPageToken($previousPageToken) - { - $this->previousPageToken = $previousPageToken; - } + public function setPreviousPageToken($previousPageToken) { + $this->previousPageToken = $previousPageToken; + } - public function getPreviousPageToken() - { - return $this->previousPageToken; - } + public function getPreviousPageToken() { + return $this->previousPageToken; + } } -class Google_Service_Coordinate_Worker extends Google_Model -{ - public $id; - public $kind; +class Google_Service_Coordinate_Worker extends Google_Model { + public $id; + public $kind; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Coordinate_WorkerListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Coordinate_Worker'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Coordinate_WorkerListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Coordinate_Worker'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } diff --git a/oauth/Google/Service/Customsearch.php b/oauth/Google/Service/Customsearch.php index b45c946..ec85641 100644 --- a/oauth/Google/Service/Customsearch.php +++ b/oauth/Google/Service/Customsearch.php @@ -29,170 +29,168 @@ * * @author Google, Inc. */ -class Google_Service_Customsearch extends Google_Service -{ +class Google_Service_Customsearch extends Google_Service { - public $cse; - + public $cse; - /** - * Constructs the internal representation of the Customsearch service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'customsearch/'; - $this->version = 'v1'; - $this->serviceName = 'customsearch'; - $this->cse = new Google_Service_Customsearch_Cse_Resource( - $this, - $this->serviceName, - 'cse', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v1', - 'httpMethod' => 'GET', - 'parameters' => array( - 'q' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orTerms' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'highRange' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'num' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'cr' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'imgType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'gl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'relatedSite' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'fileType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'start' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'imgDominantColor' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'lr' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteSearch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'cref' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dateRestrict' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'safe' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'c2coff' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'googlehost' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hq' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'exactTerms' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'lowRange' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'imgSize' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'imgColorType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'rights' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'excludeTerms' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'linkSite' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'cx' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'siteSearchFilter' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Customsearch service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'customsearch/'; + $this->version = 'v1'; + $this->serviceName = 'customsearch'; + + $this->cse = new Google_Service_Customsearch_Cse_Resource( + $this, + $this->serviceName, + 'cse', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1', + 'httpMethod' => 'GET', + 'parameters' => array( + 'q' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sort' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orTerms' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'highRange' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'num' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'cr' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'imgType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'gl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'relatedSite' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'fileType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'start' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'imgDominantColor' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'lr' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'siteSearch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'cref' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'dateRestrict' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'safe' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'c2coff' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'googlehost' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hq' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'exactTerms' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'lowRange' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'imgSize' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'imgColorType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'rights' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'excludeTerms' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'linkSite' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'cx' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'siteSearchFilter' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -204,1229 +202,1017 @@ class Google_Service_Customsearch extends Google_Service * $cse = $customsearchService->cse; * */ -class Google_Service_Customsearch_Cse_Resource extends Google_Service_Resource -{ +class Google_Service_Customsearch_Cse_Resource extends Google_Service_Resource { - /** - * Returns metadata about the search performed, metadata about the custom search - * engine used for the search, and the search results. (cse.listCse) - * - * @param string $q - * Query - * @param array $optParams Optional parameters. - * - * @opt_param string sort - * The sort expression to apply to the results - * @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 - * @opt_param string highRange - * Creates a range in form as_nlo value..as_nhi value and attempts to append it to query - * @opt_param string num - * Number of search results to return - * @opt_param string cr - * Country restrict(s). - * @opt_param string imgType - * Returns images of a type, which can be one of: clipart, face, lineart, news, and photo. - * @opt_param string gl - * Geolocation of end user. - * @opt_param string relatedSite - * Specifies that all search results should be pages that are related to the specified URL - * @opt_param string searchType - * Specifies the search type: image. - * @opt_param string fileType - * Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, - * pdf, ... - * @opt_param string start - * The index of the first result to return - * @opt_param string imgDominantColor - * Returns images of a specific dominant color: yellow, green, teal, blue, purple, pink, white, - * gray, black and brown. - * @opt_param string lr - * The language restriction for the search results - * @opt_param string siteSearch - * Specifies all search results should be pages from a given site - * @opt_param string cref - * The URL of a linked custom search engine - * @opt_param string dateRestrict - * Specifies all search results are from a time period - * @opt_param string safe - * Search safety level - * @opt_param string c2coff - * Turns off the translation between zh-CN and zh-TW. - * @opt_param string googlehost - * The local Google domain to use to perform the search. - * @opt_param string hq - * Appends the extra query terms to the query. - * @opt_param string exactTerms - * Identifies a phrase that all documents in the search results must contain - * @opt_param string hl - * Sets the user interface language. - * @opt_param string lowRange - * Creates a range in form as_nlo value..as_nhi value and attempts to append it to query - * @opt_param string imgSize - * Returns images of a specified size, where size can be one of: icon, small, medium, large, - * xlarge, xxlarge, and huge. - * @opt_param string imgColorType - * Returns black and white, grayscale, or color images: mono, gray, and color. - * @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. - * @opt_param string excludeTerms - * Identifies a word or phrase that should not appear in any documents in the search results - * @opt_param string filter - * Controls turning on or off the duplicate content filter. - * @opt_param string linkSite - * Specifies that all search results should contain a link to a particular URL - * @opt_param string cx - * The custom search engine ID to scope this search query - * @opt_param string siteSearchFilter - * Controls whether to include or exclude results from the site named in the as_sitesearch - * parameter - * @return Google_Service_Customsearch_Search - */ - public function listCse($q, $optParams = array()) - { - $params = array('q' => $q); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Customsearch_Search"); - } + /** + * Returns metadata about the search performed, metadata about the custom search + * engine used for the search, and the search results. (cse.listCse) + * + * @param string $q + * Query + * @param array $optParams Optional parameters. + * + * @opt_param string sort + * The sort expression to apply to the results + * @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 + * @opt_param string highRange + * Creates a range in form as_nlo value..as_nhi value and attempts to append it to query + * @opt_param string num + * Number of search results to return + * @opt_param string cr + * Country restrict(s). + * @opt_param string imgType + * Returns images of a type, which can be one of: clipart, face, lineart, news, and photo. + * @opt_param string gl + * Geolocation of end user. + * @opt_param string relatedSite + * Specifies that all search results should be pages that are related to the specified URL + * @opt_param string searchType + * Specifies the search type: image. + * @opt_param string fileType + * Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, + * pdf, ... + * @opt_param string start + * The index of the first result to return + * @opt_param string imgDominantColor + * Returns images of a specific dominant color: yellow, green, teal, blue, purple, pink, white, + * gray, black and brown. + * @opt_param string lr + * The language restriction for the search results + * @opt_param string siteSearch + * Specifies all search results should be pages from a given site + * @opt_param string cref + * The URL of a linked custom search engine + * @opt_param string dateRestrict + * Specifies all search results are from a time period + * @opt_param string safe + * Search safety level + * @opt_param string c2coff + * Turns off the translation between zh-CN and zh-TW. + * @opt_param string googlehost + * The local Google domain to use to perform the search. + * @opt_param string hq + * Appends the extra query terms to the query. + * @opt_param string exactTerms + * Identifies a phrase that all documents in the search results must contain + * @opt_param string hl + * Sets the user interface language. + * @opt_param string lowRange + * Creates a range in form as_nlo value..as_nhi value and attempts to append it to query + * @opt_param string imgSize + * Returns images of a specified size, where size can be one of: icon, small, medium, large, + * xlarge, xxlarge, and huge. + * @opt_param string imgColorType + * Returns black and white, grayscale, or color images: mono, gray, and color. + * @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. + * @opt_param string excludeTerms + * Identifies a word or phrase that should not appear in any documents in the search results + * @opt_param string filter + * Controls turning on or off the duplicate content filter. + * @opt_param string linkSite + * Specifies that all search results should contain a link to a particular URL + * @opt_param string cx + * The custom search engine ID to scope this search query + * @opt_param string siteSearchFilter + * Controls whether to include or exclude results from the site named in the as_sitesearch + * parameter + * @return Google_Service_Customsearch_Search + */ + public function listCse($q, $optParams = array()) { + $params = array('q' => $q); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Customsearch_Search"); + } } +class Google_Service_Customsearch_Context extends Google_Collection { + protected $facetsType = 'Google_Service_Customsearch_ContextFacets'; + protected $facetsDataType = 'array'; + public $title; + public function setFacets($facets) { + $this->facets = $facets; + } -class Google_Service_Customsearch_Context extends Google_Collection -{ - protected $facetsType = 'Google_Service_Customsearch_ContextFacets'; - protected $facetsDataType = 'array'; - public $title; + public function getFacets() { + return $this->facets; + } - public function setFacets($facets) - { - $this->facets = $facets; - } + public function setTitle($title) { + $this->title = $title; + } - public function getFacets() - { - return $this->facets; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_Customsearch_ContextFacets extends Google_Model -{ - public $anchor; - public $label; - public $labelWithOp; +class Google_Service_Customsearch_ContextFacets extends Google_Model { + public $anchor; + public $label; + public $labelWithOp; - public function setAnchor($anchor) - { - $this->anchor = $anchor; - } + public function setAnchor($anchor) { + $this->anchor = $anchor; + } - public function getAnchor() - { - return $this->anchor; - } + public function getAnchor() { + return $this->anchor; + } - public function setLabel($label) - { - $this->label = $label; - } + public function setLabel($label) { + $this->label = $label; + } - public function getLabel() - { - return $this->label; - } + public function getLabel() { + return $this->label; + } - public function setLabelWithOp($labelWithOp) - { - $this->labelWithOp = $labelWithOp; - } + public function setLabelWithOp($labelWithOp) { + $this->labelWithOp = $labelWithOp; + } - public function getLabelWithOp() - { - return $this->labelWithOp; - } + public function getLabelWithOp() { + return $this->labelWithOp; + } } -class Google_Service_Customsearch_Promotion extends Google_Collection -{ - protected $bodyLinesType = 'Google_Service_Customsearch_PromotionBodyLines'; - protected $bodyLinesDataType = 'array'; - public $displayLink; - public $htmlTitle; - protected $imageType = 'Google_Service_Customsearch_PromotionImage'; - protected $imageDataType = ''; - public $link; - public $title; +class Google_Service_Customsearch_Promotion extends Google_Collection { + protected $bodyLinesType = 'Google_Service_Customsearch_PromotionBodyLines'; + protected $bodyLinesDataType = 'array'; + public $displayLink; + public $htmlTitle; + protected $imageType = 'Google_Service_Customsearch_PromotionImage'; + protected $imageDataType = ''; + public $link; + public $title; - public function setBodyLines($bodyLines) - { - $this->bodyLines = $bodyLines; - } + public function setBodyLines($bodyLines) { + $this->bodyLines = $bodyLines; + } - public function getBodyLines() - { - return $this->bodyLines; - } + public function getBodyLines() { + return $this->bodyLines; + } - public function setDisplayLink($displayLink) - { - $this->displayLink = $displayLink; - } + public function setDisplayLink($displayLink) { + $this->displayLink = $displayLink; + } - public function getDisplayLink() - { - return $this->displayLink; - } + public function getDisplayLink() { + return $this->displayLink; + } - public function setHtmlTitle($htmlTitle) - { - $this->htmlTitle = $htmlTitle; - } + public function setHtmlTitle($htmlTitle) { + $this->htmlTitle = $htmlTitle; + } - public function getHtmlTitle() - { - return $this->htmlTitle; - } + public function getHtmlTitle() { + return $this->htmlTitle; + } - public function setImage(Google_Service_Customsearch_PromotionImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Customsearch_PromotionImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setLink($link) - { - $this->link = $link; - } + public function setLink($link) { + $this->link = $link; + } - public function getLink() - { - return $this->link; - } + public function getLink() { + return $this->link; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_Customsearch_PromotionBodyLines extends Google_Model -{ - public $htmlTitle; - public $link; - public $title; - public $url; +class Google_Service_Customsearch_PromotionBodyLines extends Google_Model { + public $htmlTitle; + public $link; + public $title; + public $url; - public function setHtmlTitle($htmlTitle) - { - $this->htmlTitle = $htmlTitle; - } + public function setHtmlTitle($htmlTitle) { + $this->htmlTitle = $htmlTitle; + } - public function getHtmlTitle() - { - return $this->htmlTitle; - } + public function getHtmlTitle() { + return $this->htmlTitle; + } - public function setLink($link) - { - $this->link = $link; - } + public function setLink($link) { + $this->link = $link; + } - public function getLink() - { - return $this->link; - } + public function getLink() { + return $this->link; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Customsearch_PromotionImage extends Google_Model -{ - public $height; - public $source; - public $width; +class Google_Service_Customsearch_PromotionImage extends Google_Model { + public $height; + public $source; + public $width; - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setSource($source) - { - $this->source = $source; - } + public function setSource($source) { + $this->source = $source; + } - public function getSource() - { - return $this->source; - } + public function getSource() { + return $this->source; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_Customsearch_Query extends Google_Model -{ - public $count; - public $cr; - public $cref; - public $cx; - public $dateRestrict; - public $disableCnTwTranslation; - public $exactTerms; - public $excludeTerms; - public $fileType; - public $filter; - public $gl; - public $googleHost; - public $highRange; - public $hl; - public $hq; - public $imgColorType; - public $imgDominantColor; - public $imgSize; - public $imgType; - public $inputEncoding; - public $language; - public $linkSite; - public $lowRange; - public $orTerms; - public $outputEncoding; - public $relatedSite; - public $rights; - public $safe; - public $searchTerms; - public $searchType; - public $siteSearch; - public $siteSearchFilter; - public $sort; - public $startIndex; - public $startPage; - public $title; - public $totalResults; - - public function setCount($count) - { - $this->count = $count; - } - - public function getCount() - { - return $this->count; - } - - public function setCr($cr) - { - $this->cr = $cr; - } - - public function getCr() - { - return $this->cr; - } - - public function setCref($cref) - { - $this->cref = $cref; - } - - public function getCref() - { - return $this->cref; - } - - public function setCx($cx) - { - $this->cx = $cx; - } - - public function getCx() - { - return $this->cx; - } - - public function setDateRestrict($dateRestrict) - { - $this->dateRestrict = $dateRestrict; - } - - public function getDateRestrict() - { - return $this->dateRestrict; - } - - public function setDisableCnTwTranslation($disableCnTwTranslation) - { - $this->disableCnTwTranslation = $disableCnTwTranslation; - } - - public function getDisableCnTwTranslation() - { - return $this->disableCnTwTranslation; - } - - public function setExactTerms($exactTerms) - { - $this->exactTerms = $exactTerms; - } - - public function getExactTerms() - { - return $this->exactTerms; - } - - public function setExcludeTerms($excludeTerms) - { - $this->excludeTerms = $excludeTerms; - } - - public function getExcludeTerms() - { - return $this->excludeTerms; - } - - public function setFileType($fileType) - { - $this->fileType = $fileType; - } - - public function getFileType() - { - return $this->fileType; - } - - public function setFilter($filter) - { - $this->filter = $filter; - } - - public function getFilter() - { - return $this->filter; - } - - public function setGl($gl) - { - $this->gl = $gl; - } - - public function getGl() - { - return $this->gl; - } - - public function setGoogleHost($googleHost) - { - $this->googleHost = $googleHost; - } - - public function getGoogleHost() - { - return $this->googleHost; - } - - public function setHighRange($highRange) - { - $this->highRange = $highRange; - } - - public function getHighRange() - { - return $this->highRange; - } - - public function setHl($hl) - { - $this->hl = $hl; - } - - public function getHl() - { - return $this->hl; - } - - public function setHq($hq) - { - $this->hq = $hq; - } - - public function getHq() - { - return $this->hq; - } - - public function setImgColorType($imgColorType) - { - $this->imgColorType = $imgColorType; - } - - public function getImgColorType() - { - return $this->imgColorType; - } - - public function setImgDominantColor($imgDominantColor) - { - $this->imgDominantColor = $imgDominantColor; - } - - public function getImgDominantColor() - { - return $this->imgDominantColor; - } - - public function setImgSize($imgSize) - { - $this->imgSize = $imgSize; - } - - public function getImgSize() - { - return $this->imgSize; - } - - public function setImgType($imgType) - { - $this->imgType = $imgType; - } - - public function getImgType() - { - return $this->imgType; - } - - public function setInputEncoding($inputEncoding) - { - $this->inputEncoding = $inputEncoding; - } - - public function getInputEncoding() - { - return $this->inputEncoding; - } - - public function setLanguage($language) - { - $this->language = $language; - } - - public function getLanguage() - { - return $this->language; - } - - public function setLinkSite($linkSite) - { - $this->linkSite = $linkSite; - } - - public function getLinkSite() - { - return $this->linkSite; - } - - public function setLowRange($lowRange) - { - $this->lowRange = $lowRange; - } - - public function getLowRange() - { - return $this->lowRange; - } - - public function setOrTerms($orTerms) - { - $this->orTerms = $orTerms; - } - - public function getOrTerms() - { - return $this->orTerms; - } - - public function setOutputEncoding($outputEncoding) - { - $this->outputEncoding = $outputEncoding; - } - - public function getOutputEncoding() - { - return $this->outputEncoding; - } - - public function setRelatedSite($relatedSite) - { - $this->relatedSite = $relatedSite; - } - - public function getRelatedSite() - { - return $this->relatedSite; - } - - public function setRights($rights) - { - $this->rights = $rights; - } - - public function getRights() - { - return $this->rights; - } - - public function setSafe($safe) - { - $this->safe = $safe; - } - - public function getSafe() - { - return $this->safe; - } - - public function setSearchTerms($searchTerms) - { - $this->searchTerms = $searchTerms; - } - - public function getSearchTerms() - { - return $this->searchTerms; - } - - public function setSearchType($searchType) - { - $this->searchType = $searchType; - } - - public function getSearchType() - { - return $this->searchType; - } - - public function setSiteSearch($siteSearch) - { - $this->siteSearch = $siteSearch; - } - - public function getSiteSearch() - { - return $this->siteSearch; - } - - public function setSiteSearchFilter($siteSearchFilter) - { - $this->siteSearchFilter = $siteSearchFilter; - } - - public function getSiteSearchFilter() - { - return $this->siteSearchFilter; - } - - public function setSort($sort) - { - $this->sort = $sort; - } - - public function getSort() - { - return $this->sort; - } - - public function setStartIndex($startIndex) - { - $this->startIndex = $startIndex; - } - - public function getStartIndex() - { - return $this->startIndex; - } - - public function setStartPage($startPage) - { - $this->startPage = $startPage; - } - - public function getStartPage() - { - return $this->startPage; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } +class Google_Service_Customsearch_Query extends Google_Model { + public $count; + public $cr; + public $cref; + public $cx; + public $dateRestrict; + public $disableCnTwTranslation; + public $exactTerms; + public $excludeTerms; + public $fileType; + public $filter; + public $gl; + public $googleHost; + public $highRange; + public $hl; + public $hq; + public $imgColorType; + public $imgDominantColor; + public $imgSize; + public $imgType; + public $inputEncoding; + public $language; + public $linkSite; + public $lowRange; + public $orTerms; + public $outputEncoding; + public $relatedSite; + public $rights; + public $safe; + public $searchTerms; + public $searchType; + public $siteSearch; + public $siteSearchFilter; + public $sort; + public $startIndex; + public $startPage; + public $title; + public $totalResults; + + public function setCount($count) { + $this->count = $count; + } + + public function getCount() { + return $this->count; + } + + public function setCr($cr) { + $this->cr = $cr; + } + + public function getCr() { + return $this->cr; + } + + public function setCref($cref) { + $this->cref = $cref; + } + + public function getCref() { + return $this->cref; + } + + public function setCx($cx) { + $this->cx = $cx; + } + + public function getCx() { + return $this->cx; + } + + public function setDateRestrict($dateRestrict) { + $this->dateRestrict = $dateRestrict; + } + + public function getDateRestrict() { + return $this->dateRestrict; + } + + public function setDisableCnTwTranslation($disableCnTwTranslation) { + $this->disableCnTwTranslation = $disableCnTwTranslation; + } + + public function getDisableCnTwTranslation() { + return $this->disableCnTwTranslation; + } + + public function setExactTerms($exactTerms) { + $this->exactTerms = $exactTerms; + } + + public function getExactTerms() { + return $this->exactTerms; + } + + public function setExcludeTerms($excludeTerms) { + $this->excludeTerms = $excludeTerms; + } + + public function getExcludeTerms() { + return $this->excludeTerms; + } + + public function setFileType($fileType) { + $this->fileType = $fileType; + } + + public function getFileType() { + return $this->fileType; + } + + public function setFilter($filter) { + $this->filter = $filter; + } + + public function getFilter() { + return $this->filter; + } + + public function setGl($gl) { + $this->gl = $gl; + } + + public function getGl() { + return $this->gl; + } + + public function setGoogleHost($googleHost) { + $this->googleHost = $googleHost; + } + + public function getGoogleHost() { + return $this->googleHost; + } + + public function setHighRange($highRange) { + $this->highRange = $highRange; + } + + public function getHighRange() { + return $this->highRange; + } + + public function setHl($hl) { + $this->hl = $hl; + } + + public function getHl() { + return $this->hl; + } + + public function setHq($hq) { + $this->hq = $hq; + } + + public function getHq() { + return $this->hq; + } + + public function setImgColorType($imgColorType) { + $this->imgColorType = $imgColorType; + } + + public function getImgColorType() { + return $this->imgColorType; + } + + public function setImgDominantColor($imgDominantColor) { + $this->imgDominantColor = $imgDominantColor; + } + + public function getImgDominantColor() { + return $this->imgDominantColor; + } + + public function setImgSize($imgSize) { + $this->imgSize = $imgSize; + } + + public function getImgSize() { + return $this->imgSize; + } + + public function setImgType($imgType) { + $this->imgType = $imgType; + } + + public function getImgType() { + return $this->imgType; + } + + public function setInputEncoding($inputEncoding) { + $this->inputEncoding = $inputEncoding; + } + + public function getInputEncoding() { + return $this->inputEncoding; + } + + public function setLanguage($language) { + $this->language = $language; + } + + public function getLanguage() { + return $this->language; + } + + public function setLinkSite($linkSite) { + $this->linkSite = $linkSite; + } + + public function getLinkSite() { + return $this->linkSite; + } + + public function setLowRange($lowRange) { + $this->lowRange = $lowRange; + } + + public function getLowRange() { + return $this->lowRange; + } + + public function setOrTerms($orTerms) { + $this->orTerms = $orTerms; + } + + public function getOrTerms() { + return $this->orTerms; + } + + public function setOutputEncoding($outputEncoding) { + $this->outputEncoding = $outputEncoding; + } + + public function getOutputEncoding() { + return $this->outputEncoding; + } + + public function setRelatedSite($relatedSite) { + $this->relatedSite = $relatedSite; + } + + public function getRelatedSite() { + return $this->relatedSite; + } + + public function setRights($rights) { + $this->rights = $rights; + } + + public function getRights() { + return $this->rights; + } + + public function setSafe($safe) { + $this->safe = $safe; + } + + public function getSafe() { + return $this->safe; + } + + public function setSearchTerms($searchTerms) { + $this->searchTerms = $searchTerms; + } + + public function getSearchTerms() { + return $this->searchTerms; + } + + public function setSearchType($searchType) { + $this->searchType = $searchType; + } + + public function getSearchType() { + return $this->searchType; + } + + public function setSiteSearch($siteSearch) { + $this->siteSearch = $siteSearch; + } + + public function getSiteSearch() { + return $this->siteSearch; + } + + public function setSiteSearchFilter($siteSearchFilter) { + $this->siteSearchFilter = $siteSearchFilter; + } + + public function getSiteSearchFilter() { + return $this->siteSearchFilter; + } + + public function setSort($sort) { + $this->sort = $sort; + } + + public function getSort() { + return $this->sort; + } + + public function setStartIndex($startIndex) { + $this->startIndex = $startIndex; + } + + public function getStartIndex() { + return $this->startIndex; + } + + public function setStartPage($startPage) { + $this->startPage = $startPage; + } + + public function getStartPage() { + return $this->startPage; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } } -class Google_Service_Customsearch_Result extends Google_Collection -{ - public $cacheId; - public $displayLink; - public $fileFormat; - public $formattedUrl; - public $htmlFormattedUrl; - public $htmlSnippet; - public $htmlTitle; - protected $imageType = 'Google_Service_Customsearch_ResultImage'; - protected $imageDataType = ''; - public $kind; - protected $labelsType = 'Google_Service_Customsearch_ResultLabels'; - protected $labelsDataType = 'array'; - public $link; - public $mime; - public $pagemap; - public $snippet; - public $title; +class Google_Service_Customsearch_Result extends Google_Collection { + public $cacheId; + public $displayLink; + public $fileFormat; + public $formattedUrl; + public $htmlFormattedUrl; + public $htmlSnippet; + public $htmlTitle; + protected $imageType = 'Google_Service_Customsearch_ResultImage'; + protected $imageDataType = ''; + public $kind; + protected $labelsType = 'Google_Service_Customsearch_ResultLabels'; + protected $labelsDataType = 'array'; + public $link; + public $mime; + public $pagemap; + public $snippet; + public $title; - public function setCacheId($cacheId) - { - $this->cacheId = $cacheId; - } + public function setCacheId($cacheId) { + $this->cacheId = $cacheId; + } - public function getCacheId() - { - return $this->cacheId; - } + public function getCacheId() { + return $this->cacheId; + } - public function setDisplayLink($displayLink) - { - $this->displayLink = $displayLink; - } + public function setDisplayLink($displayLink) { + $this->displayLink = $displayLink; + } - public function getDisplayLink() - { - return $this->displayLink; - } + public function getDisplayLink() { + return $this->displayLink; + } - public function setFileFormat($fileFormat) - { - $this->fileFormat = $fileFormat; - } + public function setFileFormat($fileFormat) { + $this->fileFormat = $fileFormat; + } - public function getFileFormat() - { - return $this->fileFormat; - } + public function getFileFormat() { + return $this->fileFormat; + } - public function setFormattedUrl($formattedUrl) - { - $this->formattedUrl = $formattedUrl; - } + public function setFormattedUrl($formattedUrl) { + $this->formattedUrl = $formattedUrl; + } - public function getFormattedUrl() - { - return $this->formattedUrl; - } + public function getFormattedUrl() { + return $this->formattedUrl; + } - public function setHtmlFormattedUrl($htmlFormattedUrl) - { - $this->htmlFormattedUrl = $htmlFormattedUrl; - } + public function setHtmlFormattedUrl($htmlFormattedUrl) { + $this->htmlFormattedUrl = $htmlFormattedUrl; + } - public function getHtmlFormattedUrl() - { - return $this->htmlFormattedUrl; - } + public function getHtmlFormattedUrl() { + return $this->htmlFormattedUrl; + } - public function setHtmlSnippet($htmlSnippet) - { - $this->htmlSnippet = $htmlSnippet; - } + public function setHtmlSnippet($htmlSnippet) { + $this->htmlSnippet = $htmlSnippet; + } - public function getHtmlSnippet() - { - return $this->htmlSnippet; - } + public function getHtmlSnippet() { + return $this->htmlSnippet; + } - public function setHtmlTitle($htmlTitle) - { - $this->htmlTitle = $htmlTitle; - } + public function setHtmlTitle($htmlTitle) { + $this->htmlTitle = $htmlTitle; + } - public function getHtmlTitle() - { - return $this->htmlTitle; - } + public function getHtmlTitle() { + return $this->htmlTitle; + } - public function setImage(Google_Service_Customsearch_ResultImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Customsearch_ResultImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLabels($labels) - { - $this->labels = $labels; - } + public function setLabels($labels) { + $this->labels = $labels; + } - public function getLabels() - { - return $this->labels; - } + public function getLabels() { + return $this->labels; + } - public function setLink($link) - { - $this->link = $link; - } + public function setLink($link) { + $this->link = $link; + } - public function getLink() - { - return $this->link; - } + public function getLink() { + return $this->link; + } - public function setMime($mime) - { - $this->mime = $mime; - } + public function setMime($mime) { + $this->mime = $mime; + } - public function getMime() - { - return $this->mime; - } + public function getMime() { + return $this->mime; + } - public function setPagemap($pagemap) - { - $this->pagemap = $pagemap; - } + public function setPagemap($pagemap) { + $this->pagemap = $pagemap; + } - public function getPagemap() - { - return $this->pagemap; - } + public function getPagemap() { + return $this->pagemap; + } - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } + public function setSnippet($snippet) { + $this->snippet = $snippet; + } - public function getSnippet() - { - return $this->snippet; - } + public function getSnippet() { + return $this->snippet; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_Customsearch_ResultImage extends Google_Model -{ - public $byteSize; - public $contextLink; - public $height; - public $thumbnailHeight; - public $thumbnailLink; - public $thumbnailWidth; - public $width; +class Google_Service_Customsearch_ResultImage extends Google_Model { + public $byteSize; + public $contextLink; + public $height; + public $thumbnailHeight; + public $thumbnailLink; + public $thumbnailWidth; + public $width; - public function setByteSize($byteSize) - { - $this->byteSize = $byteSize; - } + public function setByteSize($byteSize) { + $this->byteSize = $byteSize; + } - public function getByteSize() - { - return $this->byteSize; - } + public function getByteSize() { + return $this->byteSize; + } - public function setContextLink($contextLink) - { - $this->contextLink = $contextLink; - } + public function setContextLink($contextLink) { + $this->contextLink = $contextLink; + } - public function getContextLink() - { - return $this->contextLink; - } + public function getContextLink() { + return $this->contextLink; + } - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setThumbnailHeight($thumbnailHeight) - { - $this->thumbnailHeight = $thumbnailHeight; - } + public function setThumbnailHeight($thumbnailHeight) { + $this->thumbnailHeight = $thumbnailHeight; + } - public function getThumbnailHeight() - { - return $this->thumbnailHeight; - } + public function getThumbnailHeight() { + return $this->thumbnailHeight; + } - public function setThumbnailLink($thumbnailLink) - { - $this->thumbnailLink = $thumbnailLink; - } + public function setThumbnailLink($thumbnailLink) { + $this->thumbnailLink = $thumbnailLink; + } - public function getThumbnailLink() - { - return $this->thumbnailLink; - } + public function getThumbnailLink() { + return $this->thumbnailLink; + } - public function setThumbnailWidth($thumbnailWidth) - { - $this->thumbnailWidth = $thumbnailWidth; - } + public function setThumbnailWidth($thumbnailWidth) { + $this->thumbnailWidth = $thumbnailWidth; + } - public function getThumbnailWidth() - { - return $this->thumbnailWidth; - } + public function getThumbnailWidth() { + return $this->thumbnailWidth; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_Customsearch_ResultLabels extends Google_Model -{ - public $displayName; - public $labelWithOp; - public $name; +class Google_Service_Customsearch_ResultLabels extends Google_Model { + public $displayName; + public $labelWithOp; + public $name; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setLabelWithOp($labelWithOp) - { - $this->labelWithOp = $labelWithOp; - } + public function setLabelWithOp($labelWithOp) { + $this->labelWithOp = $labelWithOp; + } - public function getLabelWithOp() - { - return $this->labelWithOp; - } + public function getLabelWithOp() { + return $this->labelWithOp; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Customsearch_ResultPagemap extends Google_Model -{ +class Google_Service_Customsearch_ResultPagemap extends Google_Model { } -class Google_Service_Customsearch_ResultPagemapItemElement extends Google_Model -{ +class Google_Service_Customsearch_ResultPagemapItemElement extends Google_Model { } -class Google_Service_Customsearch_Search extends Google_Collection -{ - protected $contextType = 'Google_Service_Customsearch_Context'; - protected $contextDataType = ''; - protected $itemsType = 'Google_Service_Customsearch_Result'; - protected $itemsDataType = 'array'; - public $kind; - protected $promotionsType = 'Google_Service_Customsearch_Promotion'; - protected $promotionsDataType = 'array'; - protected $queriesType = 'Google_Service_Customsearch_Query'; - protected $queriesDataType = 'map'; - protected $searchInformationType = 'Google_Service_Customsearch_SearchSearchInformation'; - protected $searchInformationDataType = ''; - protected $spellingType = 'Google_Service_Customsearch_SearchSpelling'; - protected $spellingDataType = ''; - protected $urlType = 'Google_Service_Customsearch_SearchUrl'; - protected $urlDataType = ''; +class Google_Service_Customsearch_Search extends Google_Collection { + protected $contextType = 'Google_Service_Customsearch_Context'; + protected $contextDataType = ''; + protected $itemsType = 'Google_Service_Customsearch_Result'; + protected $itemsDataType = 'array'; + public $kind; + protected $promotionsType = 'Google_Service_Customsearch_Promotion'; + protected $promotionsDataType = 'array'; + protected $queriesType = 'Google_Service_Customsearch_Query'; + protected $queriesDataType = 'map'; + protected $searchInformationType = 'Google_Service_Customsearch_SearchSearchInformation'; + protected $searchInformationDataType = ''; + protected $spellingType = 'Google_Service_Customsearch_SearchSpelling'; + protected $spellingDataType = ''; + protected $urlType = 'Google_Service_Customsearch_SearchUrl'; + protected $urlDataType = ''; - public function setContext(Google_Service_Customsearch_Context $context) - { - $this->context = $context; - } + public function setContext(Google_Service_Customsearch_Context $context) { + $this->context = $context; + } - public function getContext() - { - return $this->context; - } + public function getContext() { + return $this->context; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPromotions($promotions) - { - $this->promotions = $promotions; - } + public function setPromotions($promotions) { + $this->promotions = $promotions; + } - public function getPromotions() - { - return $this->promotions; - } + public function getPromotions() { + return $this->promotions; + } - public function setQueries($queries) - { - $this->queries = $queries; - } + public function setQueries($queries) { + $this->queries = $queries; + } - public function getQueries() - { - return $this->queries; - } + public function getQueries() { + return $this->queries; + } - public function setSearchInformation(Google_Service_Customsearch_SearchSearchInformation $searchInformation) - { - $this->searchInformation = $searchInformation; - } + public function setSearchInformation(Google_Service_Customsearch_SearchSearchInformation $searchInformation) { + $this->searchInformation = $searchInformation; + } - public function getSearchInformation() - { - return $this->searchInformation; - } + public function getSearchInformation() { + return $this->searchInformation; + } - public function setSpelling(Google_Service_Customsearch_SearchSpelling $spelling) - { - $this->spelling = $spelling; - } + public function setSpelling(Google_Service_Customsearch_SearchSpelling $spelling) { + $this->spelling = $spelling; + } - public function getSpelling() - { - return $this->spelling; - } + public function getSpelling() { + return $this->spelling; + } - public function setUrl(Google_Service_Customsearch_SearchUrl $url) - { - $this->url = $url; - } + public function setUrl(Google_Service_Customsearch_SearchUrl $url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Customsearch_SearchQueries extends Google_Model -{ +class Google_Service_Customsearch_SearchQueries extends Google_Model { } -class Google_Service_Customsearch_SearchSearchInformation extends Google_Model -{ - public $formattedSearchTime; - public $formattedTotalResults; - public $searchTime; - public $totalResults; +class Google_Service_Customsearch_SearchSearchInformation extends Google_Model { + public $formattedSearchTime; + public $formattedTotalResults; + public $searchTime; + public $totalResults; - public function setFormattedSearchTime($formattedSearchTime) - { - $this->formattedSearchTime = $formattedSearchTime; - } + public function setFormattedSearchTime($formattedSearchTime) { + $this->formattedSearchTime = $formattedSearchTime; + } - public function getFormattedSearchTime() - { - return $this->formattedSearchTime; - } + public function getFormattedSearchTime() { + return $this->formattedSearchTime; + } - public function setFormattedTotalResults($formattedTotalResults) - { - $this->formattedTotalResults = $formattedTotalResults; - } + public function setFormattedTotalResults($formattedTotalResults) { + $this->formattedTotalResults = $formattedTotalResults; + } - public function getFormattedTotalResults() - { - return $this->formattedTotalResults; - } + public function getFormattedTotalResults() { + return $this->formattedTotalResults; + } - public function setSearchTime($searchTime) - { - $this->searchTime = $searchTime; - } + public function setSearchTime($searchTime) { + $this->searchTime = $searchTime; + } - public function getSearchTime() - { - return $this->searchTime; - } + public function getSearchTime() { + return $this->searchTime; + } - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } - public function getTotalResults() - { - return $this->totalResults; - } + public function getTotalResults() { + return $this->totalResults; + } } -class Google_Service_Customsearch_SearchSpelling extends Google_Model -{ - public $correctedQuery; - public $htmlCorrectedQuery; +class Google_Service_Customsearch_SearchSpelling extends Google_Model { + public $correctedQuery; + public $htmlCorrectedQuery; - public function setCorrectedQuery($correctedQuery) - { - $this->correctedQuery = $correctedQuery; - } + public function setCorrectedQuery($correctedQuery) { + $this->correctedQuery = $correctedQuery; + } - public function getCorrectedQuery() - { - return $this->correctedQuery; - } + public function getCorrectedQuery() { + return $this->correctedQuery; + } - public function setHtmlCorrectedQuery($htmlCorrectedQuery) - { - $this->htmlCorrectedQuery = $htmlCorrectedQuery; - } + public function setHtmlCorrectedQuery($htmlCorrectedQuery) { + $this->htmlCorrectedQuery = $htmlCorrectedQuery; + } - public function getHtmlCorrectedQuery() - { - return $this->htmlCorrectedQuery; - } + public function getHtmlCorrectedQuery() { + return $this->htmlCorrectedQuery; + } } -class Google_Service_Customsearch_SearchUrl extends Google_Model -{ - public $template; - public $type; +class Google_Service_Customsearch_SearchUrl extends Google_Model { + public $template; + public $type; - public function setTemplate($template) - { - $this->template = $template; - } + public function setTemplate($template) { + $this->template = $template; + } - public function getTemplate() - { - return $this->template; - } + public function getTemplate() { + return $this->template; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } diff --git a/oauth/Google/Service/Datastore.php b/oauth/Google/Service/Datastore.php index 8ec92e2..f8423aa 100644 --- a/oauth/Google/Service/Datastore.php +++ b/oauth/Google/Service/Datastore.php @@ -29,99 +29,97 @@ * * @author Google, Inc. */ -class Google_Service_Datastore extends Google_Service -{ - /** View and manage your Google Cloud Datastore data. */ - const DATASTORE = "https://www.googleapis.com/auth/datastore"; - /** View your email address. */ - const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; +class Google_Service_Datastore extends Google_Service { + /** View and manage your Google Cloud Datastore data. */ + const DATASTORE = "https://www.googleapis.com/auth/datastore"; + /** View your email address. */ + const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; - public $datasets; - + public $datasets; - /** - * Constructs the internal representation of the Datastore service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'datastore/v1beta2/datasets/'; - $this->version = 'v1beta2'; - $this->serviceName = 'datastore'; - $this->datasets = new Google_Service_Datastore_Datasets_Resource( - $this, - $this->serviceName, - 'datasets', - array( - 'methods' => array( - 'allocateIds' => array( - 'path' => '{datasetId}/allocateIds', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'beginTransaction' => array( - 'path' => '{datasetId}/beginTransaction', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'commit' => array( - 'path' => '{datasetId}/commit', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'lookup' => array( - 'path' => '{datasetId}/lookup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'rollback' => array( - 'path' => '{datasetId}/rollback', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'runQuery' => array( - 'path' => '{datasetId}/runQuery', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Datastore service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'datastore/v1beta2/datasets/'; + $this->version = 'v1beta2'; + $this->serviceName = 'datastore'; + + $this->datasets = new Google_Service_Datastore_Datasets_Resource( + $this, + $this->serviceName, + 'datasets', + array( + 'methods' => array( + 'allocateIds' => array( + 'path' => '{datasetId}/allocateIds', + 'httpMethod' => 'POST', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'beginTransaction' => array( + 'path' => '{datasetId}/beginTransaction', + 'httpMethod' => 'POST', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'commit' => array( + 'path' => '{datasetId}/commit', + 'httpMethod' => 'POST', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'lookup' => array( + 'path' => '{datasetId}/lookup', + 'httpMethod' => 'POST', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'rollback' => array( + 'path' => '{datasetId}/rollback', + 'httpMethod' => 'POST', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'runQuery' => array( + 'path' => '{datasetId}/runQuery', + 'httpMethod' => 'POST', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -133,1451 +131,1202 @@ class Google_Service_Datastore extends Google_Service * $datasets = $datastoreService->datasets; * */ -class Google_Service_Datastore_Datasets_Resource extends Google_Service_Resource -{ +class Google_Service_Datastore_Datasets_Resource extends Google_Service_Resource { - /** - * Allocate IDs for incomplete keys (useful for referencing an entity before it - * is inserted). (datasets.allocateIds) - * - * @param string $datasetId - * Identifies the dataset. - * @param Google_AllocateIdsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_AllocateIdsResponse - */ - public function allocateIds($datasetId, Google_Service_Datastore_AllocateIdsRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('allocateIds', array($params), "Google_Service_Datastore_AllocateIdsResponse"); - } - /** - * Begin a new transaction. (datasets.beginTransaction) - * - * @param string $datasetId - * Identifies the dataset. - * @param Google_BeginTransactionRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_BeginTransactionResponse - */ - public function beginTransaction($datasetId, Google_Service_Datastore_BeginTransactionRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('beginTransaction', array($params), "Google_Service_Datastore_BeginTransactionResponse"); - } - /** - * Commit a transaction, optionally creating, deleting or modifying some - * entities. (datasets.commit) - * - * @param string $datasetId - * Identifies the dataset. - * @param Google_CommitRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_CommitResponse - */ - public function commit($datasetId, Google_Service_Datastore_CommitRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('commit', array($params), "Google_Service_Datastore_CommitResponse"); - } - /** - * Look up some entities by key. (datasets.lookup) - * - * @param string $datasetId - * Identifies the dataset. - * @param Google_LookupRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_LookupResponse - */ - public function lookup($datasetId, Google_Service_Datastore_LookupRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('lookup', array($params), "Google_Service_Datastore_LookupResponse"); - } - /** - * Roll back a transaction. (datasets.rollback) - * - * @param string $datasetId - * Identifies the dataset. - * @param Google_RollbackRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_RollbackResponse - */ - public function rollback($datasetId, Google_Service_Datastore_RollbackRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('rollback', array($params), "Google_Service_Datastore_RollbackResponse"); - } - /** - * Query for entities. (datasets.runQuery) - * - * @param string $datasetId - * Identifies the dataset. - * @param Google_RunQueryRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Datastore_RunQueryResponse - */ - public function runQuery($datasetId, Google_Service_Datastore_RunQueryRequest $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('runQuery', array($params), "Google_Service_Datastore_RunQueryResponse"); - } + /** + * Allocate IDs for incomplete keys (useful for referencing an entity before it + * is inserted). (datasets.allocateIds) + * + * @param string $datasetId + * Identifies the dataset. + * @param Google_AllocateIdsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Datastore_AllocateIdsResponse + */ + public function allocateIds($datasetId, Google_Service_Datastore_AllocateIdsRequest $postBody, $optParams = array()) { + $params = array('datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('allocateIds', array($params), "Google_Service_Datastore_AllocateIdsResponse"); + } + + /** + * Begin a new transaction. (datasets.beginTransaction) + * + * @param string $datasetId + * Identifies the dataset. + * @param Google_BeginTransactionRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Datastore_BeginTransactionResponse + */ + public function beginTransaction($datasetId, Google_Service_Datastore_BeginTransactionRequest $postBody, $optParams = array()) { + $params = array('datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('beginTransaction', array($params), "Google_Service_Datastore_BeginTransactionResponse"); + } + + /** + * Commit a transaction, optionally creating, deleting or modifying some + * entities. (datasets.commit) + * + * @param string $datasetId + * Identifies the dataset. + * @param Google_CommitRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Datastore_CommitResponse + */ + public function commit($datasetId, Google_Service_Datastore_CommitRequest $postBody, $optParams = array()) { + $params = array('datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('commit', array($params), "Google_Service_Datastore_CommitResponse"); + } + + /** + * Look up some entities by key. (datasets.lookup) + * + * @param string $datasetId + * Identifies the dataset. + * @param Google_LookupRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Datastore_LookupResponse + */ + public function lookup($datasetId, Google_Service_Datastore_LookupRequest $postBody, $optParams = array()) { + $params = array('datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('lookup', array($params), "Google_Service_Datastore_LookupResponse"); + } + + /** + * Roll back a transaction. (datasets.rollback) + * + * @param string $datasetId + * Identifies the dataset. + * @param Google_RollbackRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Datastore_RollbackResponse + */ + public function rollback($datasetId, Google_Service_Datastore_RollbackRequest $postBody, $optParams = array()) { + $params = array('datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('rollback', array($params), "Google_Service_Datastore_RollbackResponse"); + } + + /** + * Query for entities. (datasets.runQuery) + * + * @param string $datasetId + * Identifies the dataset. + * @param Google_RunQueryRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Datastore_RunQueryResponse + */ + public function runQuery($datasetId, Google_Service_Datastore_RunQueryRequest $postBody, $optParams = array()) { + $params = array('datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('runQuery', array($params), "Google_Service_Datastore_RunQueryResponse"); + } } +class Google_Service_Datastore_AllocateIdsRequest extends Google_Collection { + protected $keysType = 'Google_Service_Datastore_Key'; + protected $keysDataType = 'array'; + public function setKeys($keys) { + $this->keys = $keys; + } -class Google_Service_Datastore_AllocateIdsRequest extends Google_Collection -{ - protected $keysType = 'Google_Service_Datastore_Key'; - protected $keysDataType = 'array'; - - public function setKeys($keys) - { - $this->keys = $keys; - } - - public function getKeys() - { - return $this->keys; - } + public function getKeys() { + return $this->keys; + } } -class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection -{ - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; - protected $keysType = 'Google_Service_Datastore_Key'; - protected $keysDataType = 'array'; +class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection { + protected $headerType = 'Google_Service_Datastore_ResponseHeader'; + protected $headerDataType = ''; + protected $keysType = 'Google_Service_Datastore_Key'; + protected $keysDataType = 'array'; - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } + public function setHeader(Google_Service_Datastore_ResponseHeader $header) { + $this->header = $header; + } - public function getHeader() - { - return $this->header; - } + public function getHeader() { + return $this->header; + } - public function setKeys($keys) - { - $this->keys = $keys; - } + public function setKeys($keys) { + $this->keys = $keys; + } - public function getKeys() - { - return $this->keys; - } + public function getKeys() { + return $this->keys; + } } -class Google_Service_Datastore_BeginTransactionRequest extends Google_Model -{ - public $isolationLevel; +class Google_Service_Datastore_BeginTransactionRequest extends Google_Model { + public $isolationLevel; - public function setIsolationLevel($isolationLevel) - { - $this->isolationLevel = $isolationLevel; - } + public function setIsolationLevel($isolationLevel) { + $this->isolationLevel = $isolationLevel; + } - public function getIsolationLevel() - { - return $this->isolationLevel; - } + public function getIsolationLevel() { + return $this->isolationLevel; + } } -class Google_Service_Datastore_BeginTransactionResponse extends Google_Model -{ - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; - public $transaction; +class Google_Service_Datastore_BeginTransactionResponse extends Google_Model { + protected $headerType = 'Google_Service_Datastore_ResponseHeader'; + protected $headerDataType = ''; + public $transaction; - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } + public function setHeader(Google_Service_Datastore_ResponseHeader $header) { + $this->header = $header; + } - public function getHeader() - { - return $this->header; - } + public function getHeader() { + return $this->header; + } - public function setTransaction($transaction) - { - $this->transaction = $transaction; - } + public function setTransaction($transaction) { + $this->transaction = $transaction; + } - public function getTransaction() - { - return $this->transaction; - } + public function getTransaction() { + return $this->transaction; + } } -class Google_Service_Datastore_CommitRequest extends Google_Model -{ - public $ignoreReadOnly; - public $mode; - protected $mutationType = 'Google_Service_Datastore_Mutation'; - protected $mutationDataType = ''; - public $transaction; +class Google_Service_Datastore_CommitRequest extends Google_Model { + public $ignoreReadOnly; + public $mode; + protected $mutationType = 'Google_Service_Datastore_Mutation'; + protected $mutationDataType = ''; + public $transaction; - public function setIgnoreReadOnly($ignoreReadOnly) - { - $this->ignoreReadOnly = $ignoreReadOnly; - } + public function setIgnoreReadOnly($ignoreReadOnly) { + $this->ignoreReadOnly = $ignoreReadOnly; + } - public function getIgnoreReadOnly() - { - return $this->ignoreReadOnly; - } + public function getIgnoreReadOnly() { + return $this->ignoreReadOnly; + } - public function setMode($mode) - { - $this->mode = $mode; - } + public function setMode($mode) { + $this->mode = $mode; + } - public function getMode() - { - return $this->mode; - } + public function getMode() { + return $this->mode; + } - public function setMutation(Google_Service_Datastore_Mutation $mutation) - { - $this->mutation = $mutation; - } + public function setMutation(Google_Service_Datastore_Mutation $mutation) { + $this->mutation = $mutation; + } - public function getMutation() - { - return $this->mutation; - } + public function getMutation() { + return $this->mutation; + } - public function setTransaction($transaction) - { - $this->transaction = $transaction; - } + public function setTransaction($transaction) { + $this->transaction = $transaction; + } - public function getTransaction() - { - return $this->transaction; - } + public function getTransaction() { + return $this->transaction; + } } -class Google_Service_Datastore_CommitResponse extends Google_Model -{ - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; - protected $mutationResultType = 'Google_Service_Datastore_MutationResult'; - protected $mutationResultDataType = ''; +class Google_Service_Datastore_CommitResponse extends Google_Model { + protected $headerType = 'Google_Service_Datastore_ResponseHeader'; + protected $headerDataType = ''; + protected $mutationResultType = 'Google_Service_Datastore_MutationResult'; + protected $mutationResultDataType = ''; - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } + public function setHeader(Google_Service_Datastore_ResponseHeader $header) { + $this->header = $header; + } - public function getHeader() - { - return $this->header; - } + public function getHeader() { + return $this->header; + } - public function setMutationResult(Google_Service_Datastore_MutationResult $mutationResult) - { - $this->mutationResult = $mutationResult; - } + public function setMutationResult(Google_Service_Datastore_MutationResult $mutationResult) { + $this->mutationResult = $mutationResult; + } - public function getMutationResult() - { - return $this->mutationResult; - } + public function getMutationResult() { + return $this->mutationResult; + } } -class Google_Service_Datastore_CompositeFilter extends Google_Collection -{ - protected $filtersType = 'Google_Service_Datastore_Filter'; - protected $filtersDataType = 'array'; - public $operator; +class Google_Service_Datastore_CompositeFilter extends Google_Collection { + protected $filtersType = 'Google_Service_Datastore_Filter'; + protected $filtersDataType = 'array'; + public $operator; - public function setFilters($filters) - { - $this->filters = $filters; - } + public function setFilters($filters) { + $this->filters = $filters; + } - public function getFilters() - { - return $this->filters; - } + public function getFilters() { + return $this->filters; + } - public function setOperator($operator) - { - $this->operator = $operator; - } + public function setOperator($operator) { + $this->operator = $operator; + } - public function getOperator() - { - return $this->operator; - } + public function getOperator() { + return $this->operator; + } } -class Google_Service_Datastore_Entity extends Google_Model -{ - protected $keyType = 'Google_Service_Datastore_Key'; - protected $keyDataType = ''; - protected $propertiesType = 'Google_Service_Datastore_Property'; - protected $propertiesDataType = 'map'; +class Google_Service_Datastore_Entity extends Google_Model { + protected $keyType = 'Google_Service_Datastore_Key'; + protected $keyDataType = ''; + protected $propertiesType = 'Google_Service_Datastore_Property'; + protected $propertiesDataType = 'map'; - public function setKey(Google_Service_Datastore_Key $key) - { - $this->key = $key; - } + public function setKey(Google_Service_Datastore_Key $key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setProperties($properties) - { - $this->properties = $properties; - } + public function setProperties($properties) { + $this->properties = $properties; + } - public function getProperties() - { - return $this->properties; - } + public function getProperties() { + return $this->properties; + } } -class Google_Service_Datastore_EntityProperties extends Google_Model -{ +class Google_Service_Datastore_EntityProperties extends Google_Model { } -class Google_Service_Datastore_EntityResult extends Google_Model -{ - protected $entityType = 'Google_Service_Datastore_Entity'; - protected $entityDataType = ''; +class Google_Service_Datastore_EntityResult extends Google_Model { + protected $entityType = 'Google_Service_Datastore_Entity'; + protected $entityDataType = ''; - public function setEntity(Google_Service_Datastore_Entity $entity) - { - $this->entity = $entity; - } + public function setEntity(Google_Service_Datastore_Entity $entity) { + $this->entity = $entity; + } - public function getEntity() - { - return $this->entity; - } + public function getEntity() { + return $this->entity; + } } -class Google_Service_Datastore_Filter extends Google_Model -{ - protected $compositeFilterType = 'Google_Service_Datastore_CompositeFilter'; - protected $compositeFilterDataType = ''; - protected $propertyFilterType = 'Google_Service_Datastore_PropertyFilter'; - protected $propertyFilterDataType = ''; +class Google_Service_Datastore_Filter extends Google_Model { + protected $compositeFilterType = 'Google_Service_Datastore_CompositeFilter'; + protected $compositeFilterDataType = ''; + protected $propertyFilterType = 'Google_Service_Datastore_PropertyFilter'; + protected $propertyFilterDataType = ''; - public function setCompositeFilter(Google_Service_Datastore_CompositeFilter $compositeFilter) - { - $this->compositeFilter = $compositeFilter; - } + public function setCompositeFilter(Google_Service_Datastore_CompositeFilter $compositeFilter) { + $this->compositeFilter = $compositeFilter; + } - public function getCompositeFilter() - { - return $this->compositeFilter; - } + public function getCompositeFilter() { + return $this->compositeFilter; + } - public function setPropertyFilter(Google_Service_Datastore_PropertyFilter $propertyFilter) - { - $this->propertyFilter = $propertyFilter; - } + public function setPropertyFilter(Google_Service_Datastore_PropertyFilter $propertyFilter) { + $this->propertyFilter = $propertyFilter; + } - public function getPropertyFilter() - { - return $this->propertyFilter; - } + public function getPropertyFilter() { + return $this->propertyFilter; + } } -class Google_Service_Datastore_GqlQuery extends Google_Collection -{ - public $allowLiteral; - protected $nameArgsType = 'Google_Service_Datastore_GqlQueryArg'; - protected $nameArgsDataType = 'array'; - protected $numberArgsType = 'Google_Service_Datastore_GqlQueryArg'; - protected $numberArgsDataType = 'array'; - public $queryString; +class Google_Service_Datastore_GqlQuery extends Google_Collection { + public $allowLiteral; + protected $nameArgsType = 'Google_Service_Datastore_GqlQueryArg'; + protected $nameArgsDataType = 'array'; + protected $numberArgsType = 'Google_Service_Datastore_GqlQueryArg'; + protected $numberArgsDataType = 'array'; + public $queryString; - public function setAllowLiteral($allowLiteral) - { - $this->allowLiteral = $allowLiteral; - } + public function setAllowLiteral($allowLiteral) { + $this->allowLiteral = $allowLiteral; + } - public function getAllowLiteral() - { - return $this->allowLiteral; - } + public function getAllowLiteral() { + return $this->allowLiteral; + } - public function setNameArgs($nameArgs) - { - $this->nameArgs = $nameArgs; - } + public function setNameArgs($nameArgs) { + $this->nameArgs = $nameArgs; + } - public function getNameArgs() - { - return $this->nameArgs; - } + public function getNameArgs() { + return $this->nameArgs; + } - public function setNumberArgs($numberArgs) - { - $this->numberArgs = $numberArgs; - } + public function setNumberArgs($numberArgs) { + $this->numberArgs = $numberArgs; + } - public function getNumberArgs() - { - return $this->numberArgs; - } + public function getNumberArgs() { + return $this->numberArgs; + } - public function setQueryString($queryString) - { - $this->queryString = $queryString; - } + public function setQueryString($queryString) { + $this->queryString = $queryString; + } - public function getQueryString() - { - return $this->queryString; - } + public function getQueryString() { + return $this->queryString; + } } -class Google_Service_Datastore_GqlQueryArg extends Google_Model -{ - public $cursor; - public $name; - protected $valueType = 'Google_Service_Datastore_Value'; - protected $valueDataType = ''; +class Google_Service_Datastore_GqlQueryArg extends Google_Model { + public $cursor; + public $name; + protected $valueType = 'Google_Service_Datastore_Value'; + protected $valueDataType = ''; - public function setCursor($cursor) - { - $this->cursor = $cursor; - } + public function setCursor($cursor) { + $this->cursor = $cursor; + } - public function getCursor() - { - return $this->cursor; - } + public function getCursor() { + return $this->cursor; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setValue(Google_Service_Datastore_Value $value) - { - $this->value = $value; - } + public function setValue(Google_Service_Datastore_Value $value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Datastore_Key extends Google_Collection -{ - protected $partitionIdType = 'Google_Service_Datastore_PartitionId'; - protected $partitionIdDataType = ''; - protected $pathType = 'Google_Service_Datastore_KeyPathElement'; - protected $pathDataType = 'array'; +class Google_Service_Datastore_Key extends Google_Collection { + protected $partitionIdType = 'Google_Service_Datastore_PartitionId'; + protected $partitionIdDataType = ''; + protected $pathType = 'Google_Service_Datastore_KeyPathElement'; + protected $pathDataType = 'array'; - public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId) - { - $this->partitionId = $partitionId; - } + public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId) { + $this->partitionId = $partitionId; + } - public function getPartitionId() - { - return $this->partitionId; - } + public function getPartitionId() { + return $this->partitionId; + } - public function setPath($path) - { - $this->path = $path; - } + public function setPath($path) { + $this->path = $path; + } - public function getPath() - { - return $this->path; - } + public function getPath() { + return $this->path; + } } -class Google_Service_Datastore_KeyPathElement extends Google_Model -{ - public $id; - public $kind; - public $name; +class Google_Service_Datastore_KeyPathElement extends Google_Model { + public $id; + public $kind; + public $name; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Datastore_KindExpression extends Google_Model -{ - public $name; +class Google_Service_Datastore_KindExpression extends Google_Model { + public $name; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Datastore_LookupRequest extends Google_Collection -{ - protected $keysType = 'Google_Service_Datastore_Key'; - protected $keysDataType = 'array'; - protected $readOptionsType = 'Google_Service_Datastore_ReadOptions'; - protected $readOptionsDataType = ''; +class Google_Service_Datastore_LookupRequest extends Google_Collection { + protected $keysType = 'Google_Service_Datastore_Key'; + protected $keysDataType = 'array'; + protected $readOptionsType = 'Google_Service_Datastore_ReadOptions'; + protected $readOptionsDataType = ''; - public function setKeys($keys) - { - $this->keys = $keys; - } + public function setKeys($keys) { + $this->keys = $keys; + } - public function getKeys() - { - return $this->keys; - } + public function getKeys() { + return $this->keys; + } - public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions) - { - $this->readOptions = $readOptions; - } + public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions) { + $this->readOptions = $readOptions; + } - public function getReadOptions() - { - return $this->readOptions; - } + public function getReadOptions() { + return $this->readOptions; + } } -class Google_Service_Datastore_LookupResponse extends Google_Collection -{ - protected $deferredType = 'Google_Service_Datastore_Key'; - protected $deferredDataType = 'array'; - protected $foundType = 'Google_Service_Datastore_EntityResult'; - protected $foundDataType = 'array'; - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; - protected $missingType = 'Google_Service_Datastore_EntityResult'; - protected $missingDataType = 'array'; +class Google_Service_Datastore_LookupResponse extends Google_Collection { + protected $deferredType = 'Google_Service_Datastore_Key'; + protected $deferredDataType = 'array'; + protected $foundType = 'Google_Service_Datastore_EntityResult'; + protected $foundDataType = 'array'; + protected $headerType = 'Google_Service_Datastore_ResponseHeader'; + protected $headerDataType = ''; + protected $missingType = 'Google_Service_Datastore_EntityResult'; + protected $missingDataType = 'array'; - public function setDeferred($deferred) - { - $this->deferred = $deferred; - } + public function setDeferred($deferred) { + $this->deferred = $deferred; + } - public function getDeferred() - { - return $this->deferred; - } + public function getDeferred() { + return $this->deferred; + } - public function setFound($found) - { - $this->found = $found; - } + public function setFound($found) { + $this->found = $found; + } - public function getFound() - { - return $this->found; - } + public function getFound() { + return $this->found; + } - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } + public function setHeader(Google_Service_Datastore_ResponseHeader $header) { + $this->header = $header; + } - public function getHeader() - { - return $this->header; - } + public function getHeader() { + return $this->header; + } - public function setMissing($missing) - { - $this->missing = $missing; - } + public function setMissing($missing) { + $this->missing = $missing; + } - public function getMissing() - { - return $this->missing; - } + public function getMissing() { + return $this->missing; + } } -class Google_Service_Datastore_Mutation extends Google_Collection -{ - protected $deleteType = 'Google_Service_Datastore_Key'; - protected $deleteDataType = 'array'; - public $force; - protected $insertType = 'Google_Service_Datastore_Entity'; - protected $insertDataType = 'array'; - protected $insertAutoIdType = 'Google_Service_Datastore_Entity'; - protected $insertAutoIdDataType = 'array'; - protected $updateType = 'Google_Service_Datastore_Entity'; - protected $updateDataType = 'array'; - protected $upsertType = 'Google_Service_Datastore_Entity'; - protected $upsertDataType = 'array'; +class Google_Service_Datastore_Mutation extends Google_Collection { + protected $deleteType = 'Google_Service_Datastore_Key'; + protected $deleteDataType = 'array'; + public $force; + protected $insertType = 'Google_Service_Datastore_Entity'; + protected $insertDataType = 'array'; + protected $insertAutoIdType = 'Google_Service_Datastore_Entity'; + protected $insertAutoIdDataType = 'array'; + protected $updateType = 'Google_Service_Datastore_Entity'; + protected $updateDataType = 'array'; + protected $upsertType = 'Google_Service_Datastore_Entity'; + protected $upsertDataType = 'array'; - public function setDelete($delete) - { - $this->delete = $delete; - } + public function setDelete($delete) { + $this->delete = $delete; + } - public function getDelete() - { - return $this->delete; - } + public function getDelete() { + return $this->delete; + } - public function setForce($force) - { - $this->force = $force; - } + public function setForce($force) { + $this->force = $force; + } - public function getForce() - { - return $this->force; - } + public function getForce() { + return $this->force; + } - public function setInsert($insert) - { - $this->insert = $insert; - } + public function setInsert($insert) { + $this->insert = $insert; + } - public function getInsert() - { - return $this->insert; - } + public function getInsert() { + return $this->insert; + } - public function setInsertAutoId($insertAutoId) - { - $this->insertAutoId = $insertAutoId; - } + public function setInsertAutoId($insertAutoId) { + $this->insertAutoId = $insertAutoId; + } - public function getInsertAutoId() - { - return $this->insertAutoId; - } + public function getInsertAutoId() { + return $this->insertAutoId; + } - public function setUpdate($update) - { - $this->update = $update; - } + public function setUpdate($update) { + $this->update = $update; + } - public function getUpdate() - { - return $this->update; - } + public function getUpdate() { + return $this->update; + } - public function setUpsert($upsert) - { - $this->upsert = $upsert; - } + public function setUpsert($upsert) { + $this->upsert = $upsert; + } - public function getUpsert() - { - return $this->upsert; - } + public function getUpsert() { + return $this->upsert; + } } -class Google_Service_Datastore_MutationResult extends Google_Collection -{ - public $indexUpdates; - protected $insertAutoIdKeysType = 'Google_Service_Datastore_Key'; - protected $insertAutoIdKeysDataType = 'array'; +class Google_Service_Datastore_MutationResult extends Google_Collection { + public $indexUpdates; + protected $insertAutoIdKeysType = 'Google_Service_Datastore_Key'; + protected $insertAutoIdKeysDataType = 'array'; - public function setIndexUpdates($indexUpdates) - { - $this->indexUpdates = $indexUpdates; - } + public function setIndexUpdates($indexUpdates) { + $this->indexUpdates = $indexUpdates; + } - public function getIndexUpdates() - { - return $this->indexUpdates; - } + public function getIndexUpdates() { + return $this->indexUpdates; + } - public function setInsertAutoIdKeys($insertAutoIdKeys) - { - $this->insertAutoIdKeys = $insertAutoIdKeys; - } + public function setInsertAutoIdKeys($insertAutoIdKeys) { + $this->insertAutoIdKeys = $insertAutoIdKeys; + } - public function getInsertAutoIdKeys() - { - return $this->insertAutoIdKeys; - } + public function getInsertAutoIdKeys() { + return $this->insertAutoIdKeys; + } } -class Google_Service_Datastore_PartitionId extends Google_Model -{ - public $datasetId; - public $namespace; +class Google_Service_Datastore_PartitionId extends Google_Model { + public $datasetId; + public $namespace; - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } + public function setDatasetId($datasetId) { + $this->datasetId = $datasetId; + } - public function getDatasetId() - { - return $this->datasetId; - } + public function getDatasetId() { + return $this->datasetId; + } - public function setNamespace($namespace) - { - $this->namespace = $namespace; - } + public function setNamespace($namespace) { + $this->namespace = $namespace; + } - public function getNamespace() - { - return $this->namespace; - } + public function getNamespace() { + return $this->namespace; + } } -class Google_Service_Datastore_Property extends Google_Collection -{ - public $blobKeyValue; - public $blobValue; - public $booleanValue; - public $dateTimeValue; - public $doubleValue; - protected $entityValueType = 'Google_Service_Datastore_Entity'; - protected $entityValueDataType = ''; - public $indexed; - public $integerValue; - protected $keyValueType = 'Google_Service_Datastore_Key'; - protected $keyValueDataType = ''; - protected $listValueType = 'Google_Service_Datastore_Value'; - protected $listValueDataType = 'array'; - public $meaning; - public $stringValue; +class Google_Service_Datastore_Property extends Google_Collection { + public $blobKeyValue; + public $blobValue; + public $booleanValue; + public $dateTimeValue; + public $doubleValue; + protected $entityValueType = 'Google_Service_Datastore_Entity'; + protected $entityValueDataType = ''; + public $indexed; + public $integerValue; + protected $keyValueType = 'Google_Service_Datastore_Key'; + protected $keyValueDataType = ''; + protected $listValueType = 'Google_Service_Datastore_Value'; + protected $listValueDataType = 'array'; + public $meaning; + public $stringValue; - public function setBlobKeyValue($blobKeyValue) - { - $this->blobKeyValue = $blobKeyValue; - } + public function setBlobKeyValue($blobKeyValue) { + $this->blobKeyValue = $blobKeyValue; + } - public function getBlobKeyValue() - { - return $this->blobKeyValue; - } + public function getBlobKeyValue() { + return $this->blobKeyValue; + } - public function setBlobValue($blobValue) - { - $this->blobValue = $blobValue; - } + public function setBlobValue($blobValue) { + $this->blobValue = $blobValue; + } - public function getBlobValue() - { - return $this->blobValue; - } + public function getBlobValue() { + return $this->blobValue; + } - public function setBooleanValue($booleanValue) - { - $this->booleanValue = $booleanValue; - } + public function setBooleanValue($booleanValue) { + $this->booleanValue = $booleanValue; + } - public function getBooleanValue() - { - return $this->booleanValue; - } + public function getBooleanValue() { + return $this->booleanValue; + } - public function setDateTimeValue($dateTimeValue) - { - $this->dateTimeValue = $dateTimeValue; - } + public function setDateTimeValue($dateTimeValue) { + $this->dateTimeValue = $dateTimeValue; + } - public function getDateTimeValue() - { - return $this->dateTimeValue; - } + public function getDateTimeValue() { + return $this->dateTimeValue; + } - public function setDoubleValue($doubleValue) - { - $this->doubleValue = $doubleValue; - } + public function setDoubleValue($doubleValue) { + $this->doubleValue = $doubleValue; + } - public function getDoubleValue() - { - return $this->doubleValue; - } + public function getDoubleValue() { + return $this->doubleValue; + } - public function setEntityValue(Google_Service_Datastore_Entity $entityValue) - { - $this->entityValue = $entityValue; - } + public function setEntityValue(Google_Service_Datastore_Entity $entityValue) { + $this->entityValue = $entityValue; + } - public function getEntityValue() - { - return $this->entityValue; - } + public function getEntityValue() { + return $this->entityValue; + } - public function setIndexed($indexed) - { - $this->indexed = $indexed; - } + public function setIndexed($indexed) { + $this->indexed = $indexed; + } - public function getIndexed() - { - return $this->indexed; - } + public function getIndexed() { + return $this->indexed; + } - public function setIntegerValue($integerValue) - { - $this->integerValue = $integerValue; - } + public function setIntegerValue($integerValue) { + $this->integerValue = $integerValue; + } - public function getIntegerValue() - { - return $this->integerValue; - } + public function getIntegerValue() { + return $this->integerValue; + } - public function setKeyValue(Google_Service_Datastore_Key $keyValue) - { - $this->keyValue = $keyValue; - } + public function setKeyValue(Google_Service_Datastore_Key $keyValue) { + $this->keyValue = $keyValue; + } - public function getKeyValue() - { - return $this->keyValue; - } + public function getKeyValue() { + return $this->keyValue; + } - public function setListValue($listValue) - { - $this->listValue = $listValue; - } + public function setListValue($listValue) { + $this->listValue = $listValue; + } - public function getListValue() - { - return $this->listValue; - } + public function getListValue() { + return $this->listValue; + } - public function setMeaning($meaning) - { - $this->meaning = $meaning; - } + public function setMeaning($meaning) { + $this->meaning = $meaning; + } - public function getMeaning() - { - return $this->meaning; - } + public function getMeaning() { + return $this->meaning; + } - public function setStringValue($stringValue) - { - $this->stringValue = $stringValue; - } + public function setStringValue($stringValue) { + $this->stringValue = $stringValue; + } - public function getStringValue() - { - return $this->stringValue; - } + public function getStringValue() { + return $this->stringValue; + } } -class Google_Service_Datastore_PropertyExpression extends Google_Model -{ - public $aggregationFunction; - protected $propertyType = 'Google_Service_Datastore_PropertyReference'; - protected $propertyDataType = ''; +class Google_Service_Datastore_PropertyExpression extends Google_Model { + public $aggregationFunction; + protected $propertyType = 'Google_Service_Datastore_PropertyReference'; + protected $propertyDataType = ''; - public function setAggregationFunction($aggregationFunction) - { - $this->aggregationFunction = $aggregationFunction; - } + public function setAggregationFunction($aggregationFunction) { + $this->aggregationFunction = $aggregationFunction; + } - public function getAggregationFunction() - { - return $this->aggregationFunction; - } + public function getAggregationFunction() { + return $this->aggregationFunction; + } - public function setProperty(Google_Service_Datastore_PropertyReference $property) - { - $this->property = $property; - } + public function setProperty(Google_Service_Datastore_PropertyReference $property) { + $this->property = $property; + } - public function getProperty() - { - return $this->property; - } + public function getProperty() { + return $this->property; + } } -class Google_Service_Datastore_PropertyFilter extends Google_Model -{ - public $operator; - protected $propertyType = 'Google_Service_Datastore_PropertyReference'; - protected $propertyDataType = ''; - protected $valueType = 'Google_Service_Datastore_Value'; - protected $valueDataType = ''; +class Google_Service_Datastore_PropertyFilter extends Google_Model { + public $operator; + protected $propertyType = 'Google_Service_Datastore_PropertyReference'; + protected $propertyDataType = ''; + protected $valueType = 'Google_Service_Datastore_Value'; + protected $valueDataType = ''; - public function setOperator($operator) - { - $this->operator = $operator; - } + public function setOperator($operator) { + $this->operator = $operator; + } - public function getOperator() - { - return $this->operator; - } + public function getOperator() { + return $this->operator; + } - public function setProperty(Google_Service_Datastore_PropertyReference $property) - { - $this->property = $property; - } + public function setProperty(Google_Service_Datastore_PropertyReference $property) { + $this->property = $property; + } - public function getProperty() - { - return $this->property; - } + public function getProperty() { + return $this->property; + } - public function setValue(Google_Service_Datastore_Value $value) - { - $this->value = $value; - } + public function setValue(Google_Service_Datastore_Value $value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Datastore_PropertyOrder extends Google_Model -{ - public $direction; - protected $propertyType = 'Google_Service_Datastore_PropertyReference'; - protected $propertyDataType = ''; +class Google_Service_Datastore_PropertyOrder extends Google_Model { + public $direction; + protected $propertyType = 'Google_Service_Datastore_PropertyReference'; + protected $propertyDataType = ''; - public function setDirection($direction) - { - $this->direction = $direction; - } + public function setDirection($direction) { + $this->direction = $direction; + } - public function getDirection() - { - return $this->direction; - } + public function getDirection() { + return $this->direction; + } - public function setProperty(Google_Service_Datastore_PropertyReference $property) - { - $this->property = $property; - } + public function setProperty(Google_Service_Datastore_PropertyReference $property) { + $this->property = $property; + } - public function getProperty() - { - return $this->property; - } + public function getProperty() { + return $this->property; + } } -class Google_Service_Datastore_PropertyReference extends Google_Model -{ - public $name; +class Google_Service_Datastore_PropertyReference extends Google_Model { + public $name; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Datastore_Query extends Google_Collection -{ - public $endCursor; - protected $filterType = 'Google_Service_Datastore_Filter'; - protected $filterDataType = ''; - protected $groupByType = 'Google_Service_Datastore_PropertyReference'; - protected $groupByDataType = 'array'; - protected $kindsType = 'Google_Service_Datastore_KindExpression'; - protected $kindsDataType = 'array'; - public $limit; - public $offset; - protected $orderType = 'Google_Service_Datastore_PropertyOrder'; - protected $orderDataType = 'array'; - protected $projectionType = 'Google_Service_Datastore_PropertyExpression'; - protected $projectionDataType = 'array'; - public $startCursor; +class Google_Service_Datastore_Query extends Google_Collection { + public $endCursor; + protected $filterType = 'Google_Service_Datastore_Filter'; + protected $filterDataType = ''; + protected $groupByType = 'Google_Service_Datastore_PropertyReference'; + protected $groupByDataType = 'array'; + protected $kindsType = 'Google_Service_Datastore_KindExpression'; + protected $kindsDataType = 'array'; + public $limit; + public $offset; + protected $orderType = 'Google_Service_Datastore_PropertyOrder'; + protected $orderDataType = 'array'; + protected $projectionType = 'Google_Service_Datastore_PropertyExpression'; + protected $projectionDataType = 'array'; + public $startCursor; - public function setEndCursor($endCursor) - { - $this->endCursor = $endCursor; - } + public function setEndCursor($endCursor) { + $this->endCursor = $endCursor; + } - public function getEndCursor() - { - return $this->endCursor; - } + public function getEndCursor() { + return $this->endCursor; + } - public function setFilter(Google_Service_Datastore_Filter $filter) - { - $this->filter = $filter; - } + public function setFilter(Google_Service_Datastore_Filter $filter) { + $this->filter = $filter; + } - public function getFilter() - { - return $this->filter; - } + public function getFilter() { + return $this->filter; + } - public function setGroupBy($groupBy) - { - $this->groupBy = $groupBy; - } + public function setGroupBy($groupBy) { + $this->groupBy = $groupBy; + } - public function getGroupBy() - { - return $this->groupBy; - } + public function getGroupBy() { + return $this->groupBy; + } - public function setKinds($kinds) - { - $this->kinds = $kinds; - } + public function setKinds($kinds) { + $this->kinds = $kinds; + } - public function getKinds() - { - return $this->kinds; - } + public function getKinds() { + return $this->kinds; + } - public function setLimit($limit) - { - $this->limit = $limit; - } + public function setLimit($limit) { + $this->limit = $limit; + } - public function getLimit() - { - return $this->limit; - } + public function getLimit() { + return $this->limit; + } - public function setOffset($offset) - { - $this->offset = $offset; - } + public function setOffset($offset) { + $this->offset = $offset; + } - public function getOffset() - { - return $this->offset; - } + public function getOffset() { + return $this->offset; + } - public function setOrder($order) - { - $this->order = $order; - } + public function setOrder($order) { + $this->order = $order; + } - public function getOrder() - { - return $this->order; - } + public function getOrder() { + return $this->order; + } - public function setProjection($projection) - { - $this->projection = $projection; - } + public function setProjection($projection) { + $this->projection = $projection; + } - public function getProjection() - { - return $this->projection; - } + public function getProjection() { + return $this->projection; + } - public function setStartCursor($startCursor) - { - $this->startCursor = $startCursor; - } + public function setStartCursor($startCursor) { + $this->startCursor = $startCursor; + } - public function getStartCursor() - { - return $this->startCursor; - } + public function getStartCursor() { + return $this->startCursor; + } } -class Google_Service_Datastore_QueryResultBatch extends Google_Collection -{ - public $endCursor; - public $entityResultType; - protected $entityResultsType = 'Google_Service_Datastore_EntityResult'; - protected $entityResultsDataType = 'array'; - public $moreResults; - public $skippedResults; +class Google_Service_Datastore_QueryResultBatch extends Google_Collection { + public $endCursor; + public $entityResultType; + protected $entityResultsType = 'Google_Service_Datastore_EntityResult'; + protected $entityResultsDataType = 'array'; + public $moreResults; + public $skippedResults; - public function setEndCursor($endCursor) - { - $this->endCursor = $endCursor; - } + public function setEndCursor($endCursor) { + $this->endCursor = $endCursor; + } - public function getEndCursor() - { - return $this->endCursor; - } + public function getEndCursor() { + return $this->endCursor; + } - public function setEntityResultType($entityResultType) - { - $this->entityResultType = $entityResultType; - } + public function setEntityResultType($entityResultType) { + $this->entityResultType = $entityResultType; + } - public function getEntityResultType() - { - return $this->entityResultType; - } + public function getEntityResultType() { + return $this->entityResultType; + } - public function setEntityResults($entityResults) - { - $this->entityResults = $entityResults; - } + public function setEntityResults($entityResults) { + $this->entityResults = $entityResults; + } - public function getEntityResults() - { - return $this->entityResults; - } + public function getEntityResults() { + return $this->entityResults; + } - public function setMoreResults($moreResults) - { - $this->moreResults = $moreResults; - } + public function setMoreResults($moreResults) { + $this->moreResults = $moreResults; + } - public function getMoreResults() - { - return $this->moreResults; - } + public function getMoreResults() { + return $this->moreResults; + } - public function setSkippedResults($skippedResults) - { - $this->skippedResults = $skippedResults; - } + public function setSkippedResults($skippedResults) { + $this->skippedResults = $skippedResults; + } - public function getSkippedResults() - { - return $this->skippedResults; - } + public function getSkippedResults() { + return $this->skippedResults; + } } -class Google_Service_Datastore_ReadOptions extends Google_Model -{ - public $readConsistency; - public $transaction; +class Google_Service_Datastore_ReadOptions extends Google_Model { + public $readConsistency; + public $transaction; - public function setReadConsistency($readConsistency) - { - $this->readConsistency = $readConsistency; - } + public function setReadConsistency($readConsistency) { + $this->readConsistency = $readConsistency; + } - public function getReadConsistency() - { - return $this->readConsistency; - } + public function getReadConsistency() { + return $this->readConsistency; + } - public function setTransaction($transaction) - { - $this->transaction = $transaction; - } + public function setTransaction($transaction) { + $this->transaction = $transaction; + } - public function getTransaction() - { - return $this->transaction; - } + public function getTransaction() { + return $this->transaction; + } } -class Google_Service_Datastore_ResponseHeader extends Google_Model -{ - public $kind; +class Google_Service_Datastore_ResponseHeader extends Google_Model { + public $kind; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Datastore_RollbackRequest extends Google_Model -{ - public $transaction; +class Google_Service_Datastore_RollbackRequest extends Google_Model { + public $transaction; - public function setTransaction($transaction) - { - $this->transaction = $transaction; - } + public function setTransaction($transaction) { + $this->transaction = $transaction; + } - public function getTransaction() - { - return $this->transaction; - } + public function getTransaction() { + return $this->transaction; + } } -class Google_Service_Datastore_RollbackResponse extends Google_Model -{ - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; +class Google_Service_Datastore_RollbackResponse extends Google_Model { + protected $headerType = 'Google_Service_Datastore_ResponseHeader'; + protected $headerDataType = ''; - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } + public function setHeader(Google_Service_Datastore_ResponseHeader $header) { + $this->header = $header; + } - public function getHeader() - { - return $this->header; - } + public function getHeader() { + return $this->header; + } } -class Google_Service_Datastore_RunQueryRequest extends Google_Model -{ - protected $gqlQueryType = 'Google_Service_Datastore_GqlQuery'; - protected $gqlQueryDataType = ''; - protected $partitionIdType = 'Google_Service_Datastore_PartitionId'; - protected $partitionIdDataType = ''; - protected $queryType = 'Google_Service_Datastore_Query'; - protected $queryDataType = ''; - protected $readOptionsType = 'Google_Service_Datastore_ReadOptions'; - protected $readOptionsDataType = ''; +class Google_Service_Datastore_RunQueryRequest extends Google_Model { + protected $gqlQueryType = 'Google_Service_Datastore_GqlQuery'; + protected $gqlQueryDataType = ''; + protected $partitionIdType = 'Google_Service_Datastore_PartitionId'; + protected $partitionIdDataType = ''; + protected $queryType = 'Google_Service_Datastore_Query'; + protected $queryDataType = ''; + protected $readOptionsType = 'Google_Service_Datastore_ReadOptions'; + protected $readOptionsDataType = ''; - public function setGqlQuery(Google_Service_Datastore_GqlQuery $gqlQuery) - { - $this->gqlQuery = $gqlQuery; - } + public function setGqlQuery(Google_Service_Datastore_GqlQuery $gqlQuery) { + $this->gqlQuery = $gqlQuery; + } - public function getGqlQuery() - { - return $this->gqlQuery; - } + public function getGqlQuery() { + return $this->gqlQuery; + } - public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId) - { - $this->partitionId = $partitionId; - } + public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId) { + $this->partitionId = $partitionId; + } - public function getPartitionId() - { - return $this->partitionId; - } + public function getPartitionId() { + return $this->partitionId; + } - public function setQuery(Google_Service_Datastore_Query $query) - { - $this->query = $query; - } + public function setQuery(Google_Service_Datastore_Query $query) { + $this->query = $query; + } - public function getQuery() - { - return $this->query; - } + public function getQuery() { + return $this->query; + } - public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions) - { - $this->readOptions = $readOptions; - } + public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions) { + $this->readOptions = $readOptions; + } - public function getReadOptions() - { - return $this->readOptions; - } + public function getReadOptions() { + return $this->readOptions; + } } -class Google_Service_Datastore_RunQueryResponse extends Google_Model -{ - protected $batchType = 'Google_Service_Datastore_QueryResultBatch'; - protected $batchDataType = ''; - protected $headerType = 'Google_Service_Datastore_ResponseHeader'; - protected $headerDataType = ''; +class Google_Service_Datastore_RunQueryResponse extends Google_Model { + protected $batchType = 'Google_Service_Datastore_QueryResultBatch'; + protected $batchDataType = ''; + protected $headerType = 'Google_Service_Datastore_ResponseHeader'; + protected $headerDataType = ''; - public function setBatch(Google_Service_Datastore_QueryResultBatch $batch) - { - $this->batch = $batch; - } + public function setBatch(Google_Service_Datastore_QueryResultBatch $batch) { + $this->batch = $batch; + } - public function getBatch() - { - return $this->batch; - } + public function getBatch() { + return $this->batch; + } - public function setHeader(Google_Service_Datastore_ResponseHeader $header) - { - $this->header = $header; - } + public function setHeader(Google_Service_Datastore_ResponseHeader $header) { + $this->header = $header; + } - public function getHeader() - { - return $this->header; - } + public function getHeader() { + return $this->header; + } } -class Google_Service_Datastore_Value extends Google_Collection -{ - public $blobKeyValue; - public $blobValue; - public $booleanValue; - public $dateTimeValue; - public $doubleValue; - protected $entityValueType = 'Google_Service_Datastore_Entity'; - protected $entityValueDataType = ''; - public $indexed; - public $integerValue; - protected $keyValueType = 'Google_Service_Datastore_Key'; - protected $keyValueDataType = ''; - protected $listValueType = 'Google_Service_Datastore_Value'; - protected $listValueDataType = 'array'; - public $meaning; - public $stringValue; +class Google_Service_Datastore_Value extends Google_Collection { + public $blobKeyValue; + public $blobValue; + public $booleanValue; + public $dateTimeValue; + public $doubleValue; + protected $entityValueType = 'Google_Service_Datastore_Entity'; + protected $entityValueDataType = ''; + public $indexed; + public $integerValue; + protected $keyValueType = 'Google_Service_Datastore_Key'; + protected $keyValueDataType = ''; + protected $listValueType = 'Google_Service_Datastore_Value'; + protected $listValueDataType = 'array'; + public $meaning; + public $stringValue; - public function setBlobKeyValue($blobKeyValue) - { - $this->blobKeyValue = $blobKeyValue; - } + public function setBlobKeyValue($blobKeyValue) { + $this->blobKeyValue = $blobKeyValue; + } - public function getBlobKeyValue() - { - return $this->blobKeyValue; - } + public function getBlobKeyValue() { + return $this->blobKeyValue; + } - public function setBlobValue($blobValue) - { - $this->blobValue = $blobValue; - } + public function setBlobValue($blobValue) { + $this->blobValue = $blobValue; + } - public function getBlobValue() - { - return $this->blobValue; - } + public function getBlobValue() { + return $this->blobValue; + } - public function setBooleanValue($booleanValue) - { - $this->booleanValue = $booleanValue; - } + public function setBooleanValue($booleanValue) { + $this->booleanValue = $booleanValue; + } - public function getBooleanValue() - { - return $this->booleanValue; - } + public function getBooleanValue() { + return $this->booleanValue; + } - public function setDateTimeValue($dateTimeValue) - { - $this->dateTimeValue = $dateTimeValue; - } + public function setDateTimeValue($dateTimeValue) { + $this->dateTimeValue = $dateTimeValue; + } - public function getDateTimeValue() - { - return $this->dateTimeValue; - } + public function getDateTimeValue() { + return $this->dateTimeValue; + } - public function setDoubleValue($doubleValue) - { - $this->doubleValue = $doubleValue; - } + public function setDoubleValue($doubleValue) { + $this->doubleValue = $doubleValue; + } - public function getDoubleValue() - { - return $this->doubleValue; - } + public function getDoubleValue() { + return $this->doubleValue; + } - public function setEntityValue(Google_Service_Datastore_Entity $entityValue) - { - $this->entityValue = $entityValue; - } + public function setEntityValue(Google_Service_Datastore_Entity $entityValue) { + $this->entityValue = $entityValue; + } - public function getEntityValue() - { - return $this->entityValue; - } + public function getEntityValue() { + return $this->entityValue; + } - public function setIndexed($indexed) - { - $this->indexed = $indexed; - } + public function setIndexed($indexed) { + $this->indexed = $indexed; + } - public function getIndexed() - { - return $this->indexed; - } + public function getIndexed() { + return $this->indexed; + } - public function setIntegerValue($integerValue) - { - $this->integerValue = $integerValue; - } + public function setIntegerValue($integerValue) { + $this->integerValue = $integerValue; + } - public function getIntegerValue() - { - return $this->integerValue; - } + public function getIntegerValue() { + return $this->integerValue; + } - public function setKeyValue(Google_Service_Datastore_Key $keyValue) - { - $this->keyValue = $keyValue; - } + public function setKeyValue(Google_Service_Datastore_Key $keyValue) { + $this->keyValue = $keyValue; + } - public function getKeyValue() - { - return $this->keyValue; - } + public function getKeyValue() { + return $this->keyValue; + } - public function setListValue($listValue) - { - $this->listValue = $listValue; - } + public function setListValue($listValue) { + $this->listValue = $listValue; + } - public function getListValue() - { - return $this->listValue; - } + public function getListValue() { + return $this->listValue; + } - public function setMeaning($meaning) - { - $this->meaning = $meaning; - } + public function setMeaning($meaning) { + $this->meaning = $meaning; + } - public function getMeaning() - { - return $this->meaning; - } + public function getMeaning() { + return $this->meaning; + } - public function setStringValue($stringValue) - { - $this->stringValue = $stringValue; - } + public function setStringValue($stringValue) { + $this->stringValue = $stringValue; + } - public function getStringValue() - { - return $this->stringValue; - } + public function getStringValue() { + return $this->stringValue; + } } diff --git a/oauth/Google/Service/Dfareporting.php b/oauth/Google/Service/Dfareporting.php index c1ea116..c4e78d8 100644 --- a/oauth/Google/Service/Dfareporting.php +++ b/oauth/Google/Service/Dfareporting.php @@ -29,349 +29,347 @@ * * @author Google, Inc. */ -class Google_Service_Dfareporting extends Google_Service -{ - /** View and manage DoubleClick for Advertisers reports. */ - const DFAREPORTING = "https://www.googleapis.com/auth/dfareporting"; +class Google_Service_Dfareporting extends Google_Service { + /** View and manage DoubleClick for Advertisers reports. */ + const DFAREPORTING = "https://www.googleapis.com/auth/dfareporting"; - public $dimensionValues; - public $files; - public $reports; - public $reports_compatibleFields; - public $reports_files; - public $userProfiles; - + public $dimensionValues; + public $files; + public $reports; + public $reports_compatibleFields; + public $reports_files; + public $userProfiles; - /** - * Constructs the internal representation of the Dfareporting service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'dfareporting/v1.3/'; - $this->version = 'v1.3'; - $this->serviceName = 'dfareporting'; - $this->dimensionValues = new Google_Service_Dfareporting_DimensionValues_Resource( - $this, - $this->serviceName, - 'dimensionValues', - array( - 'methods' => array( - 'query' => array( - 'path' => 'userprofiles/{profileId}/dimensionvalues/query', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->files = new Google_Service_Dfareporting_Files_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'get' => array( - 'path' => 'reports/{reportId}/files/{fileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/files', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scope' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->reports = new Google_Service_Dfareporting_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'userprofiles/{profileId}/reports', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scope' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'run' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/run', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'synchronous' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports_compatibleFields = new Google_Service_Dfareporting_ReportsCompatibleFields_Resource( - $this, - $this->serviceName, - 'compatibleFields', - array( - 'methods' => array( - 'query' => array( - 'path' => 'userprofiles/{profileId}/reports/compatiblefields/query', - 'httpMethod' => 'POST', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports_files = new Google_Service_Dfareporting_ReportsFiles_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/reports/{reportId}/files', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->userProfiles = new Google_Service_Dfareporting_UserProfiles_Resource( - $this, - $this->serviceName, - 'userProfiles', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Dfareporting service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'dfareporting/v1.3/'; + $this->version = 'v1.3'; + $this->serviceName = 'dfareporting'; + + $this->dimensionValues = new Google_Service_Dfareporting_DimensionValues_Resource( + $this, + $this->serviceName, + 'dimensionValues', + array( + 'methods' => array( + 'query' => array( + 'path' => 'userprofiles/{profileId}/dimensionvalues/query', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->files = new Google_Service_Dfareporting_Files_Resource( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'get' => array( + 'path' => 'reports/{reportId}/files/{fileId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'userprofiles/{profileId}/files', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scope' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->reports = new Google_Service_Dfareporting_Reports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'userprofiles/{profileId}/reports', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'userprofiles/{profileId}/reports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scope' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'run' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}/run', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'synchronous' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'update' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reports_compatibleFields = new Google_Service_Dfareporting_ReportsCompatibleFields_Resource( + $this, + $this->serviceName, + 'compatibleFields', + array( + 'methods' => array( + 'query' => array( + 'path' => 'userprofiles/{profileId}/reports/compatiblefields/query', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reports_files = new Google_Service_Dfareporting_ReportsFiles_Resource( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'userprofiles/{profileId}/reports/{reportId}/files', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->userProfiles = new Google_Service_Dfareporting_UserProfiles_Resource( + $this, + $this->serviceName, + 'userProfiles', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'userprofiles', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + } } @@ -383,30 +381,28 @@ class Google_Service_Dfareporting extends Google_Service * $dimensionValues = $dfareportingService->dimensionValues; * */ -class Google_Service_Dfareporting_DimensionValues_Resource extends Google_Service_Resource -{ +class Google_Service_Dfareporting_DimensionValues_Resource extends Google_Service_Resource { - /** - * Retrieves list of report dimension values for a list of filters. - * (dimensionValues.query) - * - * @param string $profileId - * The DFA user profile ID. - * @param Google_DimensionValueRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The value of the nextToken from the previous result page. - * @opt_param int maxResults - * Maximum number of results to return. - * @return Google_Service_Dfareporting_DimensionValueList - */ - public function query($profileId, Google_Service_Dfareporting_DimensionValueRequest $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Dfareporting_DimensionValueList"); - } + /** + * Retrieves list of report dimension values for a list of filters. + * (dimensionValues.query) + * + * @param string $profileId + * The DFA user profile ID. + * @param Google_DimensionValueRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The value of the nextToken from the previous result page. + * @opt_param int maxResults + * Maximum number of results to return. + * @return Google_Service_Dfareporting_DimensionValueList + */ + public function query($profileId, Google_Service_Dfareporting_DimensionValueRequest $postBody, $optParams = array()) { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Dfareporting_DimensionValueList"); + } } /** @@ -417,50 +413,48 @@ class Google_Service_Dfareporting_DimensionValues_Resource extends Google_Servic * $files = $dfareportingService->files; * */ -class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource -{ +class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource { - /** - * Retrieves a report file by its report ID and file ID. (files.get) - * - * @param string $reportId - * The ID of the report. - * @param string $fileId - * The ID of the report file. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DfareportingFile - */ - public function get($reportId, $fileId, $optParams = array()) - { - $params = array('reportId' => $reportId, 'fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); - } - /** - * Lists files for a user profile. (files.listFiles) - * - * @param string $profileId - * The DFA profile ID. - * @param array $optParams Optional parameters. - * - * @opt_param string sortField - * The field by which to sort the list. - * @opt_param int maxResults - * Maximum number of results to return. - * @opt_param string pageToken - * The value of the nextToken from the previous result page. - * @opt_param string sortOrder - * Order of sorted results, default is 'DESCENDING'. - * @opt_param string scope - * The scope that defines which results are returned, default is 'MINE'. - * @return Google_Service_Dfareporting_FileList - */ - public function listFiles($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); - } + /** + * Retrieves a report file by its report ID and file ID. (files.get) + * + * @param string $reportId + * The ID of the report. + * @param string $fileId + * The ID of the report file. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DfareportingFile + */ + public function get($reportId, $fileId, $optParams = array()) { + $params = array('reportId' => $reportId, 'fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); + } + + /** + * Lists files for a user profile. (files.listFiles) + * + * @param string $profileId + * The DFA profile ID. + * @param array $optParams Optional parameters. + * + * @opt_param string sortField + * The field by which to sort the list. + * @opt_param int maxResults + * Maximum number of results to return. + * @opt_param string pageToken + * The value of the nextToken from the previous result page. + * @opt_param string sortOrder + * Order of sorted results, default is 'DESCENDING'. + * @opt_param string scope + * The scope that defines which results are returned, default is 'MINE'. + * @return Google_Service_Dfareporting_FileList + */ + public function listFiles($profileId, $optParams = array()) { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); + } } /** @@ -471,133 +465,131 @@ class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource * $reports = $dfareportingService->reports; * */ -class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resource -{ +class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resource { - /** - * Deletes a report by its ID. (reports.delete) - * - * @param string $profileId - * The DFA user profile ID. - * @param string $reportId - * The ID of the report. - * @param array $optParams Optional parameters. - */ - public function delete($profileId, $reportId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a report by its ID. (reports.get) - * - * @param string $profileId - * The DFA user profile ID. - * @param string $reportId - * The ID of the report. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function get($profileId, $reportId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_Report"); - } - /** - * Creates a report. (reports.insert) - * - * @param string $profileId - * The DFA user profile ID. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Dfareporting_Report"); - } - /** - * Retrieves list of reports. (reports.listReports) - * - * @param string $profileId - * The DFA user profile ID. - * @param array $optParams Optional parameters. - * - * @opt_param string sortField - * The field by which to sort the list. - * @opt_param int maxResults - * Maximum number of results to return. - * @opt_param string pageToken - * The value of the nextToken from the previous result page. - * @opt_param string sortOrder - * Order of sorted results, default is 'DESCENDING'. - * @opt_param string scope - * The scope that defines which results are returned, default is 'MINE'. - * @return Google_Service_Dfareporting_ReportList - */ - public function listReports($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_ReportList"); - } - /** - * Updates a report. This method supports patch semantics. (reports.patch) - * - * @param string $profileId - * The DFA user profile ID. - * @param string $reportId - * The ID of the report. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function patch($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Dfareporting_Report"); - } - /** - * Runs a report. (reports.run) - * - * @param string $profileId - * The DFA profile ID. - * @param string $reportId - * The ID of the report. - * @param array $optParams Optional parameters. - * - * @opt_param bool synchronous - * If set and true, tries to run the report synchronously. - * @return Google_Service_Dfareporting_DfareportingFile - */ - public function run($profileId, $reportId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('run', array($params), "Google_Service_Dfareporting_DfareportingFile"); - } - /** - * Updates a report. (reports.update) - * - * @param string $profileId - * The DFA user profile ID. - * @param string $reportId - * The ID of the report. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_Report - */ - public function update($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Dfareporting_Report"); - } + /** + * Deletes a report by its ID. (reports.delete) + * + * @param string $profileId + * The DFA user profile ID. + * @param string $reportId + * The ID of the report. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $reportId, $optParams = array()) { + $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a report by its ID. (reports.get) + * + * @param string $profileId + * The DFA user profile ID. + * @param string $reportId + * The ID of the report. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function get($profileId, $reportId, $optParams = array()) { + $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Report"); + } + + /** + * Creates a report. (reports.insert) + * + * @param string $profileId + * The DFA user profile ID. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Report"); + } + + /** + * Retrieves list of reports. (reports.listReports) + * + * @param string $profileId + * The DFA user profile ID. + * @param array $optParams Optional parameters. + * + * @opt_param string sortField + * The field by which to sort the list. + * @opt_param int maxResults + * Maximum number of results to return. + * @opt_param string pageToken + * The value of the nextToken from the previous result page. + * @opt_param string sortOrder + * Order of sorted results, default is 'DESCENDING'. + * @opt_param string scope + * The scope that defines which results are returned, default is 'MINE'. + * @return Google_Service_Dfareporting_ReportList + */ + public function listReports($profileId, $optParams = array()) { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ReportList"); + } + + /** + * Updates a report. This method supports patch semantics. (reports.patch) + * + * @param string $profileId + * The DFA user profile ID. + * @param string $reportId + * The ID of the report. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function patch($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) { + $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Report"); + } + + /** + * Runs a report. (reports.run) + * + * @param string $profileId + * The DFA profile ID. + * @param string $reportId + * The ID of the report. + * @param array $optParams Optional parameters. + * + * @opt_param bool synchronous + * If set and true, tries to run the report synchronously. + * @return Google_Service_Dfareporting_DfareportingFile + */ + public function run($profileId, $reportId, $optParams = array()) { + $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('run', array($params), "Google_Service_Dfareporting_DfareportingFile"); + } + + /** + * Updates a report. (reports.update) + * + * @param string $profileId + * The DFA user profile ID. + * @param string $reportId + * The ID of the report. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Report + */ + public function update($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) { + $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Report"); + } } /** @@ -608,27 +600,26 @@ class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resour * $compatibleFields = $dfareportingService->compatibleFields; * */ -class Google_Service_Dfareporting_ReportsCompatibleFields_Resource extends Google_Service_Resource -{ +class Google_Service_Dfareporting_ReportsCompatibleFields_Resource extends Google_Service_Resource { - /** - * Returns the fields that are compatible to be selected in the respective - * sections of a report criteria, given the fields already selected in the input - * report and user permissions. (compatibleFields.query) - * - * @param string $profileId - * The DFA user profile ID. - * @param Google_Report $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_CompatibleFields - */ - public function query($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) - { - $params = array('profileId' => $profileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_Dfareporting_CompatibleFields"); - } + /** + * Returns the fields that are compatible to be selected in the respective + * sections of a report criteria, given the fields already selected in the input + * report and user permissions. (compatibleFields.query) + * + * @param string $profileId + * The DFA user profile ID. + * @param Google_Report $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CompatibleFields + */ + public function query($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array()) { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Dfareporting_CompatibleFields"); + } } + /** * The "files" collection of methods. * Typical usage is: @@ -637,52 +628,50 @@ class Google_Service_Dfareporting_ReportsCompatibleFields_Resource extends Googl * $files = $dfareportingService->files; * */ -class Google_Service_Dfareporting_ReportsFiles_Resource extends Google_Service_Resource -{ +class Google_Service_Dfareporting_ReportsFiles_Resource extends Google_Service_Resource { - /** - * Retrieves a report file. (files.get) - * - * @param string $profileId - * The DFA profile ID. - * @param string $reportId - * The ID of the report. - * @param string $fileId - * The ID of the report file. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DfareportingFile - */ - public function get($profileId, $reportId, $fileId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId, 'fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); - } - /** - * Lists files for a report. (files.listReportsFiles) - * - * @param string $profileId - * The DFA profile ID. - * @param string $reportId - * The ID of the parent report. - * @param array $optParams Optional parameters. - * - * @opt_param string sortField - * The field by which to sort the list. - * @opt_param int maxResults - * Maximum number of results to return. - * @opt_param string pageToken - * The value of the nextToken from the previous result page. - * @opt_param string sortOrder - * Order of sorted results, default is 'DESCENDING'. - * @return Google_Service_Dfareporting_FileList - */ - public function listReportsFiles($profileId, $reportId, $optParams = array()) - { - $params = array('profileId' => $profileId, 'reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); - } + /** + * Retrieves a report file. (files.get) + * + * @param string $profileId + * The DFA profile ID. + * @param string $reportId + * The ID of the report. + * @param string $fileId + * The ID of the report file. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DfareportingFile + */ + public function get($profileId, $reportId, $fileId, $optParams = array()) { + $params = array('profileId' => $profileId, 'reportId' => $reportId, 'fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile"); + } + + /** + * Lists files for a report. (files.listReportsFiles) + * + * @param string $profileId + * The DFA profile ID. + * @param string $reportId + * The ID of the parent report. + * @param array $optParams Optional parameters. + * + * @opt_param string sortField + * The field by which to sort the list. + * @opt_param int maxResults + * Maximum number of results to return. + * @opt_param string pageToken + * The value of the nextToken from the previous result page. + * @opt_param string sortOrder + * Order of sorted results, default is 'DESCENDING'. + * @return Google_Service_Dfareporting_FileList + */ + public function listReportsFiles($profileId, $reportId, $optParams = array()) { + $params = array('profileId' => $profileId, 'reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FileList"); + } } /** @@ -693,2236 +682,1836 @@ class Google_Service_Dfareporting_ReportsFiles_Resource extends Google_Service_R * $userProfiles = $dfareportingService->userProfiles; * */ -class Google_Service_Dfareporting_UserProfiles_Resource extends Google_Service_Resource -{ +class Google_Service_Dfareporting_UserProfiles_Resource extends Google_Service_Resource { - /** - * Gets one user profile by ID. (userProfiles.get) - * - * @param string $profileId - * The user profile ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserProfile - */ - public function get($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_UserProfile"); - } - /** - * Retrieves list of user profiles for a user. (userProfiles.listUserProfiles) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_UserProfileList - */ - public function listUserProfiles($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_UserProfileList"); - } + /** + * Gets one user profile by ID. (userProfiles.get) + * + * @param string $profileId + * The user profile ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserProfile + */ + public function get($profileId, $optParams = array()) { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserProfile"); + } + + /** + * Retrieves list of user profiles for a user. (userProfiles.listUserProfiles) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserProfileList + */ + public function listUserProfiles($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserProfileList"); + } } +class Google_Service_Dfareporting_Activities extends Google_Collection { + protected $filtersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $filtersDataType = 'array'; + public $kind; + public $metricNames; + public function setFilters($filters) { + $this->filters = $filters; + } -class Google_Service_Dfareporting_Activities extends Google_Collection -{ - protected $filtersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $filtersDataType = 'array'; - public $kind; - public $metricNames; + public function getFilters() { + return $this->filters; + } - public function setFilters($filters) - { - $this->filters = $filters; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getFilters() - { - return $this->filters; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setMetricNames($metricNames) { + $this->metricNames = $metricNames; + } - public function getKind() - { - return $this->kind; - } - - public function setMetricNames($metricNames) - { - $this->metricNames = $metricNames; - } - - public function getMetricNames() - { - return $this->metricNames; - } + public function getMetricNames() { + return $this->metricNames; + } } -class Google_Service_Dfareporting_CompatibleFields extends Google_Model -{ - protected $crossDimensionReachReportCompatibleFieldsType = 'Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields'; - protected $crossDimensionReachReportCompatibleFieldsDataType = ''; - protected $floodlightReportCompatibleFieldsType = 'Google_Service_Dfareporting_FloodlightReportCompatibleFields'; - protected $floodlightReportCompatibleFieldsDataType = ''; - public $kind; - protected $pathToConversionReportCompatibleFieldsType = 'Google_Service_Dfareporting_PathToConversionReportCompatibleFields'; - protected $pathToConversionReportCompatibleFieldsDataType = ''; - protected $reachReportCompatibleFieldsType = 'Google_Service_Dfareporting_ReachReportCompatibleFields'; - protected $reachReportCompatibleFieldsDataType = ''; - protected $reportCompatibleFieldsType = 'Google_Service_Dfareporting_ReportCompatibleFields'; - protected $reportCompatibleFieldsDataType = ''; +class Google_Service_Dfareporting_CompatibleFields extends Google_Model { + protected $crossDimensionReachReportCompatibleFieldsType = 'Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields'; + protected $crossDimensionReachReportCompatibleFieldsDataType = ''; + protected $floodlightReportCompatibleFieldsType = 'Google_Service_Dfareporting_FloodlightReportCompatibleFields'; + protected $floodlightReportCompatibleFieldsDataType = ''; + public $kind; + protected $pathToConversionReportCompatibleFieldsType = 'Google_Service_Dfareporting_PathToConversionReportCompatibleFields'; + protected $pathToConversionReportCompatibleFieldsDataType = ''; + protected $reachReportCompatibleFieldsType = 'Google_Service_Dfareporting_ReachReportCompatibleFields'; + protected $reachReportCompatibleFieldsDataType = ''; + protected $reportCompatibleFieldsType = 'Google_Service_Dfareporting_ReportCompatibleFields'; + protected $reportCompatibleFieldsDataType = ''; - public function setCrossDimensionReachReportCompatibleFields(Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields $crossDimensionReachReportCompatibleFields) - { - $this->crossDimensionReachReportCompatibleFields = $crossDimensionReachReportCompatibleFields; - } + public function setCrossDimensionReachReportCompatibleFields(Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields $crossDimensionReachReportCompatibleFields) { + $this->crossDimensionReachReportCompatibleFields = $crossDimensionReachReportCompatibleFields; + } - public function getCrossDimensionReachReportCompatibleFields() - { - return $this->crossDimensionReachReportCompatibleFields; - } + public function getCrossDimensionReachReportCompatibleFields() { + return $this->crossDimensionReachReportCompatibleFields; + } - public function setFloodlightReportCompatibleFields(Google_Service_Dfareporting_FloodlightReportCompatibleFields $floodlightReportCompatibleFields) - { - $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields; - } + public function setFloodlightReportCompatibleFields(Google_Service_Dfareporting_FloodlightReportCompatibleFields $floodlightReportCompatibleFields) { + $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields; + } - public function getFloodlightReportCompatibleFields() - { - return $this->floodlightReportCompatibleFields; - } + public function getFloodlightReportCompatibleFields() { + return $this->floodlightReportCompatibleFields; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPathToConversionReportCompatibleFields(Google_Service_Dfareporting_PathToConversionReportCompatibleFields $pathToConversionReportCompatibleFields) - { - $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields; - } + public function setPathToConversionReportCompatibleFields(Google_Service_Dfareporting_PathToConversionReportCompatibleFields $pathToConversionReportCompatibleFields) { + $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields; + } - public function getPathToConversionReportCompatibleFields() - { - return $this->pathToConversionReportCompatibleFields; - } + public function getPathToConversionReportCompatibleFields() { + return $this->pathToConversionReportCompatibleFields; + } - public function setReachReportCompatibleFields(Google_Service_Dfareporting_ReachReportCompatibleFields $reachReportCompatibleFields) - { - $this->reachReportCompatibleFields = $reachReportCompatibleFields; - } + public function setReachReportCompatibleFields(Google_Service_Dfareporting_ReachReportCompatibleFields $reachReportCompatibleFields) { + $this->reachReportCompatibleFields = $reachReportCompatibleFields; + } - public function getReachReportCompatibleFields() - { - return $this->reachReportCompatibleFields; - } + public function getReachReportCompatibleFields() { + return $this->reachReportCompatibleFields; + } - public function setReportCompatibleFields(Google_Service_Dfareporting_ReportCompatibleFields $reportCompatibleFields) - { - $this->reportCompatibleFields = $reportCompatibleFields; - } + public function setReportCompatibleFields(Google_Service_Dfareporting_ReportCompatibleFields $reportCompatibleFields) { + $this->reportCompatibleFields = $reportCompatibleFields; + } - public function getReportCompatibleFields() - { - return $this->reportCompatibleFields; - } + public function getReportCompatibleFields() { + return $this->reportCompatibleFields; + } } -class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields extends Google_Collection -{ - protected $breakdownType = 'Google_Service_Dfareporting_Dimension'; - protected $breakdownDataType = 'array'; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $overlapMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $overlapMetricsDataType = 'array'; +class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields extends Google_Collection { + protected $breakdownType = 'Google_Service_Dfareporting_Dimension'; + protected $breakdownDataType = 'array'; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $overlapMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $overlapMetricsDataType = 'array'; - public function setBreakdown($breakdown) - { - $this->breakdown = $breakdown; - } + public function setBreakdown($breakdown) { + $this->breakdown = $breakdown; + } - public function getBreakdown() - { - return $this->breakdown; - } + public function getBreakdown() { + return $this->breakdown; + } - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } + public function setDimensionFilters($dimensionFilters) { + $this->dimensionFilters = $dimensionFilters; + } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } + public function getDimensionFilters() { + return $this->dimensionFilters; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } + public function setMetrics($metrics) { + $this->metrics = $metrics; + } - public function getMetrics() - { - return $this->metrics; - } + public function getMetrics() { + return $this->metrics; + } - public function setOverlapMetrics($overlapMetrics) - { - $this->overlapMetrics = $overlapMetrics; - } + public function setOverlapMetrics($overlapMetrics) { + $this->overlapMetrics = $overlapMetrics; + } - public function getOverlapMetrics() - { - return $this->overlapMetrics; - } + public function getOverlapMetrics() { + return $this->overlapMetrics; + } } -class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection -{ - protected $filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $filteredEventIdsDataType = 'array'; - public $kind; +class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection { + protected $filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $filteredEventIdsDataType = 'array'; + public $kind; - public function setFilteredEventIds($filteredEventIds) - { - $this->filteredEventIds = $filteredEventIds; - } + public function setFilteredEventIds($filteredEventIds) { + $this->filteredEventIds = $filteredEventIds; + } - public function getFilteredEventIds() - { - return $this->filteredEventIds; - } + public function getFilteredEventIds() { + return $this->filteredEventIds; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Dfareporting_DateRange extends Google_Model -{ - public $endDate; - public $kind; - public $relativeDateRange; - public $startDate; +class Google_Service_Dfareporting_DateRange extends Google_Model { + public $endDate; + public $kind; + public $relativeDateRange; + public $startDate; - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } + public function setEndDate($endDate) { + $this->endDate = $endDate; + } - public function getEndDate() - { - return $this->endDate; - } + public function getEndDate() { + return $this->endDate; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRelativeDateRange($relativeDateRange) - { - $this->relativeDateRange = $relativeDateRange; - } + public function setRelativeDateRange($relativeDateRange) { + $this->relativeDateRange = $relativeDateRange; + } - public function getRelativeDateRange() - { - return $this->relativeDateRange; - } + public function getRelativeDateRange() { + return $this->relativeDateRange; + } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } + public function setStartDate($startDate) { + $this->startDate = $startDate; + } - public function getStartDate() - { - return $this->startDate; - } + public function getStartDate() { + return $this->startDate; + } } -class Google_Service_Dfareporting_DfareportingFile extends Google_Model -{ - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - public $etag; - public $fileName; - public $format; - public $id; - public $kind; - public $lastModifiedTime; - public $reportId; - public $status; - protected $urlsType = 'Google_Service_Dfareporting_DfareportingFileUrls'; - protected $urlsDataType = ''; +class Google_Service_Dfareporting_DfareportingFile extends Google_Model { + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + public $etag; + public $fileName; + public $format; + public $id; + public $kind; + public $lastModifiedTime; + public $reportId; + public $status; + protected $urlsType = 'Google_Service_Dfareporting_DfareportingFileUrls'; + protected $urlsDataType = ''; - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) - { - $this->dateRange = $dateRange; - } + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { + $this->dateRange = $dateRange; + } - public function getDateRange() - { - return $this->dateRange; - } + public function getDateRange() { + return $this->dateRange; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setFileName($fileName) - { - $this->fileName = $fileName; - } + public function setFileName($fileName) { + $this->fileName = $fileName; + } - public function getFileName() - { - return $this->fileName; - } + public function getFileName() { + return $this->fileName; + } - public function setFormat($format) - { - $this->format = $format; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } + public function setLastModifiedTime($lastModifiedTime) { + $this->lastModifiedTime = $lastModifiedTime; + } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } + public function getLastModifiedTime() { + return $this->lastModifiedTime; + } - public function setReportId($reportId) - { - $this->reportId = $reportId; - } + public function setReportId($reportId) { + $this->reportId = $reportId; + } - public function getReportId() - { - return $this->reportId; - } + public function getReportId() { + return $this->reportId; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setUrls(Google_Service_Dfareporting_DfareportingFileUrls $urls) - { - $this->urls = $urls; - } + public function setUrls(Google_Service_Dfareporting_DfareportingFileUrls $urls) { + $this->urls = $urls; + } - public function getUrls() - { - return $this->urls; - } + public function getUrls() { + return $this->urls; + } } -class Google_Service_Dfareporting_DfareportingFileUrls extends Google_Model -{ - public $apiUrl; - public $browserUrl; +class Google_Service_Dfareporting_DfareportingFileUrls extends Google_Model { + public $apiUrl; + public $browserUrl; - public function setApiUrl($apiUrl) - { - $this->apiUrl = $apiUrl; - } + public function setApiUrl($apiUrl) { + $this->apiUrl = $apiUrl; + } - public function getApiUrl() - { - return $this->apiUrl; - } + public function getApiUrl() { + return $this->apiUrl; + } - public function setBrowserUrl($browserUrl) - { - $this->browserUrl = $browserUrl; - } + public function setBrowserUrl($browserUrl) { + $this->browserUrl = $browserUrl; + } - public function getBrowserUrl() - { - return $this->browserUrl; - } + public function getBrowserUrl() { + return $this->browserUrl; + } } -class Google_Service_Dfareporting_Dimension extends Google_Model -{ - public $kind; - public $name; +class Google_Service_Dfareporting_Dimension extends Google_Model { + public $kind; + public $name; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Dfareporting_DimensionFilter extends Google_Model -{ - public $dimensionName; - public $kind; - public $value; +class Google_Service_Dfareporting_DimensionFilter extends Google_Model { + public $dimensionName; + public $kind; + public $value; - public function setDimensionName($dimensionName) - { - $this->dimensionName = $dimensionName; - } + public function setDimensionName($dimensionName) { + $this->dimensionName = $dimensionName; + } - public function getDimensionName() - { - return $this->dimensionName; - } + public function getDimensionName() { + return $this->dimensionName; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Dfareporting_DimensionValue extends Google_Model -{ - public $dimensionName; - public $etag; - public $id; - public $kind; - public $matchType; - public $value; +class Google_Service_Dfareporting_DimensionValue extends Google_Model { + public $dimensionName; + public $etag; + public $id; + public $kind; + public $matchType; + public $value; - public function setDimensionName($dimensionName) - { - $this->dimensionName = $dimensionName; - } + public function setDimensionName($dimensionName) { + $this->dimensionName = $dimensionName; + } - public function getDimensionName() - { - return $this->dimensionName; - } + public function getDimensionName() { + return $this->dimensionName; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMatchType($matchType) - { - $this->matchType = $matchType; - } + public function setMatchType($matchType) { + $this->matchType = $matchType; + } - public function getMatchType() - { - return $this->matchType; - } + public function getMatchType() { + return $this->matchType; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Dfareporting_DimensionValueList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Dfareporting_DimensionValueList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collection -{ - public $dimensionName; - public $endDate; - protected $filtersType = 'Google_Service_Dfareporting_DimensionFilter'; - protected $filtersDataType = 'array'; - public $kind; - public $startDate; +class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collection { + public $dimensionName; + public $endDate; + protected $filtersType = 'Google_Service_Dfareporting_DimensionFilter'; + protected $filtersDataType = 'array'; + public $kind; + public $startDate; - public function setDimensionName($dimensionName) - { - $this->dimensionName = $dimensionName; - } + public function setDimensionName($dimensionName) { + $this->dimensionName = $dimensionName; + } - public function getDimensionName() - { - return $this->dimensionName; - } + public function getDimensionName() { + return $this->dimensionName; + } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } + public function setEndDate($endDate) { + $this->endDate = $endDate; + } - public function getEndDate() - { - return $this->endDate; - } + public function getEndDate() { + return $this->endDate; + } - public function setFilters($filters) - { - $this->filters = $filters; - } + public function setFilters($filters) { + $this->filters = $filters; + } - public function getFilters() - { - return $this->filters; - } + public function getFilters() { + return $this->filters; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } + public function setStartDate($startDate) { + $this->startDate = $startDate; + } - public function getStartDate() - { - return $this->startDate; - } + public function getStartDate() { + return $this->startDate; + } } -class Google_Service_Dfareporting_FileList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_DfareportingFile'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Dfareporting_FileList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Dfareporting_DfareportingFile'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection -{ - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; +class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection { + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionsDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } + public function setDimensionFilters($dimensionFilters) { + $this->dimensionFilters = $dimensionFilters; + } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } + public function getDimensionFilters() { + return $this->dimensionFilters; + } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } - public function getDimensions() - { - return $this->dimensions; - } + public function getDimensions() { + return $this->dimensions; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } + public function setMetrics($metrics) { + $this->metrics = $metrics; + } - public function getMetrics() - { - return $this->metrics; - } + public function getMetrics() { + return $this->metrics; + } } -class Google_Service_Dfareporting_Metric extends Google_Model -{ - public $kind; - public $name; +class Google_Service_Dfareporting_Metric extends Google_Model { + public $kind; + public $name; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection -{ - protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $conversionDimensionsDataType = 'array'; - protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension'; - protected $customFloodlightVariablesDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $perInteractionDimensionsDataType = 'array'; +class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection { + protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $conversionDimensionsDataType = 'array'; + protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension'; + protected $customFloodlightVariablesDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $perInteractionDimensionsDataType = 'array'; - public function setConversionDimensions($conversionDimensions) - { - $this->conversionDimensions = $conversionDimensions; - } + public function setConversionDimensions($conversionDimensions) { + $this->conversionDimensions = $conversionDimensions; + } - public function getConversionDimensions() - { - return $this->conversionDimensions; - } + public function getConversionDimensions() { + return $this->conversionDimensions; + } - public function setCustomFloodlightVariables($customFloodlightVariables) - { - $this->customFloodlightVariables = $customFloodlightVariables; - } + public function setCustomFloodlightVariables($customFloodlightVariables) { + $this->customFloodlightVariables = $customFloodlightVariables; + } - public function getCustomFloodlightVariables() - { - return $this->customFloodlightVariables; - } + public function getCustomFloodlightVariables() { + return $this->customFloodlightVariables; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } + public function setMetrics($metrics) { + $this->metrics = $metrics; + } - public function getMetrics() - { - return $this->metrics; - } + public function getMetrics() { + return $this->metrics; + } - public function setPerInteractionDimensions($perInteractionDimensions) - { - $this->perInteractionDimensions = $perInteractionDimensions; - } + public function setPerInteractionDimensions($perInteractionDimensions) { + $this->perInteractionDimensions = $perInteractionDimensions; + } - public function getPerInteractionDimensions() - { - return $this->perInteractionDimensions; - } + public function getPerInteractionDimensions() { + return $this->perInteractionDimensions; + } } -class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection -{ - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $pivotedActivityMetricsDataType = 'array'; - protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $reachByFrequencyMetricsDataType = 'array'; +class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection { + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionsDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $pivotedActivityMetricsDataType = 'array'; + protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $reachByFrequencyMetricsDataType = 'array'; - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } + public function setDimensionFilters($dimensionFilters) { + $this->dimensionFilters = $dimensionFilters; + } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } + public function getDimensionFilters() { + return $this->dimensionFilters; + } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } - public function getDimensions() - { - return $this->dimensions; - } + public function getDimensions() { + return $this->dimensions; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } + public function setMetrics($metrics) { + $this->metrics = $metrics; + } - public function getMetrics() - { - return $this->metrics; - } + public function getMetrics() { + return $this->metrics; + } - public function setPivotedActivityMetrics($pivotedActivityMetrics) - { - $this->pivotedActivityMetrics = $pivotedActivityMetrics; - } + public function setPivotedActivityMetrics($pivotedActivityMetrics) { + $this->pivotedActivityMetrics = $pivotedActivityMetrics; + } - public function getPivotedActivityMetrics() - { - return $this->pivotedActivityMetrics; - } + public function getPivotedActivityMetrics() { + return $this->pivotedActivityMetrics; + } - public function setReachByFrequencyMetrics($reachByFrequencyMetrics) - { - $this->reachByFrequencyMetrics = $reachByFrequencyMetrics; - } + public function setReachByFrequencyMetrics($reachByFrequencyMetrics) { + $this->reachByFrequencyMetrics = $reachByFrequencyMetrics; + } - public function getReachByFrequencyMetrics() - { - return $this->reachByFrequencyMetrics; - } + public function getReachByFrequencyMetrics() { + return $this->reachByFrequencyMetrics; + } } -class Google_Service_Dfareporting_Recipient extends Google_Model -{ - public $deliveryType; - public $email; - public $kind; +class Google_Service_Dfareporting_Recipient extends Google_Model { + public $deliveryType; + public $email; + public $kind; - public function setDeliveryType($deliveryType) - { - $this->deliveryType = $deliveryType; - } + public function setDeliveryType($deliveryType) { + $this->deliveryType = $deliveryType; + } - public function getDeliveryType() - { - return $this->deliveryType; - } + public function getDeliveryType() { + return $this->deliveryType; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Dfareporting_Report extends Google_Model -{ - public $accountId; - protected $activeGrpCriteriaType = 'Google_Service_Dfareporting_ReportActiveGrpCriteria'; - protected $activeGrpCriteriaDataType = ''; - protected $criteriaType = 'Google_Service_Dfareporting_ReportCriteria'; - protected $criteriaDataType = ''; - protected $crossDimensionReachCriteriaType = 'Google_Service_Dfareporting_ReportCrossDimensionReachCriteria'; - protected $crossDimensionReachCriteriaDataType = ''; - protected $deliveryType = 'Google_Service_Dfareporting_ReportDelivery'; - protected $deliveryDataType = ''; - public $etag; - public $fileName; - protected $floodlightCriteriaType = 'Google_Service_Dfareporting_ReportFloodlightCriteria'; - protected $floodlightCriteriaDataType = ''; - public $format; - public $id; - public $kind; - public $lastModifiedTime; - public $name; - public $ownerProfileId; - protected $pathToConversionCriteriaType = 'Google_Service_Dfareporting_ReportPathToConversionCriteria'; - protected $pathToConversionCriteriaDataType = ''; - protected $reachCriteriaType = 'Google_Service_Dfareporting_ReportReachCriteria'; - protected $reachCriteriaDataType = ''; - protected $scheduleType = 'Google_Service_Dfareporting_ReportSchedule'; - protected $scheduleDataType = ''; - public $subAccountId; - public $type; +class Google_Service_Dfareporting_Report extends Google_Model { + public $accountId; + protected $activeGrpCriteriaType = 'Google_Service_Dfareporting_ReportActiveGrpCriteria'; + protected $activeGrpCriteriaDataType = ''; + protected $criteriaType = 'Google_Service_Dfareporting_ReportCriteria'; + protected $criteriaDataType = ''; + protected $crossDimensionReachCriteriaType = 'Google_Service_Dfareporting_ReportCrossDimensionReachCriteria'; + protected $crossDimensionReachCriteriaDataType = ''; + protected $deliveryType = 'Google_Service_Dfareporting_ReportDelivery'; + protected $deliveryDataType = ''; + public $etag; + public $fileName; + protected $floodlightCriteriaType = 'Google_Service_Dfareporting_ReportFloodlightCriteria'; + protected $floodlightCriteriaDataType = ''; + public $format; + public $id; + public $kind; + public $lastModifiedTime; + public $name; + public $ownerProfileId; + protected $pathToConversionCriteriaType = 'Google_Service_Dfareporting_ReportPathToConversionCriteria'; + protected $pathToConversionCriteriaDataType = ''; + protected $reachCriteriaType = 'Google_Service_Dfareporting_ReportReachCriteria'; + protected $reachCriteriaDataType = ''; + protected $scheduleType = 'Google_Service_Dfareporting_ReportSchedule'; + protected $scheduleDataType = ''; + public $subAccountId; + public $type; - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } + public function setAccountId($accountId) { + $this->accountId = $accountId; + } - public function getAccountId() - { - return $this->accountId; - } + public function getAccountId() { + return $this->accountId; + } - public function setActiveGrpCriteria(Google_Service_Dfareporting_ReportActiveGrpCriteria $activeGrpCriteria) - { - $this->activeGrpCriteria = $activeGrpCriteria; - } + public function setActiveGrpCriteria(Google_Service_Dfareporting_ReportActiveGrpCriteria $activeGrpCriteria) { + $this->activeGrpCriteria = $activeGrpCriteria; + } - public function getActiveGrpCriteria() - { - return $this->activeGrpCriteria; - } + public function getActiveGrpCriteria() { + return $this->activeGrpCriteria; + } - public function setCriteria(Google_Service_Dfareporting_ReportCriteria $criteria) - { - $this->criteria = $criteria; - } + public function setCriteria(Google_Service_Dfareporting_ReportCriteria $criteria) { + $this->criteria = $criteria; + } - public function getCriteria() - { - return $this->criteria; - } + public function getCriteria() { + return $this->criteria; + } - public function setCrossDimensionReachCriteria(Google_Service_Dfareporting_ReportCrossDimensionReachCriteria $crossDimensionReachCriteria) - { - $this->crossDimensionReachCriteria = $crossDimensionReachCriteria; - } + public function setCrossDimensionReachCriteria(Google_Service_Dfareporting_ReportCrossDimensionReachCriteria $crossDimensionReachCriteria) { + $this->crossDimensionReachCriteria = $crossDimensionReachCriteria; + } - public function getCrossDimensionReachCriteria() - { - return $this->crossDimensionReachCriteria; - } + public function getCrossDimensionReachCriteria() { + return $this->crossDimensionReachCriteria; + } - public function setDelivery(Google_Service_Dfareporting_ReportDelivery $delivery) - { - $this->delivery = $delivery; - } + public function setDelivery(Google_Service_Dfareporting_ReportDelivery $delivery) { + $this->delivery = $delivery; + } - public function getDelivery() - { - return $this->delivery; - } + public function getDelivery() { + return $this->delivery; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setFileName($fileName) - { - $this->fileName = $fileName; - } + public function setFileName($fileName) { + $this->fileName = $fileName; + } - public function getFileName() - { - return $this->fileName; - } + public function getFileName() { + return $this->fileName; + } - public function setFloodlightCriteria(Google_Service_Dfareporting_ReportFloodlightCriteria $floodlightCriteria) - { - $this->floodlightCriteria = $floodlightCriteria; - } + public function setFloodlightCriteria(Google_Service_Dfareporting_ReportFloodlightCriteria $floodlightCriteria) { + $this->floodlightCriteria = $floodlightCriteria; + } - public function getFloodlightCriteria() - { - return $this->floodlightCriteria; - } + public function getFloodlightCriteria() { + return $this->floodlightCriteria; + } - public function setFormat($format) - { - $this->format = $format; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } + public function setLastModifiedTime($lastModifiedTime) { + $this->lastModifiedTime = $lastModifiedTime; + } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } + public function getLastModifiedTime() { + return $this->lastModifiedTime; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOwnerProfileId($ownerProfileId) - { - $this->ownerProfileId = $ownerProfileId; - } + public function setOwnerProfileId($ownerProfileId) { + $this->ownerProfileId = $ownerProfileId; + } - public function getOwnerProfileId() - { - return $this->ownerProfileId; - } + public function getOwnerProfileId() { + return $this->ownerProfileId; + } - public function setPathToConversionCriteria(Google_Service_Dfareporting_ReportPathToConversionCriteria $pathToConversionCriteria) - { - $this->pathToConversionCriteria = $pathToConversionCriteria; - } + public function setPathToConversionCriteria(Google_Service_Dfareporting_ReportPathToConversionCriteria $pathToConversionCriteria) { + $this->pathToConversionCriteria = $pathToConversionCriteria; + } - public function getPathToConversionCriteria() - { - return $this->pathToConversionCriteria; - } + public function getPathToConversionCriteria() { + return $this->pathToConversionCriteria; + } - public function setReachCriteria(Google_Service_Dfareporting_ReportReachCriteria $reachCriteria) - { - $this->reachCriteria = $reachCriteria; - } + public function setReachCriteria(Google_Service_Dfareporting_ReportReachCriteria $reachCriteria) { + $this->reachCriteria = $reachCriteria; + } - public function getReachCriteria() - { - return $this->reachCriteria; - } + public function getReachCriteria() { + return $this->reachCriteria; + } - public function setSchedule(Google_Service_Dfareporting_ReportSchedule $schedule) - { - $this->schedule = $schedule; - } + public function setSchedule(Google_Service_Dfareporting_ReportSchedule $schedule) { + $this->schedule = $schedule; + } - public function getSchedule() - { - return $this->schedule; - } + public function getSchedule() { + return $this->schedule; + } - public function setSubAccountId($subAccountId) - { - $this->subAccountId = $subAccountId; - } + public function setSubAccountId($subAccountId) { + $this->subAccountId = $subAccountId; + } - public function getSubAccountId() - { - return $this->subAccountId; - } + public function getSubAccountId() { + return $this->subAccountId; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Dfareporting_ReportActiveGrpCriteria extends Google_Collection -{ - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - public $metricNames; +class Google_Service_Dfareporting_ReportActiveGrpCriteria extends Google_Collection { + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $dimensionsDataType = 'array'; + public $metricNames; - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) - { - $this->dateRange = $dateRange; - } + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { + $this->dateRange = $dateRange; + } - public function getDateRange() - { - return $this->dateRange; - } + public function getDateRange() { + return $this->dateRange; + } - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } + public function setDimensionFilters($dimensionFilters) { + $this->dimensionFilters = $dimensionFilters; + } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } + public function getDimensionFilters() { + return $this->dimensionFilters; + } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } - public function getDimensions() - { - return $this->dimensions; - } + public function getDimensions() { + return $this->dimensions; + } - public function setMetricNames($metricNames) - { - $this->metricNames = $metricNames; - } + public function setMetricNames($metricNames) { + $this->metricNames = $metricNames; + } - public function getMetricNames() - { - return $this->metricNames; - } + public function getMetricNames() { + return $this->metricNames; + } } -class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collection -{ - protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; - protected $dimensionsDataType = 'array'; - public $kind; - protected $metricsType = 'Google_Service_Dfareporting_Metric'; - protected $metricsDataType = 'array'; - protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; - protected $pivotedActivityMetricsDataType = 'array'; +class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collection { + protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_Dimension'; + protected $dimensionsDataType = 'array'; + public $kind; + protected $metricsType = 'Google_Service_Dfareporting_Metric'; + protected $metricsDataType = 'array'; + protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric'; + protected $pivotedActivityMetricsDataType = 'array'; - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } + public function setDimensionFilters($dimensionFilters) { + $this->dimensionFilters = $dimensionFilters; + } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } + public function getDimensionFilters() { + return $this->dimensionFilters; + } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } - public function getDimensions() - { - return $this->dimensions; - } + public function getDimensions() { + return $this->dimensions; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } + public function setMetrics($metrics) { + $this->metrics = $metrics; + } - public function getMetrics() - { - return $this->metrics; - } + public function getMetrics() { + return $this->metrics; + } - public function setPivotedActivityMetrics($pivotedActivityMetrics) - { - $this->pivotedActivityMetrics = $pivotedActivityMetrics; - } + public function setPivotedActivityMetrics($pivotedActivityMetrics) { + $this->pivotedActivityMetrics = $pivotedActivityMetrics; + } - public function getPivotedActivityMetrics() - { - return $this->pivotedActivityMetrics; - } + public function getPivotedActivityMetrics() { + return $this->pivotedActivityMetrics; + } } -class Google_Service_Dfareporting_ReportCriteria extends Google_Collection -{ - protected $activitiesType = 'Google_Service_Dfareporting_Activities'; - protected $activitiesDataType = ''; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; - protected $customRichMediaEventsDataType = ''; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - public $metricNames; +class Google_Service_Dfareporting_ReportCriteria extends Google_Collection { + protected $activitiesType = 'Google_Service_Dfareporting_Activities'; + protected $activitiesDataType = ''; + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; + protected $customRichMediaEventsDataType = ''; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $dimensionsDataType = 'array'; + public $metricNames; - public function setActivities(Google_Service_Dfareporting_Activities $activities) - { - $this->activities = $activities; - } + public function setActivities(Google_Service_Dfareporting_Activities $activities) { + $this->activities = $activities; + } - public function getActivities() - { - return $this->activities; - } + public function getActivities() { + return $this->activities; + } - public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents) - { - $this->customRichMediaEvents = $customRichMediaEvents; - } + public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents) { + $this->customRichMediaEvents = $customRichMediaEvents; + } - public function getCustomRichMediaEvents() - { - return $this->customRichMediaEvents; - } + public function getCustomRichMediaEvents() { + return $this->customRichMediaEvents; + } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) - { - $this->dateRange = $dateRange; - } + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { + $this->dateRange = $dateRange; + } - public function getDateRange() - { - return $this->dateRange; - } + public function getDateRange() { + return $this->dateRange; + } - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } + public function setDimensionFilters($dimensionFilters) { + $this->dimensionFilters = $dimensionFilters; + } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } + public function getDimensionFilters() { + return $this->dimensionFilters; + } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } - public function getDimensions() - { - return $this->dimensions; - } + public function getDimensions() { + return $this->dimensions; + } - public function setMetricNames($metricNames) - { - $this->metricNames = $metricNames; - } + public function setMetricNames($metricNames) { + $this->metricNames = $metricNames; + } - public function getMetricNames() - { - return $this->metricNames; - } + public function getMetricNames() { + return $this->metricNames; + } } -class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Google_Collection -{ - protected $breakdownType = 'Google_Service_Dfareporting_SortedDimension'; - protected $breakdownDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - public $dimension; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - public $metricNames; - public $overlapMetricNames; - public $pivoted; +class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Google_Collection { + protected $breakdownType = 'Google_Service_Dfareporting_SortedDimension'; + protected $breakdownDataType = 'array'; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + public $dimension; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $dimensionFiltersDataType = 'array'; + public $metricNames; + public $overlapMetricNames; + public $pivoted; - public function setBreakdown($breakdown) - { - $this->breakdown = $breakdown; - } + public function setBreakdown($breakdown) { + $this->breakdown = $breakdown; + } - public function getBreakdown() - { - return $this->breakdown; - } + public function getBreakdown() { + return $this->breakdown; + } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) - { - $this->dateRange = $dateRange; - } + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { + $this->dateRange = $dateRange; + } - public function getDateRange() - { - return $this->dateRange; - } + public function getDateRange() { + return $this->dateRange; + } - public function setDimension($dimension) - { - $this->dimension = $dimension; - } + public function setDimension($dimension) { + $this->dimension = $dimension; + } - public function getDimension() - { - return $this->dimension; - } + public function getDimension() { + return $this->dimension; + } - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } + public function setDimensionFilters($dimensionFilters) { + $this->dimensionFilters = $dimensionFilters; + } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } + public function getDimensionFilters() { + return $this->dimensionFilters; + } - public function setMetricNames($metricNames) - { - $this->metricNames = $metricNames; - } + public function setMetricNames($metricNames) { + $this->metricNames = $metricNames; + } - public function getMetricNames() - { - return $this->metricNames; - } + public function getMetricNames() { + return $this->metricNames; + } - public function setOverlapMetricNames($overlapMetricNames) - { - $this->overlapMetricNames = $overlapMetricNames; - } + public function setOverlapMetricNames($overlapMetricNames) { + $this->overlapMetricNames = $overlapMetricNames; + } - public function getOverlapMetricNames() - { - return $this->overlapMetricNames; - } + public function getOverlapMetricNames() { + return $this->overlapMetricNames; + } - public function setPivoted($pivoted) - { - $this->pivoted = $pivoted; - } + public function setPivoted($pivoted) { + $this->pivoted = $pivoted; + } - public function getPivoted() - { - return $this->pivoted; - } + public function getPivoted() { + return $this->pivoted; + } } -class Google_Service_Dfareporting_ReportDelivery extends Google_Collection -{ - public $emailOwner; - public $emailOwnerDeliveryType; - public $message; - protected $recipientsType = 'Google_Service_Dfareporting_Recipient'; - protected $recipientsDataType = 'array'; +class Google_Service_Dfareporting_ReportDelivery extends Google_Collection { + public $emailOwner; + public $emailOwnerDeliveryType; + public $message; + protected $recipientsType = 'Google_Service_Dfareporting_Recipient'; + protected $recipientsDataType = 'array'; - public function setEmailOwner($emailOwner) - { - $this->emailOwner = $emailOwner; - } + public function setEmailOwner($emailOwner) { + $this->emailOwner = $emailOwner; + } - public function getEmailOwner() - { - return $this->emailOwner; - } + public function getEmailOwner() { + return $this->emailOwner; + } - public function setEmailOwnerDeliveryType($emailOwnerDeliveryType) - { - $this->emailOwnerDeliveryType = $emailOwnerDeliveryType; - } + public function setEmailOwnerDeliveryType($emailOwnerDeliveryType) { + $this->emailOwnerDeliveryType = $emailOwnerDeliveryType; + } - public function getEmailOwnerDeliveryType() - { - return $this->emailOwnerDeliveryType; - } + public function getEmailOwnerDeliveryType() { + return $this->emailOwnerDeliveryType; + } - public function setMessage($message) - { - $this->message = $message; - } + public function setMessage($message) { + $this->message = $message; + } - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } - public function setRecipients($recipients) - { - $this->recipients = $recipients; - } + public function setRecipients($recipients) { + $this->recipients = $recipients; + } - public function getRecipients() - { - return $this->recipients; - } + public function getRecipients() { + return $this->recipients; + } } -class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collection -{ - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $customRichMediaEventsDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigIdDataType = ''; - public $metricNames; - protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties'; - protected $reportPropertiesDataType = ''; +class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collection { + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $customRichMediaEventsDataType = 'array'; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $dimensionsDataType = 'array'; + protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigIdDataType = ''; + public $metricNames; + protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties'; + protected $reportPropertiesDataType = ''; - public function setCustomRichMediaEvents($customRichMediaEvents) - { - $this->customRichMediaEvents = $customRichMediaEvents; - } + public function setCustomRichMediaEvents($customRichMediaEvents) { + $this->customRichMediaEvents = $customRichMediaEvents; + } - public function getCustomRichMediaEvents() - { - return $this->customRichMediaEvents; - } + public function getCustomRichMediaEvents() { + return $this->customRichMediaEvents; + } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) - { - $this->dateRange = $dateRange; - } + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { + $this->dateRange = $dateRange; + } - public function getDateRange() - { - return $this->dateRange; - } + public function getDateRange() { + return $this->dateRange; + } - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } + public function setDimensionFilters($dimensionFilters) { + $this->dimensionFilters = $dimensionFilters; + } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } + public function getDimensionFilters() { + return $this->dimensionFilters; + } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } - public function getDimensions() - { - return $this->dimensions; - } + public function getDimensions() { + return $this->dimensions; + } - public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId) - { - $this->floodlightConfigId = $floodlightConfigId; - } + public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId) { + $this->floodlightConfigId = $floodlightConfigId; + } - public function getFloodlightConfigId() - { - return $this->floodlightConfigId; - } + public function getFloodlightConfigId() { + return $this->floodlightConfigId; + } - public function setMetricNames($metricNames) - { - $this->metricNames = $metricNames; - } + public function setMetricNames($metricNames) { + $this->metricNames = $metricNames; + } - public function getMetricNames() - { - return $this->metricNames; - } + public function getMetricNames() { + return $this->metricNames; + } - public function setReportProperties(Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties $reportProperties) - { - $this->reportProperties = $reportProperties; - } + public function setReportProperties(Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties $reportProperties) { + $this->reportProperties = $reportProperties; + } - public function getReportProperties() - { - return $this->reportProperties; - } + public function getReportProperties() { + return $this->reportProperties; + } } -class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties extends Google_Model -{ - public $includeAttributedIPConversions; - public $includeUnattributedCookieConversions; - public $includeUnattributedIPConversions; +class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties extends Google_Model { + public $includeAttributedIPConversions; + public $includeUnattributedCookieConversions; + public $includeUnattributedIPConversions; - public function setIncludeAttributedIPConversions($includeAttributedIPConversions) - { - $this->includeAttributedIPConversions = $includeAttributedIPConversions; - } + public function setIncludeAttributedIPConversions($includeAttributedIPConversions) { + $this->includeAttributedIPConversions = $includeAttributedIPConversions; + } - public function getIncludeAttributedIPConversions() - { - return $this->includeAttributedIPConversions; - } + public function getIncludeAttributedIPConversions() { + return $this->includeAttributedIPConversions; + } - public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions) - { - $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions; - } + public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions) { + $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions; + } - public function getIncludeUnattributedCookieConversions() - { - return $this->includeUnattributedCookieConversions; - } + public function getIncludeUnattributedCookieConversions() { + return $this->includeUnattributedCookieConversions; + } - public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions) - { - $this->includeUnattributedIPConversions = $includeUnattributedIPConversions; - } + public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions) { + $this->includeUnattributedIPConversions = $includeUnattributedIPConversions; + } - public function getIncludeUnattributedIPConversions() - { - return $this->includeUnattributedIPConversions; - } + public function getIncludeUnattributedIPConversions() { + return $this->includeUnattributedIPConversions; + } } -class Google_Service_Dfareporting_ReportList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_Report'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Dfareporting_ReportList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Dfareporting_Report'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_Collection -{ - protected $activityFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $activityFiltersDataType = 'array'; - protected $conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $conversionDimensionsDataType = 'array'; - protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_SortedDimension'; - protected $customFloodlightVariablesDataType = 'array'; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; - protected $customRichMediaEventsDataType = 'array'; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; - protected $floodlightConfigIdDataType = ''; - public $metricNames; - protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $perInteractionDimensionsDataType = 'array'; - protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties'; - protected $reportPropertiesDataType = ''; +class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_Collection { + protected $activityFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $activityFiltersDataType = 'array'; + protected $conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $conversionDimensionsDataType = 'array'; + protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_SortedDimension'; + protected $customFloodlightVariablesDataType = 'array'; + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue'; + protected $customRichMediaEventsDataType = 'array'; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigIdDataType = ''; + public $metricNames; + protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $perInteractionDimensionsDataType = 'array'; + protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties'; + protected $reportPropertiesDataType = ''; - public function setActivityFilters($activityFilters) - { - $this->activityFilters = $activityFilters; - } + public function setActivityFilters($activityFilters) { + $this->activityFilters = $activityFilters; + } - public function getActivityFilters() - { - return $this->activityFilters; - } + public function getActivityFilters() { + return $this->activityFilters; + } - public function setConversionDimensions($conversionDimensions) - { - $this->conversionDimensions = $conversionDimensions; - } + public function setConversionDimensions($conversionDimensions) { + $this->conversionDimensions = $conversionDimensions; + } - public function getConversionDimensions() - { - return $this->conversionDimensions; - } + public function getConversionDimensions() { + return $this->conversionDimensions; + } - public function setCustomFloodlightVariables($customFloodlightVariables) - { - $this->customFloodlightVariables = $customFloodlightVariables; - } + public function setCustomFloodlightVariables($customFloodlightVariables) { + $this->customFloodlightVariables = $customFloodlightVariables; + } - public function getCustomFloodlightVariables() - { - return $this->customFloodlightVariables; - } + public function getCustomFloodlightVariables() { + return $this->customFloodlightVariables; + } - public function setCustomRichMediaEvents($customRichMediaEvents) - { - $this->customRichMediaEvents = $customRichMediaEvents; - } + public function setCustomRichMediaEvents($customRichMediaEvents) { + $this->customRichMediaEvents = $customRichMediaEvents; + } - public function getCustomRichMediaEvents() - { - return $this->customRichMediaEvents; - } + public function getCustomRichMediaEvents() { + return $this->customRichMediaEvents; + } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) - { - $this->dateRange = $dateRange; - } + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { + $this->dateRange = $dateRange; + } - public function getDateRange() - { - return $this->dateRange; - } + public function getDateRange() { + return $this->dateRange; + } - public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId) - { - $this->floodlightConfigId = $floodlightConfigId; - } + public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId) { + $this->floodlightConfigId = $floodlightConfigId; + } - public function getFloodlightConfigId() - { - return $this->floodlightConfigId; - } + public function getFloodlightConfigId() { + return $this->floodlightConfigId; + } - public function setMetricNames($metricNames) - { - $this->metricNames = $metricNames; - } + public function setMetricNames($metricNames) { + $this->metricNames = $metricNames; + } - public function getMetricNames() - { - return $this->metricNames; - } + public function getMetricNames() { + return $this->metricNames; + } - public function setPerInteractionDimensions($perInteractionDimensions) - { - $this->perInteractionDimensions = $perInteractionDimensions; - } + public function setPerInteractionDimensions($perInteractionDimensions) { + $this->perInteractionDimensions = $perInteractionDimensions; + } - public function getPerInteractionDimensions() - { - return $this->perInteractionDimensions; - } + public function getPerInteractionDimensions() { + return $this->perInteractionDimensions; + } - public function setReportProperties(Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties $reportProperties) - { - $this->reportProperties = $reportProperties; - } + public function setReportProperties(Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties $reportProperties) { + $this->reportProperties = $reportProperties; + } - public function getReportProperties() - { - return $this->reportProperties; - } + public function getReportProperties() { + return $this->reportProperties; + } } -class Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties extends Google_Model -{ - public $clicksLookbackWindow; - public $impressionsLookbackWindow; - public $includeAttributedIPConversions; - public $includeUnattributedCookieConversions; - public $includeUnattributedIPConversions; - public $maximumClickInteractions; - public $maximumImpressionInteractions; - public $maximumInteractionGap; - public $pivotOnInteractionPath; +class Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties extends Google_Model { + public $clicksLookbackWindow; + public $impressionsLookbackWindow; + public $includeAttributedIPConversions; + public $includeUnattributedCookieConversions; + public $includeUnattributedIPConversions; + public $maximumClickInteractions; + public $maximumImpressionInteractions; + public $maximumInteractionGap; + public $pivotOnInteractionPath; - public function setClicksLookbackWindow($clicksLookbackWindow) - { - $this->clicksLookbackWindow = $clicksLookbackWindow; - } + public function setClicksLookbackWindow($clicksLookbackWindow) { + $this->clicksLookbackWindow = $clicksLookbackWindow; + } - public function getClicksLookbackWindow() - { - return $this->clicksLookbackWindow; - } + public function getClicksLookbackWindow() { + return $this->clicksLookbackWindow; + } - public function setImpressionsLookbackWindow($impressionsLookbackWindow) - { - $this->impressionsLookbackWindow = $impressionsLookbackWindow; - } + public function setImpressionsLookbackWindow($impressionsLookbackWindow) { + $this->impressionsLookbackWindow = $impressionsLookbackWindow; + } - public function getImpressionsLookbackWindow() - { - return $this->impressionsLookbackWindow; - } + public function getImpressionsLookbackWindow() { + return $this->impressionsLookbackWindow; + } - public function setIncludeAttributedIPConversions($includeAttributedIPConversions) - { - $this->includeAttributedIPConversions = $includeAttributedIPConversions; - } + public function setIncludeAttributedIPConversions($includeAttributedIPConversions) { + $this->includeAttributedIPConversions = $includeAttributedIPConversions; + } - public function getIncludeAttributedIPConversions() - { - return $this->includeAttributedIPConversions; - } + public function getIncludeAttributedIPConversions() { + return $this->includeAttributedIPConversions; + } - public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions) - { - $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions; - } + public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions) { + $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions; + } - public function getIncludeUnattributedCookieConversions() - { - return $this->includeUnattributedCookieConversions; - } + public function getIncludeUnattributedCookieConversions() { + return $this->includeUnattributedCookieConversions; + } - public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions) - { - $this->includeUnattributedIPConversions = $includeUnattributedIPConversions; - } + public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions) { + $this->includeUnattributedIPConversions = $includeUnattributedIPConversions; + } - public function getIncludeUnattributedIPConversions() - { - return $this->includeUnattributedIPConversions; - } + public function getIncludeUnattributedIPConversions() { + return $this->includeUnattributedIPConversions; + } - public function setMaximumClickInteractions($maximumClickInteractions) - { - $this->maximumClickInteractions = $maximumClickInteractions; - } + public function setMaximumClickInteractions($maximumClickInteractions) { + $this->maximumClickInteractions = $maximumClickInteractions; + } - public function getMaximumClickInteractions() - { - return $this->maximumClickInteractions; - } + public function getMaximumClickInteractions() { + return $this->maximumClickInteractions; + } - public function setMaximumImpressionInteractions($maximumImpressionInteractions) - { - $this->maximumImpressionInteractions = $maximumImpressionInteractions; - } + public function setMaximumImpressionInteractions($maximumImpressionInteractions) { + $this->maximumImpressionInteractions = $maximumImpressionInteractions; + } - public function getMaximumImpressionInteractions() - { - return $this->maximumImpressionInteractions; - } + public function getMaximumImpressionInteractions() { + return $this->maximumImpressionInteractions; + } - public function setMaximumInteractionGap($maximumInteractionGap) - { - $this->maximumInteractionGap = $maximumInteractionGap; - } + public function setMaximumInteractionGap($maximumInteractionGap) { + $this->maximumInteractionGap = $maximumInteractionGap; + } - public function getMaximumInteractionGap() - { - return $this->maximumInteractionGap; - } + public function getMaximumInteractionGap() { + return $this->maximumInteractionGap; + } - public function setPivotOnInteractionPath($pivotOnInteractionPath) - { - $this->pivotOnInteractionPath = $pivotOnInteractionPath; - } + public function setPivotOnInteractionPath($pivotOnInteractionPath) { + $this->pivotOnInteractionPath = $pivotOnInteractionPath; + } - public function getPivotOnInteractionPath() - { - return $this->pivotOnInteractionPath; - } + public function getPivotOnInteractionPath() { + return $this->pivotOnInteractionPath; + } } -class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection -{ - protected $activitiesType = 'Google_Service_Dfareporting_Activities'; - protected $activitiesDataType = ''; - protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; - protected $customRichMediaEventsDataType = ''; - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - public $metricNames; - public $reachByFrequencyMetricNames; +class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection { + protected $activitiesType = 'Google_Service_Dfareporting_Activities'; + protected $activitiesDataType = ''; + protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents'; + protected $customRichMediaEventsDataType = ''; + protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; + protected $dateRangeDataType = ''; + protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; + protected $dimensionFiltersDataType = 'array'; + protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; + protected $dimensionsDataType = 'array'; + public $metricNames; + public $reachByFrequencyMetricNames; - public function setActivities(Google_Service_Dfareporting_Activities $activities) - { - $this->activities = $activities; - } + public function setActivities(Google_Service_Dfareporting_Activities $activities) { + $this->activities = $activities; + } - public function getActivities() - { - return $this->activities; - } + public function getActivities() { + return $this->activities; + } - public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents) - { - $this->customRichMediaEvents = $customRichMediaEvents; - } + public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents) { + $this->customRichMediaEvents = $customRichMediaEvents; + } - public function getCustomRichMediaEvents() - { - return $this->customRichMediaEvents; - } + public function getCustomRichMediaEvents() { + return $this->customRichMediaEvents; + } - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) - { - $this->dateRange = $dateRange; - } + public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) { + $this->dateRange = $dateRange; + } - public function getDateRange() - { - return $this->dateRange; - } + public function getDateRange() { + return $this->dateRange; + } - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } + public function setDimensionFilters($dimensionFilters) { + $this->dimensionFilters = $dimensionFilters; + } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } + public function getDimensionFilters() { + return $this->dimensionFilters; + } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } + public function setDimensions($dimensions) { + $this->dimensions = $dimensions; + } - public function getDimensions() - { - return $this->dimensions; - } + public function getDimensions() { + return $this->dimensions; + } - public function setMetricNames($metricNames) - { - $this->metricNames = $metricNames; - } + public function setMetricNames($metricNames) { + $this->metricNames = $metricNames; + } - public function getMetricNames() - { - return $this->metricNames; - } + public function getMetricNames() { + return $this->metricNames; + } - public function setReachByFrequencyMetricNames($reachByFrequencyMetricNames) - { - $this->reachByFrequencyMetricNames = $reachByFrequencyMetricNames; - } + public function setReachByFrequencyMetricNames($reachByFrequencyMetricNames) { + $this->reachByFrequencyMetricNames = $reachByFrequencyMetricNames; + } - public function getReachByFrequencyMetricNames() - { - return $this->reachByFrequencyMetricNames; - } + public function getReachByFrequencyMetricNames() { + return $this->reachByFrequencyMetricNames; + } } -class Google_Service_Dfareporting_ReportSchedule extends Google_Collection -{ - public $active; - public $every; - public $expirationDate; - public $repeats; - public $repeatsOnWeekDays; - public $runsOnDayOfMonth; - public $startDate; +class Google_Service_Dfareporting_ReportSchedule extends Google_Collection { + public $active; + public $every; + public $expirationDate; + public $repeats; + public $repeatsOnWeekDays; + public $runsOnDayOfMonth; + public $startDate; - public function setActive($active) - { - $this->active = $active; - } + public function setActive($active) { + $this->active = $active; + } - public function getActive() - { - return $this->active; - } + public function getActive() { + return $this->active; + } - public function setEvery($every) - { - $this->every = $every; - } + public function setEvery($every) { + $this->every = $every; + } - public function getEvery() - { - return $this->every; - } + public function getEvery() { + return $this->every; + } - public function setExpirationDate($expirationDate) - { - $this->expirationDate = $expirationDate; - } + public function setExpirationDate($expirationDate) { + $this->expirationDate = $expirationDate; + } - public function getExpirationDate() - { - return $this->expirationDate; - } + public function getExpirationDate() { + return $this->expirationDate; + } - public function setRepeats($repeats) - { - $this->repeats = $repeats; - } + public function setRepeats($repeats) { + $this->repeats = $repeats; + } - public function getRepeats() - { - return $this->repeats; - } + public function getRepeats() { + return $this->repeats; + } - public function setRepeatsOnWeekDays($repeatsOnWeekDays) - { - $this->repeatsOnWeekDays = $repeatsOnWeekDays; - } + public function setRepeatsOnWeekDays($repeatsOnWeekDays) { + $this->repeatsOnWeekDays = $repeatsOnWeekDays; + } - public function getRepeatsOnWeekDays() - { - return $this->repeatsOnWeekDays; - } + public function getRepeatsOnWeekDays() { + return $this->repeatsOnWeekDays; + } - public function setRunsOnDayOfMonth($runsOnDayOfMonth) - { - $this->runsOnDayOfMonth = $runsOnDayOfMonth; - } + public function setRunsOnDayOfMonth($runsOnDayOfMonth) { + $this->runsOnDayOfMonth = $runsOnDayOfMonth; + } - public function getRunsOnDayOfMonth() - { - return $this->runsOnDayOfMonth; - } + public function getRunsOnDayOfMonth() { + return $this->runsOnDayOfMonth; + } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } + public function setStartDate($startDate) { + $this->startDate = $startDate; + } - public function getStartDate() - { - return $this->startDate; - } + public function getStartDate() { + return $this->startDate; + } } -class Google_Service_Dfareporting_SortedDimension extends Google_Model -{ - public $kind; - public $name; - public $sortOrder; +class Google_Service_Dfareporting_SortedDimension extends Google_Model { + public $kind; + public $name; + public $sortOrder; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setSortOrder($sortOrder) - { - $this->sortOrder = $sortOrder; - } + public function setSortOrder($sortOrder) { + $this->sortOrder = $sortOrder; + } - public function getSortOrder() - { - return $this->sortOrder; - } + public function getSortOrder() { + return $this->sortOrder; + } } -class Google_Service_Dfareporting_UserProfile extends Google_Model -{ - public $accountId; - public $accountName; - public $etag; - public $kind; - public $profileId; - public $subAccountId; - public $subAccountName; - public $userName; +class Google_Service_Dfareporting_UserProfile extends Google_Model { + public $accountId; + public $accountName; + public $etag; + public $kind; + public $profileId; + public $subAccountId; + public $subAccountName; + public $userName; - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } + public function setAccountId($accountId) { + $this->accountId = $accountId; + } - public function getAccountId() - { - return $this->accountId; - } + public function getAccountId() { + return $this->accountId; + } - public function setAccountName($accountName) - { - $this->accountName = $accountName; - } + public function setAccountName($accountName) { + $this->accountName = $accountName; + } - public function getAccountName() - { - return $this->accountName; - } + public function getAccountName() { + return $this->accountName; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } + public function setProfileId($profileId) { + $this->profileId = $profileId; + } - public function getProfileId() - { - return $this->profileId; - } + public function getProfileId() { + return $this->profileId; + } - public function setSubAccountId($subAccountId) - { - $this->subAccountId = $subAccountId; - } + public function setSubAccountId($subAccountId) { + $this->subAccountId = $subAccountId; + } - public function getSubAccountId() - { - return $this->subAccountId; - } + public function getSubAccountId() { + return $this->subAccountId; + } - public function setSubAccountName($subAccountName) - { - $this->subAccountName = $subAccountName; - } + public function setSubAccountName($subAccountName) { + $this->subAccountName = $subAccountName; + } - public function getSubAccountName() - { - return $this->subAccountName; - } + public function getSubAccountName() { + return $this->subAccountName; + } - public function setUserName($userName) - { - $this->userName = $userName; - } + public function setUserName($userName) { + $this->userName = $userName; + } - public function getUserName() - { - return $this->userName; - } + public function getUserName() { + return $this->userName; + } } -class Google_Service_Dfareporting_UserProfileList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Dfareporting_UserProfile'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Dfareporting_UserProfileList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Dfareporting_UserProfile'; + protected $itemsDataType = 'array'; + public $kind; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } diff --git a/oauth/Google/Service/Directory.php b/oauth/Google/Service/Directory.php index 53a7393..3870714 100644 --- a/oauth/Google/Service/Directory.php +++ b/oauth/Google/Service/Directory.php @@ -29,1109 +29,1107 @@ * * @author Google, Inc. */ -class Google_Service_Directory extends Google_Service -{ - /** View and manage your Chrome OS devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_CHROMEOS = "https://www.googleapis.com/auth/admin.directory.device.chromeos"; - /** View your Chrome OS devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY = "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"; - /** View and manage your mobile devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_MOBILE = "https://www.googleapis.com/auth/admin.directory.device.mobile"; - /** Manage your mobile devices by performing administrative tasks. */ - const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION = "https://www.googleapis.com/auth/admin.directory.device.mobile.action"; - /** View your mobile devices' metadata. */ - const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly"; - /** View and manage the provisioning of groups on your domain. */ - const ADMIN_DIRECTORY_GROUP = "https://www.googleapis.com/auth/admin.directory.group"; - /** View and manage group subscriptions on your domain. */ - const ADMIN_DIRECTORY_GROUP_MEMBER = "https://www.googleapis.com/auth/admin.directory.group.member"; - /** View group subscriptions on your domain. */ - const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY = "https://www.googleapis.com/auth/admin.directory.group.member.readonly"; - /** View groups on your domain. */ - const ADMIN_DIRECTORY_GROUP_READONLY = "https://www.googleapis.com/auth/admin.directory.group.readonly"; - /** View and manage notifications received on your domain. */ - const ADMIN_DIRECTORY_NOTIFICATIONS = "https://www.googleapis.com/auth/admin.directory.notifications"; - /** View and manage organization units on your domain. */ - const ADMIN_DIRECTORY_ORGUNIT = "https://www.googleapis.com/auth/admin.directory.orgunit"; - /** View organization units on your domain. */ - const ADMIN_DIRECTORY_ORGUNIT_READONLY = "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"; - /** View and manage the provisioning of users on your domain. */ - const ADMIN_DIRECTORY_USER = "https://www.googleapis.com/auth/admin.directory.user"; - /** View and manage user aliases on your domain. */ - const ADMIN_DIRECTORY_USER_ALIAS = "https://www.googleapis.com/auth/admin.directory.user.alias"; - /** View user aliases on your domain. */ - const ADMIN_DIRECTORY_USER_ALIAS_READONLY = "https://www.googleapis.com/auth/admin.directory.user.alias.readonly"; - /** View users on your domain. */ - const ADMIN_DIRECTORY_USER_READONLY = "https://www.googleapis.com/auth/admin.directory.user.readonly"; - /** Manage data access permissions for users on your domain. */ - const ADMIN_DIRECTORY_USER_SECURITY = "https://www.googleapis.com/auth/admin.directory.user.security"; +class Google_Service_Directory extends Google_Service { + /** View and manage your Chrome OS devices' metadata. */ + const ADMIN_DIRECTORY_DEVICE_CHROMEOS = "https://www.googleapis.com/auth/admin.directory.device.chromeos"; + /** View your Chrome OS devices' metadata. */ + const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY = "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"; + /** View and manage your mobile devices' metadata. */ + const ADMIN_DIRECTORY_DEVICE_MOBILE = "https://www.googleapis.com/auth/admin.directory.device.mobile"; + /** Manage your mobile devices by performing administrative tasks. */ + const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION = "https://www.googleapis.com/auth/admin.directory.device.mobile.action"; + /** View your mobile devices' metadata. */ + const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly"; + /** View and manage the provisioning of groups on your domain. */ + const ADMIN_DIRECTORY_GROUP = "https://www.googleapis.com/auth/admin.directory.group"; + /** View and manage group subscriptions on your domain. */ + const ADMIN_DIRECTORY_GROUP_MEMBER = "https://www.googleapis.com/auth/admin.directory.group.member"; + /** View group subscriptions on your domain. */ + const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY = "https://www.googleapis.com/auth/admin.directory.group.member.readonly"; + /** View groups on your domain. */ + const ADMIN_DIRECTORY_GROUP_READONLY = "https://www.googleapis.com/auth/admin.directory.group.readonly"; + /** View and manage notifications received on your domain. */ + const ADMIN_DIRECTORY_NOTIFICATIONS = "https://www.googleapis.com/auth/admin.directory.notifications"; + /** View and manage organization units on your domain. */ + const ADMIN_DIRECTORY_ORGUNIT = "https://www.googleapis.com/auth/admin.directory.orgunit"; + /** View organization units on your domain. */ + const ADMIN_DIRECTORY_ORGUNIT_READONLY = "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"; + /** View and manage the provisioning of users on your domain. */ + const ADMIN_DIRECTORY_USER = "https://www.googleapis.com/auth/admin.directory.user"; + /** View and manage user aliases on your domain. */ + const ADMIN_DIRECTORY_USER_ALIAS = "https://www.googleapis.com/auth/admin.directory.user.alias"; + /** View user aliases on your domain. */ + const ADMIN_DIRECTORY_USER_ALIAS_READONLY = "https://www.googleapis.com/auth/admin.directory.user.alias.readonly"; + /** View users on your domain. */ + const ADMIN_DIRECTORY_USER_READONLY = "https://www.googleapis.com/auth/admin.directory.user.readonly"; + /** Manage data access permissions for users on your domain. */ + const ADMIN_DIRECTORY_USER_SECURITY = "https://www.googleapis.com/auth/admin.directory.user.security"; - public $asps; - public $channels; - public $chromeosdevices; - public $groups; - public $groups_aliases; - public $members; - public $mobiledevices; - public $notifications; - public $orgunits; - public $tokens; - public $users; - public $users_aliases; - public $users_photos; - public $verificationCodes; - + public $asps; + public $channels; + public $chromeosdevices; + public $groups; + public $groups_aliases; + public $members; + public $mobiledevices; + public $notifications; + public $orgunits; + public $tokens; + public $users; + public $users_aliases; + public $users_photos; + public $verificationCodes; - /** - * Constructs the internal representation of the Directory service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'admin/directory/v1/'; - $this->version = 'directory_v1'; - $this->serviceName = 'admin'; - $this->asps = new Google_Service_Directory_Asps_Resource( - $this, - $this->serviceName, - 'asps', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/{userKey}/asps/{codeId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'codeId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/{userKey}/asps/{codeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'codeId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'users/{userKey}/asps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_Directory_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'stop' => array( - 'path' => '/admin/directory_v1/channels/stop', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->chromeosdevices = new Google_Service_Directory_Chromeosdevices_Resource( - $this, - $this->serviceName, - 'chromeosdevices', - array( - 'methods' => array( - 'get' => array( - 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'customer/{customerId}/devices/chromeos', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deviceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->groups = new Google_Service_Directory_Groups_Resource( - $this, - $this->serviceName, - 'groups', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'groups/{groupKey}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'groups/{groupKey}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'groups', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'groups', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'domain' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'userKey' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'groups/{groupKey}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'groups/{groupKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->groups_aliases = new Google_Service_Directory_GroupsAliases_Resource( - $this, - $this->serviceName, - 'aliases', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'groups/{groupKey}/aliases/{alias}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alias' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'groups/{groupKey}/aliases', - 'httpMethod' => 'POST', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'groups/{groupKey}/aliases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->members = new Google_Service_Directory_Members_Resource( - $this, - $this->serviceName, - 'members', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'groups/{groupKey}/members/{memberKey}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'memberKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'groups/{groupKey}/members/{memberKey}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'memberKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'groups/{groupKey}/members', - 'httpMethod' => 'POST', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'groups/{groupKey}/members', - 'httpMethod' => 'GET', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'roles' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'groups/{groupKey}/members/{memberKey}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'memberKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'groups/{groupKey}/members/{memberKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'groupKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'memberKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->mobiledevices = new Google_Service_Directory_Mobiledevices_Resource( - $this, - $this->serviceName, - 'mobiledevices', - array( - 'methods' => array( - 'action' => array( - 'path' => 'customer/{customerId}/devices/mobile/{resourceId}/action', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'customer/{customerId}/devices/mobile/{resourceId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customerId}/devices/mobile/{resourceId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'customer/{customerId}/devices/mobile', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->notifications = new Google_Service_Directory_Notifications_Resource( - $this, - $this->serviceName, - 'notifications', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'customer/{customer}/notifications/{notificationId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'notificationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customer}/notifications/{notificationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'notificationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'customer/{customer}/notifications', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'customer/{customer}/notifications/{notificationId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'notificationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'customer/{customer}/notifications/{notificationId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customer' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'notificationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->orgunits = new Google_Service_Directory_Orgunits_Resource( - $this, - $this->serviceName, - 'orgunits', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orgUnitPath' => array( - 'location' => 'path', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orgUnitPath' => array( - 'location' => 'path', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customer/{customerId}/orgunits', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'customer/{customerId}/orgunits', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orgUnitPath' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orgUnitPath' => array( - 'location' => 'path', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orgUnitPath' => array( - 'location' => 'path', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tokens = new Google_Service_Directory_Tokens_Resource( - $this, - $this->serviceName, - 'tokens', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/{userKey}/tokens/{clientId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/{userKey}/tokens/{clientId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'clientId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'users/{userKey}/tokens', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_Directory_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/{userKey}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/{userKey}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'users', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customer' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'domain' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'event' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'makeAdmin' => array( - 'path' => 'users/{userKey}/makeAdmin', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'users/{userKey}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'undelete' => array( - 'path' => 'users/{userKey}/undelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'users/{userKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'watch' => array( - 'path' => 'users/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customer' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'domain' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'event' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users_aliases = new Google_Service_Directory_UsersAliases_Resource( - $this, - $this->serviceName, - 'aliases', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/{userKey}/aliases/{alias}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'alias' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'users/{userKey}/aliases', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'users/{userKey}/aliases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'event' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'watch' => array( - 'path' => 'users/{userKey}/aliases/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'event' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users_photos = new Google_Service_Directory_UsersPhotos_Resource( - $this, - $this->serviceName, - 'photos', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/{userKey}/photos/thumbnail', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/{userKey}/photos/thumbnail', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'users/{userKey}/photos/thumbnail', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'users/{userKey}/photos/thumbnail', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->verificationCodes = new Google_Service_Directory_VerificationCodes_Resource( - $this, - $this->serviceName, - 'verificationCodes', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'users/{userKey}/verificationCodes/generate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'invalidate' => array( - 'path' => 'users/{userKey}/verificationCodes/invalidate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'users/{userKey}/verificationCodes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Directory service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'admin/directory/v1/'; + $this->version = 'directory_v1'; + $this->serviceName = 'admin'; + + $this->asps = new Google_Service_Directory_Asps_Resource( + $this, + $this->serviceName, + 'asps', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'users/{userKey}/asps/{codeId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'codeId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'users/{userKey}/asps/{codeId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'codeId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'users/{userKey}/asps', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->channels = new Google_Service_Directory_Channels_Resource( + $this, + $this->serviceName, + 'channels', + array( + 'methods' => array( + 'stop' => array( + 'path' => '/admin/directory_v1/channels/stop', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->chromeosdevices = new Google_Service_Directory_Chromeosdevices_Resource( + $this, + $this->serviceName, + 'chromeosdevices', + array( + 'methods' => array( + 'get' => array( + 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'customer/{customerId}/devices/chromeos', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->groups = new Google_Service_Directory_Groups_Resource( + $this, + $this->serviceName, + 'groups', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'groups/{groupKey}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'groups/{groupKey}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'groups', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'list' => array( + 'path' => 'groups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'domain' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'userKey' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'groups/{groupKey}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'groups/{groupKey}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->groups_aliases = new Google_Service_Directory_GroupsAliases_Resource( + $this, + $this->serviceName, + 'aliases', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'groups/{groupKey}/aliases/{alias}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'alias' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'groups/{groupKey}/aliases', + 'httpMethod' => 'POST', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'groups/{groupKey}/aliases', + 'httpMethod' => 'GET', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->members = new Google_Service_Directory_Members_Resource( + $this, + $this->serviceName, + 'members', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'groups/{groupKey}/members/{memberKey}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'memberKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'groups/{groupKey}/members/{memberKey}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'memberKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'groups/{groupKey}/members', + 'httpMethod' => 'POST', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'groups/{groupKey}/members', + 'httpMethod' => 'GET', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'roles' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'groups/{groupKey}/members/{memberKey}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'memberKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'groups/{groupKey}/members/{memberKey}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'groupKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'memberKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->mobiledevices = new Google_Service_Directory_Mobiledevices_Resource( + $this, + $this->serviceName, + 'mobiledevices', + array( + 'methods' => array( + 'action' => array( + 'path' => 'customer/{customerId}/devices/mobile/{resourceId}/action', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => 'customer/{customerId}/devices/mobile/{resourceId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'customer/{customerId}/devices/mobile/{resourceId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'customer/{customerId}/devices/mobile', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->notifications = new Google_Service_Directory_Notifications_Resource( + $this, + $this->serviceName, + 'notifications', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'customer/{customer}/notifications/{notificationId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'notificationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'customer/{customer}/notifications/{notificationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'notificationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'customer/{customer}/notifications', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'customer/{customer}/notifications/{notificationId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'notificationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'customer/{customer}/notifications/{notificationId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'customer' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'notificationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->orgunits = new Google_Service_Directory_Orgunits_Resource( + $this, + $this->serviceName, + 'orgunits', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orgUnitPath' => array( + 'location' => 'path', + 'type' => 'string', + 'repeated' => true, + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orgUnitPath' => array( + 'location' => 'path', + 'type' => 'string', + 'repeated' => true, + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'customer/{customerId}/orgunits', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'customer/{customerId}/orgunits', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orgUnitPath' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orgUnitPath' => array( + 'location' => 'path', + 'type' => 'string', + 'repeated' => true, + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orgUnitPath' => array( + 'location' => 'path', + 'type' => 'string', + 'repeated' => true, + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->tokens = new Google_Service_Directory_Tokens_Resource( + $this, + $this->serviceName, + 'tokens', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'users/{userKey}/tokens/{clientId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'users/{userKey}/tokens/{clientId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clientId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'users/{userKey}/tokens', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_Directory_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'users/{userKey}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'users/{userKey}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'users', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'list' => array( + 'path' => 'users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customer' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'domain' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'event' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'makeAdmin' => array( + 'path' => 'users/{userKey}/makeAdmin', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => 'users/{userKey}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'undelete' => array( + 'path' => 'users/{userKey}/undelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'users/{userKey}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'watch' => array( + 'path' => 'users/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customer' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'domain' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'event' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->users_aliases = new Google_Service_Directory_UsersAliases_Resource( + $this, + $this->serviceName, + 'aliases', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'users/{userKey}/aliases/{alias}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'alias' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'users/{userKey}/aliases', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'users/{userKey}/aliases', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'event' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'watch' => array( + 'path' => 'users/{userKey}/aliases/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'event' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->users_photos = new Google_Service_Directory_UsersPhotos_Resource( + $this, + $this->serviceName, + 'photos', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'users/{userKey}/photos/thumbnail', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'users/{userKey}/photos/thumbnail', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => 'users/{userKey}/photos/thumbnail', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'users/{userKey}/photos/thumbnail', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->verificationCodes = new Google_Service_Directory_VerificationCodes_Resource( + $this, + $this->serviceName, + 'verificationCodes', + array( + 'methods' => array( + 'generate' => array( + 'path' => 'users/{userKey}/verificationCodes/generate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'invalidate' => array( + 'path' => 'users/{userKey}/verificationCodes/invalidate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'users/{userKey}/verificationCodes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -1143,57 +1141,55 @@ class Google_Service_Directory extends Google_Service * $asps = $adminService->asps; * */ -class Google_Service_Directory_Asps_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_Asps_Resource extends Google_Service_Resource { - /** - * Delete an ASP issued by a user. (asps.delete) - * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. - * @param int $codeId - * The unique ID of the ASP to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($userKey, $codeId, $optParams = array()) - { - $params = array('userKey' => $userKey, 'codeId' => $codeId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Get information about an ASP issued by a user. (asps.get) - * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. - * @param int $codeId - * The unique ID of the ASP. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Asp - */ - public function get($userKey, $codeId, $optParams = array()) - { - $params = array('userKey' => $userKey, 'codeId' => $codeId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Asp"); - } - /** - * List the ASPs issued by a user. (asps.listAsps) - * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Asps - */ - public function listAsps($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Asps"); - } + /** + * Delete an ASP issued by a user. (asps.delete) + * + * @param string $userKey + * Identifies the user in the API request. The value can be the user's primary email address, alias + * email address, or unique user ID. + * @param int $codeId + * The unique ID of the ASP to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($userKey, $codeId, $optParams = array()) { + $params = array('userKey' => $userKey, 'codeId' => $codeId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Get information about an ASP issued by a user. (asps.get) + * + * @param string $userKey + * Identifies the user in the API request. The value can be the user's primary email address, alias + * email address, or unique user ID. + * @param int $codeId + * The unique ID of the ASP. + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Asp + */ + public function get($userKey, $codeId, $optParams = array()) { + $params = array('userKey' => $userKey, 'codeId' => $codeId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_Asp"); + } + + /** + * List the ASPs issued by a user. (asps.listAsps) + * + * @param string $userKey + * Identifies the user in the API request. The value can be the user's primary email address, alias + * email address, or unique user ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Asps + */ + public function listAsps($userKey, $optParams = array()) { + $params = array('userKey' => $userKey); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Asps"); + } } /** @@ -1204,21 +1200,19 @@ class Google_Service_Directory_Asps_Resource extends Google_Service_Resource * $channels = $adminService->channels; * */ -class Google_Service_Directory_Channels_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_Channels_Resource extends Google_Service_Resource { - /** - * Stop watching resources through this channel (channels.stop) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - */ - public function stop(Google_Service_Directory_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } + /** + * Stop watching resources through this channel (channels.stop) + * + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + */ + public function stop(Google_Service_Directory_Channel $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('stop', array($params)); + } } /** @@ -1229,99 +1223,97 @@ class Google_Service_Directory_Channels_Resource extends Google_Service_Resource * $chromeosdevices = $adminService->chromeosdevices; * */ -class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_Resource { - /** - * Retrieve Chrome OS Device (chromeosdevices.get) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $deviceId - * Immutable id of Chrome OS Device - * @param array $optParams Optional parameters. - * - * @opt_param string projection - * Restrict information returned to a set of selected fields. - * @return Google_Service_Directory_ChromeOsDevice - */ - public function get($customerId, $deviceId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'deviceId' => $deviceId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_ChromeOsDevice"); - } - /** - * Retrieve all Chrome OS Devices of a customer (paginated) - * (chromeosdevices.listChromeosdevices) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Column to use for sorting results - * @opt_param string projection - * Restrict information returned to a set of selected fields. - * @opt_param int maxResults - * Maximum number of results to return. Default is 100 - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string sortOrder - * Whether to return results in ascending or descending order. Only of use when orderBy is also - * used - * @opt_param string query - * Search string in the format given at - * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333 - * @return Google_Service_Directory_ChromeOsDevices - */ - public function listChromeosdevices($customerId, $optParams = array()) - { - $params = array('customerId' => $customerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_ChromeOsDevices"); - } - /** - * Update Chrome OS Device. This method supports patch semantics. - * (chromeosdevices.patch) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $deviceId - * Immutable id of Chrome OS Device - * @param Google_ChromeOsDevice $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string projection - * Restrict information returned to a set of selected fields. - * @return Google_Service_Directory_ChromeOsDevice - */ - public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_ChromeOsDevice"); - } - /** - * Update Chrome OS Device (chromeosdevices.update) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $deviceId - * Immutable id of Chrome OS Device - * @param Google_ChromeOsDevice $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string projection - * Restrict information returned to a set of selected fields. - * @return Google_Service_Directory_ChromeOsDevice - */ - public function update($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_ChromeOsDevice"); - } + /** + * Retrieve Chrome OS Device (chromeosdevices.get) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $deviceId + * Immutable id of Chrome OS Device + * @param array $optParams Optional parameters. + * + * @opt_param string projection + * Restrict information returned to a set of selected fields. + * @return Google_Service_Directory_ChromeOsDevice + */ + public function get($customerId, $deviceId, $optParams = array()) { + $params = array('customerId' => $customerId, 'deviceId' => $deviceId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_ChromeOsDevice"); + } + + /** + * Retrieve all Chrome OS Devices of a customer (paginated) + * (chromeosdevices.listChromeosdevices) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Column to use for sorting results + * @opt_param string projection + * Restrict information returned to a set of selected fields. + * @opt_param int maxResults + * Maximum number of results to return. Default is 100 + * @opt_param string pageToken + * Token to specify next page in the list + * @opt_param string sortOrder + * Whether to return results in ascending or descending order. Only of use when orderBy is also + * used + * @opt_param string query + * Search string in the format given at + * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333 + * @return Google_Service_Directory_ChromeOsDevices + */ + public function listChromeosdevices($customerId, $optParams = array()) { + $params = array('customerId' => $customerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_ChromeOsDevices"); + } + + /** + * Update Chrome OS Device. This method supports patch semantics. + * (chromeosdevices.patch) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $deviceId + * Immutable id of Chrome OS Device + * @param Google_ChromeOsDevice $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string projection + * Restrict information returned to a set of selected fields. + * @return Google_Service_Directory_ChromeOsDevice + */ + public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_ChromeOsDevice"); + } + + /** + * Update Chrome OS Device (chromeosdevices.update) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $deviceId + * Immutable id of Chrome OS Device + * @param Google_ChromeOsDevice $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string projection + * Restrict information returned to a set of selected fields. + * @return Google_Service_Directory_ChromeOsDevice + */ + public function update($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_ChromeOsDevice"); + } } /** @@ -1332,105 +1324,103 @@ class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_R * $groups = $adminService->groups; * */ -class Google_Service_Directory_Groups_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_Groups_Resource extends Google_Service_Resource { - /** - * Delete Group (groups.delete) - * - * @param string $groupKey - * Email or immutable Id of the group - * @param array $optParams Optional parameters. - */ - public function delete($groupKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieve Group (groups.get) - * - * @param string $groupKey - * Email or immutable Id of the group - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group - */ - public function get($groupKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Group"); - } - /** - * Create Group (groups.insert) - * - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group - */ - public function insert(Google_Service_Directory_Group $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Group"); - } - /** - * Retrieve all groups in a domain (paginated) (groups.listGroups) - * - * @param array $optParams Optional parameters. - * - * @opt_param string customer - * Immutable id of the Google Apps account. In case of multi-domain, to fetch all groups for a - * customer, fill this field instead of domain. - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string domain - * Name of the domain. Fill this field to get groups from only this domain. To return all groups in - * a multi-domain fill customer field instead. - * @opt_param int maxResults - * Maximum number of results to return. Default is 200 - * @opt_param string userKey - * Email or immutable Id of the user if only those groups are to be listed, the given user is a - * member of. If Id, it should match with id of user object - * @return Google_Service_Directory_Groups - */ - public function listGroups($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Groups"); - } - /** - * Update Group. This method supports patch semantics. (groups.patch) - * - * @param string $groupKey - * Email or immutable Id of the group. If Id, it should match with id of group object - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group - */ - public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Group"); - } - /** - * Update Group (groups.update) - * - * @param string $groupKey - * Email or immutable Id of the group. If Id, it should match with id of group object - * @param Google_Group $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Group - */ - public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_Group"); - } + /** + * Delete Group (groups.delete) + * + * @param string $groupKey + * Email or immutable Id of the group + * @param array $optParams Optional parameters. + */ + public function delete($groupKey, $optParams = array()) { + $params = array('groupKey' => $groupKey); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieve Group (groups.get) + * + * @param string $groupKey + * Email or immutable Id of the group + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Group + */ + public function get($groupKey, $optParams = array()) { + $params = array('groupKey' => $groupKey); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_Group"); + } + + /** + * Create Group (groups.insert) + * + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Group + */ + public function insert(Google_Service_Directory_Group $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_Group"); + } + + /** + * Retrieve all groups in a domain (paginated) (groups.listGroups) + * + * @param array $optParams Optional parameters. + * + * @opt_param string customer + * Immutable id of the Google Apps account. In case of multi-domain, to fetch all groups for a + * customer, fill this field instead of domain. + * @opt_param string pageToken + * Token to specify next page in the list + * @opt_param string domain + * Name of the domain. Fill this field to get groups from only this domain. To return all groups in + * a multi-domain fill customer field instead. + * @opt_param int maxResults + * Maximum number of results to return. Default is 200 + * @opt_param string userKey + * Email or immutable Id of the user if only those groups are to be listed, the given user is a + * member of. If Id, it should match with id of user object + * @return Google_Service_Directory_Groups + */ + public function listGroups($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Groups"); + } + + /** + * Update Group. This method supports patch semantics. (groups.patch) + * + * @param string $groupKey + * Email or immutable Id of the group. If Id, it should match with id of group object + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Group + */ + public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) { + $params = array('groupKey' => $groupKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_Group"); + } + + /** + * Update Group (groups.update) + * + * @param string $groupKey + * Email or immutable Id of the group. If Id, it should match with id of group object + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Group + */ + public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array()) { + $params = array('groupKey' => $groupKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_Group"); + } } /** @@ -1441,53 +1431,51 @@ class Google_Service_Directory_Groups_Resource extends Google_Service_Resource * $aliases = $adminService->aliases; * */ -class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Resource { - /** - * Remove a alias for the group (aliases.delete) - * - * @param string $groupKey - * Email or immutable Id of the group - * @param string $alias - * The alias to be removed - * @param array $optParams Optional parameters. - */ - public function delete($groupKey, $alias, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'alias' => $alias); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Add a alias for the group (aliases.insert) - * - * @param string $groupKey - * Email or immutable Id of the group - * @param Google_Alias $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Alias - */ - public function insert($groupKey, Google_Service_Directory_Alias $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Alias"); - } - /** - * List all aliases for a group (aliases.listGroupsAliases) - * - * @param string $groupKey - * Email or immutable Id of the group - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Aliases - */ - public function listGroupsAliases($groupKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Aliases"); - } + /** + * Remove a alias for the group (aliases.delete) + * + * @param string $groupKey + * Email or immutable Id of the group + * @param string $alias + * The alias to be removed + * @param array $optParams Optional parameters. + */ + public function delete($groupKey, $alias, $optParams = array()) { + $params = array('groupKey' => $groupKey, 'alias' => $alias); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Add a alias for the group (aliases.insert) + * + * @param string $groupKey + * Email or immutable Id of the group + * @param Google_Alias $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Alias + */ + public function insert($groupKey, Google_Service_Directory_Alias $postBody, $optParams = array()) { + $params = array('groupKey' => $groupKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_Alias"); + } + + /** + * List all aliases for a group (aliases.listGroupsAliases) + * + * @param string $groupKey + * Email or immutable Id of the group + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Aliases + */ + public function listGroupsAliases($groupKey, $optParams = array()) { + $params = array('groupKey' => $groupKey); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Aliases"); + } } /** @@ -1498,111 +1486,109 @@ class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Res * $members = $adminService->members; * */ -class Google_Service_Directory_Members_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_Members_Resource extends Google_Service_Resource { - /** - * Remove membership. (members.delete) - * - * @param string $groupKey - * Email or immutable Id of the group - * @param string $memberKey - * Email or immutable Id of the member - * @param array $optParams Optional parameters. - */ - public function delete($groupKey, $memberKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieve Group Member (members.get) - * - * @param string $groupKey - * Email or immutable Id of the group - * @param string $memberKey - * Email or immutable Id of the member - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Member - */ - public function get($groupKey, $memberKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Member"); - } - /** - * Add user to the specified group. (members.insert) - * - * @param string $groupKey - * Email or immutable Id of the group - * @param Google_Member $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Member - */ - public function insert($groupKey, Google_Service_Directory_Member $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Member"); - } - /** - * Retrieve all members in a group (paginated) (members.listMembers) - * - * @param string $groupKey - * Email or immutable Id of the group - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string roles - * Comma separated role values to filter list results on. - * @opt_param int maxResults - * Maximum number of results to return. Default is 200 - * @return Google_Service_Directory_Members - */ - public function listMembers($groupKey, $optParams = array()) - { - $params = array('groupKey' => $groupKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Members"); - } - /** - * Update membership of a user in the specified group. This method supports - * patch semantics. (members.patch) - * - * @param string $groupKey - * Email or immutable Id of the group. If Id, it should match with id of group object - * @param string $memberKey - * Email or immutable Id of the user. If Id, it should match with id of member object - * @param Google_Member $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Member - */ - public function patch($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Member"); - } - /** - * Update membership of a user in the specified group. (members.update) - * - * @param string $groupKey - * Email or immutable Id of the group. If Id, it should match with id of group object - * @param string $memberKey - * Email or immutable Id of the user. If Id, it should match with id of member object - * @param Google_Member $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Member - */ - public function update($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array()) - { - $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_Member"); - } + /** + * Remove membership. (members.delete) + * + * @param string $groupKey + * Email or immutable Id of the group + * @param string $memberKey + * Email or immutable Id of the member + * @param array $optParams Optional parameters. + */ + public function delete($groupKey, $memberKey, $optParams = array()) { + $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieve Group Member (members.get) + * + * @param string $groupKey + * Email or immutable Id of the group + * @param string $memberKey + * Email or immutable Id of the member + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Member + */ + public function get($groupKey, $memberKey, $optParams = array()) { + $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_Member"); + } + + /** + * Add user to the specified group. (members.insert) + * + * @param string $groupKey + * Email or immutable Id of the group + * @param Google_Member $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Member + */ + public function insert($groupKey, Google_Service_Directory_Member $postBody, $optParams = array()) { + $params = array('groupKey' => $groupKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_Member"); + } + + /** + * Retrieve all members in a group (paginated) (members.listMembers) + * + * @param string $groupKey + * Email or immutable Id of the group + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Token to specify next page in the list + * @opt_param string roles + * Comma separated role values to filter list results on. + * @opt_param int maxResults + * Maximum number of results to return. Default is 200 + * @return Google_Service_Directory_Members + */ + public function listMembers($groupKey, $optParams = array()) { + $params = array('groupKey' => $groupKey); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Members"); + } + + /** + * Update membership of a user in the specified group. This method supports + * patch semantics. (members.patch) + * + * @param string $groupKey + * Email or immutable Id of the group. If Id, it should match with id of group object + * @param string $memberKey + * Email or immutable Id of the user. If Id, it should match with id of member object + * @param Google_Member $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Member + */ + public function patch($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array()) { + $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_Member"); + } + + /** + * Update membership of a user in the specified group. (members.update) + * + * @param string $groupKey + * Email or immutable Id of the group. If Id, it should match with id of group object + * @param string $memberKey + * Email or immutable Id of the user. If Id, it should match with id of member object + * @param Google_Member $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Member + */ + public function update($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array()) { + $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_Member"); + } } /** @@ -1613,89 +1599,87 @@ class Google_Service_Directory_Members_Resource extends Google_Service_Resource * $mobiledevices = $adminService->mobiledevices; * */ -class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Resource { - /** - * Take action on Mobile Device (mobiledevices.action) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $resourceId - * Immutable id of Mobile Device - * @param Google_MobileDeviceAction $postBody - * @param array $optParams Optional parameters. - */ - public function action($customerId, $resourceId, Google_Service_Directory_MobileDeviceAction $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('action', array($params)); - } - /** - * Delete Mobile Device (mobiledevices.delete) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $resourceId - * Immutable id of Mobile Device - * @param array $optParams Optional parameters. - */ - public function delete($customerId, $resourceId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'resourceId' => $resourceId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieve Mobile Device (mobiledevices.get) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $resourceId - * Immutable id of Mobile Device - * @param array $optParams Optional parameters. - * - * @opt_param string projection - * Restrict information returned to a set of selected fields. - * @return Google_Service_Directory_MobileDevice - */ - public function get($customerId, $resourceId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'resourceId' => $resourceId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_MobileDevice"); - } - /** - * Retrieve all Mobile Devices of a customer (paginated) - * (mobiledevices.listMobiledevices) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Column to use for sorting results - * @opt_param string projection - * Restrict information returned to a set of selected fields. - * @opt_param int maxResults - * Maximum number of results to return. Default is 100 - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string sortOrder - * Whether to return results in ascending or descending order. Only of use when orderBy is also - * used - * @opt_param string query - * Search string in the format given at - * http://support.google.com/a/bin/answer.py?hl=en=1408863#search - * @return Google_Service_Directory_MobileDevices - */ - public function listMobiledevices($customerId, $optParams = array()) - { - $params = array('customerId' => $customerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_MobileDevices"); - } + /** + * Take action on Mobile Device (mobiledevices.action) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $resourceId + * Immutable id of Mobile Device + * @param Google_MobileDeviceAction $postBody + * @param array $optParams Optional parameters. + */ + public function action($customerId, $resourceId, Google_Service_Directory_MobileDeviceAction $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('action', array($params)); + } + + /** + * Delete Mobile Device (mobiledevices.delete) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $resourceId + * Immutable id of Mobile Device + * @param array $optParams Optional parameters. + */ + public function delete($customerId, $resourceId, $optParams = array()) { + $params = array('customerId' => $customerId, 'resourceId' => $resourceId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieve Mobile Device (mobiledevices.get) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $resourceId + * Immutable id of Mobile Device + * @param array $optParams Optional parameters. + * + * @opt_param string projection + * Restrict information returned to a set of selected fields. + * @return Google_Service_Directory_MobileDevice + */ + public function get($customerId, $resourceId, $optParams = array()) { + $params = array('customerId' => $customerId, 'resourceId' => $resourceId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_MobileDevice"); + } + + /** + * Retrieve all Mobile Devices of a customer (paginated) + * (mobiledevices.listMobiledevices) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Column to use for sorting results + * @opt_param string projection + * Restrict information returned to a set of selected fields. + * @opt_param int maxResults + * Maximum number of results to return. Default is 100 + * @opt_param string pageToken + * Token to specify next page in the list + * @opt_param string sortOrder + * Whether to return results in ascending or descending order. Only of use when orderBy is also + * used + * @opt_param string query + * Search string in the format given at + * http://support.google.com/a/bin/answer.py?hl=en=1408863#search + * @return Google_Service_Directory_MobileDevices + */ + public function listMobiledevices($customerId, $optParams = array()) { + $params = array('customerId' => $customerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_MobileDevices"); + } } /** @@ -1706,98 +1690,96 @@ class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Res * $notifications = $adminService->notifications; * */ -class Google_Service_Directory_Notifications_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_Notifications_Resource extends Google_Service_Resource { - /** - * Deletes a notification (notifications.delete) - * - * @param string $customer - * The unique ID for the customer's Google account. The customerId is also returned as part of the - * Users resource. - * @param string $notificationId - * The unique ID of the notification. - * @param array $optParams Optional parameters. - */ - public function delete($customer, $notificationId, $optParams = array()) - { - $params = array('customer' => $customer, 'notificationId' => $notificationId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a notification. (notifications.get) - * - * @param string $customer - * The unique ID for the customer's Google account. The customerId is also returned as part of the - * Users resource. - * @param string $notificationId - * The unique ID of the notification. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Notification - */ - public function get($customer, $notificationId, $optParams = array()) - { - $params = array('customer' => $customer, 'notificationId' => $notificationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Notification"); - } - /** - * Retrieves a list of notifications. (notifications.listNotifications) - * - * @param string $customer - * The unique ID for the customer's Google account. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token to specify the page of results to retrieve. - * @opt_param string maxResults - * Maximum number of notifications to return per page. The default is 100. - * @opt_param string language - * The ISO 639-1 code of the language notifications are returned in. The default is English (en). - * @return Google_Service_Directory_Notifications - */ - public function listNotifications($customer, $optParams = array()) - { - $params = array('customer' => $customer); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Notifications"); - } - /** - * Updates a notification. This method supports patch semantics. - * (notifications.patch) - * - * @param string $customer - * The unique ID for the customer's Google account. - * @param string $notificationId - * The unique ID of the notification. - * @param Google_Notification $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Notification - */ - public function patch($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Notification"); - } - /** - * Updates a notification. (notifications.update) - * - * @param string $customer - * The unique ID for the customer's Google account. - * @param string $notificationId - * The unique ID of the notification. - * @param Google_Notification $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Notification - */ - public function update($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array()) - { - $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_Notification"); - } + /** + * Deletes a notification (notifications.delete) + * + * @param string $customer + * The unique ID for the customer's Google account. The customerId is also returned as part of the + * Users resource. + * @param string $notificationId + * The unique ID of the notification. + * @param array $optParams Optional parameters. + */ + public function delete($customer, $notificationId, $optParams = array()) { + $params = array('customer' => $customer, 'notificationId' => $notificationId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a notification. (notifications.get) + * + * @param string $customer + * The unique ID for the customer's Google account. The customerId is also returned as part of the + * Users resource. + * @param string $notificationId + * The unique ID of the notification. + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Notification + */ + public function get($customer, $notificationId, $optParams = array()) { + $params = array('customer' => $customer, 'notificationId' => $notificationId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_Notification"); + } + + /** + * Retrieves a list of notifications. (notifications.listNotifications) + * + * @param string $customer + * The unique ID for the customer's Google account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token to specify the page of results to retrieve. + * @opt_param string maxResults + * Maximum number of notifications to return per page. The default is 100. + * @opt_param string language + * The ISO 639-1 code of the language notifications are returned in. The default is English (en). + * @return Google_Service_Directory_Notifications + */ + public function listNotifications($customer, $optParams = array()) { + $params = array('customer' => $customer); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Notifications"); + } + + /** + * Updates a notification. This method supports patch semantics. + * (notifications.patch) + * + * @param string $customer + * The unique ID for the customer's Google account. + * @param string $notificationId + * The unique ID of the notification. + * @param Google_Notification $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Notification + */ + public function patch($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array()) { + $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_Notification"); + } + + /** + * Updates a notification. (notifications.update) + * + * @param string $customer + * The unique ID for the customer's Google account. + * @param string $notificationId + * The unique ID of the notification. + * @param Google_Notification $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Notification + */ + public function update($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array()) { + $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_Notification"); + } } /** @@ -1808,109 +1790,107 @@ class Google_Service_Directory_Notifications_Resource extends Google_Service_Res * $orgunits = $adminService->orgunits; * */ -class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource { - /** - * Remove Organization Unit (orgunits.delete) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $orgUnitPath - * Full path of the organization unit - * @param array $optParams Optional parameters. - */ - public function delete($customerId, $orgUnitPath, $optParams = array()) - { - $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieve Organization Unit (orgunits.get) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $orgUnitPath - * Full path of the organization unit - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_OrgUnit - */ - public function get($customerId, $orgUnitPath, $optParams = array()) - { - $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_OrgUnit"); - } - /** - * Add Organization Unit (orgunits.insert) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param Google_OrgUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_OrgUnit - */ - public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_OrgUnit"); - } - /** - * Retrieve all Organization Units (orgunits.listOrgunits) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param array $optParams Optional parameters. - * - * @opt_param string type - * Whether to return all sub-organizations or just immediate children - * @opt_param string orgUnitPath - * the URL-encoded organization unit - * @return Google_Service_Directory_OrgUnits - */ - public function listOrgunits($customerId, $optParams = array()) - { - $params = array('customerId' => $customerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_OrgUnits"); - } - /** - * Update Organization Unit. This method supports patch semantics. - * (orgunits.patch) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $orgUnitPath - * Full path of the organization unit - * @param Google_OrgUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_OrgUnit - */ - public function patch($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_OrgUnit"); - } - /** - * Update Organization Unit (orgunits.update) - * - * @param string $customerId - * Immutable id of the Google Apps account - * @param string $orgUnitPath - * Full path of the organization unit - * @param Google_OrgUnit $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_OrgUnit - */ - public function update($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_OrgUnit"); - } + /** + * Remove Organization Unit (orgunits.delete) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $orgUnitPath + * Full path of the organization unit + * @param array $optParams Optional parameters. + */ + public function delete($customerId, $orgUnitPath, $optParams = array()) { + $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieve Organization Unit (orgunits.get) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $orgUnitPath + * Full path of the organization unit + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_OrgUnit + */ + public function get($customerId, $orgUnitPath, $optParams = array()) { + $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_OrgUnit"); + } + + /** + * Add Organization Unit (orgunits.insert) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param Google_OrgUnit $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_OrgUnit + */ + public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_OrgUnit"); + } + + /** + * Retrieve all Organization Units (orgunits.listOrgunits) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param array $optParams Optional parameters. + * + * @opt_param string type + * Whether to return all sub-organizations or just immediate children + * @opt_param string orgUnitPath + * the URL-encoded organization unit + * @return Google_Service_Directory_OrgUnits + */ + public function listOrgunits($customerId, $optParams = array()) { + $params = array('customerId' => $customerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_OrgUnits"); + } + + /** + * Update Organization Unit. This method supports patch semantics. + * (orgunits.patch) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $orgUnitPath + * Full path of the organization unit + * @param Google_OrgUnit $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_OrgUnit + */ + public function patch($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_OrgUnit"); + } + + /** + * Update Organization Unit (orgunits.update) + * + * @param string $customerId + * Immutable id of the Google Apps account + * @param string $orgUnitPath + * Full path of the organization unit + * @param Google_OrgUnit $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_OrgUnit + */ + public function update($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_OrgUnit"); + } } /** @@ -1921,58 +1901,56 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource * $tokens = $adminService->tokens; * */ -class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource { - /** - * Delete all access tokens issued by a user for an application. (tokens.delete) - * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. - * @param string $clientId - * The Client ID of the application the token is issued to. - * @param array $optParams Optional parameters. - */ - public function delete($userKey, $clientId, $optParams = array()) - { - $params = array('userKey' => $userKey, 'clientId' => $clientId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Get information about an access token issued by a user. (tokens.get) - * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. - * @param string $clientId - * The Client ID of the application the token is issued to. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Token - */ - public function get($userKey, $clientId, $optParams = array()) - { - $params = array('userKey' => $userKey, 'clientId' => $clientId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_Token"); - } - /** - * Returns the set of tokens specified user has issued to 3rd party - * applications. (tokens.listTokens) - * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Tokens - */ - public function listTokens($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Tokens"); - } + /** + * Delete all access tokens issued by a user for an application. (tokens.delete) + * + * @param string $userKey + * Identifies the user in the API request. The value can be the user's primary email address, alias + * email address, or unique user ID. + * @param string $clientId + * The Client ID of the application the token is issued to. + * @param array $optParams Optional parameters. + */ + public function delete($userKey, $clientId, $optParams = array()) { + $params = array('userKey' => $userKey, 'clientId' => $clientId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Get information about an access token issued by a user. (tokens.get) + * + * @param string $userKey + * Identifies the user in the API request. The value can be the user's primary email address, alias + * email address, or unique user ID. + * @param string $clientId + * The Client ID of the application the token is issued to. + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Token + */ + public function get($userKey, $clientId, $optParams = array()) { + $params = array('userKey' => $userKey, 'clientId' => $clientId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_Token"); + } + + /** + * Returns the set of tokens specified user has issued to 3rd party + * applications. (tokens.listTokens) + * + * @param string $userKey + * Identifies the user in the API request. The value can be the user's primary email address, alias + * email address, or unique user ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Tokens + */ + public function listTokens($userKey, $optParams = array()) { + $params = array('userKey' => $userKey); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Tokens"); + } } /** @@ -1983,179 +1961,177 @@ class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource * $users = $adminService->users; * */ -class Google_Service_Directory_Users_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_Users_Resource extends Google_Service_Resource { - /** - * Delete user (users.delete) - * - * @param string $userKey - * Email or immutable Id of the user - * @param array $optParams Optional parameters. - */ - public function delete($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * retrieve user (users.get) - * - * @param string $userKey - * Email or immutable Id of the user - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_User - */ - public function get($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_User"); - } - /** - * create user. (users.insert) - * - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_User - */ - public function insert(Google_Service_Directory_User $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_User"); - } - /** - * Retrieve either deleted users or all users in a domain (paginated) - * (users.listUsers) - * - * @param array $optParams Optional parameters. - * - * @opt_param string customer - * Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a - * customer, fill this field instead of domain. - * @opt_param string orderBy - * Column to use for sorting results - * @opt_param string domain - * Name of the domain. Fill this field to get users from only this domain. To return all users in a - * multi-domain fill customer field instead. - * @opt_param string showDeleted - * If set to true retrieves the list of deleted users. Default is false - * @opt_param int maxResults - * Maximum number of results to return. Default is 100. Max allowed is 500 - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string sortOrder - * Whether to return results in ascending or descending order. - * @opt_param string query - * Query string search. Should be of the form "" where field can be any of supported fields, - * operators can be one of '=' for exact match or ':' for prefix match. For prefix match, the value - * should always be followed by a *. - * @opt_param string event - * Event on which subscription is intended (if subscribing) - * @return Google_Service_Directory_Users - */ - public function listUsers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Users"); - } - /** - * change admin status of a user (users.makeAdmin) - * - * @param string $userKey - * Email or immutable Id of the user as admin - * @param Google_UserMakeAdmin $postBody - * @param array $optParams Optional parameters. - */ - public function makeAdmin($userKey, Google_Service_Directory_UserMakeAdmin $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('makeAdmin', array($params)); - } - /** - * update user. This method supports patch semantics. (users.patch) - * - * @param string $userKey - * Email or immutable Id of the user. If Id, it should match with id of user object - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_User - */ - public function patch($userKey, Google_Service_Directory_User $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_User"); - } - /** - * Undelete a deleted user (users.undelete) - * - * @param string $userKey - * The immutable id of the user - * @param Google_UserUndelete $postBody - * @param array $optParams Optional parameters. - */ - public function undelete($userKey, Google_Service_Directory_UserUndelete $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('undelete', array($params)); - } - /** - * update user (users.update) - * - * @param string $userKey - * Email or immutable Id of the user. If Id, it should match with id of user object - * @param Google_User $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_User - */ - public function update($userKey, Google_Service_Directory_User $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_User"); - } - /** - * Watch for changes in users list (users.watch) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string customer - * Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a - * customer, fill this field instead of domain. - * @opt_param string orderBy - * Column to use for sorting results - * @opt_param string domain - * Name of the domain. Fill this field to get users from only this domain. To return all users in a - * multi-domain fill customer field instead. - * @opt_param string showDeleted - * If set to true retrieves the list of deleted users. Default is false - * @opt_param int maxResults - * Maximum number of results to return. Default is 100. Max allowed is 500 - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string sortOrder - * Whether to return results in ascending or descending order. - * @opt_param string query - * Query string search. Should be of the form "" where field can be any of supported fields, - * operators can be one of '=' for exact match or ':' for prefix match. For prefix match, the value - * should always be followed by a *. - * @opt_param string event - * Event on which subscription is intended (if subscribing) - * @return Google_Service_Directory_Channel - */ - public function watch(Google_Service_Directory_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Directory_Channel"); - } + /** + * Delete user (users.delete) + * + * @param string $userKey + * Email or immutable Id of the user + * @param array $optParams Optional parameters. + */ + public function delete($userKey, $optParams = array()) { + $params = array('userKey' => $userKey); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * retrieve user (users.get) + * + * @param string $userKey + * Email or immutable Id of the user + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_User + */ + public function get($userKey, $optParams = array()) { + $params = array('userKey' => $userKey); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_User"); + } + + /** + * create user. (users.insert) + * + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_User + */ + public function insert(Google_Service_Directory_User $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_User"); + } + + /** + * Retrieve either deleted users or all users in a domain (paginated) + * (users.listUsers) + * + * @param array $optParams Optional parameters. + * + * @opt_param string customer + * Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a + * customer, fill this field instead of domain. + * @opt_param string orderBy + * Column to use for sorting results + * @opt_param string domain + * Name of the domain. Fill this field to get users from only this domain. To return all users in a + * multi-domain fill customer field instead. + * @opt_param string showDeleted + * If set to true retrieves the list of deleted users. Default is false + * @opt_param int maxResults + * Maximum number of results to return. Default is 100. Max allowed is 500 + * @opt_param string pageToken + * Token to specify next page in the list + * @opt_param string sortOrder + * Whether to return results in ascending or descending order. + * @opt_param string query + * Query string search. Should be of the form "" where field can be any of supported fields, + * operators can be one of '=' for exact match or ':' for prefix match. For prefix match, the value + * should always be followed by a *. + * @opt_param string event + * Event on which subscription is intended (if subscribing) + * @return Google_Service_Directory_Users + */ + public function listUsers($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Users"); + } + + /** + * change admin status of a user (users.makeAdmin) + * + * @param string $userKey + * Email or immutable Id of the user as admin + * @param Google_UserMakeAdmin $postBody + * @param array $optParams Optional parameters. + */ + public function makeAdmin($userKey, Google_Service_Directory_UserMakeAdmin $postBody, $optParams = array()) { + $params = array('userKey' => $userKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('makeAdmin', array($params)); + } + + /** + * update user. This method supports patch semantics. (users.patch) + * + * @param string $userKey + * Email or immutable Id of the user. If Id, it should match with id of user object + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_User + */ + public function patch($userKey, Google_Service_Directory_User $postBody, $optParams = array()) { + $params = array('userKey' => $userKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_User"); + } + + /** + * Undelete a deleted user (users.undelete) + * + * @param string $userKey + * The immutable id of the user + * @param Google_UserUndelete $postBody + * @param array $optParams Optional parameters. + */ + public function undelete($userKey, Google_Service_Directory_UserUndelete $postBody, $optParams = array()) { + $params = array('userKey' => $userKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('undelete', array($params)); + } + + /** + * update user (users.update) + * + * @param string $userKey + * Email or immutable Id of the user. If Id, it should match with id of user object + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_User + */ + public function update($userKey, Google_Service_Directory_User $postBody, $optParams = array()) { + $params = array('userKey' => $userKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_User"); + } + + /** + * Watch for changes in users list (users.watch) + * + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string customer + * Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a + * customer, fill this field instead of domain. + * @opt_param string orderBy + * Column to use for sorting results + * @opt_param string domain + * Name of the domain. Fill this field to get users from only this domain. To return all users in a + * multi-domain fill customer field instead. + * @opt_param string showDeleted + * If set to true retrieves the list of deleted users. Default is false + * @opt_param int maxResults + * Maximum number of results to return. Default is 100. Max allowed is 500 + * @opt_param string pageToken + * Token to specify next page in the list + * @opt_param string sortOrder + * Whether to return results in ascending or descending order. + * @opt_param string query + * Query string search. Should be of the form "" where field can be any of supported fields, + * operators can be one of '=' for exact match or ':' for prefix match. For prefix match, the value + * should always be followed by a *. + * @opt_param string event + * Event on which subscription is intended (if subscribing) + * @return Google_Service_Directory_Channel + */ + public function watch(Google_Service_Directory_Channel $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Directory_Channel"); + } } /** @@ -2166,75 +2142,74 @@ class Google_Service_Directory_Users_Resource extends Google_Service_Resource * $aliases = $adminService->aliases; * */ -class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Resource { - /** - * Remove a alias for the user (aliases.delete) - * - * @param string $userKey - * Email or immutable Id of the user - * @param string $alias - * The alias to be removed - * @param array $optParams Optional parameters. - */ - public function delete($userKey, $alias, $optParams = array()) - { - $params = array('userKey' => $userKey, 'alias' => $alias); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Add a alias for the user (aliases.insert) - * - * @param string $userKey - * Email or immutable Id of the user - * @param Google_Alias $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Alias - */ - public function insert($userKey, Google_Service_Directory_Alias $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Directory_Alias"); - } - /** - * List all aliases for a user (aliases.listUsersAliases) - * - * @param string $userKey - * Email or immutable Id of the user - * @param array $optParams Optional parameters. - * - * @opt_param string event - * Event on which subscription is intended (if subscribing) - * @return Google_Service_Directory_Aliases - */ - public function listUsersAliases($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_Aliases"); - } - /** - * Watch for changes in user aliases list (aliases.watch) - * - * @param string $userKey - * Email or immutable Id of the user - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string event - * Event on which subscription is intended (if subscribing) - * @return Google_Service_Directory_Channel - */ - public function watch($userKey, Google_Service_Directory_Channel $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Directory_Channel"); - } + /** + * Remove a alias for the user (aliases.delete) + * + * @param string $userKey + * Email or immutable Id of the user + * @param string $alias + * The alias to be removed + * @param array $optParams Optional parameters. + */ + public function delete($userKey, $alias, $optParams = array()) { + $params = array('userKey' => $userKey, 'alias' => $alias); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Add a alias for the user (aliases.insert) + * + * @param string $userKey + * Email or immutable Id of the user + * @param Google_Alias $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_Alias + */ + public function insert($userKey, Google_Service_Directory_Alias $postBody, $optParams = array()) { + $params = array('userKey' => $userKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Directory_Alias"); + } + + /** + * List all aliases for a user (aliases.listUsersAliases) + * + * @param string $userKey + * Email or immutable Id of the user + * @param array $optParams Optional parameters. + * + * @opt_param string event + * Event on which subscription is intended (if subscribing) + * @return Google_Service_Directory_Aliases + */ + public function listUsersAliases($userKey, $optParams = array()) { + $params = array('userKey' => $userKey); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_Aliases"); + } + + /** + * Watch for changes in user aliases list (aliases.watch) + * + * @param string $userKey + * Email or immutable Id of the user + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string event + * Event on which subscription is intended (if subscribing) + * @return Google_Service_Directory_Channel + */ + public function watch($userKey, Google_Service_Directory_Channel $postBody, $optParams = array()) { + $params = array('userKey' => $userKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Directory_Channel"); + } } + /** * The "photos" collection of methods. * Typical usage is: @@ -2243,67 +2218,65 @@ class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Reso * $photos = $adminService->photos; * */ -class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resource { - /** - * Remove photos for the user (photos.delete) - * - * @param string $userKey - * Email or immutable Id of the user - * @param array $optParams Optional parameters. - */ - public function delete($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieve photo of a user (photos.get) - * - * @param string $userKey - * Email or immutable Id of the user - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_UserPhoto - */ - public function get($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Directory_UserPhoto"); - } - /** - * Add a photo for the user. This method supports patch semantics. - * (photos.patch) - * - * @param string $userKey - * Email or immutable Id of the user - * @param Google_UserPhoto $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_UserPhoto - */ - public function patch($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_UserPhoto"); - } - /** - * Add a photo for the user (photos.update) - * - * @param string $userKey - * Email or immutable Id of the user - * @param Google_UserPhoto $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_UserPhoto - */ - public function update($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Directory_UserPhoto"); - } + /** + * Remove photos for the user (photos.delete) + * + * @param string $userKey + * Email or immutable Id of the user + * @param array $optParams Optional parameters. + */ + public function delete($userKey, $optParams = array()) { + $params = array('userKey' => $userKey); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieve photo of a user (photos.get) + * + * @param string $userKey + * Email or immutable Id of the user + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_UserPhoto + */ + public function get($userKey, $optParams = array()) { + $params = array('userKey' => $userKey); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Directory_UserPhoto"); + } + + /** + * Add a photo for the user. This method supports patch semantics. + * (photos.patch) + * + * @param string $userKey + * Email or immutable Id of the user + * @param Google_UserPhoto $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_UserPhoto + */ + public function patch($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array()) { + $params = array('userKey' => $userKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Directory_UserPhoto"); + } + + /** + * Add a photo for the user (photos.update) + * + * @param string $userKey + * Email or immutable Id of the user + * @param Google_UserPhoto $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_UserPhoto + */ + public function update($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array()) { + $params = array('userKey' => $userKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Directory_UserPhoto"); + } } /** @@ -2314,2982 +2287,2438 @@ class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resou * $verificationCodes = $adminService->verificationCodes; * */ -class Google_Service_Directory_VerificationCodes_Resource extends Google_Service_Resource -{ +class Google_Service_Directory_VerificationCodes_Resource extends Google_Service_Resource { - /** - * Generate new backup verification codes for the user. - * (verificationCodes.generate) - * - * @param string $userKey - * Email or immutable Id of the user - * @param array $optParams Optional parameters. - */ - public function generate($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params)); - } - /** - * Invalidate the current backup verification codes for the user. - * (verificationCodes.invalidate) - * - * @param string $userKey - * Email or immutable Id of the user - * @param array $optParams Optional parameters. - */ - public function invalidate($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('invalidate', array($params)); - } - /** - * Returns the current set of valid backup verification codes for the specified - * user. (verificationCodes.listVerificationCodes) - * - * @param string $userKey - * Identifies the user in the API request. The value can be the user's primary email address, alias - * email address, or unique user ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Directory_VerificationCodes - */ - public function listVerificationCodes($userKey, $optParams = array()) - { - $params = array('userKey' => $userKey); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Directory_VerificationCodes"); - } + /** + * Generate new backup verification codes for the user. + * (verificationCodes.generate) + * + * @param string $userKey + * Email or immutable Id of the user + * @param array $optParams Optional parameters. + */ + public function generate($userKey, $optParams = array()) { + $params = array('userKey' => $userKey); + $params = array_merge($params, $optParams); + return $this->call('generate', array($params)); + } + + /** + * Invalidate the current backup verification codes for the user. + * (verificationCodes.invalidate) + * + * @param string $userKey + * Email or immutable Id of the user + * @param array $optParams Optional parameters. + */ + public function invalidate($userKey, $optParams = array()) { + $params = array('userKey' => $userKey); + $params = array_merge($params, $optParams); + return $this->call('invalidate', array($params)); + } + + /** + * Returns the current set of valid backup verification codes for the specified + * user. (verificationCodes.listVerificationCodes) + * + * @param string $userKey + * Identifies the user in the API request. The value can be the user's primary email address, alias + * email address, or unique user ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Directory_VerificationCodes + */ + public function listVerificationCodes($userKey, $optParams = array()) { + $params = array('userKey' => $userKey); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Directory_VerificationCodes"); + } } +class Google_Service_Directory_Alias extends Google_Model { + public $alias; + public $etag; + public $id; + public $kind; + public $primaryEmail; + public function setAlias($alias) { + $this->alias = $alias; + } -class Google_Service_Directory_Alias extends Google_Model -{ - public $alias; - public $etag; - public $id; - public $kind; - public $primaryEmail; + public function getAlias() { + return $this->alias; + } - public function setAlias($alias) - { - $this->alias = $alias; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getAlias() - { - return $this->alias; - } + public function getEtag() { + return $this->etag; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setId($id) { + $this->id = $id; + } - public function getEtag() - { - return $this->etag; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setPrimaryEmail($primaryEmail) { + $this->primaryEmail = $primaryEmail; + } - public function getKind() - { - return $this->kind; - } - - public function setPrimaryEmail($primaryEmail) - { - $this->primaryEmail = $primaryEmail; - } - - public function getPrimaryEmail() - { - return $this->primaryEmail; - } + public function getPrimaryEmail() { + return $this->primaryEmail; + } } -class Google_Service_Directory_Aliases extends Google_Collection -{ - protected $aliasesType = 'Google_Service_Directory_Alias'; - protected $aliasesDataType = 'array'; - public $etag; - public $kind; +class Google_Service_Directory_Aliases extends Google_Collection { + protected $aliasesType = 'Google_Service_Directory_Alias'; + protected $aliasesDataType = 'array'; + public $etag; + public $kind; - public function setAliases($aliases) - { - $this->aliases = $aliases; - } + public function setAliases($aliases) { + $this->aliases = $aliases; + } - public function getAliases() - { - return $this->aliases; - } + public function getAliases() { + return $this->aliases; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Directory_Asp extends Google_Model -{ - public $codeId; - public $creationTime; - public $etag; - public $kind; - public $lastTimeUsed; - public $name; - public $userKey; +class Google_Service_Directory_Asp extends Google_Model { + public $codeId; + public $creationTime; + public $etag; + public $kind; + public $lastTimeUsed; + public $name; + public $userKey; - public function setCodeId($codeId) - { - $this->codeId = $codeId; - } + public function setCodeId($codeId) { + $this->codeId = $codeId; + } - public function getCodeId() - { - return $this->codeId; - } + public function getCodeId() { + return $this->codeId; + } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastTimeUsed($lastTimeUsed) - { - $this->lastTimeUsed = $lastTimeUsed; - } + public function setLastTimeUsed($lastTimeUsed) { + $this->lastTimeUsed = $lastTimeUsed; + } - public function getLastTimeUsed() - { - return $this->lastTimeUsed; - } + public function getLastTimeUsed() { + return $this->lastTimeUsed; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setUserKey($userKey) - { - $this->userKey = $userKey; - } + public function setUserKey($userKey) { + $this->userKey = $userKey; + } - public function getUserKey() - { - return $this->userKey; - } + public function getUserKey() { + return $this->userKey; + } } -class Google_Service_Directory_Asps extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Directory_Asp'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Directory_Asps extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Directory_Asp'; + protected $itemsDataType = 'array'; + public $kind; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Directory_Channel extends Google_Model -{ - public $address; - public $expiration; - public $id; - public $kind; - public $params; - public $payload; - public $resourceId; - public $resourceUri; - public $token; - public $type; +class Google_Service_Directory_Channel extends Google_Model { + public $address; + public $expiration; + public $id; + public $kind; + public $params; + public $payload; + public $resourceId; + public $resourceUri; + public $token; + public $type; - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setExpiration($expiration) - { - $this->expiration = $expiration; - } + public function setExpiration($expiration) { + $this->expiration = $expiration; + } - public function getExpiration() - { - return $this->expiration; - } + public function getExpiration() { + return $this->expiration; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setParams($params) - { - $this->params = $params; - } + public function setParams($params) { + $this->params = $params; + } - public function getParams() - { - return $this->params; - } + public function getParams() { + return $this->params; + } - public function setPayload($payload) - { - $this->payload = $payload; - } + public function setPayload($payload) { + $this->payload = $payload; + } - public function getPayload() - { - return $this->payload; - } + public function getPayload() { + return $this->payload; + } - public function setResourceId($resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId($resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } - public function setResourceUri($resourceUri) - { - $this->resourceUri = $resourceUri; - } + public function setResourceUri($resourceUri) { + $this->resourceUri = $resourceUri; + } - public function getResourceUri() - { - return $this->resourceUri; - } + public function getResourceUri() { + return $this->resourceUri; + } - public function setToken($token) - { - $this->token = $token; - } + public function setToken($token) { + $this->token = $token; + } - public function getToken() - { - return $this->token; - } + public function getToken() { + return $this->token; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Directory_ChannelParams extends Google_Model -{ +class Google_Service_Directory_ChannelParams extends Google_Model { } -class Google_Service_Directory_ChromeOsDevice extends Google_Collection -{ - public $annotatedLocation; - public $annotatedUser; - public $bootMode; - public $deviceId; - public $etag; - public $ethernetMacAddress; - public $firmwareVersion; - public $kind; - public $lastEnrollmentTime; - public $lastSync; - public $macAddress; - public $meid; - public $model; - public $notes; - public $orderNumber; - public $orgUnitPath; - public $osVersion; - public $platformVersion; - protected $recentUsersType = 'Google_Service_Directory_ChromeOsDeviceRecentUsers'; - protected $recentUsersDataType = 'array'; - public $serialNumber; - public $status; - public $supportEndDate; - public $willAutoRenew; +class Google_Service_Directory_ChromeOsDevice extends Google_Collection { + public $annotatedLocation; + public $annotatedUser; + public $bootMode; + public $deviceId; + public $etag; + public $ethernetMacAddress; + public $firmwareVersion; + public $kind; + public $lastEnrollmentTime; + public $lastSync; + public $macAddress; + public $meid; + public $model; + public $notes; + public $orderNumber; + public $orgUnitPath; + public $osVersion; + public $platformVersion; + protected $recentUsersType = 'Google_Service_Directory_ChromeOsDeviceRecentUsers'; + protected $recentUsersDataType = 'array'; + public $serialNumber; + public $status; + public $supportEndDate; + public $willAutoRenew; - public function setAnnotatedLocation($annotatedLocation) - { - $this->annotatedLocation = $annotatedLocation; - } + public function setAnnotatedLocation($annotatedLocation) { + $this->annotatedLocation = $annotatedLocation; + } - public function getAnnotatedLocation() - { - return $this->annotatedLocation; - } + public function getAnnotatedLocation() { + return $this->annotatedLocation; + } - public function setAnnotatedUser($annotatedUser) - { - $this->annotatedUser = $annotatedUser; - } + public function setAnnotatedUser($annotatedUser) { + $this->annotatedUser = $annotatedUser; + } - public function getAnnotatedUser() - { - return $this->annotatedUser; - } + public function getAnnotatedUser() { + return $this->annotatedUser; + } - public function setBootMode($bootMode) - { - $this->bootMode = $bootMode; - } + public function setBootMode($bootMode) { + $this->bootMode = $bootMode; + } - public function getBootMode() - { - return $this->bootMode; - } + public function getBootMode() { + return $this->bootMode; + } - public function setDeviceId($deviceId) - { - $this->deviceId = $deviceId; - } + public function setDeviceId($deviceId) { + $this->deviceId = $deviceId; + } - public function getDeviceId() - { - return $this->deviceId; - } + public function getDeviceId() { + return $this->deviceId; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setEthernetMacAddress($ethernetMacAddress) - { - $this->ethernetMacAddress = $ethernetMacAddress; - } + public function setEthernetMacAddress($ethernetMacAddress) { + $this->ethernetMacAddress = $ethernetMacAddress; + } - public function getEthernetMacAddress() - { - return $this->ethernetMacAddress; - } + public function getEthernetMacAddress() { + return $this->ethernetMacAddress; + } - public function setFirmwareVersion($firmwareVersion) - { - $this->firmwareVersion = $firmwareVersion; - } + public function setFirmwareVersion($firmwareVersion) { + $this->firmwareVersion = $firmwareVersion; + } - public function getFirmwareVersion() - { - return $this->firmwareVersion; - } + public function getFirmwareVersion() { + return $this->firmwareVersion; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastEnrollmentTime($lastEnrollmentTime) - { - $this->lastEnrollmentTime = $lastEnrollmentTime; - } + public function setLastEnrollmentTime($lastEnrollmentTime) { + $this->lastEnrollmentTime = $lastEnrollmentTime; + } - public function getLastEnrollmentTime() - { - return $this->lastEnrollmentTime; - } + public function getLastEnrollmentTime() { + return $this->lastEnrollmentTime; + } - public function setLastSync($lastSync) - { - $this->lastSync = $lastSync; - } + public function setLastSync($lastSync) { + $this->lastSync = $lastSync; + } - public function getLastSync() - { - return $this->lastSync; - } + public function getLastSync() { + return $this->lastSync; + } - public function setMacAddress($macAddress) - { - $this->macAddress = $macAddress; - } + public function setMacAddress($macAddress) { + $this->macAddress = $macAddress; + } - public function getMacAddress() - { - return $this->macAddress; - } + public function getMacAddress() { + return $this->macAddress; + } - public function setMeid($meid) - { - $this->meid = $meid; - } + public function setMeid($meid) { + $this->meid = $meid; + } - public function getMeid() - { - return $this->meid; - } + public function getMeid() { + return $this->meid; + } - public function setModel($model) - { - $this->model = $model; - } + public function setModel($model) { + $this->model = $model; + } - public function getModel() - { - return $this->model; - } + public function getModel() { + return $this->model; + } - public function setNotes($notes) - { - $this->notes = $notes; - } + public function setNotes($notes) { + $this->notes = $notes; + } - public function getNotes() - { - return $this->notes; - } + public function getNotes() { + return $this->notes; + } - public function setOrderNumber($orderNumber) - { - $this->orderNumber = $orderNumber; - } + public function setOrderNumber($orderNumber) { + $this->orderNumber = $orderNumber; + } - public function getOrderNumber() - { - return $this->orderNumber; - } + public function getOrderNumber() { + return $this->orderNumber; + } - public function setOrgUnitPath($orgUnitPath) - { - $this->orgUnitPath = $orgUnitPath; - } + public function setOrgUnitPath($orgUnitPath) { + $this->orgUnitPath = $orgUnitPath; + } - public function getOrgUnitPath() - { - return $this->orgUnitPath; - } + public function getOrgUnitPath() { + return $this->orgUnitPath; + } - public function setOsVersion($osVersion) - { - $this->osVersion = $osVersion; - } + public function setOsVersion($osVersion) { + $this->osVersion = $osVersion; + } - public function getOsVersion() - { - return $this->osVersion; - } + public function getOsVersion() { + return $this->osVersion; + } - public function setPlatformVersion($platformVersion) - { - $this->platformVersion = $platformVersion; - } + public function setPlatformVersion($platformVersion) { + $this->platformVersion = $platformVersion; + } - public function getPlatformVersion() - { - return $this->platformVersion; - } + public function getPlatformVersion() { + return $this->platformVersion; + } - public function setRecentUsers($recentUsers) - { - $this->recentUsers = $recentUsers; - } + public function setRecentUsers($recentUsers) { + $this->recentUsers = $recentUsers; + } - public function getRecentUsers() - { - return $this->recentUsers; - } + public function getRecentUsers() { + return $this->recentUsers; + } - public function setSerialNumber($serialNumber) - { - $this->serialNumber = $serialNumber; - } + public function setSerialNumber($serialNumber) { + $this->serialNumber = $serialNumber; + } - public function getSerialNumber() - { - return $this->serialNumber; - } + public function getSerialNumber() { + return $this->serialNumber; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setSupportEndDate($supportEndDate) - { - $this->supportEndDate = $supportEndDate; - } + public function setSupportEndDate($supportEndDate) { + $this->supportEndDate = $supportEndDate; + } - public function getSupportEndDate() - { - return $this->supportEndDate; - } + public function getSupportEndDate() { + return $this->supportEndDate; + } - public function setWillAutoRenew($willAutoRenew) - { - $this->willAutoRenew = $willAutoRenew; - } + public function setWillAutoRenew($willAutoRenew) { + $this->willAutoRenew = $willAutoRenew; + } - public function getWillAutoRenew() - { - return $this->willAutoRenew; - } + public function getWillAutoRenew() { + return $this->willAutoRenew; + } } -class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model -{ - public $email; - public $type; +class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model { + public $email; + public $type; - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Directory_ChromeOsDevices extends Google_Collection -{ - protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice'; - protected $chromeosdevicesDataType = 'array'; - public $etag; - public $kind; - public $nextPageToken; +class Google_Service_Directory_ChromeOsDevices extends Google_Collection { + protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice'; + protected $chromeosdevicesDataType = 'array'; + public $etag; + public $kind; + public $nextPageToken; - public function setChromeosdevices($chromeosdevices) - { - $this->chromeosdevices = $chromeosdevices; - } + public function setChromeosdevices($chromeosdevices) { + $this->chromeosdevices = $chromeosdevices; + } - public function getChromeosdevices() - { - return $this->chromeosdevices; - } + public function getChromeosdevices() { + return $this->chromeosdevices; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Directory_Group extends Google_Collection -{ - public $adminCreated; - public $aliases; - public $description; - public $directMembersCount; - public $email; - public $etag; - public $id; - public $kind; - public $name; - public $nonEditableAliases; +class Google_Service_Directory_Group extends Google_Collection { + public $adminCreated; + public $aliases; + public $description; + public $directMembersCount; + public $email; + public $etag; + public $id; + public $kind; + public $name; + public $nonEditableAliases; - public function setAdminCreated($adminCreated) - { - $this->adminCreated = $adminCreated; - } + public function setAdminCreated($adminCreated) { + $this->adminCreated = $adminCreated; + } - public function getAdminCreated() - { - return $this->adminCreated; - } + public function getAdminCreated() { + return $this->adminCreated; + } - public function setAliases($aliases) - { - $this->aliases = $aliases; - } + public function setAliases($aliases) { + $this->aliases = $aliases; + } - public function getAliases() - { - return $this->aliases; - } + public function getAliases() { + return $this->aliases; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setDirectMembersCount($directMembersCount) - { - $this->directMembersCount = $directMembersCount; - } + public function setDirectMembersCount($directMembersCount) { + $this->directMembersCount = $directMembersCount; + } - public function getDirectMembersCount() - { - return $this->directMembersCount; - } + public function getDirectMembersCount() { + return $this->directMembersCount; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setNonEditableAliases($nonEditableAliases) - { - $this->nonEditableAliases = $nonEditableAliases; - } + public function setNonEditableAliases($nonEditableAliases) { + $this->nonEditableAliases = $nonEditableAliases; + } - public function getNonEditableAliases() - { - return $this->nonEditableAliases; - } + public function getNonEditableAliases() { + return $this->nonEditableAliases; + } } -class Google_Service_Directory_Groups extends Google_Collection -{ - public $etag; - protected $groupsType = 'Google_Service_Directory_Group'; - protected $groupsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Directory_Groups extends Google_Collection { + public $etag; + protected $groupsType = 'Google_Service_Directory_Group'; + protected $groupsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setGroups($groups) - { - $this->groups = $groups; - } + public function setGroups($groups) { + $this->groups = $groups; + } - public function getGroups() - { - return $this->groups; - } + public function getGroups() { + return $this->groups; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Directory_Member extends Google_Model -{ - public $email; - public $etag; - public $id; - public $kind; - public $role; - public $type; +class Google_Service_Directory_Member extends Google_Model { + public $email; + public $etag; + public $id; + public $kind; + public $role; + public $type; - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRole($role) - { - $this->role = $role; - } + public function setRole($role) { + $this->role = $role; + } - public function getRole() - { - return $this->role; - } + public function getRole() { + return $this->role; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Directory_Members extends Google_Collection -{ - public $etag; - public $kind; - protected $membersType = 'Google_Service_Directory_Member'; - protected $membersDataType = 'array'; - public $nextPageToken; +class Google_Service_Directory_Members extends Google_Collection { + public $etag; + public $kind; + protected $membersType = 'Google_Service_Directory_Member'; + protected $membersDataType = 'array'; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMembers($members) - { - $this->members = $members; - } + public function setMembers($members) { + $this->members = $members; + } - public function getMembers() - { - return $this->members; - } + public function getMembers() { + return $this->members; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Directory_MobileDevice extends Google_Collection -{ - protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications'; - protected $applicationsDataType = 'array'; - public $basebandVersion; - public $buildNumber; - public $defaultLanguage; - public $deviceCompromisedStatus; - public $deviceId; - public $email; - public $etag; - public $firstSync; - public $hardwareId; - public $imei; - public $kernelVersion; - public $kind; - public $lastSync; - public $managedAccountIsOnOwnerProfile; - public $meid; - public $model; - public $name; - public $networkOperator; - public $os; - public $resourceId; - public $serialNumber; - public $status; - public $type; - public $userAgent; - public $wifiMacAddress; +class Google_Service_Directory_MobileDevice extends Google_Collection { + protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications'; + protected $applicationsDataType = 'array'; + public $basebandVersion; + public $buildNumber; + public $defaultLanguage; + public $deviceCompromisedStatus; + public $deviceId; + public $email; + public $etag; + public $firstSync; + public $hardwareId; + public $imei; + public $kernelVersion; + public $kind; + public $lastSync; + public $managedAccountIsOnOwnerProfile; + public $meid; + public $model; + public $name; + public $networkOperator; + public $os; + public $resourceId; + public $serialNumber; + public $status; + public $type; + public $userAgent; + public $wifiMacAddress; - public function setApplications($applications) - { - $this->applications = $applications; - } + public function setApplications($applications) { + $this->applications = $applications; + } - public function getApplications() - { - return $this->applications; - } + public function getApplications() { + return $this->applications; + } - public function setBasebandVersion($basebandVersion) - { - $this->basebandVersion = $basebandVersion; - } + public function setBasebandVersion($basebandVersion) { + $this->basebandVersion = $basebandVersion; + } - public function getBasebandVersion() - { - return $this->basebandVersion; - } + public function getBasebandVersion() { + return $this->basebandVersion; + } - public function setBuildNumber($buildNumber) - { - $this->buildNumber = $buildNumber; - } + public function setBuildNumber($buildNumber) { + $this->buildNumber = $buildNumber; + } - public function getBuildNumber() - { - return $this->buildNumber; - } + public function getBuildNumber() { + return $this->buildNumber; + } - public function setDefaultLanguage($defaultLanguage) - { - $this->defaultLanguage = $defaultLanguage; - } + public function setDefaultLanguage($defaultLanguage) { + $this->defaultLanguage = $defaultLanguage; + } - public function getDefaultLanguage() - { - return $this->defaultLanguage; - } + public function getDefaultLanguage() { + return $this->defaultLanguage; + } - public function setDeviceCompromisedStatus($deviceCompromisedStatus) - { - $this->deviceCompromisedStatus = $deviceCompromisedStatus; - } + public function setDeviceCompromisedStatus($deviceCompromisedStatus) { + $this->deviceCompromisedStatus = $deviceCompromisedStatus; + } - public function getDeviceCompromisedStatus() - { - return $this->deviceCompromisedStatus; - } + public function getDeviceCompromisedStatus() { + return $this->deviceCompromisedStatus; + } - public function setDeviceId($deviceId) - { - $this->deviceId = $deviceId; - } + public function setDeviceId($deviceId) { + $this->deviceId = $deviceId; + } - public function getDeviceId() - { - return $this->deviceId; - } + public function getDeviceId() { + return $this->deviceId; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setFirstSync($firstSync) - { - $this->firstSync = $firstSync; - } + public function setFirstSync($firstSync) { + $this->firstSync = $firstSync; + } - public function getFirstSync() - { - return $this->firstSync; - } + public function getFirstSync() { + return $this->firstSync; + } - public function setHardwareId($hardwareId) - { - $this->hardwareId = $hardwareId; - } + public function setHardwareId($hardwareId) { + $this->hardwareId = $hardwareId; + } - public function getHardwareId() - { - return $this->hardwareId; - } + public function getHardwareId() { + return $this->hardwareId; + } - public function setImei($imei) - { - $this->imei = $imei; - } + public function setImei($imei) { + $this->imei = $imei; + } - public function getImei() - { - return $this->imei; - } + public function getImei() { + return $this->imei; + } - public function setKernelVersion($kernelVersion) - { - $this->kernelVersion = $kernelVersion; - } + public function setKernelVersion($kernelVersion) { + $this->kernelVersion = $kernelVersion; + } - public function getKernelVersion() - { - return $this->kernelVersion; - } + public function getKernelVersion() { + return $this->kernelVersion; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastSync($lastSync) - { - $this->lastSync = $lastSync; - } + public function setLastSync($lastSync) { + $this->lastSync = $lastSync; + } - public function getLastSync() - { - return $this->lastSync; - } + public function getLastSync() { + return $this->lastSync; + } - public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile) - { - $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile; - } + public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile) { + $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile; + } - public function getManagedAccountIsOnOwnerProfile() - { - return $this->managedAccountIsOnOwnerProfile; - } + public function getManagedAccountIsOnOwnerProfile() { + return $this->managedAccountIsOnOwnerProfile; + } - public function setMeid($meid) - { - $this->meid = $meid; - } + public function setMeid($meid) { + $this->meid = $meid; + } - public function getMeid() - { - return $this->meid; - } + public function getMeid() { + return $this->meid; + } - public function setModel($model) - { - $this->model = $model; - } + public function setModel($model) { + $this->model = $model; + } - public function getModel() - { - return $this->model; - } + public function getModel() { + return $this->model; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setNetworkOperator($networkOperator) - { - $this->networkOperator = $networkOperator; - } + public function setNetworkOperator($networkOperator) { + $this->networkOperator = $networkOperator; + } - public function getNetworkOperator() - { - return $this->networkOperator; - } + public function getNetworkOperator() { + return $this->networkOperator; + } - public function setOs($os) - { - $this->os = $os; - } + public function setOs($os) { + $this->os = $os; + } - public function getOs() - { - return $this->os; - } + public function getOs() { + return $this->os; + } - public function setResourceId($resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId($resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } - public function setSerialNumber($serialNumber) - { - $this->serialNumber = $serialNumber; - } + public function setSerialNumber($serialNumber) { + $this->serialNumber = $serialNumber; + } - public function getSerialNumber() - { - return $this->serialNumber; - } + public function getSerialNumber() { + return $this->serialNumber; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUserAgent($userAgent) - { - $this->userAgent = $userAgent; - } + public function setUserAgent($userAgent) { + $this->userAgent = $userAgent; + } - public function getUserAgent() - { - return $this->userAgent; - } + public function getUserAgent() { + return $this->userAgent; + } - public function setWifiMacAddress($wifiMacAddress) - { - $this->wifiMacAddress = $wifiMacAddress; - } + public function setWifiMacAddress($wifiMacAddress) { + $this->wifiMacAddress = $wifiMacAddress; + } - public function getWifiMacAddress() - { - return $this->wifiMacAddress; - } + public function getWifiMacAddress() { + return $this->wifiMacAddress; + } } -class Google_Service_Directory_MobileDeviceAction extends Google_Model -{ - public $action; +class Google_Service_Directory_MobileDeviceAction extends Google_Model { + public $action; - public function setAction($action) - { - $this->action = $action; - } + public function setAction($action) { + $this->action = $action; + } - public function getAction() - { - return $this->action; - } + public function getAction() { + return $this->action; + } } -class Google_Service_Directory_MobileDeviceApplications extends Google_Collection -{ - public $displayName; - public $packageName; - public $permission; - public $versionCode; - public $versionName; +class Google_Service_Directory_MobileDeviceApplications extends Google_Collection { + public $displayName; + public $packageName; + public $permission; + public $versionCode; + public $versionName; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setPackageName($packageName) - { - $this->packageName = $packageName; - } + public function setPackageName($packageName) { + $this->packageName = $packageName; + } - public function getPackageName() - { - return $this->packageName; - } + public function getPackageName() { + return $this->packageName; + } - public function setPermission($permission) - { - $this->permission = $permission; - } + public function setPermission($permission) { + $this->permission = $permission; + } - public function getPermission() - { - return $this->permission; - } + public function getPermission() { + return $this->permission; + } - public function setVersionCode($versionCode) - { - $this->versionCode = $versionCode; - } + public function setVersionCode($versionCode) { + $this->versionCode = $versionCode; + } - public function getVersionCode() - { - return $this->versionCode; - } + public function getVersionCode() { + return $this->versionCode; + } - public function setVersionName($versionName) - { - $this->versionName = $versionName; - } + public function setVersionName($versionName) { + $this->versionName = $versionName; + } - public function getVersionName() - { - return $this->versionName; - } + public function getVersionName() { + return $this->versionName; + } } -class Google_Service_Directory_MobileDevices extends Google_Collection -{ - public $etag; - public $kind; - protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice'; - protected $mobiledevicesDataType = 'array'; - public $nextPageToken; +class Google_Service_Directory_MobileDevices extends Google_Collection { + public $etag; + public $kind; + protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice'; + protected $mobiledevicesDataType = 'array'; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMobiledevices($mobiledevices) - { - $this->mobiledevices = $mobiledevices; - } + public function setMobiledevices($mobiledevices) { + $this->mobiledevices = $mobiledevices; + } - public function getMobiledevices() - { - return $this->mobiledevices; - } + public function getMobiledevices() { + return $this->mobiledevices; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Directory_Notification extends Google_Model -{ - public $body; - public $etag; - public $fromAddress; - public $isUnread; - public $kind; - public $notificationId; - public $sendTime; - public $subject; +class Google_Service_Directory_Notification extends Google_Model { + public $body; + public $etag; + public $fromAddress; + public $isUnread; + public $kind; + public $notificationId; + public $sendTime; + public $subject; - public function setBody($body) - { - $this->body = $body; - } + public function setBody($body) { + $this->body = $body; + } - public function getBody() - { - return $this->body; - } + public function getBody() { + return $this->body; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setFromAddress($fromAddress) - { - $this->fromAddress = $fromAddress; - } + public function setFromAddress($fromAddress) { + $this->fromAddress = $fromAddress; + } - public function getFromAddress() - { - return $this->fromAddress; - } + public function getFromAddress() { + return $this->fromAddress; + } - public function setIsUnread($isUnread) - { - $this->isUnread = $isUnread; - } + public function setIsUnread($isUnread) { + $this->isUnread = $isUnread; + } - public function getIsUnread() - { - return $this->isUnread; - } + public function getIsUnread() { + return $this->isUnread; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNotificationId($notificationId) - { - $this->notificationId = $notificationId; - } + public function setNotificationId($notificationId) { + $this->notificationId = $notificationId; + } - public function getNotificationId() - { - return $this->notificationId; - } + public function getNotificationId() { + return $this->notificationId; + } - public function setSendTime($sendTime) - { - $this->sendTime = $sendTime; - } + public function setSendTime($sendTime) { + $this->sendTime = $sendTime; + } - public function getSendTime() - { - return $this->sendTime; - } + public function getSendTime() { + return $this->sendTime; + } - public function setSubject($subject) - { - $this->subject = $subject; - } + public function setSubject($subject) { + $this->subject = $subject; + } - public function getSubject() - { - return $this->subject; - } + public function getSubject() { + return $this->subject; + } } -class Google_Service_Directory_Notifications extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Directory_Notification'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $unreadNotificationsCount; +class Google_Service_Directory_Notifications extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Directory_Notification'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $unreadNotificationsCount; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setUnreadNotificationsCount($unreadNotificationsCount) - { - $this->unreadNotificationsCount = $unreadNotificationsCount; - } + public function setUnreadNotificationsCount($unreadNotificationsCount) { + $this->unreadNotificationsCount = $unreadNotificationsCount; + } - public function getUnreadNotificationsCount() - { - return $this->unreadNotificationsCount; - } + public function getUnreadNotificationsCount() { + return $this->unreadNotificationsCount; + } } -class Google_Service_Directory_OrgUnit extends Google_Model -{ - public $blockInheritance; - public $description; - public $etag; - public $kind; - public $name; - public $orgUnitPath; - public $parentOrgUnitPath; +class Google_Service_Directory_OrgUnit extends Google_Model { + public $blockInheritance; + public $description; + public $etag; + public $kind; + public $name; + public $orgUnitPath; + public $parentOrgUnitPath; - public function setBlockInheritance($blockInheritance) - { - $this->blockInheritance = $blockInheritance; - } + public function setBlockInheritance($blockInheritance) { + $this->blockInheritance = $blockInheritance; + } - public function getBlockInheritance() - { - return $this->blockInheritance; - } + public function getBlockInheritance() { + return $this->blockInheritance; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOrgUnitPath($orgUnitPath) - { - $this->orgUnitPath = $orgUnitPath; - } + public function setOrgUnitPath($orgUnitPath) { + $this->orgUnitPath = $orgUnitPath; + } - public function getOrgUnitPath() - { - return $this->orgUnitPath; - } + public function getOrgUnitPath() { + return $this->orgUnitPath; + } - public function setParentOrgUnitPath($parentOrgUnitPath) - { - $this->parentOrgUnitPath = $parentOrgUnitPath; - } + public function setParentOrgUnitPath($parentOrgUnitPath) { + $this->parentOrgUnitPath = $parentOrgUnitPath; + } - public function getParentOrgUnitPath() - { - return $this->parentOrgUnitPath; - } + public function getParentOrgUnitPath() { + return $this->parentOrgUnitPath; + } } -class Google_Service_Directory_OrgUnits extends Google_Collection -{ - public $etag; - public $kind; - protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit'; - protected $organizationUnitsDataType = 'array'; +class Google_Service_Directory_OrgUnits extends Google_Collection { + public $etag; + public $kind; + protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit'; + protected $organizationUnitsDataType = 'array'; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOrganizationUnits($organizationUnits) - { - $this->organizationUnits = $organizationUnits; - } + public function setOrganizationUnits($organizationUnits) { + $this->organizationUnits = $organizationUnits; + } - public function getOrganizationUnits() - { - return $this->organizationUnits; - } + public function getOrganizationUnits() { + return $this->organizationUnits; + } } -class Google_Service_Directory_Token extends Google_Collection -{ - public $anonymous; - public $clientId; - public $displayText; - public $etag; - public $kind; - public $nativeApp; - public $scopes; - public $userKey; +class Google_Service_Directory_Token extends Google_Collection { + public $anonymous; + public $clientId; + public $displayText; + public $etag; + public $kind; + public $nativeApp; + public $scopes; + public $userKey; - public function setAnonymous($anonymous) - { - $this->anonymous = $anonymous; - } + public function setAnonymous($anonymous) { + $this->anonymous = $anonymous; + } - public function getAnonymous() - { - return $this->anonymous; - } + public function getAnonymous() { + return $this->anonymous; + } - public function setClientId($clientId) - { - $this->clientId = $clientId; - } + public function setClientId($clientId) { + $this->clientId = $clientId; + } - public function getClientId() - { - return $this->clientId; - } + public function getClientId() { + return $this->clientId; + } - public function setDisplayText($displayText) - { - $this->displayText = $displayText; - } + public function setDisplayText($displayText) { + $this->displayText = $displayText; + } - public function getDisplayText() - { - return $this->displayText; - } + public function getDisplayText() { + return $this->displayText; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNativeApp($nativeApp) - { - $this->nativeApp = $nativeApp; - } + public function setNativeApp($nativeApp) { + $this->nativeApp = $nativeApp; + } - public function getNativeApp() - { - return $this->nativeApp; - } + public function getNativeApp() { + return $this->nativeApp; + } - public function setScopes($scopes) - { - $this->scopes = $scopes; - } + public function setScopes($scopes) { + $this->scopes = $scopes; + } - public function getScopes() - { - return $this->scopes; - } + public function getScopes() { + return $this->scopes; + } - public function setUserKey($userKey) - { - $this->userKey = $userKey; - } + public function setUserKey($userKey) { + $this->userKey = $userKey; + } - public function getUserKey() - { - return $this->userKey; - } + public function getUserKey() { + return $this->userKey; + } } -class Google_Service_Directory_Tokens extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Directory_Token'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Directory_Tokens extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Directory_Token'; + protected $itemsDataType = 'array'; + public $kind; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Directory_User extends Google_Collection -{ - public $addresses; - public $agreedToTerms; - public $aliases; - public $changePasswordAtNextLogin; - public $creationTime; - public $customerId; - public $deletionTime; - public $emails; - public $etag; - public $externalIds; - public $hashFunction; - public $id; - public $ims; - public $includeInGlobalAddressList; - public $ipWhitelisted; - public $isAdmin; - public $isDelegatedAdmin; - public $isMailboxSetup; - public $kind; - public $lastLoginTime; - protected $nameType = 'Google_Service_Directory_UserName'; - protected $nameDataType = ''; - public $nonEditableAliases; - public $orgUnitPath; - public $organizations; - public $password; - public $phones; - public $primaryEmail; - public $relations; - public $suspended; - public $suspensionReason; - public $thumbnailPhotoUrl; +class Google_Service_Directory_User extends Google_Collection { + public $addresses; + public $agreedToTerms; + public $aliases; + public $changePasswordAtNextLogin; + public $creationTime; + public $customerId; + public $deletionTime; + public $emails; + public $etag; + public $externalIds; + public $hashFunction; + public $id; + public $ims; + public $includeInGlobalAddressList; + public $ipWhitelisted; + public $isAdmin; + public $isDelegatedAdmin; + public $isMailboxSetup; + public $kind; + public $lastLoginTime; + protected $nameType = 'Google_Service_Directory_UserName'; + protected $nameDataType = ''; + public $nonEditableAliases; + public $orgUnitPath; + public $organizations; + public $password; + public $phones; + public $primaryEmail; + public $relations; + public $suspended; + public $suspensionReason; + public $thumbnailPhotoUrl; - public function setAddresses($addresses) - { - $this->addresses = $addresses; - } + public function setAddresses($addresses) { + $this->addresses = $addresses; + } - public function getAddresses() - { - return $this->addresses; - } + public function getAddresses() { + return $this->addresses; + } - public function setAgreedToTerms($agreedToTerms) - { - $this->agreedToTerms = $agreedToTerms; - } + public function setAgreedToTerms($agreedToTerms) { + $this->agreedToTerms = $agreedToTerms; + } - public function getAgreedToTerms() - { - return $this->agreedToTerms; - } + public function getAgreedToTerms() { + return $this->agreedToTerms; + } - public function setAliases($aliases) - { - $this->aliases = $aliases; - } + public function setAliases($aliases) { + $this->aliases = $aliases; + } - public function getAliases() - { - return $this->aliases; - } + public function getAliases() { + return $this->aliases; + } - public function setChangePasswordAtNextLogin($changePasswordAtNextLogin) - { - $this->changePasswordAtNextLogin = $changePasswordAtNextLogin; - } + public function setChangePasswordAtNextLogin($changePasswordAtNextLogin) { + $this->changePasswordAtNextLogin = $changePasswordAtNextLogin; + } - public function getChangePasswordAtNextLogin() - { - return $this->changePasswordAtNextLogin; - } + public function getChangePasswordAtNextLogin() { + return $this->changePasswordAtNextLogin; + } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } + public function setCustomerId($customerId) { + $this->customerId = $customerId; + } - public function getCustomerId() - { - return $this->customerId; - } + public function getCustomerId() { + return $this->customerId; + } - public function setDeletionTime($deletionTime) - { - $this->deletionTime = $deletionTime; - } + public function setDeletionTime($deletionTime) { + $this->deletionTime = $deletionTime; + } - public function getDeletionTime() - { - return $this->deletionTime; - } + public function getDeletionTime() { + return $this->deletionTime; + } - public function setEmails($emails) - { - $this->emails = $emails; - } + public function setEmails($emails) { + $this->emails = $emails; + } - public function getEmails() - { - return $this->emails; - } + public function getEmails() { + return $this->emails; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setExternalIds($externalIds) - { - $this->externalIds = $externalIds; - } + public function setExternalIds($externalIds) { + $this->externalIds = $externalIds; + } - public function getExternalIds() - { - return $this->externalIds; - } + public function getExternalIds() { + return $this->externalIds; + } - public function setHashFunction($hashFunction) - { - $this->hashFunction = $hashFunction; - } + public function setHashFunction($hashFunction) { + $this->hashFunction = $hashFunction; + } - public function getHashFunction() - { - return $this->hashFunction; - } + public function getHashFunction() { + return $this->hashFunction; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setIms($ims) - { - $this->ims = $ims; - } + public function setIms($ims) { + $this->ims = $ims; + } - public function getIms() - { - return $this->ims; - } + public function getIms() { + return $this->ims; + } - public function setIncludeInGlobalAddressList($includeInGlobalAddressList) - { - $this->includeInGlobalAddressList = $includeInGlobalAddressList; - } + public function setIncludeInGlobalAddressList($includeInGlobalAddressList) { + $this->includeInGlobalAddressList = $includeInGlobalAddressList; + } - public function getIncludeInGlobalAddressList() - { - return $this->includeInGlobalAddressList; - } + public function getIncludeInGlobalAddressList() { + return $this->includeInGlobalAddressList; + } - public function setIpWhitelisted($ipWhitelisted) - { - $this->ipWhitelisted = $ipWhitelisted; - } + public function setIpWhitelisted($ipWhitelisted) { + $this->ipWhitelisted = $ipWhitelisted; + } - public function getIpWhitelisted() - { - return $this->ipWhitelisted; - } + public function getIpWhitelisted() { + return $this->ipWhitelisted; + } - public function setIsAdmin($isAdmin) - { - $this->isAdmin = $isAdmin; - } + public function setIsAdmin($isAdmin) { + $this->isAdmin = $isAdmin; + } - public function getIsAdmin() - { - return $this->isAdmin; - } + public function getIsAdmin() { + return $this->isAdmin; + } - public function setIsDelegatedAdmin($isDelegatedAdmin) - { - $this->isDelegatedAdmin = $isDelegatedAdmin; - } + public function setIsDelegatedAdmin($isDelegatedAdmin) { + $this->isDelegatedAdmin = $isDelegatedAdmin; + } - public function getIsDelegatedAdmin() - { - return $this->isDelegatedAdmin; - } + public function getIsDelegatedAdmin() { + return $this->isDelegatedAdmin; + } - public function setIsMailboxSetup($isMailboxSetup) - { - $this->isMailboxSetup = $isMailboxSetup; - } + public function setIsMailboxSetup($isMailboxSetup) { + $this->isMailboxSetup = $isMailboxSetup; + } - public function getIsMailboxSetup() - { - return $this->isMailboxSetup; - } + public function getIsMailboxSetup() { + return $this->isMailboxSetup; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastLoginTime($lastLoginTime) - { - $this->lastLoginTime = $lastLoginTime; - } + public function setLastLoginTime($lastLoginTime) { + $this->lastLoginTime = $lastLoginTime; + } - public function getLastLoginTime() - { - return $this->lastLoginTime; - } + public function getLastLoginTime() { + return $this->lastLoginTime; + } - public function setName(Google_Service_Directory_UserName $name) - { - $this->name = $name; - } + public function setName(Google_Service_Directory_UserName $name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setNonEditableAliases($nonEditableAliases) - { - $this->nonEditableAliases = $nonEditableAliases; - } + public function setNonEditableAliases($nonEditableAliases) { + $this->nonEditableAliases = $nonEditableAliases; + } - public function getNonEditableAliases() - { - return $this->nonEditableAliases; - } + public function getNonEditableAliases() { + return $this->nonEditableAliases; + } - public function setOrgUnitPath($orgUnitPath) - { - $this->orgUnitPath = $orgUnitPath; - } + public function setOrgUnitPath($orgUnitPath) { + $this->orgUnitPath = $orgUnitPath; + } - public function getOrgUnitPath() - { - return $this->orgUnitPath; - } + public function getOrgUnitPath() { + return $this->orgUnitPath; + } - public function setOrganizations($organizations) - { - $this->organizations = $organizations; - } + public function setOrganizations($organizations) { + $this->organizations = $organizations; + } - public function getOrganizations() - { - return $this->organizations; - } + public function getOrganizations() { + return $this->organizations; + } - public function setPassword($password) - { - $this->password = $password; - } + public function setPassword($password) { + $this->password = $password; + } - public function getPassword() - { - return $this->password; - } + public function getPassword() { + return $this->password; + } - public function setPhones($phones) - { - $this->phones = $phones; - } + public function setPhones($phones) { + $this->phones = $phones; + } - public function getPhones() - { - return $this->phones; - } + public function getPhones() { + return $this->phones; + } - public function setPrimaryEmail($primaryEmail) - { - $this->primaryEmail = $primaryEmail; - } + public function setPrimaryEmail($primaryEmail) { + $this->primaryEmail = $primaryEmail; + } - public function getPrimaryEmail() - { - return $this->primaryEmail; - } + public function getPrimaryEmail() { + return $this->primaryEmail; + } - public function setRelations($relations) - { - $this->relations = $relations; - } + public function setRelations($relations) { + $this->relations = $relations; + } - public function getRelations() - { - return $this->relations; - } + public function getRelations() { + return $this->relations; + } - public function setSuspended($suspended) - { - $this->suspended = $suspended; - } + public function setSuspended($suspended) { + $this->suspended = $suspended; + } - public function getSuspended() - { - return $this->suspended; - } + public function getSuspended() { + return $this->suspended; + } - public function setSuspensionReason($suspensionReason) - { - $this->suspensionReason = $suspensionReason; - } + public function setSuspensionReason($suspensionReason) { + $this->suspensionReason = $suspensionReason; + } - public function getSuspensionReason() - { - return $this->suspensionReason; - } + public function getSuspensionReason() { + return $this->suspensionReason; + } - public function setThumbnailPhotoUrl($thumbnailPhotoUrl) - { - $this->thumbnailPhotoUrl = $thumbnailPhotoUrl; - } + public function setThumbnailPhotoUrl($thumbnailPhotoUrl) { + $this->thumbnailPhotoUrl = $thumbnailPhotoUrl; + } - public function getThumbnailPhotoUrl() - { - return $this->thumbnailPhotoUrl; - } + public function getThumbnailPhotoUrl() { + return $this->thumbnailPhotoUrl; + } } -class Google_Service_Directory_UserAddress extends Google_Model -{ - public $country; - public $countryCode; - public $customType; - public $extendedAddress; - public $formatted; - public $locality; - public $poBox; - public $postalCode; - public $primary; - public $region; - public $sourceIsStructured; - public $streetAddress; - public $type; +class Google_Service_Directory_UserAddress extends Google_Model { + public $country; + public $countryCode; + public $customType; + public $extendedAddress; + public $formatted; + public $locality; + public $poBox; + public $postalCode; + public $primary; + public $region; + public $sourceIsStructured; + public $streetAddress; + public $type; - public function setCountry($country) - { - $this->country = $country; - } + public function setCountry($country) { + $this->country = $country; + } - public function getCountry() - { - return $this->country; - } + public function getCountry() { + return $this->country; + } - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } + public function setCountryCode($countryCode) { + $this->countryCode = $countryCode; + } - public function getCountryCode() - { - return $this->countryCode; - } + public function getCountryCode() { + return $this->countryCode; + } - public function setCustomType($customType) - { - $this->customType = $customType; - } + public function setCustomType($customType) { + $this->customType = $customType; + } - public function getCustomType() - { - return $this->customType; - } + public function getCustomType() { + return $this->customType; + } - public function setExtendedAddress($extendedAddress) - { - $this->extendedAddress = $extendedAddress; - } + public function setExtendedAddress($extendedAddress) { + $this->extendedAddress = $extendedAddress; + } - public function getExtendedAddress() - { - return $this->extendedAddress; - } + public function getExtendedAddress() { + return $this->extendedAddress; + } - public function setFormatted($formatted) - { - $this->formatted = $formatted; - } + public function setFormatted($formatted) { + $this->formatted = $formatted; + } - public function getFormatted() - { - return $this->formatted; - } + public function getFormatted() { + return $this->formatted; + } - public function setLocality($locality) - { - $this->locality = $locality; - } + public function setLocality($locality) { + $this->locality = $locality; + } - public function getLocality() - { - return $this->locality; - } + public function getLocality() { + return $this->locality; + } - public function setPoBox($poBox) - { - $this->poBox = $poBox; - } + public function setPoBox($poBox) { + $this->poBox = $poBox; + } - public function getPoBox() - { - return $this->poBox; - } + public function getPoBox() { + return $this->poBox; + } - public function setPostalCode($postalCode) - { - $this->postalCode = $postalCode; - } + public function setPostalCode($postalCode) { + $this->postalCode = $postalCode; + } - public function getPostalCode() - { - return $this->postalCode; - } + public function getPostalCode() { + return $this->postalCode; + } - public function setPrimary($primary) - { - $this->primary = $primary; - } + public function setPrimary($primary) { + $this->primary = $primary; + } - public function getPrimary() - { - return $this->primary; - } + public function getPrimary() { + return $this->primary; + } - public function setRegion($region) - { - $this->region = $region; - } + public function setRegion($region) { + $this->region = $region; + } - public function getRegion() - { - return $this->region; - } + public function getRegion() { + return $this->region; + } - public function setSourceIsStructured($sourceIsStructured) - { - $this->sourceIsStructured = $sourceIsStructured; - } + public function setSourceIsStructured($sourceIsStructured) { + $this->sourceIsStructured = $sourceIsStructured; + } - public function getSourceIsStructured() - { - return $this->sourceIsStructured; - } + public function getSourceIsStructured() { + return $this->sourceIsStructured; + } - public function setStreetAddress($streetAddress) - { - $this->streetAddress = $streetAddress; - } + public function setStreetAddress($streetAddress) { + $this->streetAddress = $streetAddress; + } - public function getStreetAddress() - { - return $this->streetAddress; - } + public function getStreetAddress() { + return $this->streetAddress; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Directory_UserEmail extends Google_Model -{ - public $address; - public $customType; - public $primary; - public $type; +class Google_Service_Directory_UserEmail extends Google_Model { + public $address; + public $customType; + public $primary; + public $type; - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setCustomType($customType) - { - $this->customType = $customType; - } + public function setCustomType($customType) { + $this->customType = $customType; + } - public function getCustomType() - { - return $this->customType; - } + public function getCustomType() { + return $this->customType; + } - public function setPrimary($primary) - { - $this->primary = $primary; - } + public function setPrimary($primary) { + $this->primary = $primary; + } - public function getPrimary() - { - return $this->primary; - } + public function getPrimary() { + return $this->primary; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Directory_UserExternalId extends Google_Model -{ - public $customType; - public $type; - public $value; +class Google_Service_Directory_UserExternalId extends Google_Model { + public $customType; + public $type; + public $value; - public function setCustomType($customType) - { - $this->customType = $customType; - } + public function setCustomType($customType) { + $this->customType = $customType; + } - public function getCustomType() - { - return $this->customType; - } + public function getCustomType() { + return $this->customType; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Directory_UserIm extends Google_Model -{ - public $customProtocol; - public $customType; - public $im; - public $primary; - public $protocol; - public $type; +class Google_Service_Directory_UserIm extends Google_Model { + public $customProtocol; + public $customType; + public $im; + public $primary; + public $protocol; + public $type; - public function setCustomProtocol($customProtocol) - { - $this->customProtocol = $customProtocol; - } + public function setCustomProtocol($customProtocol) { + $this->customProtocol = $customProtocol; + } - public function getCustomProtocol() - { - return $this->customProtocol; - } + public function getCustomProtocol() { + return $this->customProtocol; + } - public function setCustomType($customType) - { - $this->customType = $customType; - } + public function setCustomType($customType) { + $this->customType = $customType; + } - public function getCustomType() - { - return $this->customType; - } + public function getCustomType() { + return $this->customType; + } - public function setIm($im) - { - $this->im = $im; - } + public function setIm($im) { + $this->im = $im; + } - public function getIm() - { - return $this->im; - } + public function getIm() { + return $this->im; + } - public function setPrimary($primary) - { - $this->primary = $primary; - } + public function setPrimary($primary) { + $this->primary = $primary; + } - public function getPrimary() - { - return $this->primary; - } + public function getPrimary() { + return $this->primary; + } - public function setProtocol($protocol) - { - $this->protocol = $protocol; - } + public function setProtocol($protocol) { + $this->protocol = $protocol; + } - public function getProtocol() - { - return $this->protocol; - } + public function getProtocol() { + return $this->protocol; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Directory_UserMakeAdmin extends Google_Model -{ - public $status; +class Google_Service_Directory_UserMakeAdmin extends Google_Model { + public $status; - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_Directory_UserName extends Google_Model -{ - public $familyName; - public $fullName; - public $givenName; +class Google_Service_Directory_UserName extends Google_Model { + public $familyName; + public $fullName; + public $givenName; - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } + public function setFamilyName($familyName) { + $this->familyName = $familyName; + } - public function getFamilyName() - { - return $this->familyName; - } + public function getFamilyName() { + return $this->familyName; + } - public function setFullName($fullName) - { - $this->fullName = $fullName; - } + public function setFullName($fullName) { + $this->fullName = $fullName; + } - public function getFullName() - { - return $this->fullName; - } + public function getFullName() { + return $this->fullName; + } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } + public function setGivenName($givenName) { + $this->givenName = $givenName; + } - public function getGivenName() - { - return $this->givenName; - } + public function getGivenName() { + return $this->givenName; + } } -class Google_Service_Directory_UserOrganization extends Google_Model -{ - public $costCenter; - public $customType; - public $department; - public $description; - public $domain; - public $location; - public $name; - public $primary; - public $symbol; - public $title; - public $type; +class Google_Service_Directory_UserOrganization extends Google_Model { + public $costCenter; + public $customType; + public $department; + public $description; + public $domain; + public $location; + public $name; + public $primary; + public $symbol; + public $title; + public $type; - public function setCostCenter($costCenter) - { - $this->costCenter = $costCenter; - } + public function setCostCenter($costCenter) { + $this->costCenter = $costCenter; + } - public function getCostCenter() - { - return $this->costCenter; - } + public function getCostCenter() { + return $this->costCenter; + } - public function setCustomType($customType) - { - $this->customType = $customType; - } + public function setCustomType($customType) { + $this->customType = $customType; + } - public function getCustomType() - { - return $this->customType; - } + public function getCustomType() { + return $this->customType; + } - public function setDepartment($department) - { - $this->department = $department; - } + public function setDepartment($department) { + $this->department = $department; + } - public function getDepartment() - { - return $this->department; - } + public function getDepartment() { + return $this->department; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setDomain($domain) - { - $this->domain = $domain; - } + public function setDomain($domain) { + $this->domain = $domain; + } - public function getDomain() - { - return $this->domain; - } + public function getDomain() { + return $this->domain; + } - public function setLocation($location) - { - $this->location = $location; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPrimary($primary) - { - $this->primary = $primary; - } + public function setPrimary($primary) { + $this->primary = $primary; + } - public function getPrimary() - { - return $this->primary; - } + public function getPrimary() { + return $this->primary; + } - public function setSymbol($symbol) - { - $this->symbol = $symbol; - } + public function setSymbol($symbol) { + $this->symbol = $symbol; + } - public function getSymbol() - { - return $this->symbol; - } + public function getSymbol() { + return $this->symbol; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Directory_UserPhone extends Google_Model -{ - public $customType; - public $primary; - public $type; - public $value; +class Google_Service_Directory_UserPhone extends Google_Model { + public $customType; + public $primary; + public $type; + public $value; - public function setCustomType($customType) - { - $this->customType = $customType; - } + public function setCustomType($customType) { + $this->customType = $customType; + } - public function getCustomType() - { - return $this->customType; - } + public function getCustomType() { + return $this->customType; + } - public function setPrimary($primary) - { - $this->primary = $primary; - } + public function setPrimary($primary) { + $this->primary = $primary; + } - public function getPrimary() - { - return $this->primary; - } + public function getPrimary() { + return $this->primary; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Directory_UserPhoto extends Google_Model -{ - public $etag; - public $height; - public $id; - public $kind; - public $mimeType; - public $photoData; - public $primaryEmail; - public $width; +class Google_Service_Directory_UserPhoto extends Google_Model { + public $etag; + public $height; + public $id; + public $kind; + public $mimeType; + public $photoData; + public $primaryEmail; + public $width; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } + public function setMimeType($mimeType) { + $this->mimeType = $mimeType; + } - public function getMimeType() - { - return $this->mimeType; - } + public function getMimeType() { + return $this->mimeType; + } - public function setPhotoData($photoData) - { - $this->photoData = $photoData; - } + public function setPhotoData($photoData) { + $this->photoData = $photoData; + } - public function getPhotoData() - { - return $this->photoData; - } + public function getPhotoData() { + return $this->photoData; + } - public function setPrimaryEmail($primaryEmail) - { - $this->primaryEmail = $primaryEmail; - } + public function setPrimaryEmail($primaryEmail) { + $this->primaryEmail = $primaryEmail; + } - public function getPrimaryEmail() - { - return $this->primaryEmail; - } + public function getPrimaryEmail() { + return $this->primaryEmail; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_Directory_UserRelation extends Google_Model -{ - public $customType; - public $type; - public $value; +class Google_Service_Directory_UserRelation extends Google_Model { + public $customType; + public $type; + public $value; - public function setCustomType($customType) - { - $this->customType = $customType; - } + public function setCustomType($customType) { + $this->customType = $customType; + } - public function getCustomType() - { - return $this->customType; - } + public function getCustomType() { + return $this->customType; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Directory_UserUndelete extends Google_Model -{ - public $orgUnitPath; +class Google_Service_Directory_UserUndelete extends Google_Model { + public $orgUnitPath; - public function setOrgUnitPath($orgUnitPath) - { - $this->orgUnitPath = $orgUnitPath; - } + public function setOrgUnitPath($orgUnitPath) { + $this->orgUnitPath = $orgUnitPath; + } - public function getOrgUnitPath() - { - return $this->orgUnitPath; - } + public function getOrgUnitPath() { + return $this->orgUnitPath; + } } -class Google_Service_Directory_Users extends Google_Collection -{ - public $etag; - public $kind; - public $nextPageToken; - public $triggerEvent; - protected $usersType = 'Google_Service_Directory_User'; - protected $usersDataType = 'array'; +class Google_Service_Directory_Users extends Google_Collection { + public $etag; + public $kind; + public $nextPageToken; + public $triggerEvent; + protected $usersType = 'Google_Service_Directory_User'; + protected $usersDataType = 'array'; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTriggerEvent($triggerEvent) - { - $this->triggerEvent = $triggerEvent; - } + public function setTriggerEvent($triggerEvent) { + $this->triggerEvent = $triggerEvent; + } - public function getTriggerEvent() - { - return $this->triggerEvent; - } + public function getTriggerEvent() { + return $this->triggerEvent; + } - public function setUsers($users) - { - $this->users = $users; - } + public function setUsers($users) { + $this->users = $users; + } - public function getUsers() - { - return $this->users; - } + public function getUsers() { + return $this->users; + } } -class Google_Service_Directory_VerificationCode extends Google_Model -{ - public $etag; - public $kind; - public $userId; - public $verificationCode; +class Google_Service_Directory_VerificationCode extends Google_Model { + public $etag; + public $kind; + public $userId; + public $verificationCode; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setUserId($userId) - { - $this->userId = $userId; - } + public function setUserId($userId) { + $this->userId = $userId; + } - public function getUserId() - { - return $this->userId; - } + public function getUserId() { + return $this->userId; + } - public function setVerificationCode($verificationCode) - { - $this->verificationCode = $verificationCode; - } + public function setVerificationCode($verificationCode) { + $this->verificationCode = $verificationCode; + } - public function getVerificationCode() - { - return $this->verificationCode; - } + public function getVerificationCode() { + return $this->verificationCode; + } } -class Google_Service_Directory_VerificationCodes extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Directory_VerificationCode'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Directory_VerificationCodes extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Directory_VerificationCode'; + protected $itemsDataType = 'array'; + public $kind; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } diff --git a/oauth/Google/Service/Dns.php b/oauth/Google/Service/Dns.php index d6fc44f..46600f9 100644 --- a/oauth/Google/Service/Dns.php +++ b/oauth/Google/Service/Dns.php @@ -29,239 +29,237 @@ * * @author Google, Inc. */ -class Google_Service_Dns extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - /** View your DNS records hosted by Google Cloud DNS. */ - const NDEV_CLOUDDNS_READONLY = "https://www.googleapis.com/auth/ndev.clouddns.readonly"; - /** View and manage your DNS records hosted by Google Cloud DNS. */ - const NDEV_CLOUDDNS_READWRITE = "https://www.googleapis.com/auth/ndev.clouddns.readwrite"; +class Google_Service_Dns extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your DNS records hosted by Google Cloud DNS. */ + const NDEV_CLOUDDNS_READONLY = "https://www.googleapis.com/auth/ndev.clouddns.readonly"; + /** View and manage your DNS records hosted by Google Cloud DNS. */ + const NDEV_CLOUDDNS_READWRITE = "https://www.googleapis.com/auth/ndev.clouddns.readwrite"; - public $changes; - public $managedZones; - public $projects; - public $resourceRecordSets; - + public $changes; + public $managedZones; + public $projects; + public $resourceRecordSets; - /** - * Constructs the internal representation of the Dns service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'dns/v1beta1/projects/'; - $this->version = 'v1beta1'; - $this->serviceName = 'dns'; - $this->changes = new Google_Service_Dns_Changes_Resource( - $this, - $this->serviceName, - 'changes', - array( - 'methods' => array( - 'create' => array( - 'path' => '{project}/managedZones/{managedZone}/changes', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/managedZones/{managedZone}/changes/{changeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'changeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/managedZones/{managedZone}/changes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->managedZones = new Google_Service_Dns_ManagedZones_Resource( - $this, - $this->serviceName, - 'managedZones', - array( - 'methods' => array( - 'create' => array( - 'path' => '{project}/managedZones', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/managedZones/{managedZone}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/managedZones/{managedZone}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/managedZones', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_Dns_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->resourceRecordSets = new Google_Service_Dns_ResourceRecordSets_Resource( - $this, - $this->serviceName, - 'resourceRecordSets', - array( - 'methods' => array( - 'list' => array( - 'path' => '{project}/managedZones/{managedZone}/rrsets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'managedZone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Dns service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'dns/v1beta1/projects/'; + $this->version = 'v1beta1'; + $this->serviceName = 'dns'; + + $this->changes = new Google_Service_Dns_Changes_Resource( + $this, + $this->serviceName, + 'changes', + array( + 'methods' => array( + 'create' => array( + 'path' => '{project}/managedZones/{managedZone}/changes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'managedZone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/managedZones/{managedZone}/changes/{changeId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'managedZone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'changeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/managedZones/{managedZone}/changes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'managedZone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->managedZones = new Google_Service_Dns_ManagedZones_Resource( + $this, + $this->serviceName, + 'managedZones', + array( + 'methods' => array( + 'create' => array( + 'path' => '{project}/managedZones', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => '{project}/managedZones/{managedZone}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'managedZone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/managedZones/{managedZone}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'managedZone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/managedZones', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects = new Google_Service_Dns_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->resourceRecordSets = new Google_Service_Dns_ResourceRecordSets_Resource( + $this, + $this->serviceName, + 'resourceRecordSets', + array( + 'methods' => array( + 'list' => array( + 'path' => '{project}/managedZones/{managedZone}/rrsets', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'managedZone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -273,71 +271,69 @@ class Google_Service_Dns extends Google_Service * $changes = $dnsService->changes; * */ -class Google_Service_Dns_Changes_Resource extends Google_Service_Resource -{ +class Google_Service_Dns_Changes_Resource extends Google_Service_Resource { - /** - * Atomically update the ResourceRecordSet collection. (changes.create) - * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. - * @param Google_Change $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dns_Change - */ - public function create($project, $managedZone, Google_Service_Dns_Change $postBody, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Dns_Change"); - } - /** - * Fetch the representation of an existing Change. (changes.get) - * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. - * @param string $changeId - * The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse. - * @param array $optParams Optional parameters. - * @return Google_Service_Dns_Change - */ - public function get($project, $managedZone, $changeId, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone, 'changeId' => $changeId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dns_Change"); - } - /** - * Enumerate Changes to a ResourceRecordSet collection. (changes.listChanges) - * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. - * @param array $optParams Optional parameters. - * - * @opt_param int maxResults - * Optional. Maximum number of results to be returned. If unspecified, the server will decide how - * many results to return. - * @opt_param string pageToken - * Optional. A tag returned by a previous list request that was truncated. Use this parameter to - * continue a previous list request. - * @opt_param string sortBy - * Sorting criterion. The only supported value is change sequence. - * @opt_param string sortOrder - * Sorting order direction: 'ascending' or 'descending'. - * @return Google_Service_Dns_ChangesListResponse - */ - public function listChanges($project, $managedZone, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dns_ChangesListResponse"); - } + /** + * Atomically update the ResourceRecordSet collection. (changes.create) + * + * @param string $project + * Identifies the project addressed by this request. + * @param string $managedZone + * Identifies the managed zone addressed by this request. Can be the managed zone name or id. + * @param Google_Change $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dns_Change + */ + public function create($project, $managedZone, Google_Service_Dns_Change $postBody, $optParams = array()) { + $params = array('project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Dns_Change"); + } + + /** + * Fetch the representation of an existing Change. (changes.get) + * + * @param string $project + * Identifies the project addressed by this request. + * @param string $managedZone + * Identifies the managed zone addressed by this request. Can be the managed zone name or id. + * @param string $changeId + * The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse. + * @param array $optParams Optional parameters. + * @return Google_Service_Dns_Change + */ + public function get($project, $managedZone, $changeId, $optParams = array()) { + $params = array('project' => $project, 'managedZone' => $managedZone, 'changeId' => $changeId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dns_Change"); + } + + /** + * Enumerate Changes to a ResourceRecordSet collection. (changes.listChanges) + * + * @param string $project + * Identifies the project addressed by this request. + * @param string $managedZone + * Identifies the managed zone addressed by this request. Can be the managed zone name or id. + * @param array $optParams Optional parameters. + * + * @opt_param int maxResults + * Optional. Maximum number of results to be returned. If unspecified, the server will decide how + * many results to return. + * @opt_param string pageToken + * Optional. A tag returned by a previous list request that was truncated. Use this parameter to + * continue a previous list request. + * @opt_param string sortBy + * Sorting criterion. The only supported value is change sequence. + * @opt_param string sortOrder + * Sorting order direction: 'ascending' or 'descending'. + * @return Google_Service_Dns_ChangesListResponse + */ + public function listChanges($project, $managedZone, $optParams = array()) { + $params = array('project' => $project, 'managedZone' => $managedZone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dns_ChangesListResponse"); + } } /** @@ -348,77 +344,75 @@ class Google_Service_Dns_Changes_Resource extends Google_Service_Resource * $managedZones = $dnsService->managedZones; * */ -class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource -{ +class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource { - /** - * Create a new ManagedZone. (managedZones.create) - * - * @param string $project - * Identifies the project addressed by this request. - * @param Google_ManagedZone $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Dns_ManagedZone - */ - public function create($project, Google_Service_Dns_ManagedZone $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Dns_ManagedZone"); - } - /** - * Delete a previously created ManagedZone. (managedZones.delete) - * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. - * @param array $optParams Optional parameters. - */ - public function delete($project, $managedZone, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Fetch the representation of an existing ManagedZone. (managedZones.get) - * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. - * @param array $optParams Optional parameters. - * @return Google_Service_Dns_ManagedZone - */ - public function get($project, $managedZone, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dns_ManagedZone"); - } - /** - * Enumerate ManagedZones that have been created but not yet deleted. - * (managedZones.listManagedZones) - * - * @param string $project - * Identifies the project addressed by this request. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Optional. A tag returned by a previous list request that was truncated. Use this parameter to - * continue a previous list request. - * @opt_param int maxResults - * Optional. Maximum number of results to be returned. If unspecified, the server will decide how - * many results to return. - * @return Google_Service_Dns_ManagedZonesListResponse - */ - public function listManagedZones($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dns_ManagedZonesListResponse"); - } + /** + * Create a new ManagedZone. (managedZones.create) + * + * @param string $project + * Identifies the project addressed by this request. + * @param Google_ManagedZone $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dns_ManagedZone + */ + public function create($project, Google_Service_Dns_ManagedZone $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Dns_ManagedZone"); + } + + /** + * Delete a previously created ManagedZone. (managedZones.delete) + * + * @param string $project + * Identifies the project addressed by this request. + * @param string $managedZone + * Identifies the managed zone addressed by this request. Can be the managed zone name or id. + * @param array $optParams Optional parameters. + */ + public function delete($project, $managedZone, $optParams = array()) { + $params = array('project' => $project, 'managedZone' => $managedZone); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Fetch the representation of an existing ManagedZone. (managedZones.get) + * + * @param string $project + * Identifies the project addressed by this request. + * @param string $managedZone + * Identifies the managed zone addressed by this request. Can be the managed zone name or id. + * @param array $optParams Optional parameters. + * @return Google_Service_Dns_ManagedZone + */ + public function get($project, $managedZone, $optParams = array()) { + $params = array('project' => $project, 'managedZone' => $managedZone); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dns_ManagedZone"); + } + + /** + * Enumerate ManagedZones that have been created but not yet deleted. + * (managedZones.listManagedZones) + * + * @param string $project + * Identifies the project addressed by this request. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Optional. A tag returned by a previous list request that was truncated. Use this parameter to + * continue a previous list request. + * @opt_param int maxResults + * Optional. Maximum number of results to be returned. If unspecified, the server will decide how + * many results to return. + * @return Google_Service_Dns_ManagedZonesListResponse + */ + public function listManagedZones($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dns_ManagedZonesListResponse"); + } } /** @@ -429,23 +423,21 @@ class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource * $projects = $dnsService->projects; * */ -class Google_Service_Dns_Projects_Resource extends Google_Service_Resource -{ +class Google_Service_Dns_Projects_Resource extends Google_Service_Resource { - /** - * Fetch the representation of an existing Project. (projects.get) - * - * @param string $project - * Identifies the project addressed by this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Dns_Project - */ - public function get($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dns_Project"); - } + /** + * Fetch the representation of an existing Project. (projects.get) + * + * @param string $project + * Identifies the project addressed by this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dns_Project + */ + public function get($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dns_Project"); + } } /** @@ -456,495 +448,407 @@ class Google_Service_Dns_Projects_Resource extends Google_Service_Resource * $resourceRecordSets = $dnsService->resourceRecordSets; * */ -class Google_Service_Dns_ResourceRecordSets_Resource extends Google_Service_Resource -{ +class Google_Service_Dns_ResourceRecordSets_Resource extends Google_Service_Resource { - /** - * Enumerate ResourceRecordSets that have been created but not yet deleted. - * (resourceRecordSets.listResourceRecordSets) - * - * @param string $project - * Identifies the project addressed by this request. - * @param string $managedZone - * Identifies the managed zone addressed by this request. Can be the managed zone name or id. - * @param array $optParams Optional parameters. - * - * @opt_param string name - * Restricts the list to return only records with this fully qualified domain name. - * @opt_param int maxResults - * Optional. Maximum number of results to be returned. If unspecified, the server will decide how - * many results to return. - * @opt_param string pageToken - * Optional. A tag returned by a previous list request that was truncated. Use this parameter to - * continue a previous list request. - * @opt_param string type - * Restricts the list to return only records of this type. If present, the "name" parameter must - * also be present. - * @return Google_Service_Dns_ResourceRecordSetsListResponse - */ - public function listResourceRecordSets($project, $managedZone, $optParams = array()) - { - $params = array('project' => $project, 'managedZone' => $managedZone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dns_ResourceRecordSetsListResponse"); - } + /** + * Enumerate ResourceRecordSets that have been created but not yet deleted. + * (resourceRecordSets.listResourceRecordSets) + * + * @param string $project + * Identifies the project addressed by this request. + * @param string $managedZone + * Identifies the managed zone addressed by this request. Can be the managed zone name or id. + * @param array $optParams Optional parameters. + * + * @opt_param string name + * Restricts the list to return only records with this fully qualified domain name. + * @opt_param int maxResults + * Optional. Maximum number of results to be returned. If unspecified, the server will decide how + * many results to return. + * @opt_param string pageToken + * Optional. A tag returned by a previous list request that was truncated. Use this parameter to + * continue a previous list request. + * @opt_param string type + * Restricts the list to return only records of this type. If present, the "name" parameter must + * also be present. + * @return Google_Service_Dns_ResourceRecordSetsListResponse + */ + public function listResourceRecordSets($project, $managedZone, $optParams = array()) { + $params = array('project' => $project, 'managedZone' => $managedZone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dns_ResourceRecordSetsListResponse"); + } } +class Google_Service_Dns_Change extends Google_Collection { + protected $additionsType = 'Google_Service_Dns_ResourceRecordSet'; + protected $additionsDataType = 'array'; + protected $deletionsType = 'Google_Service_Dns_ResourceRecordSet'; + protected $deletionsDataType = 'array'; + public $id; + public $kind; + public $startTime; + public $status; + public function setAdditions($additions) { + $this->additions = $additions; + } -class Google_Service_Dns_Change extends Google_Collection -{ - protected $additionsType = 'Google_Service_Dns_ResourceRecordSet'; - protected $additionsDataType = 'array'; - protected $deletionsType = 'Google_Service_Dns_ResourceRecordSet'; - protected $deletionsDataType = 'array'; - public $id; - public $kind; - public $startTime; - public $status; + public function getAdditions() { + return $this->additions; + } - public function setAdditions($additions) - { - $this->additions = $additions; - } + public function setDeletions($deletions) { + $this->deletions = $deletions; + } - public function getAdditions() - { - return $this->additions; - } + public function getDeletions() { + return $this->deletions; + } - public function setDeletions($deletions) - { - $this->deletions = $deletions; - } + public function setId($id) { + $this->id = $id; + } - public function getDeletions() - { - return $this->deletions; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getKind() - { - return $this->kind; - } + public function getStartTime() { + return $this->startTime; + } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStartTime() - { - return $this->startTime; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_Dns_ChangesListResponse extends Google_Collection -{ - protected $changesType = 'Google_Service_Dns_Change'; - protected $changesDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Dns_ChangesListResponse extends Google_Collection { + protected $changesType = 'Google_Service_Dns_Change'; + protected $changesDataType = 'array'; + public $kind; + public $nextPageToken; - public function setChanges($changes) - { - $this->changes = $changes; - } + public function setChanges($changes) { + $this->changes = $changes; + } - public function getChanges() - { - return $this->changes; - } + public function getChanges() { + return $this->changes; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Dns_ManagedZone extends Google_Collection -{ - public $creationTime; - public $description; - public $dnsName; - public $id; - public $kind; - public $name; - public $nameServers; +class Google_Service_Dns_ManagedZone extends Google_Collection { + public $creationTime; + public $description; + public $dnsName; + public $id; + public $kind; + public $name; + public $nameServers; - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setDnsName($dnsName) - { - $this->dnsName = $dnsName; - } + public function setDnsName($dnsName) { + $this->dnsName = $dnsName; + } - public function getDnsName() - { - return $this->dnsName; - } + public function getDnsName() { + return $this->dnsName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setNameServers($nameServers) - { - $this->nameServers = $nameServers; - } + public function setNameServers($nameServers) { + $this->nameServers = $nameServers; + } - public function getNameServers() - { - return $this->nameServers; - } + public function getNameServers() { + return $this->nameServers; + } } -class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection -{ - public $kind; - protected $managedZonesType = 'Google_Service_Dns_ManagedZone'; - protected $managedZonesDataType = 'array'; - public $nextPageToken; +class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection { + public $kind; + protected $managedZonesType = 'Google_Service_Dns_ManagedZone'; + protected $managedZonesDataType = 'array'; + public $nextPageToken; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setManagedZones($managedZones) - { - $this->managedZones = $managedZones; - } + public function setManagedZones($managedZones) { + $this->managedZones = $managedZones; + } - public function getManagedZones() - { - return $this->managedZones; - } + public function getManagedZones() { + return $this->managedZones; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Dns_Project extends Google_Model -{ - public $id; - public $kind; - public $number; - protected $quotaType = 'Google_Service_Dns_Quota'; - protected $quotaDataType = ''; +class Google_Service_Dns_Project extends Google_Model { + public $id; + public $kind; + public $number; + protected $quotaType = 'Google_Service_Dns_Quota'; + protected $quotaDataType = ''; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNumber($number) - { - $this->number = $number; - } + public function setNumber($number) { + $this->number = $number; + } - public function getNumber() - { - return $this->number; - } + public function getNumber() { + return $this->number; + } - public function setQuota(Google_Service_Dns_Quota $quota) - { - $this->quota = $quota; - } + public function setQuota(Google_Service_Dns_Quota $quota) { + $this->quota = $quota; + } - public function getQuota() - { - return $this->quota; - } + public function getQuota() { + return $this->quota; + } } -class Google_Service_Dns_Quota extends Google_Model -{ - public $kind; - public $managedZones; - public $resourceRecordsPerRrset; - public $rrsetAdditionsPerChange; - public $rrsetDeletionsPerChange; - public $rrsetsPerManagedZone; - public $totalRrdataSizePerChange; +class Google_Service_Dns_Quota extends Google_Model { + public $kind; + public $managedZones; + public $resourceRecordsPerRrset; + public $rrsetAdditionsPerChange; + public $rrsetDeletionsPerChange; + public $rrsetsPerManagedZone; + public $totalRrdataSizePerChange; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setManagedZones($managedZones) - { - $this->managedZones = $managedZones; - } + public function setManagedZones($managedZones) { + $this->managedZones = $managedZones; + } - public function getManagedZones() - { - return $this->managedZones; - } + public function getManagedZones() { + return $this->managedZones; + } - public function setResourceRecordsPerRrset($resourceRecordsPerRrset) - { - $this->resourceRecordsPerRrset = $resourceRecordsPerRrset; - } + public function setResourceRecordsPerRrset($resourceRecordsPerRrset) { + $this->resourceRecordsPerRrset = $resourceRecordsPerRrset; + } - public function getResourceRecordsPerRrset() - { - return $this->resourceRecordsPerRrset; - } + public function getResourceRecordsPerRrset() { + return $this->resourceRecordsPerRrset; + } - public function setRrsetAdditionsPerChange($rrsetAdditionsPerChange) - { - $this->rrsetAdditionsPerChange = $rrsetAdditionsPerChange; - } + public function setRrsetAdditionsPerChange($rrsetAdditionsPerChange) { + $this->rrsetAdditionsPerChange = $rrsetAdditionsPerChange; + } - public function getRrsetAdditionsPerChange() - { - return $this->rrsetAdditionsPerChange; - } + public function getRrsetAdditionsPerChange() { + return $this->rrsetAdditionsPerChange; + } - public function setRrsetDeletionsPerChange($rrsetDeletionsPerChange) - { - $this->rrsetDeletionsPerChange = $rrsetDeletionsPerChange; - } + public function setRrsetDeletionsPerChange($rrsetDeletionsPerChange) { + $this->rrsetDeletionsPerChange = $rrsetDeletionsPerChange; + } - public function getRrsetDeletionsPerChange() - { - return $this->rrsetDeletionsPerChange; - } + public function getRrsetDeletionsPerChange() { + return $this->rrsetDeletionsPerChange; + } - public function setRrsetsPerManagedZone($rrsetsPerManagedZone) - { - $this->rrsetsPerManagedZone = $rrsetsPerManagedZone; - } + public function setRrsetsPerManagedZone($rrsetsPerManagedZone) { + $this->rrsetsPerManagedZone = $rrsetsPerManagedZone; + } - public function getRrsetsPerManagedZone() - { - return $this->rrsetsPerManagedZone; - } + public function getRrsetsPerManagedZone() { + return $this->rrsetsPerManagedZone; + } - public function setTotalRrdataSizePerChange($totalRrdataSizePerChange) - { - $this->totalRrdataSizePerChange = $totalRrdataSizePerChange; - } + public function setTotalRrdataSizePerChange($totalRrdataSizePerChange) { + $this->totalRrdataSizePerChange = $totalRrdataSizePerChange; + } - public function getTotalRrdataSizePerChange() - { - return $this->totalRrdataSizePerChange; - } + public function getTotalRrdataSizePerChange() { + return $this->totalRrdataSizePerChange; + } } -class Google_Service_Dns_ResourceRecordSet extends Google_Collection -{ - public $kind; - public $name; - public $rrdatas; - public $ttl; - public $type; +class Google_Service_Dns_ResourceRecordSet extends Google_Collection { + public $kind; + public $name; + public $rrdatas; + public $ttl; + public $type; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setRrdatas($rrdatas) - { - $this->rrdatas = $rrdatas; - } + public function setRrdatas($rrdatas) { + $this->rrdatas = $rrdatas; + } - public function getRrdatas() - { - return $this->rrdatas; - } + public function getRrdatas() { + return $this->rrdatas; + } - public function setTtl($ttl) - { - $this->ttl = $ttl; - } + public function setTtl($ttl) { + $this->ttl = $ttl; + } - public function getTtl() - { - return $this->ttl; - } + public function getTtl() { + return $this->ttl; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - protected $rrsetsType = 'Google_Service_Dns_ResourceRecordSet'; - protected $rrsetsDataType = 'array'; +class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collection { + public $kind; + public $nextPageToken; + protected $rrsetsType = 'Google_Service_Dns_ResourceRecordSet'; + protected $rrsetsDataType = 'array'; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setRrsets($rrsets) - { - $this->rrsets = $rrsets; - } + public function setRrsets($rrsets) { + $this->rrsets = $rrsets; + } - public function getRrsets() - { - return $this->rrsets; - } + public function getRrsets() { + return $this->rrsets; + } } diff --git a/oauth/Google/Service/DoubleClickBidManager.php b/oauth/Google/Service/DoubleClickBidManager.php index 4d340cd..315d3cd 100644 --- a/oauth/Google/Service/DoubleClickBidManager.php +++ b/oauth/Google/Service/DoubleClickBidManager.php @@ -29,115 +29,113 @@ * * @author Google, Inc. */ -class Google_Service_DoubleClickBidManager extends Google_Service -{ +class Google_Service_DoubleClickBidManager extends Google_Service { - public $lineitems; - public $queries; - public $reports; - + public $lineitems; + public $queries; + public $reports; - /** - * Constructs the internal representation of the DoubleClickBidManager - * service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'doubleclickbidmanager/v1/'; - $this->version = 'v1'; - $this->serviceName = 'doubleclickbidmanager'; - $this->lineitems = new Google_Service_DoubleClickBidManager_Lineitems_Resource( - $this, - $this->serviceName, - 'lineitems', - array( - 'methods' => array( - 'downloadlineitems' => array( - 'path' => 'lineitems/downloadlineitems', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'uploadlineitems' => array( - 'path' => 'lineitems/uploadlineitems', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->queries = new Google_Service_DoubleClickBidManager_Queries_Resource( - $this, - $this->serviceName, - 'queries', - array( - 'methods' => array( - 'createquery' => array( - 'path' => 'query', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'deletequery' => array( - 'path' => 'query/{queryId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'queryId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getquery' => array( - 'path' => 'query/{queryId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'queryId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'listqueries' => array( - 'path' => 'queries', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'runquery' => array( - 'path' => 'query/{queryId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'queryId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports = new Google_Service_DoubleClickBidManager_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'listreports' => array( - 'path' => 'queries/{queryId}/reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'queryId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the DoubleClickBidManager + * service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'doubleclickbidmanager/v1/'; + $this->version = 'v1'; + $this->serviceName = 'doubleclickbidmanager'; + + $this->lineitems = new Google_Service_DoubleClickBidManager_Lineitems_Resource( + $this, + $this->serviceName, + 'lineitems', + array( + 'methods' => array( + 'downloadlineitems' => array( + 'path' => 'lineitems/downloadlineitems', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'uploadlineitems' => array( + 'path' => 'lineitems/uploadlineitems', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->queries = new Google_Service_DoubleClickBidManager_Queries_Resource( + $this, + $this->serviceName, + 'queries', + array( + 'methods' => array( + 'createquery' => array( + 'path' => 'query', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'deletequery' => array( + 'path' => 'query/{queryId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'queryId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getquery' => array( + 'path' => 'query/{queryId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'queryId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'listqueries' => array( + 'path' => 'queries', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), 'runquery' => array( + 'path' => 'query/{queryId}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'queryId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reports = new Google_Service_DoubleClickBidManager_Reports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'listreports' => array( + 'path' => 'queries/{queryId}/reports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'queryId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -149,35 +147,33 @@ class Google_Service_DoubleClickBidManager extends Google_Service * $lineitems = $doubleclickbidmanagerService->lineitems; * */ -class Google_Service_DoubleClickBidManager_Lineitems_Resource extends Google_Service_Resource -{ +class Google_Service_DoubleClickBidManager_Lineitems_Resource extends Google_Service_Resource { - /** - * Retrieves line items in CSV format. (lineitems.downloadlineitems) - * - * @param Google_DownloadLineItemsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_DownloadLineItemsResponse - */ - public function downloadlineitems(Google_Service_DoubleClickBidManager_DownloadLineItemsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('downloadlineitems', array($params), "Google_Service_DoubleClickBidManager_DownloadLineItemsResponse"); - } - /** - * Uploads line items in CSV format. (lineitems.uploadlineitems) - * - * @param Google_UploadLineItemsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_UploadLineItemsResponse - */ - public function uploadlineitems(Google_Service_DoubleClickBidManager_UploadLineItemsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('uploadlineitems', array($params), "Google_Service_DoubleClickBidManager_UploadLineItemsResponse"); - } + /** + * Retrieves line items in CSV format. (lineitems.downloadlineitems) + * + * @param Google_DownloadLineItemsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DoubleClickBidManager_DownloadLineItemsResponse + */ + public function downloadlineitems(Google_Service_DoubleClickBidManager_DownloadLineItemsRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('downloadlineitems', array($params), "Google_Service_DoubleClickBidManager_DownloadLineItemsResponse"); + } + + /** + * Uploads line items in CSV format. (lineitems.uploadlineitems) + * + * @param Google_UploadLineItemsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DoubleClickBidManager_UploadLineItemsResponse + */ + public function uploadlineitems(Google_Service_DoubleClickBidManager_UploadLineItemsRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('uploadlineitems', array($params), "Google_Service_DoubleClickBidManager_UploadLineItemsResponse"); + } } /** @@ -188,76 +184,74 @@ class Google_Service_DoubleClickBidManager_Lineitems_Resource extends Google_Ser * $queries = $doubleclickbidmanagerService->queries; * */ -class Google_Service_DoubleClickBidManager_Queries_Resource extends Google_Service_Resource -{ +class Google_Service_DoubleClickBidManager_Queries_Resource extends Google_Service_Resource { - /** - * Creates a query. (queries.createquery) - * - * @param Google_Query $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_Query - */ - public function createquery(Google_Service_DoubleClickBidManager_Query $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createquery', array($params), "Google_Service_DoubleClickBidManager_Query"); - } - /** - * Deletes a stored query as well as the associated stored reports. - * (queries.deletequery) - * - * @param string $queryId - * Query ID to delete. - * @param array $optParams Optional parameters. - */ - public function deletequery($queryId, $optParams = array()) - { - $params = array('queryId' => $queryId); - $params = array_merge($params, $optParams); - return $this->call('deletequery', array($params)); - } - /** - * Retrieves a stored query. (queries.getquery) - * - * @param string $queryId - * Query ID to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_Query - */ - public function getquery($queryId, $optParams = array()) - { - $params = array('queryId' => $queryId); - $params = array_merge($params, $optParams); - return $this->call('getquery', array($params), "Google_Service_DoubleClickBidManager_Query"); - } - /** - * Retrieves stored queries. (queries.listqueries) - * - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_ListQueriesResponse - */ - public function listqueries($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('listqueries', array($params), "Google_Service_DoubleClickBidManager_ListQueriesResponse"); - } - /** - * Runs a stored query to generate a report. (queries.runquery) - * - * @param string $queryId - * Query ID to run. - * @param Google_RunQueryRequest $postBody - * @param array $optParams Optional parameters. - */ - public function runquery($queryId, Google_Service_DoubleClickBidManager_RunQueryRequest $postBody, $optParams = array()) - { - $params = array('queryId' => $queryId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('runquery', array($params)); - } + /** + * Creates a query. (queries.createquery) + * + * @param Google_Query $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DoubleClickBidManager_Query + */ + public function createquery(Google_Service_DoubleClickBidManager_Query $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createquery', array($params), "Google_Service_DoubleClickBidManager_Query"); + } + + /** + * Deletes a stored query as well as the associated stored reports. + * (queries.deletequery) + * + * @param string $queryId + * Query ID to delete. + * @param array $optParams Optional parameters. + */ + public function deletequery($queryId, $optParams = array()) { + $params = array('queryId' => $queryId); + $params = array_merge($params, $optParams); + return $this->call('deletequery', array($params)); + } + + /** + * Retrieves a stored query. (queries.getquery) + * + * @param string $queryId + * Query ID to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_DoubleClickBidManager_Query + */ + public function getquery($queryId, $optParams = array()) { + $params = array('queryId' => $queryId); + $params = array_merge($params, $optParams); + return $this->call('getquery', array($params), "Google_Service_DoubleClickBidManager_Query"); + } + + /** + * Retrieves stored queries. (queries.listqueries) + * + * @param array $optParams Optional parameters. + * @return Google_Service_DoubleClickBidManager_ListQueriesResponse + */ + public function listqueries($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('listqueries', array($params), "Google_Service_DoubleClickBidManager_ListQueriesResponse"); + } + + /** + * Runs a stored query to generate a report. (queries.runquery) + * + * @param string $queryId + * Query ID to run. + * @param Google_RunQueryRequest $postBody + * @param array $optParams Optional parameters. + */ + public function runquery($queryId, Google_Service_DoubleClickBidManager_RunQueryRequest $postBody, $optParams = array()) { + $params = array('queryId' => $queryId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('runquery', array($params)); + } } /** @@ -268,850 +262,693 @@ class Google_Service_DoubleClickBidManager_Queries_Resource extends Google_Servi * $reports = $doubleclickbidmanagerService->reports; * */ -class Google_Service_DoubleClickBidManager_Reports_Resource extends Google_Service_Resource -{ +class Google_Service_DoubleClickBidManager_Reports_Resource extends Google_Service_Resource { - /** - * Retrieves stored reports. (reports.listreports) - * - * @param string $queryId - * Query ID with which the reports are associated. - * @param array $optParams Optional parameters. - * @return Google_Service_DoubleClickBidManager_ListReportsResponse - */ - public function listreports($queryId, $optParams = array()) - { - $params = array('queryId' => $queryId); - $params = array_merge($params, $optParams); - return $this->call('listreports', array($params), "Google_Service_DoubleClickBidManager_ListReportsResponse"); - } + /** + * Retrieves stored reports. (reports.listreports) + * + * @param string $queryId + * Query ID with which the reports are associated. + * @param array $optParams Optional parameters. + * @return Google_Service_DoubleClickBidManager_ListReportsResponse + */ + public function listreports($queryId, $optParams = array()) { + $params = array('queryId' => $queryId); + $params = array_merge($params, $optParams); + return $this->call('listreports', array($params), "Google_Service_DoubleClickBidManager_ListReportsResponse"); + } } +class Google_Service_DoubleClickBidManager_DownloadLineItemsRequest extends Google_Collection { + public $filterIds; + public $filterType; + public $format; + public function setFilterIds($filterIds) { + $this->filterIds = $filterIds; + } -class Google_Service_DoubleClickBidManager_DownloadLineItemsRequest extends Google_Collection -{ - public $filterIds; - public $filterType; - public $format; + public function getFilterIds() { + return $this->filterIds; + } - public function setFilterIds($filterIds) - { - $this->filterIds = $filterIds; - } + public function setFilterType($filterType) { + $this->filterType = $filterType; + } - public function getFilterIds() - { - return $this->filterIds; - } + public function getFilterType() { + return $this->filterType; + } - public function setFilterType($filterType) - { - $this->filterType = $filterType; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFilterType() - { - return $this->filterType; - } - - public function setFormat($format) - { - $this->format = $format; - } - - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } } -class Google_Service_DoubleClickBidManager_DownloadLineItemsResponse extends Google_Model -{ - public $lineItems; +class Google_Service_DoubleClickBidManager_DownloadLineItemsResponse extends Google_Model { + public $lineItems; - public function setLineItems($lineItems) - { - $this->lineItems = $lineItems; - } + public function setLineItems($lineItems) { + $this->lineItems = $lineItems; + } - public function getLineItems() - { - return $this->lineItems; - } + public function getLineItems() { + return $this->lineItems; + } } -class Google_Service_DoubleClickBidManager_FilterPair extends Google_Model -{ - public $type; - public $value; +class Google_Service_DoubleClickBidManager_FilterPair extends Google_Model { + public $type; + public $value; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_DoubleClickBidManager_ListQueriesResponse extends Google_Collection -{ - public $kind; - protected $queriesType = 'Google_Service_DoubleClickBidManager_Query'; - protected $queriesDataType = 'array'; +class Google_Service_DoubleClickBidManager_ListQueriesResponse extends Google_Collection { + public $kind; + protected $queriesType = 'Google_Service_DoubleClickBidManager_Query'; + protected $queriesDataType = 'array'; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setQueries($queries) - { - $this->queries = $queries; - } + public function setQueries($queries) { + $this->queries = $queries; + } - public function getQueries() - { - return $this->queries; - } + public function getQueries() { + return $this->queries; + } } -class Google_Service_DoubleClickBidManager_ListReportsResponse extends Google_Collection -{ - public $kind; - protected $reportsType = 'Google_Service_DoubleClickBidManager_Report'; - protected $reportsDataType = 'array'; +class Google_Service_DoubleClickBidManager_ListReportsResponse extends Google_Collection { + public $kind; + protected $reportsType = 'Google_Service_DoubleClickBidManager_Report'; + protected $reportsDataType = 'array'; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setReports($reports) - { - $this->reports = $reports; - } + public function setReports($reports) { + $this->reports = $reports; + } - public function getReports() - { - return $this->reports; - } + public function getReports() { + return $this->reports; + } } -class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection -{ - protected $filtersType = 'Google_Service_DoubleClickBidManager_FilterPair'; - protected $filtersDataType = 'array'; - public $groupBys; - public $includeInviteData; - public $metrics; - public $type; +class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection { + protected $filtersType = 'Google_Service_DoubleClickBidManager_FilterPair'; + protected $filtersDataType = 'array'; + public $groupBys; + public $includeInviteData; + public $metrics; + public $type; - public function setFilters($filters) - { - $this->filters = $filters; - } + public function setFilters($filters) { + $this->filters = $filters; + } - public function getFilters() - { - return $this->filters; - } + public function getFilters() { + return $this->filters; + } - public function setGroupBys($groupBys) - { - $this->groupBys = $groupBys; - } + public function setGroupBys($groupBys) { + $this->groupBys = $groupBys; + } - public function getGroupBys() - { - return $this->groupBys; - } + public function getGroupBys() { + return $this->groupBys; + } - public function setIncludeInviteData($includeInviteData) - { - $this->includeInviteData = $includeInviteData; - } + public function setIncludeInviteData($includeInviteData) { + $this->includeInviteData = $includeInviteData; + } - public function getIncludeInviteData() - { - return $this->includeInviteData; - } + public function getIncludeInviteData() { + return $this->includeInviteData; + } - public function setMetrics($metrics) - { - $this->metrics = $metrics; - } + public function setMetrics($metrics) { + $this->metrics = $metrics; + } - public function getMetrics() - { - return $this->metrics; - } + public function getMetrics() { + return $this->metrics; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_DoubleClickBidManager_Query extends Google_Model -{ - public $kind; - protected $metadataType = 'Google_Service_DoubleClickBidManager_QueryMetadata'; - protected $metadataDataType = ''; - protected $paramsType = 'Google_Service_DoubleClickBidManager_Parameters'; - protected $paramsDataType = ''; - public $queryId; - public $reportDataEndTimeMs; - public $reportDataStartTimeMs; - protected $scheduleType = 'Google_Service_DoubleClickBidManager_QuerySchedule'; - protected $scheduleDataType = ''; - public $timezoneCode; +class Google_Service_DoubleClickBidManager_Query extends Google_Model { + public $kind; + protected $metadataType = 'Google_Service_DoubleClickBidManager_QueryMetadata'; + protected $metadataDataType = ''; + protected $paramsType = 'Google_Service_DoubleClickBidManager_Parameters'; + protected $paramsDataType = ''; + public $queryId; + public $reportDataEndTimeMs; + public $reportDataStartTimeMs; + protected $scheduleType = 'Google_Service_DoubleClickBidManager_QuerySchedule'; + protected $scheduleDataType = ''; + public $timezoneCode; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMetadata(Google_Service_DoubleClickBidManager_QueryMetadata $metadata) - { - $this->metadata = $metadata; - } + public function setMetadata(Google_Service_DoubleClickBidManager_QueryMetadata $metadata) { + $this->metadata = $metadata; + } - public function getMetadata() - { - return $this->metadata; - } + public function getMetadata() { + return $this->metadata; + } - public function setParams(Google_Service_DoubleClickBidManager_Parameters $params) - { - $this->params = $params; - } + public function setParams(Google_Service_DoubleClickBidManager_Parameters $params) { + $this->params = $params; + } - public function getParams() - { - return $this->params; - } + public function getParams() { + return $this->params; + } - public function setQueryId($queryId) - { - $this->queryId = $queryId; - } + public function setQueryId($queryId) { + $this->queryId = $queryId; + } - public function getQueryId() - { - return $this->queryId; - } + public function getQueryId() { + return $this->queryId; + } - public function setReportDataEndTimeMs($reportDataEndTimeMs) - { - $this->reportDataEndTimeMs = $reportDataEndTimeMs; - } + public function setReportDataEndTimeMs($reportDataEndTimeMs) { + $this->reportDataEndTimeMs = $reportDataEndTimeMs; + } - public function getReportDataEndTimeMs() - { - return $this->reportDataEndTimeMs; - } + public function getReportDataEndTimeMs() { + return $this->reportDataEndTimeMs; + } - public function setReportDataStartTimeMs($reportDataStartTimeMs) - { - $this->reportDataStartTimeMs = $reportDataStartTimeMs; - } + public function setReportDataStartTimeMs($reportDataStartTimeMs) { + $this->reportDataStartTimeMs = $reportDataStartTimeMs; + } - public function getReportDataStartTimeMs() - { - return $this->reportDataStartTimeMs; - } + public function getReportDataStartTimeMs() { + return $this->reportDataStartTimeMs; + } - public function setSchedule(Google_Service_DoubleClickBidManager_QuerySchedule $schedule) - { - $this->schedule = $schedule; - } + public function setSchedule(Google_Service_DoubleClickBidManager_QuerySchedule $schedule) { + $this->schedule = $schedule; + } - public function getSchedule() - { - return $this->schedule; - } + public function getSchedule() { + return $this->schedule; + } - public function setTimezoneCode($timezoneCode) - { - $this->timezoneCode = $timezoneCode; - } + public function setTimezoneCode($timezoneCode) { + $this->timezoneCode = $timezoneCode; + } - public function getTimezoneCode() - { - return $this->timezoneCode; - } + public function getTimezoneCode() { + return $this->timezoneCode; + } } -class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collection -{ - public $dataRange; - public $format; - public $googleCloudStoragePathForLatestReport; - public $googleDrivePathForLatestReport; - public $latestReportRunTimeMs; - public $reportCount; - public $running; - public $sendNotification; - public $shareEmailAddress; - public $title; +class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collection { + public $dataRange; + public $format; + public $googleCloudStoragePathForLatestReport; + public $googleDrivePathForLatestReport; + public $latestReportRunTimeMs; + public $reportCount; + public $running; + public $sendNotification; + public $shareEmailAddress; + public $title; - public function setDataRange($dataRange) - { - $this->dataRange = $dataRange; - } + public function setDataRange($dataRange) { + $this->dataRange = $dataRange; + } - public function getDataRange() - { - return $this->dataRange; - } + public function getDataRange() { + return $this->dataRange; + } - public function setFormat($format) - { - $this->format = $format; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } - public function setGoogleCloudStoragePathForLatestReport($googleCloudStoragePathForLatestReport) - { - $this->googleCloudStoragePathForLatestReport = $googleCloudStoragePathForLatestReport; - } + public function setGoogleCloudStoragePathForLatestReport($googleCloudStoragePathForLatestReport) { + $this->googleCloudStoragePathForLatestReport = $googleCloudStoragePathForLatestReport; + } - public function getGoogleCloudStoragePathForLatestReport() - { - return $this->googleCloudStoragePathForLatestReport; - } + public function getGoogleCloudStoragePathForLatestReport() { + return $this->googleCloudStoragePathForLatestReport; + } - public function setGoogleDrivePathForLatestReport($googleDrivePathForLatestReport) - { - $this->googleDrivePathForLatestReport = $googleDrivePathForLatestReport; - } + public function setGoogleDrivePathForLatestReport($googleDrivePathForLatestReport) { + $this->googleDrivePathForLatestReport = $googleDrivePathForLatestReport; + } - public function getGoogleDrivePathForLatestReport() - { - return $this->googleDrivePathForLatestReport; - } + public function getGoogleDrivePathForLatestReport() { + return $this->googleDrivePathForLatestReport; + } - public function setLatestReportRunTimeMs($latestReportRunTimeMs) - { - $this->latestReportRunTimeMs = $latestReportRunTimeMs; - } + public function setLatestReportRunTimeMs($latestReportRunTimeMs) { + $this->latestReportRunTimeMs = $latestReportRunTimeMs; + } - public function getLatestReportRunTimeMs() - { - return $this->latestReportRunTimeMs; - } + public function getLatestReportRunTimeMs() { + return $this->latestReportRunTimeMs; + } - public function setReportCount($reportCount) - { - $this->reportCount = $reportCount; - } + public function setReportCount($reportCount) { + $this->reportCount = $reportCount; + } - public function getReportCount() - { - return $this->reportCount; - } + public function getReportCount() { + return $this->reportCount; + } - public function setRunning($running) - { - $this->running = $running; - } + public function setRunning($running) { + $this->running = $running; + } - public function getRunning() - { - return $this->running; - } + public function getRunning() { + return $this->running; + } - public function setSendNotification($sendNotification) - { - $this->sendNotification = $sendNotification; - } + public function setSendNotification($sendNotification) { + $this->sendNotification = $sendNotification; + } - public function getSendNotification() - { - return $this->sendNotification; - } + public function getSendNotification() { + return $this->sendNotification; + } - public function setShareEmailAddress($shareEmailAddress) - { - $this->shareEmailAddress = $shareEmailAddress; - } + public function setShareEmailAddress($shareEmailAddress) { + $this->shareEmailAddress = $shareEmailAddress; + } - public function getShareEmailAddress() - { - return $this->shareEmailAddress; - } + public function getShareEmailAddress() { + return $this->shareEmailAddress; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_DoubleClickBidManager_QuerySchedule extends Google_Model -{ - public $endTimeMs; - public $frequency; - public $nextRunMinuteOfDay; - public $nextRunTimezoneCode; +class Google_Service_DoubleClickBidManager_QuerySchedule extends Google_Model { + public $endTimeMs; + public $frequency; + public $nextRunMinuteOfDay; + public $nextRunTimezoneCode; - public function setEndTimeMs($endTimeMs) - { - $this->endTimeMs = $endTimeMs; - } + public function setEndTimeMs($endTimeMs) { + $this->endTimeMs = $endTimeMs; + } - public function getEndTimeMs() - { - return $this->endTimeMs; - } + public function getEndTimeMs() { + return $this->endTimeMs; + } - public function setFrequency($frequency) - { - $this->frequency = $frequency; - } + public function setFrequency($frequency) { + $this->frequency = $frequency; + } - public function getFrequency() - { - return $this->frequency; - } + public function getFrequency() { + return $this->frequency; + } - public function setNextRunMinuteOfDay($nextRunMinuteOfDay) - { - $this->nextRunMinuteOfDay = $nextRunMinuteOfDay; - } + public function setNextRunMinuteOfDay($nextRunMinuteOfDay) { + $this->nextRunMinuteOfDay = $nextRunMinuteOfDay; + } - public function getNextRunMinuteOfDay() - { - return $this->nextRunMinuteOfDay; - } + public function getNextRunMinuteOfDay() { + return $this->nextRunMinuteOfDay; + } - public function setNextRunTimezoneCode($nextRunTimezoneCode) - { - $this->nextRunTimezoneCode = $nextRunTimezoneCode; - } + public function setNextRunTimezoneCode($nextRunTimezoneCode) { + $this->nextRunTimezoneCode = $nextRunTimezoneCode; + } - public function getNextRunTimezoneCode() - { - return $this->nextRunTimezoneCode; - } + public function getNextRunTimezoneCode() { + return $this->nextRunTimezoneCode; + } } -class Google_Service_DoubleClickBidManager_Report extends Google_Model -{ - protected $keyType = 'Google_Service_DoubleClickBidManager_ReportKey'; - protected $keyDataType = ''; - protected $metadataType = 'Google_Service_DoubleClickBidManager_ReportMetadata'; - protected $metadataDataType = ''; - protected $paramsType = 'Google_Service_DoubleClickBidManager_Parameters'; - protected $paramsDataType = ''; +class Google_Service_DoubleClickBidManager_Report extends Google_Model { + protected $keyType = 'Google_Service_DoubleClickBidManager_ReportKey'; + protected $keyDataType = ''; + protected $metadataType = 'Google_Service_DoubleClickBidManager_ReportMetadata'; + protected $metadataDataType = ''; + protected $paramsType = 'Google_Service_DoubleClickBidManager_Parameters'; + protected $paramsDataType = ''; - public function setKey(Google_Service_DoubleClickBidManager_ReportKey $key) - { - $this->key = $key; - } + public function setKey(Google_Service_DoubleClickBidManager_ReportKey $key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setMetadata(Google_Service_DoubleClickBidManager_ReportMetadata $metadata) - { - $this->metadata = $metadata; - } + public function setMetadata(Google_Service_DoubleClickBidManager_ReportMetadata $metadata) { + $this->metadata = $metadata; + } - public function getMetadata() - { - return $this->metadata; - } + public function getMetadata() { + return $this->metadata; + } - public function setParams(Google_Service_DoubleClickBidManager_Parameters $params) - { - $this->params = $params; - } + public function setParams(Google_Service_DoubleClickBidManager_Parameters $params) { + $this->params = $params; + } - public function getParams() - { - return $this->params; - } + public function getParams() { + return $this->params; + } } -class Google_Service_DoubleClickBidManager_ReportFailure extends Google_Model -{ - public $errorCode; +class Google_Service_DoubleClickBidManager_ReportFailure extends Google_Model { + public $errorCode; - public function setErrorCode($errorCode) - { - $this->errorCode = $errorCode; - } + public function setErrorCode($errorCode) { + $this->errorCode = $errorCode; + } - public function getErrorCode() - { - return $this->errorCode; - } + public function getErrorCode() { + return $this->errorCode; + } } -class Google_Service_DoubleClickBidManager_ReportKey extends Google_Model -{ - public $queryId; - public $reportId; +class Google_Service_DoubleClickBidManager_ReportKey extends Google_Model { + public $queryId; + public $reportId; - public function setQueryId($queryId) - { - $this->queryId = $queryId; - } + public function setQueryId($queryId) { + $this->queryId = $queryId; + } - public function getQueryId() - { - return $this->queryId; - } + public function getQueryId() { + return $this->queryId; + } - public function setReportId($reportId) - { - $this->reportId = $reportId; - } + public function setReportId($reportId) { + $this->reportId = $reportId; + } - public function getReportId() - { - return $this->reportId; - } + public function getReportId() { + return $this->reportId; + } } -class Google_Service_DoubleClickBidManager_ReportMetadata extends Google_Model -{ - public $googleCloudStoragePath; - public $reportDataEndTimeMs; - public $reportDataStartTimeMs; - protected $statusType = 'Google_Service_DoubleClickBidManager_ReportStatus'; - protected $statusDataType = ''; +class Google_Service_DoubleClickBidManager_ReportMetadata extends Google_Model { + public $googleCloudStoragePath; + public $reportDataEndTimeMs; + public $reportDataStartTimeMs; + protected $statusType = 'Google_Service_DoubleClickBidManager_ReportStatus'; + protected $statusDataType = ''; - public function setGoogleCloudStoragePath($googleCloudStoragePath) - { - $this->googleCloudStoragePath = $googleCloudStoragePath; - } + public function setGoogleCloudStoragePath($googleCloudStoragePath) { + $this->googleCloudStoragePath = $googleCloudStoragePath; + } - public function getGoogleCloudStoragePath() - { - return $this->googleCloudStoragePath; - } + public function getGoogleCloudStoragePath() { + return $this->googleCloudStoragePath; + } - public function setReportDataEndTimeMs($reportDataEndTimeMs) - { - $this->reportDataEndTimeMs = $reportDataEndTimeMs; - } + public function setReportDataEndTimeMs($reportDataEndTimeMs) { + $this->reportDataEndTimeMs = $reportDataEndTimeMs; + } - public function getReportDataEndTimeMs() - { - return $this->reportDataEndTimeMs; - } + public function getReportDataEndTimeMs() { + return $this->reportDataEndTimeMs; + } - public function setReportDataStartTimeMs($reportDataStartTimeMs) - { - $this->reportDataStartTimeMs = $reportDataStartTimeMs; - } + public function setReportDataStartTimeMs($reportDataStartTimeMs) { + $this->reportDataStartTimeMs = $reportDataStartTimeMs; + } - public function getReportDataStartTimeMs() - { - return $this->reportDataStartTimeMs; - } + public function getReportDataStartTimeMs() { + return $this->reportDataStartTimeMs; + } - public function setStatus(Google_Service_DoubleClickBidManager_ReportStatus $status) - { - $this->status = $status; - } + public function setStatus(Google_Service_DoubleClickBidManager_ReportStatus $status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_DoubleClickBidManager_ReportStatus extends Google_Model -{ - protected $failureType = 'Google_Service_DoubleClickBidManager_ReportFailure'; - protected $failureDataType = ''; - public $finishTimeMs; - public $format; - public $state; +class Google_Service_DoubleClickBidManager_ReportStatus extends Google_Model { + protected $failureType = 'Google_Service_DoubleClickBidManager_ReportFailure'; + protected $failureDataType = ''; + public $finishTimeMs; + public $format; + public $state; - public function setFailure(Google_Service_DoubleClickBidManager_ReportFailure $failure) - { - $this->failure = $failure; - } + public function setFailure(Google_Service_DoubleClickBidManager_ReportFailure $failure) { + $this->failure = $failure; + } - public function getFailure() - { - return $this->failure; - } + public function getFailure() { + return $this->failure; + } - public function setFinishTimeMs($finishTimeMs) - { - $this->finishTimeMs = $finishTimeMs; - } + public function setFinishTimeMs($finishTimeMs) { + $this->finishTimeMs = $finishTimeMs; + } - public function getFinishTimeMs() - { - return $this->finishTimeMs; - } + public function getFinishTimeMs() { + return $this->finishTimeMs; + } - public function setFormat($format) - { - $this->format = $format; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } - public function setState($state) - { - $this->state = $state; - } + public function setState($state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } } -class Google_Service_DoubleClickBidManager_RowStatus extends Google_Collection -{ - public $changed; - public $entityId; - public $entityName; - public $errors; - public $persisted; - public $rowNumber; +class Google_Service_DoubleClickBidManager_RowStatus extends Google_Collection { + public $changed; + public $entityId; + public $entityName; + public $errors; + public $persisted; + public $rowNumber; - public function setChanged($changed) - { - $this->changed = $changed; - } + public function setChanged($changed) { + $this->changed = $changed; + } - public function getChanged() - { - return $this->changed; - } + public function getChanged() { + return $this->changed; + } - public function setEntityId($entityId) - { - $this->entityId = $entityId; - } + public function setEntityId($entityId) { + $this->entityId = $entityId; + } - public function getEntityId() - { - return $this->entityId; - } + public function getEntityId() { + return $this->entityId; + } - public function setEntityName($entityName) - { - $this->entityName = $entityName; - } + public function setEntityName($entityName) { + $this->entityName = $entityName; + } - public function getEntityName() - { - return $this->entityName; - } + public function getEntityName() { + return $this->entityName; + } - public function setErrors($errors) - { - $this->errors = $errors; - } + public function setErrors($errors) { + $this->errors = $errors; + } - public function getErrors() - { - return $this->errors; - } + public function getErrors() { + return $this->errors; + } - public function setPersisted($persisted) - { - $this->persisted = $persisted; - } + public function setPersisted($persisted) { + $this->persisted = $persisted; + } - public function getPersisted() - { - return $this->persisted; - } + public function getPersisted() { + return $this->persisted; + } - public function setRowNumber($rowNumber) - { - $this->rowNumber = $rowNumber; - } + public function setRowNumber($rowNumber) { + $this->rowNumber = $rowNumber; + } - public function getRowNumber() - { - return $this->rowNumber; - } + public function getRowNumber() { + return $this->rowNumber; + } } -class Google_Service_DoubleClickBidManager_RunQueryRequest extends Google_Model -{ - public $dataRange; - public $reportDataEndTimeMs; - public $reportDataStartTimeMs; - public $timezoneCode; +class Google_Service_DoubleClickBidManager_RunQueryRequest extends Google_Model { + public $dataRange; + public $reportDataEndTimeMs; + public $reportDataStartTimeMs; + public $timezoneCode; - public function setDataRange($dataRange) - { - $this->dataRange = $dataRange; - } + public function setDataRange($dataRange) { + $this->dataRange = $dataRange; + } - public function getDataRange() - { - return $this->dataRange; - } + public function getDataRange() { + return $this->dataRange; + } - public function setReportDataEndTimeMs($reportDataEndTimeMs) - { - $this->reportDataEndTimeMs = $reportDataEndTimeMs; - } + public function setReportDataEndTimeMs($reportDataEndTimeMs) { + $this->reportDataEndTimeMs = $reportDataEndTimeMs; + } - public function getReportDataEndTimeMs() - { - return $this->reportDataEndTimeMs; - } + public function getReportDataEndTimeMs() { + return $this->reportDataEndTimeMs; + } - public function setReportDataStartTimeMs($reportDataStartTimeMs) - { - $this->reportDataStartTimeMs = $reportDataStartTimeMs; - } + public function setReportDataStartTimeMs($reportDataStartTimeMs) { + $this->reportDataStartTimeMs = $reportDataStartTimeMs; + } - public function getReportDataStartTimeMs() - { - return $this->reportDataStartTimeMs; - } + public function getReportDataStartTimeMs() { + return $this->reportDataStartTimeMs; + } - public function setTimezoneCode($timezoneCode) - { - $this->timezoneCode = $timezoneCode; - } + public function setTimezoneCode($timezoneCode) { + $this->timezoneCode = $timezoneCode; + } - public function getTimezoneCode() - { - return $this->timezoneCode; - } + public function getTimezoneCode() { + return $this->timezoneCode; + } } -class Google_Service_DoubleClickBidManager_UploadLineItemsRequest extends Google_Model -{ - public $dryRun; - public $format; - public $lineItems; +class Google_Service_DoubleClickBidManager_UploadLineItemsRequest extends Google_Model { + public $dryRun; + public $format; + public $lineItems; - public function setDryRun($dryRun) - { - $this->dryRun = $dryRun; - } + public function setDryRun($dryRun) { + $this->dryRun = $dryRun; + } - public function getDryRun() - { - return $this->dryRun; - } + public function getDryRun() { + return $this->dryRun; + } - public function setFormat($format) - { - $this->format = $format; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } - public function setLineItems($lineItems) - { - $this->lineItems = $lineItems; - } + public function setLineItems($lineItems) { + $this->lineItems = $lineItems; + } - public function getLineItems() - { - return $this->lineItems; - } + public function getLineItems() { + return $this->lineItems; + } } -class Google_Service_DoubleClickBidManager_UploadLineItemsResponse extends Google_Model -{ - protected $uploadStatusType = 'Google_Service_DoubleClickBidManager_UploadStatus'; - protected $uploadStatusDataType = ''; +class Google_Service_DoubleClickBidManager_UploadLineItemsResponse extends Google_Model { + protected $uploadStatusType = 'Google_Service_DoubleClickBidManager_UploadStatus'; + protected $uploadStatusDataType = ''; - public function setUploadStatus(Google_Service_DoubleClickBidManager_UploadStatus $uploadStatus) - { - $this->uploadStatus = $uploadStatus; - } + public function setUploadStatus(Google_Service_DoubleClickBidManager_UploadStatus $uploadStatus) { + $this->uploadStatus = $uploadStatus; + } - public function getUploadStatus() - { - return $this->uploadStatus; - } + public function getUploadStatus() { + return $this->uploadStatus; + } } -class Google_Service_DoubleClickBidManager_UploadStatus extends Google_Collection -{ - public $errors; - protected $rowStatusType = 'Google_Service_DoubleClickBidManager_RowStatus'; - protected $rowStatusDataType = 'array'; +class Google_Service_DoubleClickBidManager_UploadStatus extends Google_Collection { + public $errors; + protected $rowStatusType = 'Google_Service_DoubleClickBidManager_RowStatus'; + protected $rowStatusDataType = 'array'; - public function setErrors($errors) - { - $this->errors = $errors; - } + public function setErrors($errors) { + $this->errors = $errors; + } - public function getErrors() - { - return $this->errors; - } + public function getErrors() { + return $this->errors; + } - public function setRowStatus($rowStatus) - { - $this->rowStatus = $rowStatus; - } + public function setRowStatus($rowStatus) { + $this->rowStatus = $rowStatus; + } - public function getRowStatus() - { - return $this->rowStatus; - } + public function getRowStatus() { + return $this->rowStatus; + } } diff --git a/oauth/Google/Service/Doubleclicksearch.php b/oauth/Google/Service/Doubleclicksearch.php index 766dead..fc9c12f 100644 --- a/oauth/Google/Service/Doubleclicksearch.php +++ b/oauth/Google/Service/Doubleclicksearch.php @@ -29,215 +29,213 @@ * * @author Google, Inc. */ -class Google_Service_Doubleclicksearch extends Google_Service -{ - /** View and manage your advertising data in DoubleClick Search. */ - const DOUBLECLICKSEARCH = "https://www.googleapis.com/auth/doubleclicksearch"; +class Google_Service_Doubleclicksearch extends Google_Service { + /** View and manage your advertising data in DoubleClick Search. */ + const DOUBLECLICKSEARCH = "https://www.googleapis.com/auth/doubleclicksearch"; - public $conversion; - public $reports; - public $savedColumns; - + public $conversion; + public $reports; + public $savedColumns; - /** - * Constructs the internal representation of the Doubleclicksearch service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'doubleclicksearch/v2/'; - $this->version = 'v2'; - $this->serviceName = 'doubleclicksearch'; - $this->conversion = new Google_Service_Doubleclicksearch_Conversion_Resource( - $this, - $this->serviceName, - 'conversion', - array( - 'methods' => array( - 'get' => array( - 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion', - 'httpMethod' => 'GET', - 'parameters' => array( - 'agencyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'engineAccountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'rowCount' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'startRow' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'adGroupId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'campaignId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'adId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'criterionId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'conversion', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'conversion', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'advertiserId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'agencyId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'endDate' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'engineAccountId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'rowCount' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'startDate' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'startRow' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'conversion', - 'httpMethod' => 'PUT', - 'parameters' => array(), - ),'updateAvailability' => array( - 'path' => 'conversion/updateAvailability', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->reports = new Google_Service_Doubleclicksearch_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'generate' => array( - 'path' => 'reports/generate', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => 'reports/{reportId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getFile' => array( - 'path' => 'reports/{reportId}/files/{reportFragment}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'reportId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'reportFragment' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'request' => array( - 'path' => 'reports', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->savedColumns = new Google_Service_Doubleclicksearch_SavedColumns_Resource( - $this, - $this->serviceName, - 'savedColumns', - array( - 'methods' => array( - 'list' => array( - 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/savedcolumns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'agencyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'advertiserId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Doubleclicksearch service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'doubleclicksearch/v2/'; + $this->version = 'v2'; + $this->serviceName = 'doubleclicksearch'; + + $this->conversion = new Google_Service_Doubleclicksearch_Conversion_Resource( + $this, + $this->serviceName, + 'conversion', + array( + 'methods' => array( + 'get' => array( + 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion', + 'httpMethod' => 'GET', + 'parameters' => array( + 'agencyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'advertiserId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'engineAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'rowCount' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'startRow' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'adGroupId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'campaignId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'adId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'criterionId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'conversion', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'patch' => array( + 'path' => 'conversion', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'agencyId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'endDate' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'engineAccountId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'rowCount' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'startDate' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'startRow' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'conversion', + 'httpMethod' => 'PUT', + 'parameters' => array(), + ), 'updateAvailability' => array( + 'path' => 'conversion/updateAvailability', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->reports = new Google_Service_Doubleclicksearch_Reports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'generate' => array( + 'path' => 'reports/generate', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'get' => array( + 'path' => 'reports/{reportId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getFile' => array( + 'path' => 'reports/{reportId}/files/{reportFragment}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'reportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'reportFragment' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'request' => array( + 'path' => 'reports', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->savedColumns = new Google_Service_Doubleclicksearch_SavedColumns_Resource( + $this, + $this->serviceName, + 'savedColumns', + array( + 'methods' => array( + 'list' => array( + 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/savedcolumns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'agencyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'advertiserId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -249,114 +247,112 @@ class Google_Service_Doubleclicksearch extends Google_Service * $conversion = $doubleclicksearchService->conversion; * */ -class Google_Service_Doubleclicksearch_Conversion_Resource extends Google_Service_Resource -{ +class Google_Service_Doubleclicksearch_Conversion_Resource extends Google_Service_Resource { - /** - * Retrieves a list of conversions from a DoubleClick Search engine account. - * (conversion.get) - * - * @param string $agencyId - * Numeric ID of the agency. - * @param string $advertiserId - * Numeric ID of the advertiser. - * @param string $engineAccountId - * Numeric ID of the engine account. - * @param int $endDate - * Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. - * @param int $rowCount - * The number of conversions to return per call. - * @param int $startDate - * First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. - * @param string $startRow - * The 0-based starting index for retrieving conversions results. - * @param array $optParams Optional parameters. - * - * @opt_param string adGroupId - * Numeric ID of the ad group. - * @opt_param string campaignId - * Numeric ID of the campaign. - * @opt_param string adId - * Numeric ID of the ad. - * @opt_param string criterionId - * Numeric ID of the criterion. - * @return Google_Service_Doubleclicksearch_ConversionList - */ - public function get($agencyId, $advertiserId, $engineAccountId, $endDate, $rowCount, $startDate, $startRow, $optParams = array()) - { - $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId, 'engineAccountId' => $engineAccountId, 'endDate' => $endDate, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Doubleclicksearch_ConversionList"); - } - /** - * Inserts a batch of new conversions into DoubleClick Search. - * (conversion.insert) - * - * @param Google_ConversionList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_ConversionList - */ - public function insert(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Doubleclicksearch_ConversionList"); - } - /** - * Updates a batch of conversions in DoubleClick Search. This method supports - * patch semantics. (conversion.patch) - * - * @param string $advertiserId - * Numeric ID of the advertiser. - * @param string $agencyId - * Numeric ID of the agency. - * @param int $endDate - * Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. - * @param string $engineAccountId - * Numeric ID of the engine account. - * @param int $rowCount - * The number of conversions to return per call. - * @param int $startDate - * First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. - * @param string $startRow - * The 0-based starting index for retrieving conversions results. - * @param Google_ConversionList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_ConversionList - */ - public function patch($advertiserId, $agencyId, $endDate, $engineAccountId, $rowCount, $startDate, $startRow, Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) - { - $params = array('advertiserId' => $advertiserId, 'agencyId' => $agencyId, 'endDate' => $endDate, 'engineAccountId' => $engineAccountId, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Doubleclicksearch_ConversionList"); - } - /** - * Updates a batch of conversions in DoubleClick Search. (conversion.update) - * - * @param Google_ConversionList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_ConversionList - */ - public function update(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Doubleclicksearch_ConversionList"); - } - /** - * Updates the availabilities of a batch of floodlight activities in DoubleClick - * Search. (conversion.updateAvailability) - * - * @param Google_UpdateAvailabilityRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_UpdateAvailabilityResponse - */ - public function updateAvailability(Google_Service_Doubleclicksearch_UpdateAvailabilityRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateAvailability', array($params), "Google_Service_Doubleclicksearch_UpdateAvailabilityResponse"); - } + /** + * Retrieves a list of conversions from a DoubleClick Search engine account. + * (conversion.get) + * + * @param string $agencyId + * Numeric ID of the agency. + * @param string $advertiserId + * Numeric ID of the advertiser. + * @param string $engineAccountId + * Numeric ID of the engine account. + * @param int $endDate + * Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. + * @param int $rowCount + * The number of conversions to return per call. + * @param int $startDate + * First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. + * @param string $startRow + * The 0-based starting index for retrieving conversions results. + * @param array $optParams Optional parameters. + * + * @opt_param string adGroupId + * Numeric ID of the ad group. + * @opt_param string campaignId + * Numeric ID of the campaign. + * @opt_param string adId + * Numeric ID of the ad. + * @opt_param string criterionId + * Numeric ID of the criterion. + * @return Google_Service_Doubleclicksearch_ConversionList + */ + public function get($agencyId, $advertiserId, $engineAccountId, $endDate, $rowCount, $startDate, $startRow, $optParams = array()) { + $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId, 'engineAccountId' => $engineAccountId, 'endDate' => $endDate, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Doubleclicksearch_ConversionList"); + } + + /** + * Inserts a batch of new conversions into DoubleClick Search. + * (conversion.insert) + * + * @param Google_ConversionList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Doubleclicksearch_ConversionList + */ + public function insert(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Doubleclicksearch_ConversionList"); + } + + /** + * Updates a batch of conversions in DoubleClick Search. This method supports + * patch semantics. (conversion.patch) + * + * @param string $advertiserId + * Numeric ID of the advertiser. + * @param string $agencyId + * Numeric ID of the agency. + * @param int $endDate + * Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. + * @param string $engineAccountId + * Numeric ID of the engine account. + * @param int $rowCount + * The number of conversions to return per call. + * @param int $startDate + * First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. + * @param string $startRow + * The 0-based starting index for retrieving conversions results. + * @param Google_ConversionList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Doubleclicksearch_ConversionList + */ + public function patch($advertiserId, $agencyId, $endDate, $engineAccountId, $rowCount, $startDate, $startRow, Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) { + $params = array('advertiserId' => $advertiserId, 'agencyId' => $agencyId, 'endDate' => $endDate, 'engineAccountId' => $engineAccountId, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Doubleclicksearch_ConversionList"); + } + + /** + * Updates a batch of conversions in DoubleClick Search. (conversion.update) + * + * @param Google_ConversionList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Doubleclicksearch_ConversionList + */ + public function update(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Doubleclicksearch_ConversionList"); + } + + /** + * Updates the availabilities of a batch of floodlight activities in DoubleClick + * Search. (conversion.updateAvailability) + * + * @param Google_UpdateAvailabilityRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Doubleclicksearch_UpdateAvailabilityResponse + */ + public function updateAvailability(Google_Service_Doubleclicksearch_UpdateAvailabilityRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateAvailability', array($params), "Google_Service_Doubleclicksearch_UpdateAvailabilityResponse"); + } } /** @@ -367,64 +363,62 @@ class Google_Service_Doubleclicksearch_Conversion_Resource extends Google_Servic * $reports = $doubleclicksearchService->reports; * */ -class Google_Service_Doubleclicksearch_Reports_Resource extends Google_Service_Resource -{ +class Google_Service_Doubleclicksearch_Reports_Resource extends Google_Service_Resource { - /** - * Generates and returns a report immediately. (reports.generate) - * - * @param Google_ReportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_Report - */ - public function generate(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('generate', array($params), "Google_Service_Doubleclicksearch_Report"); - } - /** - * Polls for the status of a report request. (reports.get) - * - * @param string $reportId - * ID of the report request being polled. - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_Report - */ - public function get($reportId, $optParams = array()) - { - $params = array('reportId' => $reportId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Doubleclicksearch_Report"); - } - /** - * Downloads a report file. (reports.getFile) - * - * @param string $reportId - * ID of the report. - * @param int $reportFragment - * The index of the report fragment to download. - * @param array $optParams Optional parameters. - */ - public function getFile($reportId, $reportFragment, $optParams = array()) - { - $params = array('reportId' => $reportId, 'reportFragment' => $reportFragment); - $params = array_merge($params, $optParams); - return $this->call('getFile', array($params)); - } - /** - * Inserts a report request into the reporting system. (reports.request) - * - * @param Google_ReportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_Report - */ - public function request(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('request', array($params), "Google_Service_Doubleclicksearch_Report"); - } + /** + * Generates and returns a report immediately. (reports.generate) + * + * @param Google_ReportRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Doubleclicksearch_Report + */ + public function generate(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('generate', array($params), "Google_Service_Doubleclicksearch_Report"); + } + + /** + * Polls for the status of a report request. (reports.get) + * + * @param string $reportId + * ID of the report request being polled. + * @param array $optParams Optional parameters. + * @return Google_Service_Doubleclicksearch_Report + */ + public function get($reportId, $optParams = array()) { + $params = array('reportId' => $reportId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Doubleclicksearch_Report"); + } + + /** + * Downloads a report file. (reports.getFile) + * + * @param string $reportId + * ID of the report. + * @param int $reportFragment + * The index of the report fragment to download. + * @param array $optParams Optional parameters. + */ + public function getFile($reportId, $reportFragment, $optParams = array()) { + $params = array('reportId' => $reportId, 'reportFragment' => $reportFragment); + $params = array_merge($params, $optParams); + return $this->call('getFile', array($params)); + } + + /** + * Inserts a report request into the reporting system. (reports.request) + * + * @param Google_ReportRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Doubleclicksearch_Report + */ + public function request(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('request', array($params), "Google_Service_Doubleclicksearch_Report"); + } } /** @@ -435,1116 +429,912 @@ class Google_Service_Doubleclicksearch_Reports_Resource extends Google_Service_R * $savedColumns = $doubleclicksearchService->savedColumns; * */ -class Google_Service_Doubleclicksearch_SavedColumns_Resource extends Google_Service_Resource -{ +class Google_Service_Doubleclicksearch_SavedColumns_Resource extends Google_Service_Resource { - /** - * Retrieve the list of saved columns for a specified advertiser. - * (savedColumns.listSavedColumns) - * - * @param string $agencyId - * DS ID of the agency. - * @param string $advertiserId - * DS ID of the advertiser. - * @param array $optParams Optional parameters. - * @return Google_Service_Doubleclicksearch_SavedColumnList - */ - public function listSavedColumns($agencyId, $advertiserId, $optParams = array()) - { - $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Doubleclicksearch_SavedColumnList"); - } + /** + * Retrieve the list of saved columns for a specified advertiser. + * (savedColumns.listSavedColumns) + * + * @param string $agencyId + * DS ID of the agency. + * @param string $advertiserId + * DS ID of the advertiser. + * @param array $optParams Optional parameters. + * @return Google_Service_Doubleclicksearch_SavedColumnList + */ + public function listSavedColumns($agencyId, $advertiserId, $optParams = array()) { + $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Doubleclicksearch_SavedColumnList"); + } } +class Google_Service_Doubleclicksearch_Availability extends Google_Model { + public $advertiserId; + public $agencyId; + public $availabilityTimestamp; + public $segmentationId; + public $segmentationName; + public $segmentationType; + public function setAdvertiserId($advertiserId) { + $this->advertiserId = $advertiserId; + } -class Google_Service_Doubleclicksearch_Availability extends Google_Model -{ - public $advertiserId; - public $agencyId; - public $availabilityTimestamp; - public $segmentationId; - public $segmentationName; - public $segmentationType; + public function getAdvertiserId() { + return $this->advertiserId; + } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } + public function setAgencyId($agencyId) { + $this->agencyId = $agencyId; + } - public function getAdvertiserId() - { - return $this->advertiserId; - } + public function getAgencyId() { + return $this->agencyId; + } - public function setAgencyId($agencyId) - { - $this->agencyId = $agencyId; - } + public function setAvailabilityTimestamp($availabilityTimestamp) { + $this->availabilityTimestamp = $availabilityTimestamp; + } - public function getAgencyId() - { - return $this->agencyId; - } + public function getAvailabilityTimestamp() { + return $this->availabilityTimestamp; + } - public function setAvailabilityTimestamp($availabilityTimestamp) - { - $this->availabilityTimestamp = $availabilityTimestamp; - } + public function setSegmentationId($segmentationId) { + $this->segmentationId = $segmentationId; + } - public function getAvailabilityTimestamp() - { - return $this->availabilityTimestamp; - } + public function getSegmentationId() { + return $this->segmentationId; + } - public function setSegmentationId($segmentationId) - { - $this->segmentationId = $segmentationId; - } + public function setSegmentationName($segmentationName) { + $this->segmentationName = $segmentationName; + } - public function getSegmentationId() - { - return $this->segmentationId; - } + public function getSegmentationName() { + return $this->segmentationName; + } - public function setSegmentationName($segmentationName) - { - $this->segmentationName = $segmentationName; - } + public function setSegmentationType($segmentationType) { + $this->segmentationType = $segmentationType; + } - public function getSegmentationName() - { - return $this->segmentationName; - } - - public function setSegmentationType($segmentationType) - { - $this->segmentationType = $segmentationType; - } - - public function getSegmentationType() - { - return $this->segmentationType; - } + public function getSegmentationType() { + return $this->segmentationType; + } } -class Google_Service_Doubleclicksearch_Conversion extends Google_Collection -{ - public $adGroupId; - public $adId; - public $advertiserId; - public $agencyId; - public $campaignId; - public $clickId; - public $conversionId; - public $conversionModifiedTimestamp; - public $conversionTimestamp; - public $criterionId; - public $currencyCode; - protected $customDimensionType = 'Google_Service_Doubleclicksearch_CustomDimension'; - protected $customDimensionDataType = 'array'; - protected $customMetricType = 'Google_Service_Doubleclicksearch_CustomMetric'; - protected $customMetricDataType = 'array'; - public $dsConversionId; - public $engineAccountId; - public $floodlightOrderId; - public $quantityMillis; - public $revenueMicros; - public $segmentationId; - public $segmentationName; - public $segmentationType; - public $state; - public $type; +class Google_Service_Doubleclicksearch_Conversion extends Google_Collection { + public $adGroupId; + public $adId; + public $advertiserId; + public $agencyId; + public $campaignId; + public $clickId; + public $conversionId; + public $conversionModifiedTimestamp; + public $conversionTimestamp; + public $criterionId; + public $currencyCode; + protected $customDimensionType = 'Google_Service_Doubleclicksearch_CustomDimension'; + protected $customDimensionDataType = 'array'; + protected $customMetricType = 'Google_Service_Doubleclicksearch_CustomMetric'; + protected $customMetricDataType = 'array'; + public $dsConversionId; + public $engineAccountId; + public $floodlightOrderId; + public $quantityMillis; + public $revenueMicros; + public $segmentationId; + public $segmentationName; + public $segmentationType; + public $state; + public $type; - public function setAdGroupId($adGroupId) - { - $this->adGroupId = $adGroupId; - } + public function setAdGroupId($adGroupId) { + $this->adGroupId = $adGroupId; + } - public function getAdGroupId() - { - return $this->adGroupId; - } + public function getAdGroupId() { + return $this->adGroupId; + } - public function setAdId($adId) - { - $this->adId = $adId; - } + public function setAdId($adId) { + $this->adId = $adId; + } - public function getAdId() - { - return $this->adId; - } + public function getAdId() { + return $this->adId; + } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } + public function setAdvertiserId($advertiserId) { + $this->advertiserId = $advertiserId; + } - public function getAdvertiserId() - { - return $this->advertiserId; - } + public function getAdvertiserId() { + return $this->advertiserId; + } - public function setAgencyId($agencyId) - { - $this->agencyId = $agencyId; - } + public function setAgencyId($agencyId) { + $this->agencyId = $agencyId; + } - public function getAgencyId() - { - return $this->agencyId; - } + public function getAgencyId() { + return $this->agencyId; + } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } + public function setCampaignId($campaignId) { + $this->campaignId = $campaignId; + } - public function getCampaignId() - { - return $this->campaignId; - } + public function getCampaignId() { + return $this->campaignId; + } - public function setClickId($clickId) - { - $this->clickId = $clickId; - } + public function setClickId($clickId) { + $this->clickId = $clickId; + } - public function getClickId() - { - return $this->clickId; - } + public function getClickId() { + return $this->clickId; + } - public function setConversionId($conversionId) - { - $this->conversionId = $conversionId; - } + public function setConversionId($conversionId) { + $this->conversionId = $conversionId; + } - public function getConversionId() - { - return $this->conversionId; - } + public function getConversionId() { + return $this->conversionId; + } - public function setConversionModifiedTimestamp($conversionModifiedTimestamp) - { - $this->conversionModifiedTimestamp = $conversionModifiedTimestamp; - } + public function setConversionModifiedTimestamp($conversionModifiedTimestamp) { + $this->conversionModifiedTimestamp = $conversionModifiedTimestamp; + } - public function getConversionModifiedTimestamp() - { - return $this->conversionModifiedTimestamp; - } + public function getConversionModifiedTimestamp() { + return $this->conversionModifiedTimestamp; + } - public function setConversionTimestamp($conversionTimestamp) - { - $this->conversionTimestamp = $conversionTimestamp; - } + public function setConversionTimestamp($conversionTimestamp) { + $this->conversionTimestamp = $conversionTimestamp; + } - public function getConversionTimestamp() - { - return $this->conversionTimestamp; - } + public function getConversionTimestamp() { + return $this->conversionTimestamp; + } - public function setCriterionId($criterionId) - { - $this->criterionId = $criterionId; - } + public function setCriterionId($criterionId) { + $this->criterionId = $criterionId; + } - public function getCriterionId() - { - return $this->criterionId; - } + public function getCriterionId() { + return $this->criterionId; + } - public function setCurrencyCode($currencyCode) - { - $this->currencyCode = $currencyCode; - } + public function setCurrencyCode($currencyCode) { + $this->currencyCode = $currencyCode; + } - public function getCurrencyCode() - { - return $this->currencyCode; - } + public function getCurrencyCode() { + return $this->currencyCode; + } - public function setCustomDimension($customDimension) - { - $this->customDimension = $customDimension; - } + public function setCustomDimension($customDimension) { + $this->customDimension = $customDimension; + } - public function getCustomDimension() - { - return $this->customDimension; - } + public function getCustomDimension() { + return $this->customDimension; + } - public function setCustomMetric($customMetric) - { - $this->customMetric = $customMetric; - } + public function setCustomMetric($customMetric) { + $this->customMetric = $customMetric; + } - public function getCustomMetric() - { - return $this->customMetric; - } + public function getCustomMetric() { + return $this->customMetric; + } - public function setDsConversionId($dsConversionId) - { - $this->dsConversionId = $dsConversionId; - } + public function setDsConversionId($dsConversionId) { + $this->dsConversionId = $dsConversionId; + } - public function getDsConversionId() - { - return $this->dsConversionId; - } + public function getDsConversionId() { + return $this->dsConversionId; + } - public function setEngineAccountId($engineAccountId) - { - $this->engineAccountId = $engineAccountId; - } + public function setEngineAccountId($engineAccountId) { + $this->engineAccountId = $engineAccountId; + } - public function getEngineAccountId() - { - return $this->engineAccountId; - } + public function getEngineAccountId() { + return $this->engineAccountId; + } - public function setFloodlightOrderId($floodlightOrderId) - { - $this->floodlightOrderId = $floodlightOrderId; - } + public function setFloodlightOrderId($floodlightOrderId) { + $this->floodlightOrderId = $floodlightOrderId; + } - public function getFloodlightOrderId() - { - return $this->floodlightOrderId; - } + public function getFloodlightOrderId() { + return $this->floodlightOrderId; + } - public function setQuantityMillis($quantityMillis) - { - $this->quantityMillis = $quantityMillis; - } + public function setQuantityMillis($quantityMillis) { + $this->quantityMillis = $quantityMillis; + } - public function getQuantityMillis() - { - return $this->quantityMillis; - } + public function getQuantityMillis() { + return $this->quantityMillis; + } - public function setRevenueMicros($revenueMicros) - { - $this->revenueMicros = $revenueMicros; - } + public function setRevenueMicros($revenueMicros) { + $this->revenueMicros = $revenueMicros; + } - public function getRevenueMicros() - { - return $this->revenueMicros; - } + public function getRevenueMicros() { + return $this->revenueMicros; + } - public function setSegmentationId($segmentationId) - { - $this->segmentationId = $segmentationId; - } + public function setSegmentationId($segmentationId) { + $this->segmentationId = $segmentationId; + } - public function getSegmentationId() - { - return $this->segmentationId; - } + public function getSegmentationId() { + return $this->segmentationId; + } - public function setSegmentationName($segmentationName) - { - $this->segmentationName = $segmentationName; - } + public function setSegmentationName($segmentationName) { + $this->segmentationName = $segmentationName; + } - public function getSegmentationName() - { - return $this->segmentationName; - } + public function getSegmentationName() { + return $this->segmentationName; + } - public function setSegmentationType($segmentationType) - { - $this->segmentationType = $segmentationType; - } + public function setSegmentationType($segmentationType) { + $this->segmentationType = $segmentationType; + } - public function getSegmentationType() - { - return $this->segmentationType; - } + public function getSegmentationType() { + return $this->segmentationType; + } - public function setState($state) - { - $this->state = $state; - } + public function setState($state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection -{ - protected $conversionType = 'Google_Service_Doubleclicksearch_Conversion'; - protected $conversionDataType = 'array'; - public $kind; +class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection { + protected $conversionType = 'Google_Service_Doubleclicksearch_Conversion'; + protected $conversionDataType = 'array'; + public $kind; - public function setConversion($conversion) - { - $this->conversion = $conversion; - } + public function setConversion($conversion) { + $this->conversion = $conversion; + } - public function getConversion() - { - return $this->conversion; - } + public function getConversion() { + return $this->conversion; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Doubleclicksearch_CustomDimension extends Google_Model -{ - public $name; - public $value; +class Google_Service_Doubleclicksearch_CustomDimension extends Google_Model { + public $name; + public $value; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Doubleclicksearch_CustomMetric extends Google_Model -{ - public $name; - public $value; +class Google_Service_Doubleclicksearch_CustomMetric extends Google_Model { + public $name; + public $value; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Doubleclicksearch_Report extends Google_Collection -{ - protected $filesType = 'Google_Service_Doubleclicksearch_ReportFiles'; - protected $filesDataType = 'array'; - public $id; - public $isReportReady; - public $kind; - protected $requestType = 'Google_Service_Doubleclicksearch_ReportRequest'; - protected $requestDataType = ''; - public $rowCount; - public $rows; - public $statisticsCurrencyCode; - public $statisticsTimeZone; +class Google_Service_Doubleclicksearch_Report extends Google_Collection { + protected $filesType = 'Google_Service_Doubleclicksearch_ReportFiles'; + protected $filesDataType = 'array'; + public $id; + public $isReportReady; + public $kind; + protected $requestType = 'Google_Service_Doubleclicksearch_ReportRequest'; + protected $requestDataType = ''; + public $rowCount; + public $rows; + public $statisticsCurrencyCode; + public $statisticsTimeZone; - public function setFiles($files) - { - $this->files = $files; - } + public function setFiles($files) { + $this->files = $files; + } - public function getFiles() - { - return $this->files; - } + public function getFiles() { + return $this->files; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setIsReportReady($isReportReady) - { - $this->isReportReady = $isReportReady; - } + public function setIsReportReady($isReportReady) { + $this->isReportReady = $isReportReady; + } - public function getIsReportReady() - { - return $this->isReportReady; - } + public function getIsReportReady() { + return $this->isReportReady; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRequest(Google_Service_Doubleclicksearch_ReportRequest $request) - { - $this->request = $request; - } + public function setRequest(Google_Service_Doubleclicksearch_ReportRequest $request) { + $this->request = $request; + } - public function getRequest() - { - return $this->request; - } + public function getRequest() { + return $this->request; + } - public function setRowCount($rowCount) - { - $this->rowCount = $rowCount; - } + public function setRowCount($rowCount) { + $this->rowCount = $rowCount; + } - public function getRowCount() - { - return $this->rowCount; - } + public function getRowCount() { + return $this->rowCount; + } - public function setRows($rows) - { - $this->rows = $rows; - } + public function setRows($rows) { + $this->rows = $rows; + } - public function getRows() - { - return $this->rows; - } + public function getRows() { + return $this->rows; + } - public function setStatisticsCurrencyCode($statisticsCurrencyCode) - { - $this->statisticsCurrencyCode = $statisticsCurrencyCode; - } + public function setStatisticsCurrencyCode($statisticsCurrencyCode) { + $this->statisticsCurrencyCode = $statisticsCurrencyCode; + } - public function getStatisticsCurrencyCode() - { - return $this->statisticsCurrencyCode; - } + public function getStatisticsCurrencyCode() { + return $this->statisticsCurrencyCode; + } - public function setStatisticsTimeZone($statisticsTimeZone) - { - $this->statisticsTimeZone = $statisticsTimeZone; - } + public function setStatisticsTimeZone($statisticsTimeZone) { + $this->statisticsTimeZone = $statisticsTimeZone; + } - public function getStatisticsTimeZone() - { - return $this->statisticsTimeZone; - } + public function getStatisticsTimeZone() { + return $this->statisticsTimeZone; + } } -class Google_Service_Doubleclicksearch_ReportApiColumnSpec extends Google_Model -{ - public $columnName; - public $customDimensionName; - public $endDate; - public $groupByColumn; - public $headerText; - public $platformSource; - public $savedColumnName; - public $startDate; +class Google_Service_Doubleclicksearch_ReportApiColumnSpec extends Google_Model { + public $columnName; + public $customDimensionName; + public $endDate; + public $groupByColumn; + public $headerText; + public $platformSource; + public $savedColumnName; + public $startDate; - public function setColumnName($columnName) - { - $this->columnName = $columnName; - } + public function setColumnName($columnName) { + $this->columnName = $columnName; + } - public function getColumnName() - { - return $this->columnName; - } + public function getColumnName() { + return $this->columnName; + } - public function setCustomDimensionName($customDimensionName) - { - $this->customDimensionName = $customDimensionName; - } + public function setCustomDimensionName($customDimensionName) { + $this->customDimensionName = $customDimensionName; + } - public function getCustomDimensionName() - { - return $this->customDimensionName; - } + public function getCustomDimensionName() { + return $this->customDimensionName; + } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } + public function setEndDate($endDate) { + $this->endDate = $endDate; + } - public function getEndDate() - { - return $this->endDate; - } + public function getEndDate() { + return $this->endDate; + } - public function setGroupByColumn($groupByColumn) - { - $this->groupByColumn = $groupByColumn; - } + public function setGroupByColumn($groupByColumn) { + $this->groupByColumn = $groupByColumn; + } - public function getGroupByColumn() - { - return $this->groupByColumn; - } + public function getGroupByColumn() { + return $this->groupByColumn; + } - public function setHeaderText($headerText) - { - $this->headerText = $headerText; - } + public function setHeaderText($headerText) { + $this->headerText = $headerText; + } - public function getHeaderText() - { - return $this->headerText; - } + public function getHeaderText() { + return $this->headerText; + } - public function setPlatformSource($platformSource) - { - $this->platformSource = $platformSource; - } + public function setPlatformSource($platformSource) { + $this->platformSource = $platformSource; + } - public function getPlatformSource() - { - return $this->platformSource; - } + public function getPlatformSource() { + return $this->platformSource; + } - public function setSavedColumnName($savedColumnName) - { - $this->savedColumnName = $savedColumnName; - } + public function setSavedColumnName($savedColumnName) { + $this->savedColumnName = $savedColumnName; + } - public function getSavedColumnName() - { - return $this->savedColumnName; - } + public function getSavedColumnName() { + return $this->savedColumnName; + } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } + public function setStartDate($startDate) { + $this->startDate = $startDate; + } - public function getStartDate() - { - return $this->startDate; - } + public function getStartDate() { + return $this->startDate; + } } -class Google_Service_Doubleclicksearch_ReportFiles extends Google_Model -{ - public $byteCount; - public $url; +class Google_Service_Doubleclicksearch_ReportFiles extends Google_Model { + public $byteCount; + public $url; - public function setByteCount($byteCount) - { - $this->byteCount = $byteCount; - } + public function setByteCount($byteCount) { + $this->byteCount = $byteCount; + } - public function getByteCount() - { - return $this->byteCount; - } + public function getByteCount() { + return $this->byteCount; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection -{ - protected $columnsType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; - protected $columnsDataType = 'array'; - public $downloadFormat; - protected $filtersType = 'Google_Service_Doubleclicksearch_ReportRequestFilters'; - protected $filtersDataType = 'array'; - public $includeDeletedEntities; - public $includeRemovedEntities; - public $maxRowsPerFile; - protected $orderByType = 'Google_Service_Doubleclicksearch_ReportRequestOrderBy'; - protected $orderByDataType = 'array'; - protected $reportScopeType = 'Google_Service_Doubleclicksearch_ReportRequestReportScope'; - protected $reportScopeDataType = ''; - public $reportType; - public $rowCount; - public $startRow; - public $statisticsCurrency; - protected $timeRangeType = 'Google_Service_Doubleclicksearch_ReportRequestTimeRange'; - protected $timeRangeDataType = ''; - public $verifySingleTimeZone; +class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection { + protected $columnsType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; + protected $columnsDataType = 'array'; + public $downloadFormat; + protected $filtersType = 'Google_Service_Doubleclicksearch_ReportRequestFilters'; + protected $filtersDataType = 'array'; + public $includeDeletedEntities; + public $includeRemovedEntities; + public $maxRowsPerFile; + protected $orderByType = 'Google_Service_Doubleclicksearch_ReportRequestOrderBy'; + protected $orderByDataType = 'array'; + protected $reportScopeType = 'Google_Service_Doubleclicksearch_ReportRequestReportScope'; + protected $reportScopeDataType = ''; + public $reportType; + public $rowCount; + public $startRow; + public $statisticsCurrency; + protected $timeRangeType = 'Google_Service_Doubleclicksearch_ReportRequestTimeRange'; + protected $timeRangeDataType = ''; + public $verifySingleTimeZone; - public function setColumns($columns) - { - $this->columns = $columns; - } + public function setColumns($columns) { + $this->columns = $columns; + } - public function getColumns() - { - return $this->columns; - } + public function getColumns() { + return $this->columns; + } - public function setDownloadFormat($downloadFormat) - { - $this->downloadFormat = $downloadFormat; - } + public function setDownloadFormat($downloadFormat) { + $this->downloadFormat = $downloadFormat; + } - public function getDownloadFormat() - { - return $this->downloadFormat; - } + public function getDownloadFormat() { + return $this->downloadFormat; + } - public function setFilters($filters) - { - $this->filters = $filters; - } + public function setFilters($filters) { + $this->filters = $filters; + } - public function getFilters() - { - return $this->filters; - } + public function getFilters() { + return $this->filters; + } - public function setIncludeDeletedEntities($includeDeletedEntities) - { - $this->includeDeletedEntities = $includeDeletedEntities; - } + public function setIncludeDeletedEntities($includeDeletedEntities) { + $this->includeDeletedEntities = $includeDeletedEntities; + } - public function getIncludeDeletedEntities() - { - return $this->includeDeletedEntities; - } + public function getIncludeDeletedEntities() { + return $this->includeDeletedEntities; + } - public function setIncludeRemovedEntities($includeRemovedEntities) - { - $this->includeRemovedEntities = $includeRemovedEntities; - } + public function setIncludeRemovedEntities($includeRemovedEntities) { + $this->includeRemovedEntities = $includeRemovedEntities; + } - public function getIncludeRemovedEntities() - { - return $this->includeRemovedEntities; - } + public function getIncludeRemovedEntities() { + return $this->includeRemovedEntities; + } - public function setMaxRowsPerFile($maxRowsPerFile) - { - $this->maxRowsPerFile = $maxRowsPerFile; - } + public function setMaxRowsPerFile($maxRowsPerFile) { + $this->maxRowsPerFile = $maxRowsPerFile; + } - public function getMaxRowsPerFile() - { - return $this->maxRowsPerFile; - } + public function getMaxRowsPerFile() { + return $this->maxRowsPerFile; + } - public function setOrderBy($orderBy) - { - $this->orderBy = $orderBy; - } + public function setOrderBy($orderBy) { + $this->orderBy = $orderBy; + } - public function getOrderBy() - { - return $this->orderBy; - } + public function getOrderBy() { + return $this->orderBy; + } - public function setReportScope(Google_Service_Doubleclicksearch_ReportRequestReportScope $reportScope) - { - $this->reportScope = $reportScope; - } + public function setReportScope(Google_Service_Doubleclicksearch_ReportRequestReportScope $reportScope) { + $this->reportScope = $reportScope; + } - public function getReportScope() - { - return $this->reportScope; - } + public function getReportScope() { + return $this->reportScope; + } - public function setReportType($reportType) - { - $this->reportType = $reportType; - } + public function setReportType($reportType) { + $this->reportType = $reportType; + } - public function getReportType() - { - return $this->reportType; - } + public function getReportType() { + return $this->reportType; + } - public function setRowCount($rowCount) - { - $this->rowCount = $rowCount; - } + public function setRowCount($rowCount) { + $this->rowCount = $rowCount; + } - public function getRowCount() - { - return $this->rowCount; - } + public function getRowCount() { + return $this->rowCount; + } - public function setStartRow($startRow) - { - $this->startRow = $startRow; - } + public function setStartRow($startRow) { + $this->startRow = $startRow; + } - public function getStartRow() - { - return $this->startRow; - } + public function getStartRow() { + return $this->startRow; + } - public function setStatisticsCurrency($statisticsCurrency) - { - $this->statisticsCurrency = $statisticsCurrency; - } + public function setStatisticsCurrency($statisticsCurrency) { + $this->statisticsCurrency = $statisticsCurrency; + } - public function getStatisticsCurrency() - { - return $this->statisticsCurrency; - } + public function getStatisticsCurrency() { + return $this->statisticsCurrency; + } - public function setTimeRange(Google_Service_Doubleclicksearch_ReportRequestTimeRange $timeRange) - { - $this->timeRange = $timeRange; - } + public function setTimeRange(Google_Service_Doubleclicksearch_ReportRequestTimeRange $timeRange) { + $this->timeRange = $timeRange; + } - public function getTimeRange() - { - return $this->timeRange; - } + public function getTimeRange() { + return $this->timeRange; + } - public function setVerifySingleTimeZone($verifySingleTimeZone) - { - $this->verifySingleTimeZone = $verifySingleTimeZone; - } + public function setVerifySingleTimeZone($verifySingleTimeZone) { + $this->verifySingleTimeZone = $verifySingleTimeZone; + } - public function getVerifySingleTimeZone() - { - return $this->verifySingleTimeZone; - } + public function getVerifySingleTimeZone() { + return $this->verifySingleTimeZone; + } } -class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Collection -{ - protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; - protected $columnDataType = ''; - public $operator; - public $values; +class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Collection { + protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; + protected $columnDataType = ''; + public $operator; + public $values; - public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column) - { - $this->column = $column; - } + public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column) { + $this->column = $column; + } - public function getColumn() - { - return $this->column; - } + public function getColumn() { + return $this->column; + } - public function setOperator($operator) - { - $this->operator = $operator; - } + public function setOperator($operator) { + $this->operator = $operator; + } - public function getOperator() - { - return $this->operator; - } + public function getOperator() { + return $this->operator; + } - public function setValues($values) - { - $this->values = $values; - } + public function setValues($values) { + $this->values = $values; + } - public function getValues() - { - return $this->values; - } + public function getValues() { + return $this->values; + } } -class Google_Service_Doubleclicksearch_ReportRequestOrderBy extends Google_Model -{ - protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; - protected $columnDataType = ''; - public $sortOrder; +class Google_Service_Doubleclicksearch_ReportRequestOrderBy extends Google_Model { + protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; + protected $columnDataType = ''; + public $sortOrder; - public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column) - { - $this->column = $column; - } + public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column) { + $this->column = $column; + } - public function getColumn() - { - return $this->column; - } + public function getColumn() { + return $this->column; + } - public function setSortOrder($sortOrder) - { - $this->sortOrder = $sortOrder; - } + public function setSortOrder($sortOrder) { + $this->sortOrder = $sortOrder; + } - public function getSortOrder() - { - return $this->sortOrder; - } + public function getSortOrder() { + return $this->sortOrder; + } } -class Google_Service_Doubleclicksearch_ReportRequestReportScope extends Google_Model -{ - public $adGroupId; - public $adId; - public $advertiserId; - public $agencyId; - public $campaignId; - public $engineAccountId; - public $keywordId; +class Google_Service_Doubleclicksearch_ReportRequestReportScope extends Google_Model { + public $adGroupId; + public $adId; + public $advertiserId; + public $agencyId; + public $campaignId; + public $engineAccountId; + public $keywordId; - public function setAdGroupId($adGroupId) - { - $this->adGroupId = $adGroupId; - } + public function setAdGroupId($adGroupId) { + $this->adGroupId = $adGroupId; + } - public function getAdGroupId() - { - return $this->adGroupId; - } + public function getAdGroupId() { + return $this->adGroupId; + } - public function setAdId($adId) - { - $this->adId = $adId; - } + public function setAdId($adId) { + $this->adId = $adId; + } - public function getAdId() - { - return $this->adId; - } + public function getAdId() { + return $this->adId; + } - public function setAdvertiserId($advertiserId) - { - $this->advertiserId = $advertiserId; - } + public function setAdvertiserId($advertiserId) { + $this->advertiserId = $advertiserId; + } - public function getAdvertiserId() - { - return $this->advertiserId; - } + public function getAdvertiserId() { + return $this->advertiserId; + } - public function setAgencyId($agencyId) - { - $this->agencyId = $agencyId; - } + public function setAgencyId($agencyId) { + $this->agencyId = $agencyId; + } - public function getAgencyId() - { - return $this->agencyId; - } + public function getAgencyId() { + return $this->agencyId; + } - public function setCampaignId($campaignId) - { - $this->campaignId = $campaignId; - } + public function setCampaignId($campaignId) { + $this->campaignId = $campaignId; + } - public function getCampaignId() - { - return $this->campaignId; - } + public function getCampaignId() { + return $this->campaignId; + } - public function setEngineAccountId($engineAccountId) - { - $this->engineAccountId = $engineAccountId; - } + public function setEngineAccountId($engineAccountId) { + $this->engineAccountId = $engineAccountId; + } - public function getEngineAccountId() - { - return $this->engineAccountId; - } + public function getEngineAccountId() { + return $this->engineAccountId; + } - public function setKeywordId($keywordId) - { - $this->keywordId = $keywordId; - } + public function setKeywordId($keywordId) { + $this->keywordId = $keywordId; + } - public function getKeywordId() - { - return $this->keywordId; - } + public function getKeywordId() { + return $this->keywordId; + } } -class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Model -{ - public $changedAttributesSinceTimestamp; - public $changedMetricsSinceTimestamp; - public $endDate; - public $startDate; +class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Model { + public $changedAttributesSinceTimestamp; + public $changedMetricsSinceTimestamp; + public $endDate; + public $startDate; - public function setChangedAttributesSinceTimestamp($changedAttributesSinceTimestamp) - { - $this->changedAttributesSinceTimestamp = $changedAttributesSinceTimestamp; - } + public function setChangedAttributesSinceTimestamp($changedAttributesSinceTimestamp) { + $this->changedAttributesSinceTimestamp = $changedAttributesSinceTimestamp; + } - public function getChangedAttributesSinceTimestamp() - { - return $this->changedAttributesSinceTimestamp; - } + public function getChangedAttributesSinceTimestamp() { + return $this->changedAttributesSinceTimestamp; + } - public function setChangedMetricsSinceTimestamp($changedMetricsSinceTimestamp) - { - $this->changedMetricsSinceTimestamp = $changedMetricsSinceTimestamp; - } + public function setChangedMetricsSinceTimestamp($changedMetricsSinceTimestamp) { + $this->changedMetricsSinceTimestamp = $changedMetricsSinceTimestamp; + } - public function getChangedMetricsSinceTimestamp() - { - return $this->changedMetricsSinceTimestamp; - } + public function getChangedMetricsSinceTimestamp() { + return $this->changedMetricsSinceTimestamp; + } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } + public function setEndDate($endDate) { + $this->endDate = $endDate; + } - public function getEndDate() - { - return $this->endDate; - } + public function getEndDate() { + return $this->endDate; + } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } + public function setStartDate($startDate) { + $this->startDate = $startDate; + } - public function getStartDate() - { - return $this->startDate; - } + public function getStartDate() { + return $this->startDate; + } } -class Google_Service_Doubleclicksearch_ReportRow extends Google_Model -{ +class Google_Service_Doubleclicksearch_ReportRow extends Google_Model { } -class Google_Service_Doubleclicksearch_SavedColumn extends Google_Model -{ - public $kind; - public $savedColumnName; - public $type; +class Google_Service_Doubleclicksearch_SavedColumn extends Google_Model { + public $kind; + public $savedColumnName; + public $type; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSavedColumnName($savedColumnName) - { - $this->savedColumnName = $savedColumnName; - } + public function setSavedColumnName($savedColumnName) { + $this->savedColumnName = $savedColumnName; + } - public function getSavedColumnName() - { - return $this->savedColumnName; - } + public function getSavedColumnName() { + return $this->savedColumnName; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Doubleclicksearch_SavedColumnList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Doubleclicksearch_SavedColumn'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Doubleclicksearch_SavedColumnList extends Google_Collection { + protected $itemsType = 'Google_Service_Doubleclicksearch_SavedColumn'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_Collection -{ - protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; - protected $availabilitiesDataType = 'array'; +class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_Collection { + protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; + protected $availabilitiesDataType = 'array'; - public function setAvailabilities($availabilities) - { - $this->availabilities = $availabilities; - } + public function setAvailabilities($availabilities) { + $this->availabilities = $availabilities; + } - public function getAvailabilities() - { - return $this->availabilities; - } + public function getAvailabilities() { + return $this->availabilities; + } } -class Google_Service_Doubleclicksearch_UpdateAvailabilityResponse extends Google_Collection -{ - protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; - protected $availabilitiesDataType = 'array'; +class Google_Service_Doubleclicksearch_UpdateAvailabilityResponse extends Google_Collection { + protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; + protected $availabilitiesDataType = 'array'; - public function setAvailabilities($availabilities) - { - $this->availabilities = $availabilities; - } + public function setAvailabilities($availabilities) { + $this->availabilities = $availabilities; + } - public function getAvailabilities() - { - return $this->availabilities; - } + public function getAvailabilities() { + return $this->availabilities; + } } diff --git a/oauth/Google/Service/Drive.php b/oauth/Google/Service/Drive.php index 1ed4858..98558d6 100644 --- a/oauth/Google/Service/Drive.php +++ b/oauth/Google/Service/Drive.php @@ -29,1223 +29,1221 @@ * * @author Google, Inc. */ -class Google_Service_Drive extends Google_Service -{ - /** View and manage the files and documents in your Google Drive. */ - const DRIVE = "https://www.googleapis.com/auth/drive"; - /** View and manage its own configuration data in your Google Drive. */ - const DRIVE_APPDATA = "https://www.googleapis.com/auth/drive.appdata"; - /** View your Google Drive apps. */ - const DRIVE_APPS_READONLY = "https://www.googleapis.com/auth/drive.apps.readonly"; - /** View and manage Google Drive files that you have opened or created with this app. */ - const DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"; - /** View metadata for files and documents in your Google Drive. */ - const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; - /** View the files and documents in your Google Drive. */ - const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; - /** Modify your Google Apps Script scripts' behavior. */ - const DRIVE_SCRIPTS = "https://www.googleapis.com/auth/drive.scripts"; +class Google_Service_Drive extends Google_Service { + /** View and manage the files and documents in your Google Drive. */ + const DRIVE = "https://www.googleapis.com/auth/drive"; + /** View and manage its own configuration data in your Google Drive. */ + const DRIVE_APPDATA = "https://www.googleapis.com/auth/drive.appdata"; + /** View your Google Drive apps. */ + const DRIVE_APPS_READONLY = "https://www.googleapis.com/auth/drive.apps.readonly"; + /** View and manage Google Drive files that you have opened or created with this app. */ + const DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"; + /** View metadata for files and documents in your Google Drive. */ + const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; + /** View the files and documents in your Google Drive. */ + const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; + /** Modify your Google Apps Script scripts' behavior. */ + const DRIVE_SCRIPTS = "https://www.googleapis.com/auth/drive.scripts"; - public $about; - public $apps; - public $changes; - public $channels; - public $children; - public $comments; - public $files; - public $parents; - public $permissions; - public $properties; - public $realtime; - public $replies; - public $revisions; - + public $about; + public $apps; + public $changes; + public $channels; + public $children; + public $comments; + public $files; + public $parents; + public $permissions; + public $properties; + public $realtime; + public $replies; + public $revisions; - /** - * Constructs the internal representation of the Drive service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'drive/v2/'; - $this->version = 'v2'; - $this->serviceName = 'drive'; - $this->about = new Google_Service_Drive_About_Resource( - $this, - $this->serviceName, - 'about', - array( - 'methods' => array( - 'get' => array( - 'path' => 'about', - 'httpMethod' => 'GET', - 'parameters' => array( - 'includeSubscribed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxChangeIdCount' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startChangeId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->apps = new Google_Service_Drive_Apps_Resource( - $this, - $this->serviceName, - 'apps', - array( - 'methods' => array( - 'get' => array( - 'path' => 'apps/{appId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'appId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'apps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'languageCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'appFilterExtensions' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'appFilterMimeTypes' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->changes = new Google_Service_Drive_Changes_Resource( - $this, - $this->serviceName, - 'changes', - array( - 'methods' => array( - 'get' => array( - 'path' => 'changes/{changeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'changeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'changes', - 'httpMethod' => 'GET', - 'parameters' => array( - 'includeSubscribed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'startChangeId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'watch' => array( - 'path' => 'changes/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'includeSubscribed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'startChangeId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_Drive_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'stop' => array( - 'path' => 'channels/stop', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->children = new Google_Service_Drive_Children_Resource( - $this, - $this->serviceName, - 'children', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'files/{folderId}/children/{childId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'childId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{folderId}/children/{childId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'childId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'files/{folderId}/children', - 'httpMethod' => 'POST', - 'parameters' => array( - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'files/{folderId}/children', - 'httpMethod' => 'GET', - 'parameters' => array( - 'folderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_Drive_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'files/{fileId}/comments/{commentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/comments/{commentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'insert' => array( - 'path' => 'files/{fileId}/comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'files/{fileId}/comments/{commentId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/comments/{commentId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->files = new Google_Service_Drive_Files_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'copy' => array( - 'path' => 'files/{fileId}/copy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'convert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocrLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'visibility' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pinned' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocr' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'timedTextTrackName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timedTextLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => 'files/{fileId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'emptyTrash' => array( - 'path' => 'files/trash', - 'httpMethod' => 'DELETE', - 'parameters' => array(), - ),'get' => array( - 'path' => 'files/{fileId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'updateViewedDate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'files', - 'httpMethod' => 'POST', - 'parameters' => array( - 'convert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'useContentAsIndexableText' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocrLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'visibility' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pinned' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocr' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'timedTextTrackName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timedTextLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'files', - 'httpMethod' => 'GET', - 'parameters' => array( - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'corpus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'files/{fileId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'addParents' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updateViewedDate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'removeParents' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'setModifiedDate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'convert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'useContentAsIndexableText' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocrLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pinned' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'newRevision' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocr' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'timedTextLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timedTextTrackName' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'touch' => array( - 'path' => 'files/{fileId}/touch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'trash' => array( - 'path' => 'files/{fileId}/trash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'untrash' => array( - 'path' => 'files/{fileId}/untrash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'addParents' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'updateViewedDate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'removeParents' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'setModifiedDate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'convert' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'useContentAsIndexableText' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocrLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pinned' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'newRevision' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'ocr' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'timedTextLanguage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timedTextTrackName' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'watch' => array( - 'path' => 'files/{fileId}/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'updateViewedDate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->parents = new Google_Service_Drive_Parents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'files/{fileId}/parents/{parentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'parentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/parents/{parentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'parentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'files/{fileId}/parents', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->permissions = new Google_Service_Drive_Permissions_Resource( - $this, - $this->serviceName, - 'permissions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'files/{fileId}/permissions/{permissionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/permissions/{permissionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getIdForEmail' => array( - 'path' => 'permissionIds/{email}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'email' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'files/{fileId}/permissions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'emailMessage' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sendNotificationEmails' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/permissions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'files/{fileId}/permissions/{permissionId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'transferOwnership' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/permissions/{permissionId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'permissionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'transferOwnership' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->properties = new Google_Service_Drive_Properties_Resource( - $this, - $this->serviceName, - 'properties', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'files/{fileId}/properties/{propertyKey}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'propertyKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'visibility' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/properties/{propertyKey}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'propertyKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'visibility' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'files/{fileId}/properties', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/properties', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'files/{fileId}/properties/{propertyKey}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'propertyKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'visibility' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/properties/{propertyKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'propertyKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'visibility' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->realtime = new Google_Service_Drive_Realtime_Resource( - $this, - $this->serviceName, - 'realtime', - array( - 'methods' => array( - 'get' => array( - 'path' => 'files/{fileId}/realtime', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revision' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/realtime', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'baseRevision' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->replies = new Google_Service_Drive_Replies_Resource( - $this, - $this->serviceName, - 'replies', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'insert' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies', - 'httpMethod' => 'POST', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->revisions = new Google_Service_Drive_Revisions_Resource( - $this, - $this->serviceName, - 'revisions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'files/{fileId}/revisions/{revisionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'files/{fileId}/revisions/{revisionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'files/{fileId}/revisions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'files/{fileId}/revisions/{revisionId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'files/{fileId}/revisions/{revisionId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'fileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'revisionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Drive service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'drive/v2/'; + $this->version = 'v2'; + $this->serviceName = 'drive'; + + $this->about = new Google_Service_Drive_About_Resource( + $this, + $this->serviceName, + 'about', + array( + 'methods' => array( + 'get' => array( + 'path' => 'about', + 'httpMethod' => 'GET', + 'parameters' => array( + 'includeSubscribed' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxChangeIdCount' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startChangeId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->apps = new Google_Service_Drive_Apps_Resource( + $this, + $this->serviceName, + 'apps', + array( + 'methods' => array( + 'get' => array( + 'path' => 'apps/{appId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'appId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'apps', + 'httpMethod' => 'GET', + 'parameters' => array( + 'languageCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'appFilterExtensions' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'appFilterMimeTypes' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->changes = new Google_Service_Drive_Changes_Resource( + $this, + $this->serviceName, + 'changes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'changes/{changeId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'changeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'changes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'includeSubscribed' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'startChangeId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'watch' => array( + 'path' => 'changes/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'includeSubscribed' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'startChangeId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->channels = new Google_Service_Drive_Channels_Resource( + $this, + $this->serviceName, + 'channels', + array( + 'methods' => array( + 'stop' => array( + 'path' => 'channels/stop', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->children = new Google_Service_Drive_Children_Resource( + $this, + $this->serviceName, + 'children', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'files/{folderId}/children/{childId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'folderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'childId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'files/{folderId}/children/{childId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'folderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'childId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'files/{folderId}/children', + 'httpMethod' => 'POST', + 'parameters' => array( + 'folderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'files/{folderId}/children', + 'httpMethod' => 'GET', + 'parameters' => array( + 'folderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->comments = new Google_Service_Drive_Comments_Resource( + $this, + $this->serviceName, + 'comments', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'files/{fileId}/comments/{commentId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'files/{fileId}/comments/{commentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'insert' => array( + 'path' => 'files/{fileId}/comments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'files/{fileId}/comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updatedMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'files/{fileId}/comments/{commentId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'files/{fileId}/comments/{commentId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->files = new Google_Service_Drive_Files_Resource( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'copy' => array( + 'path' => 'files/{fileId}/copy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'convert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ocrLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'visibility' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pinned' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ocr' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'timedTextTrackName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timedTextLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'delete' => array( + 'path' => 'files/{fileId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'emptyTrash' => array( + 'path' => 'files/trash', + 'httpMethod' => 'DELETE', + 'parameters' => array(), + ), 'get' => array( + 'path' => 'files/{fileId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateViewedDate' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'files', + 'httpMethod' => 'POST', + 'parameters' => array( + 'convert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'useContentAsIndexableText' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ocrLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'visibility' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pinned' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ocr' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'timedTextTrackName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timedTextLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'files', + 'httpMethod' => 'GET', + 'parameters' => array( + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'corpus' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'files/{fileId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'addParents' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updateViewedDate' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'removeParents' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'setModifiedDate' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'convert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'useContentAsIndexableText' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ocrLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pinned' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'newRevision' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ocr' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'timedTextLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timedTextTrackName' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'touch' => array( + 'path' => 'files/{fileId}/touch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'trash' => array( + 'path' => 'files/{fileId}/trash', + 'httpMethod' => 'POST', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'untrash' => array( + 'path' => 'files/{fileId}/untrash', + 'httpMethod' => 'POST', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'files/{fileId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'addParents' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'updateViewedDate' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'removeParents' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'setModifiedDate' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'convert' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'useContentAsIndexableText' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ocrLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pinned' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'newRevision' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ocr' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'timedTextLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timedTextTrackName' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'watch' => array( + 'path' => 'files/{fileId}/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateViewedDate' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->parents = new Google_Service_Drive_Parents_Resource( + $this, + $this->serviceName, + 'parents', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'files/{fileId}/parents/{parentId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'parentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'files/{fileId}/parents/{parentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'parentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'files/{fileId}/parents', + 'httpMethod' => 'POST', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'files/{fileId}/parents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->permissions = new Google_Service_Drive_Permissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'files/{fileId}/permissions/{permissionId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'files/{fileId}/permissions/{permissionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getIdForEmail' => array( + 'path' => 'permissionIds/{email}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'email' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'files/{fileId}/permissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'emailMessage' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sendNotificationEmails' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => 'files/{fileId}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => 'files/{fileId}/permissions/{permissionId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'transferOwnership' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'update' => array( + 'path' => 'files/{fileId}/permissions/{permissionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'transferOwnership' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->properties = new Google_Service_Drive_Properties_Resource( + $this, + $this->serviceName, + 'properties', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'files/{fileId}/properties/{propertyKey}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'propertyKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'visibility' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'get' => array( + 'path' => 'files/{fileId}/properties/{propertyKey}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'propertyKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'visibility' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'files/{fileId}/properties', + 'httpMethod' => 'POST', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'files/{fileId}/properties', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => 'files/{fileId}/properties/{propertyKey}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'propertyKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'visibility' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => 'files/{fileId}/properties/{propertyKey}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'propertyKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'visibility' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->realtime = new Google_Service_Drive_Realtime_Resource( + $this, + $this->serviceName, + 'realtime', + array( + 'methods' => array( + 'get' => array( + 'path' => 'files/{fileId}/realtime', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revision' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'update' => array( + 'path' => 'files/{fileId}/realtime', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'baseRevision' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->replies = new Google_Service_Drive_Replies_Resource( + $this, + $this->serviceName, + 'replies', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'insert' => array( + 'path' => 'files/{fileId}/comments/{commentId}/replies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'files/{fileId}/comments/{commentId}/replies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->revisions = new Google_Service_Drive_Revisions_Resource( + $this, + $this->serviceName, + 'revisions', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'files/{fileId}/revisions/{revisionId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revisionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'files/{fileId}/revisions/{revisionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revisionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'files/{fileId}/revisions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => 'files/{fileId}/revisions/{revisionId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revisionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'files/{fileId}/revisions/{revisionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'fileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revisionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -1257,31 +1255,29 @@ class Google_Service_Drive extends Google_Service * $about = $driveService->about; * */ -class Google_Service_Drive_About_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_About_Resource extends Google_Service_Resource { - /** - * Gets the information about the current user along with Drive API settings - * (about.get) - * - * @param array $optParams Optional parameters. - * - * @opt_param bool includeSubscribed - * When calculating the number of remaining change IDs, whether to include public files the user - * has opened and shared files. When set to false, this counts only change IDs for owned files and - * any shared or public files that the user has explicitly added to a folder they own. - * @opt_param string maxChangeIdCount - * Maximum number of remaining change IDs to count - * @opt_param string startChangeId - * Change ID to start counting from when calculating number of remaining change IDs - * @return Google_Service_Drive_About - */ - public function get($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_About"); - } + /** + * Gets the information about the current user along with Drive API settings + * (about.get) + * + * @param array $optParams Optional parameters. + * + * @opt_param bool includeSubscribed + * When calculating the number of remaining change IDs, whether to include public files the user + * has opened and shared files. When set to false, this counts only change IDs for owned files and + * any shared or public files that the user has explicitly added to a folder they own. + * @opt_param string maxChangeIdCount + * Maximum number of remaining change IDs to count + * @opt_param string startChangeId + * Change ID to start counting from when calculating number of remaining change IDs + * @return Google_Service_Drive_About + */ + public function get($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_About"); + } } /** @@ -1292,47 +1288,45 @@ class Google_Service_Drive_About_Resource extends Google_Service_Resource * $apps = $driveService->apps; * */ -class Google_Service_Drive_Apps_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Apps_Resource extends Google_Service_Resource { - /** - * Gets a specific app. (apps.get) - * - * @param string $appId - * The ID of the app. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_App - */ - public function get($appId, $optParams = array()) - { - $params = array('appId' => $appId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_App"); - } - /** - * Lists a user's installed apps. (apps.listApps) - * - * @param array $optParams Optional parameters. - * - * @opt_param string languageCode - * A language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format - * (http://www.unicode.org/reports/tr35/). - * @opt_param string appFilterExtensions - * A comma-separated list of file extensions for open with filtering. All apps within the given app - * query scope which can open any of the given file extensions will be included in the response. If - * appFilterMimeTypes are provided as well, the result is a union of the two resulting app lists. - * @opt_param string appFilterMimeTypes - * A comma-separated list of MIME types for open with filtering. All apps within the given app - * query scope which can open any of the given MIME types will be included in the response. If - * appFilterExtensions are provided as well, the result is a union of the two resulting app lists. - * @return Google_Service_Drive_AppList - */ - public function listApps($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_AppList"); - } + /** + * Gets a specific app. (apps.get) + * + * @param string $appId + * The ID of the app. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_App + */ + public function get($appId, $optParams = array()) { + $params = array('appId' => $appId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_App"); + } + + /** + * Lists a user's installed apps. (apps.listApps) + * + * @param array $optParams Optional parameters. + * + * @opt_param string languageCode + * A language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format + * (http://www.unicode.org/reports/tr35/). + * @opt_param string appFilterExtensions + * A comma-separated list of file extensions for open with filtering. All apps within the given app + * query scope which can open any of the given file extensions will be included in the response. If + * appFilterMimeTypes are provided as well, the result is a union of the two resulting app lists. + * @opt_param string appFilterMimeTypes + * A comma-separated list of MIME types for open with filtering. All apps within the given app + * query scope which can open any of the given MIME types will be included in the response. If + * appFilterExtensions are provided as well, the result is a union of the two resulting app lists. + * @return Google_Service_Drive_AppList + */ + public function listApps($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Drive_AppList"); + } } /** @@ -1343,74 +1337,72 @@ class Google_Service_Drive_Apps_Resource extends Google_Service_Resource * $changes = $driveService->changes; * */ -class Google_Service_Drive_Changes_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Changes_Resource extends Google_Service_Resource { - /** - * Gets a specific change. (changes.get) - * - * @param string $changeId - * The ID of the change. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Change - */ - public function get($changeId, $optParams = array()) - { - $params = array('changeId' => $changeId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Change"); - } - /** - * Lists the changes for a user. (changes.listChanges) - * - * @param array $optParams Optional parameters. - * - * @opt_param bool includeSubscribed - * Whether to include public files the user has opened and shared files. When set to false, the - * list only includes owned files plus any shared or public files the user has explicitly added to - * a folder they own. - * @opt_param string startChangeId - * Change ID to start listing changes from. - * @opt_param bool includeDeleted - * Whether to include deleted items. - * @opt_param int maxResults - * Maximum number of changes to return. - * @opt_param string pageToken - * Page token for changes. - * @return Google_Service_Drive_ChangeList - */ - public function listChanges($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_ChangeList"); - } - /** - * Subscribe to changes for a user. (changes.watch) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool includeSubscribed - * Whether to include public files the user has opened and shared files. When set to false, the - * list only includes owned files plus any shared or public files the user has explicitly added to - * a folder they own. - * @opt_param string startChangeId - * Change ID to start listing changes from. - * @opt_param bool includeDeleted - * Whether to include deleted items. - * @opt_param int maxResults - * Maximum number of changes to return. - * @opt_param string pageToken - * Page token for changes. - * @return Google_Service_Drive_Channel - */ - public function watch(Google_Service_Drive_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Drive_Channel"); - } + /** + * Gets a specific change. (changes.get) + * + * @param string $changeId + * The ID of the change. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_Change + */ + public function get($changeId, $optParams = array()) { + $params = array('changeId' => $changeId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_Change"); + } + + /** + * Lists the changes for a user. (changes.listChanges) + * + * @param array $optParams Optional parameters. + * + * @opt_param bool includeSubscribed + * Whether to include public files the user has opened and shared files. When set to false, the + * list only includes owned files plus any shared or public files the user has explicitly added to + * a folder they own. + * @opt_param string startChangeId + * Change ID to start listing changes from. + * @opt_param bool includeDeleted + * Whether to include deleted items. + * @opt_param int maxResults + * Maximum number of changes to return. + * @opt_param string pageToken + * Page token for changes. + * @return Google_Service_Drive_ChangeList + */ + public function listChanges($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Drive_ChangeList"); + } + + /** + * Subscribe to changes for a user. (changes.watch) + * + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool includeSubscribed + * Whether to include public files the user has opened and shared files. When set to false, the + * list only includes owned files plus any shared or public files the user has explicitly added to + * a folder they own. + * @opt_param string startChangeId + * Change ID to start listing changes from. + * @opt_param bool includeDeleted + * Whether to include deleted items. + * @opt_param int maxResults + * Maximum number of changes to return. + * @opt_param string pageToken + * Page token for changes. + * @return Google_Service_Drive_Channel + */ + public function watch(Google_Service_Drive_Channel $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Drive_Channel"); + } } /** @@ -1421,21 +1413,19 @@ class Google_Service_Drive_Changes_Resource extends Google_Service_Resource * $channels = $driveService->channels; * */ -class Google_Service_Drive_Channels_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Channels_Resource extends Google_Service_Resource { - /** - * Stop watching resources through this channel (channels.stop) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - */ - public function stop(Google_Service_Drive_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } + /** + * Stop watching resources through this channel (channels.stop) + * + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + */ + public function stop(Google_Service_Drive_Channel $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('stop', array($params)); + } } /** @@ -1446,76 +1436,74 @@ class Google_Service_Drive_Channels_Resource extends Google_Service_Resource * $children = $driveService->children; * */ -class Google_Service_Drive_Children_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Children_Resource extends Google_Service_Resource { - /** - * Removes a child from a folder. (children.delete) - * - * @param string $folderId - * The ID of the folder. - * @param string $childId - * The ID of the child. - * @param array $optParams Optional parameters. - */ - public function delete($folderId, $childId, $optParams = array()) - { - $params = array('folderId' => $folderId, 'childId' => $childId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a specific child reference. (children.get) - * - * @param string $folderId - * The ID of the folder. - * @param string $childId - * The ID of the child. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_ChildReference - */ - public function get($folderId, $childId, $optParams = array()) - { - $params = array('folderId' => $folderId, 'childId' => $childId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_ChildReference"); - } - /** - * Inserts a file into a folder. (children.insert) - * - * @param string $folderId - * The ID of the folder. - * @param Google_ChildReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_ChildReference - */ - public function insert($folderId, Google_Service_Drive_ChildReference $postBody, $optParams = array()) - { - $params = array('folderId' => $folderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_ChildReference"); - } - /** - * Lists a folder's children. (children.listChildren) - * - * @param string $folderId - * The ID of the folder. - * @param array $optParams Optional parameters. - * - * @opt_param string q - * Query string for searching children. - * @opt_param string pageToken - * Page token for children. - * @opt_param int maxResults - * Maximum number of children to return. - * @return Google_Service_Drive_ChildList - */ - public function listChildren($folderId, $optParams = array()) - { - $params = array('folderId' => $folderId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_ChildList"); - } + /** + * Removes a child from a folder. (children.delete) + * + * @param string $folderId + * The ID of the folder. + * @param string $childId + * The ID of the child. + * @param array $optParams Optional parameters. + */ + public function delete($folderId, $childId, $optParams = array()) { + $params = array('folderId' => $folderId, 'childId' => $childId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a specific child reference. (children.get) + * + * @param string $folderId + * The ID of the folder. + * @param string $childId + * The ID of the child. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_ChildReference + */ + public function get($folderId, $childId, $optParams = array()) { + $params = array('folderId' => $folderId, 'childId' => $childId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_ChildReference"); + } + + /** + * Inserts a file into a folder. (children.insert) + * + * @param string $folderId + * The ID of the folder. + * @param Google_ChildReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_ChildReference + */ + public function insert($folderId, Google_Service_Drive_ChildReference $postBody, $optParams = array()) { + $params = array('folderId' => $folderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Drive_ChildReference"); + } + + /** + * Lists a folder's children. (children.listChildren) + * + * @param string $folderId + * The ID of the folder. + * @param array $optParams Optional parameters. + * + * @opt_param string q + * Query string for searching children. + * @opt_param string pageToken + * Page token for children. + * @opt_param int maxResults + * Maximum number of children to return. + * @return Google_Service_Drive_ChildList + */ + public function listChildren($folderId, $optParams = array()) { + $params = array('folderId' => $folderId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Drive_ChildList"); + } } /** @@ -1526,120 +1514,118 @@ class Google_Service_Drive_Children_Resource extends Google_Service_Resource * $comments = $driveService->comments; * */ -class Google_Service_Drive_Comments_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Comments_Resource extends Google_Service_Resource { - /** - * Deletes a comment. (comments.delete) - * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param array $optParams Optional parameters. - */ - public function delete($fileId, $commentId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a comment by ID. (comments.get) - * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeDeleted - * If set, this will succeed when retrieving a deleted comment, and will include any deleted - * replies. - * @return Google_Service_Drive_Comment - */ - public function get($fileId, $commentId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Comment"); - } - /** - * Creates a new comment on the given file. (comments.insert) - * - * @param string $fileId - * The ID of the file. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Comment - */ - public function insert($fileId, Google_Service_Drive_Comment $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_Comment"); - } - /** - * Lists a file's comments. (comments.listComments) - * - * @param string $fileId - * The ID of the file. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string updatedMin - * Only discussions that were updated after this timestamp will be returned. Formatted as an RFC - * 3339 timestamp. - * @opt_param bool includeDeleted - * If set, all comments and replies, including deleted comments and replies (with content stripped) - * will be returned. - * @opt_param int maxResults - * The maximum number of discussions to include in the response, used for paging. - * @return Google_Service_Drive_CommentList - */ - public function listComments($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_CommentList"); - } - /** - * Updates an existing comment. This method supports patch semantics. - * (comments.patch) - * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Comment - */ - public function patch($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_Comment"); - } - /** - * Updates an existing comment. (comments.update) - * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Comment - */ - public function update($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_Comment"); - } + /** + * Deletes a comment. (comments.delete) + * + * @param string $fileId + * The ID of the file. + * @param string $commentId + * The ID of the comment. + * @param array $optParams Optional parameters. + */ + public function delete($fileId, $commentId, $optParams = array()) { + $params = array('fileId' => $fileId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a comment by ID. (comments.get) + * + * @param string $fileId + * The ID of the file. + * @param string $commentId + * The ID of the comment. + * @param array $optParams Optional parameters. + * + * @opt_param bool includeDeleted + * If set, this will succeed when retrieving a deleted comment, and will include any deleted + * replies. + * @return Google_Service_Drive_Comment + */ + public function get($fileId, $commentId, $optParams = array()) { + $params = array('fileId' => $fileId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_Comment"); + } + + /** + * Creates a new comment on the given file. (comments.insert) + * + * @param string $fileId + * The ID of the file. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_Comment + */ + public function insert($fileId, Google_Service_Drive_Comment $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Drive_Comment"); + } + + /** + * Lists a file's comments. (comments.listComments) + * + * @param string $fileId + * The ID of the file. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string updatedMin + * Only discussions that were updated after this timestamp will be returned. Formatted as an RFC + * 3339 timestamp. + * @opt_param bool includeDeleted + * If set, all comments and replies, including deleted comments and replies (with content stripped) + * will be returned. + * @opt_param int maxResults + * The maximum number of discussions to include in the response, used for paging. + * @return Google_Service_Drive_CommentList + */ + public function listComments($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Drive_CommentList"); + } + + /** + * Updates an existing comment. This method supports patch semantics. + * (comments.patch) + * + * @param string $fileId + * The ID of the file. + * @param string $commentId + * The ID of the comment. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_Comment + */ + public function patch($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Drive_Comment"); + } + + /** + * Updates an existing comment. (comments.update) + * + * @param string $fileId + * The ID of the file. + * @param string $commentId + * The ID of the comment. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_Comment + */ + public function update($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Drive_Comment"); + } } /** @@ -1650,283 +1636,281 @@ class Google_Service_Drive_Comments_Resource extends Google_Service_Resource * $files = $driveService->files; * */ -class Google_Service_Drive_Files_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Files_Resource extends Google_Service_Resource { - /** - * Creates a copy of the specified file. (files.copy) - * - * @param string $fileId - * The ID of the file to copy. - * @param Google_DriveFile $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool convert - * Whether to convert this file to the corresponding Google Docs format. - * @opt_param string ocrLanguage - * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. - * @opt_param string visibility - * The visibility of the new file. This parameter is only relevant when the source is not a native - * Google Doc and convert=false. - * @opt_param bool pinned - * Whether to pin the head revision of the new copy. - * @opt_param bool ocr - * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. - * @opt_param string timedTextTrackName - * The timed text track name. - * @opt_param string timedTextLanguage - * The language of the timed text. - * @return Google_Service_Drive_DriveFile - */ - public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('copy', array($params), "Google_Service_Drive_DriveFile"); - } - /** - * Permanently deletes a file by ID. Skips the trash. (files.delete) - * - * @param string $fileId - * The ID of the file to delete. - * @param array $optParams Optional parameters. - */ - public function delete($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Permanently deletes all of the user's trashed files. (files.emptyTrash) - * - * @param array $optParams Optional parameters. - */ - public function emptyTrash($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('emptyTrash', array($params)); - } - /** - * Gets a file's metadata by ID. (files.get) - * - * @param string $fileId - * The ID for the file in question. - * @param array $optParams Optional parameters. - * - * @opt_param bool updateViewedDate - * Whether to update the view date after successfully retrieving the file. - * @opt_param string projection - * This parameter is deprecated and has no function. - * @return Google_Service_Drive_DriveFile - */ - public function get($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_DriveFile"); - } - /** - * Insert a new file. (files.insert) - * - * @param Google_DriveFile $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool convert - * Whether to convert this file to the corresponding Google Docs format. - * @opt_param bool useContentAsIndexableText - * Whether to use the content as indexable text. - * @opt_param string ocrLanguage - * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. - * @opt_param string visibility - * The visibility of the new file. This parameter is only relevant when convert=false. - * @opt_param bool pinned - * Whether to pin the head revision of the uploaded file. - * @opt_param bool ocr - * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. - * @opt_param string timedTextTrackName - * The timed text track name. - * @opt_param string timedTextLanguage - * The language of the timed text. - * @return Google_Service_Drive_DriveFile - */ - public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_DriveFile"); - } - /** - * Lists the user's files. (files.listFiles) - * - * @param array $optParams Optional parameters. - * - * @opt_param string q - * Query string for searching files. - * @opt_param string pageToken - * Page token for files. - * @opt_param string corpus - * The body of items (files/documents) to which the query applies. - * @opt_param string projection - * This parameter is deprecated and has no function. - * @opt_param int maxResults - * Maximum number of files to return. - * @return Google_Service_Drive_FileList - */ - public function listFiles($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_FileList"); - } - /** - * Updates file metadata and/or content. This method supports patch semantics. - * (files.patch) - * - * @param string $fileId - * The ID of the file to update. - * @param Google_DriveFile $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string addParents - * Comma-separated list of parent IDs to add. - * @opt_param bool updateViewedDate - * Whether to update the view date after successfully updating the file. - * @opt_param string removeParents - * Comma-separated list of parent IDs to remove. - * @opt_param bool setModifiedDate - * Whether to set the modified date with the supplied modified date. - * @opt_param bool convert - * Whether to convert this file to the corresponding Google Docs format. - * @opt_param bool useContentAsIndexableText - * Whether to use the content as indexable text. - * @opt_param string ocrLanguage - * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. - * @opt_param bool pinned - * Whether to pin the new revision. - * @opt_param bool newRevision - * Whether a blob upload should create a new revision. If false, the blob data in the current head - * revision is replaced. If not set or true, a new blob is created as head revision, and previous - * revisions are preserved (causing increased use of the user's data storage quota). - * @opt_param bool ocr - * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. - * @opt_param string timedTextLanguage - * The language of the timed text. - * @opt_param string timedTextTrackName - * The timed text track name. - * @return Google_Service_Drive_DriveFile - */ - public function patch($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_DriveFile"); - } - /** - * Set the file's updated time to the current server time. (files.touch) - * - * @param string $fileId - * The ID of the file to update. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_DriveFile - */ - public function touch($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('touch', array($params), "Google_Service_Drive_DriveFile"); - } - /** - * Moves a file to the trash. (files.trash) - * - * @param string $fileId - * The ID of the file to trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_DriveFile - */ - public function trash($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('trash', array($params), "Google_Service_Drive_DriveFile"); - } - /** - * Restores a file from the trash. (files.untrash) - * - * @param string $fileId - * The ID of the file to untrash. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_DriveFile - */ - public function untrash($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('untrash', array($params), "Google_Service_Drive_DriveFile"); - } - /** - * Updates file metadata and/or content. (files.update) - * - * @param string $fileId - * The ID of the file to update. - * @param Google_DriveFile $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string addParents - * Comma-separated list of parent IDs to add. - * @opt_param bool updateViewedDate - * Whether to update the view date after successfully updating the file. - * @opt_param string removeParents - * Comma-separated list of parent IDs to remove. - * @opt_param bool setModifiedDate - * Whether to set the modified date with the supplied modified date. - * @opt_param bool convert - * Whether to convert this file to the corresponding Google Docs format. - * @opt_param bool useContentAsIndexableText - * Whether to use the content as indexable text. - * @opt_param string ocrLanguage - * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. - * @opt_param bool pinned - * Whether to pin the new revision. - * @opt_param bool newRevision - * Whether a blob upload should create a new revision. If false, the blob data in the current head - * revision is replaced. If not set or true, a new blob is created as head revision, and previous - * revisions are preserved (causing increased use of the user's data storage quota). - * @opt_param bool ocr - * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. - * @opt_param string timedTextLanguage - * The language of the timed text. - * @opt_param string timedTextTrackName - * The timed text track name. - * @return Google_Service_Drive_DriveFile - */ - public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_DriveFile"); - } - /** - * Subscribe to changes on a file (files.watch) - * - * @param string $fileId - * The ID for the file in question. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool updateViewedDate - * Whether to update the view date after successfully retrieving the file. - * @opt_param string projection - * This parameter is deprecated and has no function. - * @return Google_Service_Drive_Channel - */ - public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Drive_Channel"); - } + /** + * Creates a copy of the specified file. (files.copy) + * + * @param string $fileId + * The ID of the file to copy. + * @param Google_DriveFile $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool convert + * Whether to convert this file to the corresponding Google Docs format. + * @opt_param string ocrLanguage + * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. + * @opt_param string visibility + * The visibility of the new file. This parameter is only relevant when the source is not a native + * Google Doc and convert=false. + * @opt_param bool pinned + * Whether to pin the head revision of the new copy. + * @opt_param bool ocr + * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. + * @opt_param string timedTextTrackName + * The timed text track name. + * @opt_param string timedTextLanguage + * The language of the timed text. + * @return Google_Service_Drive_DriveFile + */ + public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('copy', array($params), "Google_Service_Drive_DriveFile"); + } + + /** + * Permanently deletes a file by ID. Skips the trash. (files.delete) + * + * @param string $fileId + * The ID of the file to delete. + * @param array $optParams Optional parameters. + */ + public function delete($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Permanently deletes all of the user's trashed files. (files.emptyTrash) + * + * @param array $optParams Optional parameters. + */ + public function emptyTrash($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('emptyTrash', array($params)); + } + + /** + * Gets a file's metadata by ID. (files.get) + * + * @param string $fileId + * The ID for the file in question. + * @param array $optParams Optional parameters. + * + * @opt_param bool updateViewedDate + * Whether to update the view date after successfully retrieving the file. + * @opt_param string projection + * This parameter is deprecated and has no function. + * @return Google_Service_Drive_DriveFile + */ + public function get($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_DriveFile"); + } + + /** + * Insert a new file. (files.insert) + * + * @param Google_DriveFile $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool convert + * Whether to convert this file to the corresponding Google Docs format. + * @opt_param bool useContentAsIndexableText + * Whether to use the content as indexable text. + * @opt_param string ocrLanguage + * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. + * @opt_param string visibility + * The visibility of the new file. This parameter is only relevant when convert=false. + * @opt_param bool pinned + * Whether to pin the head revision of the uploaded file. + * @opt_param bool ocr + * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. + * @opt_param string timedTextTrackName + * The timed text track name. + * @opt_param string timedTextLanguage + * The language of the timed text. + * @return Google_Service_Drive_DriveFile + */ + public function insert(Google_Service_Drive_DriveFile $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Drive_DriveFile"); + } + + /** + * Lists the user's files. (files.listFiles) + * + * @param array $optParams Optional parameters. + * + * @opt_param string q + * Query string for searching files. + * @opt_param string pageToken + * Page token for files. + * @opt_param string corpus + * The body of items (files/documents) to which the query applies. + * @opt_param string projection + * This parameter is deprecated and has no function. + * @opt_param int maxResults + * Maximum number of files to return. + * @return Google_Service_Drive_FileList + */ + public function listFiles($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Drive_FileList"); + } + + /** + * Updates file metadata and/or content. This method supports patch semantics. + * (files.patch) + * + * @param string $fileId + * The ID of the file to update. + * @param Google_DriveFile $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string addParents + * Comma-separated list of parent IDs to add. + * @opt_param bool updateViewedDate + * Whether to update the view date after successfully updating the file. + * @opt_param string removeParents + * Comma-separated list of parent IDs to remove. + * @opt_param bool setModifiedDate + * Whether to set the modified date with the supplied modified date. + * @opt_param bool convert + * Whether to convert this file to the corresponding Google Docs format. + * @opt_param bool useContentAsIndexableText + * Whether to use the content as indexable text. + * @opt_param string ocrLanguage + * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. + * @opt_param bool pinned + * Whether to pin the new revision. + * @opt_param bool newRevision + * Whether a blob upload should create a new revision. If false, the blob data in the current head + * revision is replaced. If not set or true, a new blob is created as head revision, and previous + * revisions are preserved (causing increased use of the user's data storage quota). + * @opt_param bool ocr + * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. + * @opt_param string timedTextLanguage + * The language of the timed text. + * @opt_param string timedTextTrackName + * The timed text track name. + * @return Google_Service_Drive_DriveFile + */ + public function patch($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Drive_DriveFile"); + } + + /** + * Set the file's updated time to the current server time. (files.touch) + * + * @param string $fileId + * The ID of the file to update. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_DriveFile + */ + public function touch($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('touch', array($params), "Google_Service_Drive_DriveFile"); + } + + /** + * Moves a file to the trash. (files.trash) + * + * @param string $fileId + * The ID of the file to trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_DriveFile + */ + public function trash($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('trash', array($params), "Google_Service_Drive_DriveFile"); + } + + /** + * Restores a file from the trash. (files.untrash) + * + * @param string $fileId + * The ID of the file to untrash. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_DriveFile + */ + public function untrash($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('untrash', array($params), "Google_Service_Drive_DriveFile"); + } + + /** + * Updates file metadata and/or content. (files.update) + * + * @param string $fileId + * The ID of the file to update. + * @param Google_DriveFile $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string addParents + * Comma-separated list of parent IDs to add. + * @opt_param bool updateViewedDate + * Whether to update the view date after successfully updating the file. + * @opt_param string removeParents + * Comma-separated list of parent IDs to remove. + * @opt_param bool setModifiedDate + * Whether to set the modified date with the supplied modified date. + * @opt_param bool convert + * Whether to convert this file to the corresponding Google Docs format. + * @opt_param bool useContentAsIndexableText + * Whether to use the content as indexable text. + * @opt_param string ocrLanguage + * If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes. + * @opt_param bool pinned + * Whether to pin the new revision. + * @opt_param bool newRevision + * Whether a blob upload should create a new revision. If false, the blob data in the current head + * revision is replaced. If not set or true, a new blob is created as head revision, and previous + * revisions are preserved (causing increased use of the user's data storage quota). + * @opt_param bool ocr + * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. + * @opt_param string timedTextLanguage + * The language of the timed text. + * @opt_param string timedTextTrackName + * The timed text track name. + * @return Google_Service_Drive_DriveFile + */ + public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Drive_DriveFile"); + } + + /** + * Subscribe to changes on a file (files.watch) + * + * @param string $fileId + * The ID for the file in question. + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool updateViewedDate + * Whether to update the view date after successfully retrieving the file. + * @opt_param string projection + * This parameter is deprecated and has no function. + * @return Google_Service_Drive_Channel + */ + public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Drive_Channel"); + } } /** @@ -1937,69 +1921,67 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource * $parents = $driveService->parents; * */ -class Google_Service_Drive_Parents_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Parents_Resource extends Google_Service_Resource { - /** - * Removes a parent from a file. (parents.delete) - * - * @param string $fileId - * The ID of the file. - * @param string $parentId - * The ID of the parent. - * @param array $optParams Optional parameters. - */ - public function delete($fileId, $parentId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'parentId' => $parentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a specific parent reference. (parents.get) - * - * @param string $fileId - * The ID of the file. - * @param string $parentId - * The ID of the parent. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_ParentReference - */ - public function get($fileId, $parentId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'parentId' => $parentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_ParentReference"); - } - /** - * Adds a parent folder for a file. (parents.insert) - * - * @param string $fileId - * The ID of the file. - * @param Google_ParentReference $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_ParentReference - */ - public function insert($fileId, Google_Service_Drive_ParentReference $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_ParentReference"); - } - /** - * Lists a file's parents. (parents.listParents) - * - * @param string $fileId - * The ID of the file. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_ParentList - */ - public function listParents($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_ParentList"); - } + /** + * Removes a parent from a file. (parents.delete) + * + * @param string $fileId + * The ID of the file. + * @param string $parentId + * The ID of the parent. + * @param array $optParams Optional parameters. + */ + public function delete($fileId, $parentId, $optParams = array()) { + $params = array('fileId' => $fileId, 'parentId' => $parentId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a specific parent reference. (parents.get) + * + * @param string $fileId + * The ID of the file. + * @param string $parentId + * The ID of the parent. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_ParentReference + */ + public function get($fileId, $parentId, $optParams = array()) { + $params = array('fileId' => $fileId, 'parentId' => $parentId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_ParentReference"); + } + + /** + * Adds a parent folder for a file. (parents.insert) + * + * @param string $fileId + * The ID of the file. + * @param Google_ParentReference $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_ParentReference + */ + public function insert($fileId, Google_Service_Drive_ParentReference $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Drive_ParentReference"); + } + + /** + * Lists a file's parents. (parents.listParents) + * + * @param string $fileId + * The ID of the file. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_ParentList + */ + public function listParents($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Drive_ParentList"); + } } /** @@ -2010,130 +1992,128 @@ class Google_Service_Drive_Parents_Resource extends Google_Service_Resource * $permissions = $driveService->permissions; * */ -class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource { - /** - * Deletes a permission from a file. (permissions.delete) - * - * @param string $fileId - * The ID for the file. - * @param string $permissionId - * The ID for the permission. - * @param array $optParams Optional parameters. - */ - public function delete($fileId, $permissionId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'permissionId' => $permissionId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a permission by ID. (permissions.get) - * - * @param string $fileId - * The ID for the file. - * @param string $permissionId - * The ID for the permission. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Permission - */ - public function get($fileId, $permissionId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'permissionId' => $permissionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Permission"); - } - /** - * Returns the permission ID for an email address. (permissions.getIdForEmail) - * - * @param string $email - * The email address for which to return a permission ID - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_PermissionId - */ - public function getIdForEmail($email, $optParams = array()) - { - $params = array('email' => $email); - $params = array_merge($params, $optParams); - return $this->call('getIdForEmail', array($params), "Google_Service_Drive_PermissionId"); - } - /** - * Inserts a permission for a file. (permissions.insert) - * - * @param string $fileId - * The ID for the file. - * @param Google_Permission $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string emailMessage - * A custom message to include in notification emails. - * @opt_param bool sendNotificationEmails - * Whether to send notification emails when sharing to users or groups. This parameter is ignored - * and an email is sent if the role is owner. - * @return Google_Service_Drive_Permission - */ - public function insert($fileId, Google_Service_Drive_Permission $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_Permission"); - } - /** - * Lists a file's permissions. (permissions.listPermissions) - * - * @param string $fileId - * The ID for the file. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_PermissionList - */ - public function listPermissions($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_PermissionList"); - } - /** - * Updates a permission. This method supports patch semantics. - * (permissions.patch) - * - * @param string $fileId - * The ID for the file. - * @param string $permissionId - * The ID for the permission. - * @param Google_Permission $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool transferOwnership - * Whether changing a role to 'owner' should also downgrade the current owners to writers. - * @return Google_Service_Drive_Permission - */ - public function patch($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_Permission"); - } - /** - * Updates a permission. (permissions.update) - * - * @param string $fileId - * The ID for the file. - * @param string $permissionId - * The ID for the permission. - * @param Google_Permission $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool transferOwnership - * Whether changing a role to 'owner' should also downgrade the current owners to writers. - * @return Google_Service_Drive_Permission - */ - public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_Permission"); - } + /** + * Deletes a permission from a file. (permissions.delete) + * + * @param string $fileId + * The ID for the file. + * @param string $permissionId + * The ID for the permission. + * @param array $optParams Optional parameters. + */ + public function delete($fileId, $permissionId, $optParams = array()) { + $params = array('fileId' => $fileId, 'permissionId' => $permissionId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a permission by ID. (permissions.get) + * + * @param string $fileId + * The ID for the file. + * @param string $permissionId + * The ID for the permission. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_Permission + */ + public function get($fileId, $permissionId, $optParams = array()) { + $params = array('fileId' => $fileId, 'permissionId' => $permissionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_Permission"); + } + + /** + * Returns the permission ID for an email address. (permissions.getIdForEmail) + * + * @param string $email + * The email address for which to return a permission ID + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_PermissionId + */ + public function getIdForEmail($email, $optParams = array()) { + $params = array('email' => $email); + $params = array_merge($params, $optParams); + return $this->call('getIdForEmail', array($params), "Google_Service_Drive_PermissionId"); + } + + /** + * Inserts a permission for a file. (permissions.insert) + * + * @param string $fileId + * The ID for the file. + * @param Google_Permission $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string emailMessage + * A custom message to include in notification emails. + * @opt_param bool sendNotificationEmails + * Whether to send notification emails when sharing to users or groups. This parameter is ignored + * and an email is sent if the role is owner. + * @return Google_Service_Drive_Permission + */ + public function insert($fileId, Google_Service_Drive_Permission $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Drive_Permission"); + } + + /** + * Lists a file's permissions. (permissions.listPermissions) + * + * @param string $fileId + * The ID for the file. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_PermissionList + */ + public function listPermissions($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Drive_PermissionList"); + } + + /** + * Updates a permission. This method supports patch semantics. + * (permissions.patch) + * + * @param string $fileId + * The ID for the file. + * @param string $permissionId + * The ID for the permission. + * @param Google_Permission $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool transferOwnership + * Whether changing a role to 'owner' should also downgrade the current owners to writers. + * @return Google_Service_Drive_Permission + */ + public function patch($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Drive_Permission"); + } + + /** + * Updates a permission. (permissions.update) + * + * @param string $fileId + * The ID for the file. + * @param string $permissionId + * The ID for the permission. + * @param Google_Permission $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool transferOwnership + * Whether changing a role to 'owner' should also downgrade the current owners to writers. + * @return Google_Service_Drive_Permission + */ + public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Drive_Permission"); + } } /** @@ -2144,115 +2124,113 @@ class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource * $properties = $driveService->properties; * */ -class Google_Service_Drive_Properties_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Properties_Resource extends Google_Service_Resource { - /** - * Deletes a property. (properties.delete) - * - * @param string $fileId - * The ID of the file. - * @param string $propertyKey - * The key of the property. - * @param array $optParams Optional parameters. - * - * @opt_param string visibility - * The visibility of the property. - */ - public function delete($fileId, $propertyKey, $optParams = array()) - { - $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a property by its key. (properties.get) - * - * @param string $fileId - * The ID of the file. - * @param string $propertyKey - * The key of the property. - * @param array $optParams Optional parameters. - * - * @opt_param string visibility - * The visibility of the property. - * @return Google_Service_Drive_Property - */ - public function get($fileId, $propertyKey, $optParams = array()) - { - $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Property"); - } - /** - * Adds a property to a file. (properties.insert) - * - * @param string $fileId - * The ID of the file. - * @param Google_Property $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Property - */ - public function insert($fileId, Google_Service_Drive_Property $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_Property"); - } - /** - * Lists a file's properties. (properties.listProperties) - * - * @param string $fileId - * The ID of the file. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_PropertyList - */ - public function listProperties($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_PropertyList"); - } - /** - * Updates a property. This method supports patch semantics. (properties.patch) - * - * @param string $fileId - * The ID of the file. - * @param string $propertyKey - * The key of the property. - * @param Google_Property $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string visibility - * The visibility of the property. - * @return Google_Service_Drive_Property - */ - public function patch($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_Property"); - } - /** - * Updates a property. (properties.update) - * - * @param string $fileId - * The ID of the file. - * @param string $propertyKey - * The key of the property. - * @param Google_Property $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string visibility - * The visibility of the property. - * @return Google_Service_Drive_Property - */ - public function update($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_Property"); - } + /** + * Deletes a property. (properties.delete) + * + * @param string $fileId + * The ID of the file. + * @param string $propertyKey + * The key of the property. + * @param array $optParams Optional parameters. + * + * @opt_param string visibility + * The visibility of the property. + */ + public function delete($fileId, $propertyKey, $optParams = array()) { + $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a property by its key. (properties.get) + * + * @param string $fileId + * The ID of the file. + * @param string $propertyKey + * The key of the property. + * @param array $optParams Optional parameters. + * + * @opt_param string visibility + * The visibility of the property. + * @return Google_Service_Drive_Property + */ + public function get($fileId, $propertyKey, $optParams = array()) { + $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_Property"); + } + + /** + * Adds a property to a file. (properties.insert) + * + * @param string $fileId + * The ID of the file. + * @param Google_Property $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_Property + */ + public function insert($fileId, Google_Service_Drive_Property $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Drive_Property"); + } + + /** + * Lists a file's properties. (properties.listProperties) + * + * @param string $fileId + * The ID of the file. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_PropertyList + */ + public function listProperties($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Drive_PropertyList"); + } + + /** + * Updates a property. This method supports patch semantics. (properties.patch) + * + * @param string $fileId + * The ID of the file. + * @param string $propertyKey + * The key of the property. + * @param Google_Property $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string visibility + * The visibility of the property. + * @return Google_Service_Drive_Property + */ + public function patch($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Drive_Property"); + } + + /** + * Updates a property. (properties.update) + * + * @param string $fileId + * The ID of the file. + * @param string $propertyKey + * The key of the property. + * @param Google_Property $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string visibility + * The visibility of the property. + * @return Google_Service_Drive_Property + */ + public function update($fileId, $propertyKey, Google_Service_Drive_Property $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'propertyKey' => $propertyKey, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Drive_Property"); + } } /** @@ -2263,48 +2241,46 @@ class Google_Service_Drive_Properties_Resource extends Google_Service_Resource * $realtime = $driveService->realtime; * */ -class Google_Service_Drive_Realtime_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Realtime_Resource extends Google_Service_Resource { - /** - * Exports the contents of the Realtime API data model associated with this file - * as JSON. (realtime.get) - * - * @param string $fileId - * The ID of the file that the Realtime API data model is associated with. - * @param array $optParams Optional parameters. - * - * @opt_param int revision - * The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty - * data model) and are incremented with each change. If this parameter is excluded, the most recent - * data model will be returned. - */ - public function get($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params)); - } - /** - * Overwrites the Realtime API data model associated with this file with the - * provided JSON data model. (realtime.update) - * - * @param string $fileId - * The ID of the file that the Realtime API data model is associated with. - * @param array $optParams Optional parameters. - * - * @opt_param string baseRevision - * The revision of the model to diff the uploaded model against. If set, the uploaded model is - * diffed against the provided revision and those differences are merged with any changes made to - * the model after the provided revision. If not set, the uploaded model replaces the current model - * on the server. - */ - public function update($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('update', array($params)); - } + /** + * Exports the contents of the Realtime API data model associated with this file + * as JSON. (realtime.get) + * + * @param string $fileId + * The ID of the file that the Realtime API data model is associated with. + * @param array $optParams Optional parameters. + * + * @opt_param int revision + * The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty + * data model) and are incremented with each change. If this parameter is excluded, the most recent + * data model will be returned. + */ + public function get($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params)); + } + + /** + * Overwrites the Realtime API data model associated with this file with the + * provided JSON data model. (realtime.update) + * + * @param string $fileId + * The ID of the file that the Realtime API data model is associated with. + * @param array $optParams Optional parameters. + * + * @opt_param string baseRevision + * The revision of the model to diff the uploaded model against. If set, the uploaded model is + * diffed against the provided revision and those differences are merged with any changes made to + * the model after the provided revision. If not set, the uploaded model replaces the current model + * on the server. + */ + public function update($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('update', array($params)); + } } /** @@ -2315,127 +2291,125 @@ class Google_Service_Drive_Realtime_Resource extends Google_Service_Resource * $replies = $driveService->replies; * */ -class Google_Service_Drive_Replies_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Replies_Resource extends Google_Service_Resource { - /** - * Deletes a reply. (replies.delete) - * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param string $replyId - * The ID of the reply. - * @param array $optParams Optional parameters. - */ - public function delete($fileId, $commentId, $replyId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a reply. (replies.get) - * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param string $replyId - * The ID of the reply. - * @param array $optParams Optional parameters. - * - * @opt_param bool includeDeleted - * If set, this will succeed when retrieving a deleted reply. - * @return Google_Service_Drive_CommentReply - */ - public function get($fileId, $commentId, $replyId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_CommentReply"); - } - /** - * Creates a new reply to the given comment. (replies.insert) - * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param Google_CommentReply $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_CommentReply - */ - public function insert($fileId, $commentId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Drive_CommentReply"); - } - /** - * Lists all of the replies to a comment. (replies.listReplies) - * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param bool includeDeleted - * If set, all replies, including deleted replies (with content stripped) will be returned. - * @opt_param int maxResults - * The maximum number of replies to include in the response, used for paging. - * @return Google_Service_Drive_CommentReplyList - */ - public function listReplies($fileId, $commentId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_CommentReplyList"); - } - /** - * Updates an existing reply. This method supports patch semantics. - * (replies.patch) - * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param string $replyId - * The ID of the reply. - * @param Google_CommentReply $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_CommentReply - */ - public function patch($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_CommentReply"); - } - /** - * Updates an existing reply. (replies.update) - * - * @param string $fileId - * The ID of the file. - * @param string $commentId - * The ID of the comment. - * @param string $replyId - * The ID of the reply. - * @param Google_CommentReply $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_CommentReply - */ - public function update($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_CommentReply"); - } + /** + * Deletes a reply. (replies.delete) + * + * @param string $fileId + * The ID of the file. + * @param string $commentId + * The ID of the comment. + * @param string $replyId + * The ID of the reply. + * @param array $optParams Optional parameters. + */ + public function delete($fileId, $commentId, $replyId, $optParams = array()) { + $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a reply. (replies.get) + * + * @param string $fileId + * The ID of the file. + * @param string $commentId + * The ID of the comment. + * @param string $replyId + * The ID of the reply. + * @param array $optParams Optional parameters. + * + * @opt_param bool includeDeleted + * If set, this will succeed when retrieving a deleted reply. + * @return Google_Service_Drive_CommentReply + */ + public function get($fileId, $commentId, $replyId, $optParams = array()) { + $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_CommentReply"); + } + + /** + * Creates a new reply to the given comment. (replies.insert) + * + * @param string $fileId + * The ID of the file. + * @param string $commentId + * The ID of the comment. + * @param Google_CommentReply $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_CommentReply + */ + public function insert($fileId, $commentId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Drive_CommentReply"); + } + + /** + * Lists all of the replies to a comment. (replies.listReplies) + * + * @param string $fileId + * The ID of the file. + * @param string $commentId + * The ID of the comment. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param bool includeDeleted + * If set, all replies, including deleted replies (with content stripped) will be returned. + * @opt_param int maxResults + * The maximum number of replies to include in the response, used for paging. + * @return Google_Service_Drive_CommentReplyList + */ + public function listReplies($fileId, $commentId, $optParams = array()) { + $params = array('fileId' => $fileId, 'commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Drive_CommentReplyList"); + } + + /** + * Updates an existing reply. This method supports patch semantics. + * (replies.patch) + * + * @param string $fileId + * The ID of the file. + * @param string $commentId + * The ID of the comment. + * @param string $replyId + * The ID of the reply. + * @param Google_CommentReply $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_CommentReply + */ + public function patch($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Drive_CommentReply"); + } + + /** + * Updates an existing reply. (replies.update) + * + * @param string $fileId + * The ID of the file. + * @param string $commentId + * The ID of the comment. + * @param string $replyId + * The ID of the reply. + * @param Google_CommentReply $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_CommentReply + */ + public function update($fileId, $commentId, $replyId, Google_Service_Drive_CommentReply $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Drive_CommentReply"); + } } /** @@ -2446,3537 +2420,2902 @@ class Google_Service_Drive_Replies_Resource extends Google_Service_Resource * $revisions = $driveService->revisions; * */ -class Google_Service_Drive_Revisions_Resource extends Google_Service_Resource -{ +class Google_Service_Drive_Revisions_Resource extends Google_Service_Resource { - /** - * Removes a revision. (revisions.delete) - * - * @param string $fileId - * The ID of the file. - * @param string $revisionId - * The ID of the revision. - * @param array $optParams Optional parameters. - */ - public function delete($fileId, $revisionId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'revisionId' => $revisionId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a specific revision. (revisions.get) - * - * @param string $fileId - * The ID of the file. - * @param string $revisionId - * The ID of the revision. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Revision - */ - public function get($fileId, $revisionId, $optParams = array()) - { - $params = array('fileId' => $fileId, 'revisionId' => $revisionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Drive_Revision"); - } - /** - * Lists a file's revisions. (revisions.listRevisions) - * - * @param string $fileId - * The ID of the file. - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_RevisionList - */ - public function listRevisions($fileId, $optParams = array()) - { - $params = array('fileId' => $fileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Drive_RevisionList"); - } - /** - * Updates a revision. This method supports patch semantics. (revisions.patch) - * - * @param string $fileId - * The ID for the file. - * @param string $revisionId - * The ID for the revision. - * @param Google_Revision $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Revision - */ - public function patch($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Drive_Revision"); - } - /** - * Updates a revision. (revisions.update) - * - * @param string $fileId - * The ID for the file. - * @param string $revisionId - * The ID for the revision. - * @param Google_Revision $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Drive_Revision - */ - public function update($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array()) - { - $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Drive_Revision"); - } + /** + * Removes a revision. (revisions.delete) + * + * @param string $fileId + * The ID of the file. + * @param string $revisionId + * The ID of the revision. + * @param array $optParams Optional parameters. + */ + public function delete($fileId, $revisionId, $optParams = array()) { + $params = array('fileId' => $fileId, 'revisionId' => $revisionId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a specific revision. (revisions.get) + * + * @param string $fileId + * The ID of the file. + * @param string $revisionId + * The ID of the revision. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_Revision + */ + public function get($fileId, $revisionId, $optParams = array()) { + $params = array('fileId' => $fileId, 'revisionId' => $revisionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Drive_Revision"); + } + + /** + * Lists a file's revisions. (revisions.listRevisions) + * + * @param string $fileId + * The ID of the file. + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_RevisionList + */ + public function listRevisions($fileId, $optParams = array()) { + $params = array('fileId' => $fileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Drive_RevisionList"); + } + + /** + * Updates a revision. This method supports patch semantics. (revisions.patch) + * + * @param string $fileId + * The ID for the file. + * @param string $revisionId + * The ID for the revision. + * @param Google_Revision $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_Revision + */ + public function patch($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Drive_Revision"); + } + + /** + * Updates a revision. (revisions.update) + * + * @param string $fileId + * The ID for the file. + * @param string $revisionId + * The ID for the revision. + * @param Google_Revision $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Drive_Revision + */ + public function update($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array()) { + $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Drive_Revision"); + } } +class Google_Service_Drive_About extends Google_Collection { + protected $additionalRoleInfoType = 'Google_Service_Drive_AboutAdditionalRoleInfo'; + protected $additionalRoleInfoDataType = 'array'; + public $domainSharingPolicy; + public $etag; + protected $exportFormatsType = 'Google_Service_Drive_AboutExportFormats'; + protected $exportFormatsDataType = 'array'; + protected $featuresType = 'Google_Service_Drive_AboutFeatures'; + protected $featuresDataType = 'array'; + protected $importFormatsType = 'Google_Service_Drive_AboutImportFormats'; + protected $importFormatsDataType = 'array'; + public $isCurrentAppInstalled; + public $kind; + public $languageCode; + public $largestChangeId; + protected $maxUploadSizesType = 'Google_Service_Drive_AboutMaxUploadSizes'; + protected $maxUploadSizesDataType = 'array'; + public $name; + public $permissionId; + protected $quotaBytesByServiceType = 'Google_Service_Drive_AboutQuotaBytesByService'; + protected $quotaBytesByServiceDataType = 'array'; + public $quotaBytesTotal; + public $quotaBytesUsed; + public $quotaBytesUsedAggregate; + public $quotaBytesUsedInTrash; + public $quotaType; + public $remainingChangeIds; + public $rootFolderId; + public $selfLink; + protected $userType = 'Google_Service_Drive_User'; + protected $userDataType = ''; + public function setAdditionalRoleInfo($additionalRoleInfo) { + $this->additionalRoleInfo = $additionalRoleInfo; + } -class Google_Service_Drive_About extends Google_Collection -{ - protected $additionalRoleInfoType = 'Google_Service_Drive_AboutAdditionalRoleInfo'; - protected $additionalRoleInfoDataType = 'array'; - public $domainSharingPolicy; - public $etag; - protected $exportFormatsType = 'Google_Service_Drive_AboutExportFormats'; - protected $exportFormatsDataType = 'array'; - protected $featuresType = 'Google_Service_Drive_AboutFeatures'; - protected $featuresDataType = 'array'; - protected $importFormatsType = 'Google_Service_Drive_AboutImportFormats'; - protected $importFormatsDataType = 'array'; - public $isCurrentAppInstalled; - public $kind; - public $languageCode; - public $largestChangeId; - protected $maxUploadSizesType = 'Google_Service_Drive_AboutMaxUploadSizes'; - protected $maxUploadSizesDataType = 'array'; - public $name; - public $permissionId; - protected $quotaBytesByServiceType = 'Google_Service_Drive_AboutQuotaBytesByService'; - protected $quotaBytesByServiceDataType = 'array'; - public $quotaBytesTotal; - public $quotaBytesUsed; - public $quotaBytesUsedAggregate; - public $quotaBytesUsedInTrash; - public $quotaType; - public $remainingChangeIds; - public $rootFolderId; - public $selfLink; - protected $userType = 'Google_Service_Drive_User'; - protected $userDataType = ''; + public function getAdditionalRoleInfo() { + return $this->additionalRoleInfo; + } - public function setAdditionalRoleInfo($additionalRoleInfo) - { - $this->additionalRoleInfo = $additionalRoleInfo; - } + public function setDomainSharingPolicy($domainSharingPolicy) { + $this->domainSharingPolicy = $domainSharingPolicy; + } - public function getAdditionalRoleInfo() - { - return $this->additionalRoleInfo; - } + public function getDomainSharingPolicy() { + return $this->domainSharingPolicy; + } - public function setDomainSharingPolicy($domainSharingPolicy) - { - $this->domainSharingPolicy = $domainSharingPolicy; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getDomainSharingPolicy() - { - return $this->domainSharingPolicy; - } + public function getEtag() { + return $this->etag; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setExportFormats($exportFormats) { + $this->exportFormats = $exportFormats; + } - public function getEtag() - { - return $this->etag; - } + public function getExportFormats() { + return $this->exportFormats; + } - public function setExportFormats($exportFormats) - { - $this->exportFormats = $exportFormats; - } + public function setFeatures($features) { + $this->features = $features; + } - public function getExportFormats() - { - return $this->exportFormats; - } + public function getFeatures() { + return $this->features; + } - public function setFeatures($features) - { - $this->features = $features; - } + public function setImportFormats($importFormats) { + $this->importFormats = $importFormats; + } - public function getFeatures() - { - return $this->features; - } + public function getImportFormats() { + return $this->importFormats; + } - public function setImportFormats($importFormats) - { - $this->importFormats = $importFormats; - } + public function setIsCurrentAppInstalled($isCurrentAppInstalled) { + $this->isCurrentAppInstalled = $isCurrentAppInstalled; + } - public function getImportFormats() - { - return $this->importFormats; - } + public function getIsCurrentAppInstalled() { + return $this->isCurrentAppInstalled; + } - public function setIsCurrentAppInstalled($isCurrentAppInstalled) - { - $this->isCurrentAppInstalled = $isCurrentAppInstalled; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getIsCurrentAppInstalled() - { - return $this->isCurrentAppInstalled; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setLanguageCode($languageCode) { + $this->languageCode = $languageCode; + } - public function getKind() - { - return $this->kind; - } + public function getLanguageCode() { + return $this->languageCode; + } - public function setLanguageCode($languageCode) - { - $this->languageCode = $languageCode; - } + public function setLargestChangeId($largestChangeId) { + $this->largestChangeId = $largestChangeId; + } - public function getLanguageCode() - { - return $this->languageCode; - } + public function getLargestChangeId() { + return $this->largestChangeId; + } - public function setLargestChangeId($largestChangeId) - { - $this->largestChangeId = $largestChangeId; - } + public function setMaxUploadSizes($maxUploadSizes) { + $this->maxUploadSizes = $maxUploadSizes; + } - public function getLargestChangeId() - { - return $this->largestChangeId; - } + public function getMaxUploadSizes() { + return $this->maxUploadSizes; + } - public function setMaxUploadSizes($maxUploadSizes) - { - $this->maxUploadSizes = $maxUploadSizes; - } + public function setName($name) { + $this->name = $name; + } - public function getMaxUploadSizes() - { - return $this->maxUploadSizes; - } + public function getName() { + return $this->name; + } - public function setName($name) - { - $this->name = $name; - } + public function setPermissionId($permissionId) { + $this->permissionId = $permissionId; + } - public function getName() - { - return $this->name; - } + public function getPermissionId() { + return $this->permissionId; + } - public function setPermissionId($permissionId) - { - $this->permissionId = $permissionId; - } + public function setQuotaBytesByService($quotaBytesByService) { + $this->quotaBytesByService = $quotaBytesByService; + } - public function getPermissionId() - { - return $this->permissionId; - } + public function getQuotaBytesByService() { + return $this->quotaBytesByService; + } - public function setQuotaBytesByService($quotaBytesByService) - { - $this->quotaBytesByService = $quotaBytesByService; - } + public function setQuotaBytesTotal($quotaBytesTotal) { + $this->quotaBytesTotal = $quotaBytesTotal; + } - public function getQuotaBytesByService() - { - return $this->quotaBytesByService; - } + public function getQuotaBytesTotal() { + return $this->quotaBytesTotal; + } - public function setQuotaBytesTotal($quotaBytesTotal) - { - $this->quotaBytesTotal = $quotaBytesTotal; - } + public function setQuotaBytesUsed($quotaBytesUsed) { + $this->quotaBytesUsed = $quotaBytesUsed; + } - public function getQuotaBytesTotal() - { - return $this->quotaBytesTotal; - } + public function getQuotaBytesUsed() { + return $this->quotaBytesUsed; + } - public function setQuotaBytesUsed($quotaBytesUsed) - { - $this->quotaBytesUsed = $quotaBytesUsed; - } + public function setQuotaBytesUsedAggregate($quotaBytesUsedAggregate) { + $this->quotaBytesUsedAggregate = $quotaBytesUsedAggregate; + } - public function getQuotaBytesUsed() - { - return $this->quotaBytesUsed; - } + public function getQuotaBytesUsedAggregate() { + return $this->quotaBytesUsedAggregate; + } - public function setQuotaBytesUsedAggregate($quotaBytesUsedAggregate) - { - $this->quotaBytesUsedAggregate = $quotaBytesUsedAggregate; - } + public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash) { + $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash; + } - public function getQuotaBytesUsedAggregate() - { - return $this->quotaBytesUsedAggregate; - } + public function getQuotaBytesUsedInTrash() { + return $this->quotaBytesUsedInTrash; + } - public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash) - { - $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash; - } + public function setQuotaType($quotaType) { + $this->quotaType = $quotaType; + } - public function getQuotaBytesUsedInTrash() - { - return $this->quotaBytesUsedInTrash; - } + public function getQuotaType() { + return $this->quotaType; + } - public function setQuotaType($quotaType) - { - $this->quotaType = $quotaType; - } + public function setRemainingChangeIds($remainingChangeIds) { + $this->remainingChangeIds = $remainingChangeIds; + } - public function getQuotaType() - { - return $this->quotaType; - } + public function getRemainingChangeIds() { + return $this->remainingChangeIds; + } - public function setRemainingChangeIds($remainingChangeIds) - { - $this->remainingChangeIds = $remainingChangeIds; - } + public function setRootFolderId($rootFolderId) { + $this->rootFolderId = $rootFolderId; + } - public function getRemainingChangeIds() - { - return $this->remainingChangeIds; - } + public function getRootFolderId() { + return $this->rootFolderId; + } - public function setRootFolderId($rootFolderId) - { - $this->rootFolderId = $rootFolderId; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getRootFolderId() - { - return $this->rootFolderId; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setUser(Google_Service_Drive_User $user) { + $this->user = $user; + } - public function getSelfLink() - { - return $this->selfLink; - } - - public function setUser(Google_Service_Drive_User $user) - { - $this->user = $user; - } - - public function getUser() - { - return $this->user; - } + public function getUser() { + return $this->user; + } } -class Google_Service_Drive_AboutAdditionalRoleInfo extends Google_Collection -{ - protected $roleSetsType = 'Google_Service_Drive_AboutAdditionalRoleInfoRoleSets'; - protected $roleSetsDataType = 'array'; - public $type; +class Google_Service_Drive_AboutAdditionalRoleInfo extends Google_Collection { + protected $roleSetsType = 'Google_Service_Drive_AboutAdditionalRoleInfoRoleSets'; + protected $roleSetsDataType = 'array'; + public $type; - public function setRoleSets($roleSets) - { - $this->roleSets = $roleSets; - } + public function setRoleSets($roleSets) { + $this->roleSets = $roleSets; + } - public function getRoleSets() - { - return $this->roleSets; - } + public function getRoleSets() { + return $this->roleSets; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets extends Google_Collection -{ - public $additionalRoles; - public $primaryRole; +class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets extends Google_Collection { + public $additionalRoles; + public $primaryRole; - public function setAdditionalRoles($additionalRoles) - { - $this->additionalRoles = $additionalRoles; - } + public function setAdditionalRoles($additionalRoles) { + $this->additionalRoles = $additionalRoles; + } - public function getAdditionalRoles() - { - return $this->additionalRoles; - } + public function getAdditionalRoles() { + return $this->additionalRoles; + } - public function setPrimaryRole($primaryRole) - { - $this->primaryRole = $primaryRole; - } + public function setPrimaryRole($primaryRole) { + $this->primaryRole = $primaryRole; + } - public function getPrimaryRole() - { - return $this->primaryRole; - } + public function getPrimaryRole() { + return $this->primaryRole; + } } -class Google_Service_Drive_AboutExportFormats extends Google_Collection -{ - public $source; - public $targets; +class Google_Service_Drive_AboutExportFormats extends Google_Collection { + public $source; + public $targets; - public function setSource($source) - { - $this->source = $source; - } + public function setSource($source) { + $this->source = $source; + } - public function getSource() - { - return $this->source; - } + public function getSource() { + return $this->source; + } - public function setTargets($targets) - { - $this->targets = $targets; - } + public function setTargets($targets) { + $this->targets = $targets; + } - public function getTargets() - { - return $this->targets; - } + public function getTargets() { + return $this->targets; + } } -class Google_Service_Drive_AboutFeatures extends Google_Model -{ - public $featureName; - public $featureRate; +class Google_Service_Drive_AboutFeatures extends Google_Model { + public $featureName; + public $featureRate; - public function setFeatureName($featureName) - { - $this->featureName = $featureName; - } + public function setFeatureName($featureName) { + $this->featureName = $featureName; + } - public function getFeatureName() - { - return $this->featureName; - } + public function getFeatureName() { + return $this->featureName; + } - public function setFeatureRate($featureRate) - { - $this->featureRate = $featureRate; - } + public function setFeatureRate($featureRate) { + $this->featureRate = $featureRate; + } - public function getFeatureRate() - { - return $this->featureRate; - } + public function getFeatureRate() { + return $this->featureRate; + } } -class Google_Service_Drive_AboutImportFormats extends Google_Collection -{ - public $source; - public $targets; +class Google_Service_Drive_AboutImportFormats extends Google_Collection { + public $source; + public $targets; - public function setSource($source) - { - $this->source = $source; - } + public function setSource($source) { + $this->source = $source; + } - public function getSource() - { - return $this->source; - } + public function getSource() { + return $this->source; + } - public function setTargets($targets) - { - $this->targets = $targets; - } + public function setTargets($targets) { + $this->targets = $targets; + } - public function getTargets() - { - return $this->targets; - } + public function getTargets() { + return $this->targets; + } } -class Google_Service_Drive_AboutMaxUploadSizes extends Google_Model -{ - public $size; - public $type; +class Google_Service_Drive_AboutMaxUploadSizes extends Google_Model { + public $size; + public $type; - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Drive_AboutQuotaBytesByService extends Google_Model -{ - public $bytesUsed; - public $serviceName; +class Google_Service_Drive_AboutQuotaBytesByService extends Google_Model { + public $bytesUsed; + public $serviceName; - public function setBytesUsed($bytesUsed) - { - $this->bytesUsed = $bytesUsed; - } + public function setBytesUsed($bytesUsed) { + $this->bytesUsed = $bytesUsed; + } - public function getBytesUsed() - { - return $this->bytesUsed; - } + public function getBytesUsed() { + return $this->bytesUsed; + } - public function setServiceName($serviceName) - { - $this->serviceName = $serviceName; - } + public function setServiceName($serviceName) { + $this->serviceName = $serviceName; + } - public function getServiceName() - { - return $this->serviceName; - } + public function getServiceName() { + return $this->serviceName; + } } -class Google_Service_Drive_App extends Google_Collection -{ - public $authorized; - public $createInFolderTemplate; - public $createUrl; - public $hasDriveWideScope; - protected $iconsType = 'Google_Service_Drive_AppIcons'; - protected $iconsDataType = 'array'; - public $id; - public $installed; - public $kind; - public $longDescription; - public $name; - public $objectType; - public $openUrlTemplate; - public $primaryFileExtensions; - public $primaryMimeTypes; - public $productId; - public $productUrl; - public $secondaryFileExtensions; - public $secondaryMimeTypes; - public $shortDescription; - public $supportsCreate; - public $supportsImport; - public $supportsMultiOpen; - public $supportsOfflineCreate; - public $useByDefault; +class Google_Service_Drive_App extends Google_Collection { + public $authorized; + public $createInFolderTemplate; + public $createUrl; + public $hasDriveWideScope; + protected $iconsType = 'Google_Service_Drive_AppIcons'; + protected $iconsDataType = 'array'; + public $id; + public $installed; + public $kind; + public $longDescription; + public $name; + public $objectType; + public $openUrlTemplate; + public $primaryFileExtensions; + public $primaryMimeTypes; + public $productId; + public $productUrl; + public $secondaryFileExtensions; + public $secondaryMimeTypes; + public $shortDescription; + public $supportsCreate; + public $supportsImport; + public $supportsMultiOpen; + public $supportsOfflineCreate; + public $useByDefault; - public function setAuthorized($authorized) - { - $this->authorized = $authorized; - } + public function setAuthorized($authorized) { + $this->authorized = $authorized; + } - public function getAuthorized() - { - return $this->authorized; - } + public function getAuthorized() { + return $this->authorized; + } - public function setCreateInFolderTemplate($createInFolderTemplate) - { - $this->createInFolderTemplate = $createInFolderTemplate; - } + public function setCreateInFolderTemplate($createInFolderTemplate) { + $this->createInFolderTemplate = $createInFolderTemplate; + } - public function getCreateInFolderTemplate() - { - return $this->createInFolderTemplate; - } + public function getCreateInFolderTemplate() { + return $this->createInFolderTemplate; + } - public function setCreateUrl($createUrl) - { - $this->createUrl = $createUrl; - } + public function setCreateUrl($createUrl) { + $this->createUrl = $createUrl; + } - public function getCreateUrl() - { - return $this->createUrl; - } + public function getCreateUrl() { + return $this->createUrl; + } - public function setHasDriveWideScope($hasDriveWideScope) - { - $this->hasDriveWideScope = $hasDriveWideScope; - } + public function setHasDriveWideScope($hasDriveWideScope) { + $this->hasDriveWideScope = $hasDriveWideScope; + } - public function getHasDriveWideScope() - { - return $this->hasDriveWideScope; - } + public function getHasDriveWideScope() { + return $this->hasDriveWideScope; + } - public function setIcons($icons) - { - $this->icons = $icons; - } + public function setIcons($icons) { + $this->icons = $icons; + } - public function getIcons() - { - return $this->icons; - } + public function getIcons() { + return $this->icons; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setInstalled($installed) - { - $this->installed = $installed; - } + public function setInstalled($installed) { + $this->installed = $installed; + } - public function getInstalled() - { - return $this->installed; - } + public function getInstalled() { + return $this->installed; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLongDescription($longDescription) - { - $this->longDescription = $longDescription; - } + public function setLongDescription($longDescription) { + $this->longDescription = $longDescription; + } - public function getLongDescription() - { - return $this->longDescription; - } + public function getLongDescription() { + return $this->longDescription; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } + public function setObjectType($objectType) { + $this->objectType = $objectType; + } - public function getObjectType() - { - return $this->objectType; - } + public function getObjectType() { + return $this->objectType; + } - public function setOpenUrlTemplate($openUrlTemplate) - { - $this->openUrlTemplate = $openUrlTemplate; - } + public function setOpenUrlTemplate($openUrlTemplate) { + $this->openUrlTemplate = $openUrlTemplate; + } - public function getOpenUrlTemplate() - { - return $this->openUrlTemplate; - } + public function getOpenUrlTemplate() { + return $this->openUrlTemplate; + } - public function setPrimaryFileExtensions($primaryFileExtensions) - { - $this->primaryFileExtensions = $primaryFileExtensions; - } + public function setPrimaryFileExtensions($primaryFileExtensions) { + $this->primaryFileExtensions = $primaryFileExtensions; + } - public function getPrimaryFileExtensions() - { - return $this->primaryFileExtensions; - } + public function getPrimaryFileExtensions() { + return $this->primaryFileExtensions; + } - public function setPrimaryMimeTypes($primaryMimeTypes) - { - $this->primaryMimeTypes = $primaryMimeTypes; - } + public function setPrimaryMimeTypes($primaryMimeTypes) { + $this->primaryMimeTypes = $primaryMimeTypes; + } - public function getPrimaryMimeTypes() - { - return $this->primaryMimeTypes; - } + public function getPrimaryMimeTypes() { + return $this->primaryMimeTypes; + } - public function setProductId($productId) - { - $this->productId = $productId; - } + public function setProductId($productId) { + $this->productId = $productId; + } - public function getProductId() - { - return $this->productId; - } + public function getProductId() { + return $this->productId; + } - public function setProductUrl($productUrl) - { - $this->productUrl = $productUrl; - } + public function setProductUrl($productUrl) { + $this->productUrl = $productUrl; + } - public function getProductUrl() - { - return $this->productUrl; - } + public function getProductUrl() { + return $this->productUrl; + } - public function setSecondaryFileExtensions($secondaryFileExtensions) - { - $this->secondaryFileExtensions = $secondaryFileExtensions; - } + public function setSecondaryFileExtensions($secondaryFileExtensions) { + $this->secondaryFileExtensions = $secondaryFileExtensions; + } - public function getSecondaryFileExtensions() - { - return $this->secondaryFileExtensions; - } + public function getSecondaryFileExtensions() { + return $this->secondaryFileExtensions; + } - public function setSecondaryMimeTypes($secondaryMimeTypes) - { - $this->secondaryMimeTypes = $secondaryMimeTypes; - } + public function setSecondaryMimeTypes($secondaryMimeTypes) { + $this->secondaryMimeTypes = $secondaryMimeTypes; + } - public function getSecondaryMimeTypes() - { - return $this->secondaryMimeTypes; - } + public function getSecondaryMimeTypes() { + return $this->secondaryMimeTypes; + } - public function setShortDescription($shortDescription) - { - $this->shortDescription = $shortDescription; - } + public function setShortDescription($shortDescription) { + $this->shortDescription = $shortDescription; + } - public function getShortDescription() - { - return $this->shortDescription; - } + public function getShortDescription() { + return $this->shortDescription; + } - public function setSupportsCreate($supportsCreate) - { - $this->supportsCreate = $supportsCreate; - } + public function setSupportsCreate($supportsCreate) { + $this->supportsCreate = $supportsCreate; + } - public function getSupportsCreate() - { - return $this->supportsCreate; - } + public function getSupportsCreate() { + return $this->supportsCreate; + } - public function setSupportsImport($supportsImport) - { - $this->supportsImport = $supportsImport; - } + public function setSupportsImport($supportsImport) { + $this->supportsImport = $supportsImport; + } - public function getSupportsImport() - { - return $this->supportsImport; - } + public function getSupportsImport() { + return $this->supportsImport; + } - public function setSupportsMultiOpen($supportsMultiOpen) - { - $this->supportsMultiOpen = $supportsMultiOpen; - } + public function setSupportsMultiOpen($supportsMultiOpen) { + $this->supportsMultiOpen = $supportsMultiOpen; + } - public function getSupportsMultiOpen() - { - return $this->supportsMultiOpen; - } + public function getSupportsMultiOpen() { + return $this->supportsMultiOpen; + } - public function setSupportsOfflineCreate($supportsOfflineCreate) - { - $this->supportsOfflineCreate = $supportsOfflineCreate; - } + public function setSupportsOfflineCreate($supportsOfflineCreate) { + $this->supportsOfflineCreate = $supportsOfflineCreate; + } - public function getSupportsOfflineCreate() - { - return $this->supportsOfflineCreate; - } + public function getSupportsOfflineCreate() { + return $this->supportsOfflineCreate; + } - public function setUseByDefault($useByDefault) - { - $this->useByDefault = $useByDefault; - } + public function setUseByDefault($useByDefault) { + $this->useByDefault = $useByDefault; + } - public function getUseByDefault() - { - return $this->useByDefault; - } + public function getUseByDefault() { + return $this->useByDefault; + } } -class Google_Service_Drive_AppIcons extends Google_Model -{ - public $category; - public $iconUrl; - public $size; +class Google_Service_Drive_AppIcons extends Google_Model { + public $category; + public $iconUrl; + public $size; - public function setCategory($category) - { - $this->category = $category; - } + public function setCategory($category) { + $this->category = $category; + } - public function getCategory() - { - return $this->category; - } + public function getCategory() { + return $this->category; + } - public function setIconUrl($iconUrl) - { - $this->iconUrl = $iconUrl; - } + public function setIconUrl($iconUrl) { + $this->iconUrl = $iconUrl; + } - public function getIconUrl() - { - return $this->iconUrl; - } + public function getIconUrl() { + return $this->iconUrl; + } - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } } -class Google_Service_Drive_AppList extends Google_Collection -{ - public $defaultAppIds; - public $etag; - protected $itemsType = 'Google_Service_Drive_App'; - protected $itemsDataType = 'array'; - public $kind; - public $selfLink; +class Google_Service_Drive_AppList extends Google_Collection { + public $defaultAppIds; + public $etag; + protected $itemsType = 'Google_Service_Drive_App'; + protected $itemsDataType = 'array'; + public $kind; + public $selfLink; - public function setDefaultAppIds($defaultAppIds) - { - $this->defaultAppIds = $defaultAppIds; - } + public function setDefaultAppIds($defaultAppIds) { + $this->defaultAppIds = $defaultAppIds; + } - public function getDefaultAppIds() - { - return $this->defaultAppIds; - } + public function getDefaultAppIds() { + return $this->defaultAppIds; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_Change extends Google_Model -{ - public $deleted; - protected $fileType = 'Google_Service_Drive_DriveFile'; - protected $fileDataType = ''; - public $fileId; - public $id; - public $kind; - public $modificationDate; - public $selfLink; +class Google_Service_Drive_Change extends Google_Model { + public $deleted; + protected $fileType = 'Google_Service_Drive_DriveFile'; + protected $fileDataType = ''; + public $fileId; + public $id; + public $kind; + public $modificationDate; + public $selfLink; - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } + public function setDeleted($deleted) { + $this->deleted = $deleted; + } - public function getDeleted() - { - return $this->deleted; - } + public function getDeleted() { + return $this->deleted; + } - public function setFile(Google_Service_Drive_DriveFile $file) - { - $this->file = $file; - } + public function setFile(Google_Service_Drive_DriveFile $file) { + $this->file = $file; + } - public function getFile() - { - return $this->file; - } + public function getFile() { + return $this->file; + } - public function setFileId($fileId) - { - $this->fileId = $fileId; - } + public function setFileId($fileId) { + $this->fileId = $fileId; + } - public function getFileId() - { - return $this->fileId; - } + public function getFileId() { + return $this->fileId; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setModificationDate($modificationDate) - { - $this->modificationDate = $modificationDate; - } + public function setModificationDate($modificationDate) { + $this->modificationDate = $modificationDate; + } - public function getModificationDate() - { - return $this->modificationDate; - } + public function getModificationDate() { + return $this->modificationDate; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_ChangeList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Drive_Change'; - protected $itemsDataType = 'array'; - public $kind; - public $largestChangeId; - public $nextLink; - public $nextPageToken; - public $selfLink; +class Google_Service_Drive_ChangeList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Drive_Change'; + protected $itemsDataType = 'array'; + public $kind; + public $largestChangeId; + public $nextLink; + public $nextPageToken; + public $selfLink; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLargestChangeId($largestChangeId) - { - $this->largestChangeId = $largestChangeId; - } + public function setLargestChangeId($largestChangeId) { + $this->largestChangeId = $largestChangeId; + } - public function getLargestChangeId() - { - return $this->largestChangeId; - } + public function getLargestChangeId() { + return $this->largestChangeId; + } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } - public function getNextLink() - { - return $this->nextLink; - } + public function getNextLink() { + return $this->nextLink; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_Channel extends Google_Model -{ - public $address; - public $expiration; - public $id; - public $kind; - public $params; - public $payload; - public $resourceId; - public $resourceUri; - public $token; - public $type; +class Google_Service_Drive_Channel extends Google_Model { + public $address; + public $expiration; + public $id; + public $kind; + public $params; + public $payload; + public $resourceId; + public $resourceUri; + public $token; + public $type; - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setExpiration($expiration) - { - $this->expiration = $expiration; - } + public function setExpiration($expiration) { + $this->expiration = $expiration; + } - public function getExpiration() - { - return $this->expiration; - } + public function getExpiration() { + return $this->expiration; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setParams($params) - { - $this->params = $params; - } + public function setParams($params) { + $this->params = $params; + } - public function getParams() - { - return $this->params; - } + public function getParams() { + return $this->params; + } - public function setPayload($payload) - { - $this->payload = $payload; - } + public function setPayload($payload) { + $this->payload = $payload; + } - public function getPayload() - { - return $this->payload; - } + public function getPayload() { + return $this->payload; + } - public function setResourceId($resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId($resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } - public function setResourceUri($resourceUri) - { - $this->resourceUri = $resourceUri; - } + public function setResourceUri($resourceUri) { + $this->resourceUri = $resourceUri; + } - public function getResourceUri() - { - return $this->resourceUri; - } + public function getResourceUri() { + return $this->resourceUri; + } - public function setToken($token) - { - $this->token = $token; - } + public function setToken($token) { + $this->token = $token; + } - public function getToken() - { - return $this->token; - } + public function getToken() { + return $this->token; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Drive_ChannelParams extends Google_Model -{ +class Google_Service_Drive_ChannelParams extends Google_Model { } -class Google_Service_Drive_ChildList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Drive_ChildReference'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; +class Google_Service_Drive_ChildList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Drive_ChildReference'; + protected $itemsDataType = 'array'; + public $kind; + public $nextLink; + public $nextPageToken; + public $selfLink; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } - public function getNextLink() - { - return $this->nextLink; - } + public function getNextLink() { + return $this->nextLink; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_ChildReference extends Google_Model -{ - public $childLink; - public $id; - public $kind; - public $selfLink; +class Google_Service_Drive_ChildReference extends Google_Model { + public $childLink; + public $id; + public $kind; + public $selfLink; - public function setChildLink($childLink) - { - $this->childLink = $childLink; - } + public function setChildLink($childLink) { + $this->childLink = $childLink; + } - public function getChildLink() - { - return $this->childLink; - } + public function getChildLink() { + return $this->childLink; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_Comment extends Google_Collection -{ - public $anchor; - protected $authorType = 'Google_Service_Drive_User'; - protected $authorDataType = ''; - public $commentId; - public $content; - protected $contextType = 'Google_Service_Drive_CommentContext'; - protected $contextDataType = ''; - public $createdDate; - public $deleted; - public $fileId; - public $fileTitle; - public $htmlContent; - public $kind; - public $modifiedDate; - protected $repliesType = 'Google_Service_Drive_CommentReply'; - protected $repliesDataType = 'array'; - public $selfLink; - public $status; +class Google_Service_Drive_Comment extends Google_Collection { + public $anchor; + protected $authorType = 'Google_Service_Drive_User'; + protected $authorDataType = ''; + public $commentId; + public $content; + protected $contextType = 'Google_Service_Drive_CommentContext'; + protected $contextDataType = ''; + public $createdDate; + public $deleted; + public $fileId; + public $fileTitle; + public $htmlContent; + public $kind; + public $modifiedDate; + protected $repliesType = 'Google_Service_Drive_CommentReply'; + protected $repliesDataType = 'array'; + public $selfLink; + public $status; - public function setAnchor($anchor) - { - $this->anchor = $anchor; - } + public function setAnchor($anchor) { + $this->anchor = $anchor; + } - public function getAnchor() - { - return $this->anchor; - } + public function getAnchor() { + return $this->anchor; + } - public function setAuthor(Google_Service_Drive_User $author) - { - $this->author = $author; - } + public function setAuthor(Google_Service_Drive_User $author) { + $this->author = $author; + } - public function getAuthor() - { - return $this->author; - } + public function getAuthor() { + return $this->author; + } - public function setCommentId($commentId) - { - $this->commentId = $commentId; - } + public function setCommentId($commentId) { + $this->commentId = $commentId; + } - public function getCommentId() - { - return $this->commentId; - } + public function getCommentId() { + return $this->commentId; + } - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setContext(Google_Service_Drive_CommentContext $context) - { - $this->context = $context; - } + public function setContext(Google_Service_Drive_CommentContext $context) { + $this->context = $context; + } - public function getContext() - { - return $this->context; - } + public function getContext() { + return $this->context; + } - public function setCreatedDate($createdDate) - { - $this->createdDate = $createdDate; - } + public function setCreatedDate($createdDate) { + $this->createdDate = $createdDate; + } - public function getCreatedDate() - { - return $this->createdDate; - } + public function getCreatedDate() { + return $this->createdDate; + } - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } + public function setDeleted($deleted) { + $this->deleted = $deleted; + } - public function getDeleted() - { - return $this->deleted; - } + public function getDeleted() { + return $this->deleted; + } - public function setFileId($fileId) - { - $this->fileId = $fileId; - } + public function setFileId($fileId) { + $this->fileId = $fileId; + } - public function getFileId() - { - return $this->fileId; - } + public function getFileId() { + return $this->fileId; + } - public function setFileTitle($fileTitle) - { - $this->fileTitle = $fileTitle; - } + public function setFileTitle($fileTitle) { + $this->fileTitle = $fileTitle; + } - public function getFileTitle() - { - return $this->fileTitle; - } + public function getFileTitle() { + return $this->fileTitle; + } - public function setHtmlContent($htmlContent) - { - $this->htmlContent = $htmlContent; - } + public function setHtmlContent($htmlContent) { + $this->htmlContent = $htmlContent; + } - public function getHtmlContent() - { - return $this->htmlContent; - } + public function getHtmlContent() { + return $this->htmlContent; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setModifiedDate($modifiedDate) - { - $this->modifiedDate = $modifiedDate; - } + public function setModifiedDate($modifiedDate) { + $this->modifiedDate = $modifiedDate; + } - public function getModifiedDate() - { - return $this->modifiedDate; - } + public function getModifiedDate() { + return $this->modifiedDate; + } - public function setReplies($replies) - { - $this->replies = $replies; - } + public function setReplies($replies) { + $this->replies = $replies; + } - public function getReplies() - { - return $this->replies; - } + public function getReplies() { + return $this->replies; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_Drive_CommentContext extends Google_Model -{ - public $type; - public $value; +class Google_Service_Drive_CommentContext extends Google_Model { + public $type; + public $value; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Drive_CommentList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Drive_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; +class Google_Service_Drive_CommentList extends Google_Collection { + protected $itemsType = 'Google_Service_Drive_Comment'; + protected $itemsDataType = 'array'; + public $kind; + public $nextLink; + public $nextPageToken; + public $selfLink; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } - public function getNextLink() - { - return $this->nextLink; - } + public function getNextLink() { + return $this->nextLink; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_CommentReply extends Google_Model -{ - protected $authorType = 'Google_Service_Drive_User'; - protected $authorDataType = ''; - public $content; - public $createdDate; - public $deleted; - public $htmlContent; - public $kind; - public $modifiedDate; - public $replyId; - public $verb; +class Google_Service_Drive_CommentReply extends Google_Model { + protected $authorType = 'Google_Service_Drive_User'; + protected $authorDataType = ''; + public $content; + public $createdDate; + public $deleted; + public $htmlContent; + public $kind; + public $modifiedDate; + public $replyId; + public $verb; - public function setAuthor(Google_Service_Drive_User $author) - { - $this->author = $author; - } + public function setAuthor(Google_Service_Drive_User $author) { + $this->author = $author; + } - public function getAuthor() - { - return $this->author; - } + public function getAuthor() { + return $this->author; + } - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setCreatedDate($createdDate) - { - $this->createdDate = $createdDate; - } + public function setCreatedDate($createdDate) { + $this->createdDate = $createdDate; + } - public function getCreatedDate() - { - return $this->createdDate; - } + public function getCreatedDate() { + return $this->createdDate; + } - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } + public function setDeleted($deleted) { + $this->deleted = $deleted; + } - public function getDeleted() - { - return $this->deleted; - } + public function getDeleted() { + return $this->deleted; + } - public function setHtmlContent($htmlContent) - { - $this->htmlContent = $htmlContent; - } + public function setHtmlContent($htmlContent) { + $this->htmlContent = $htmlContent; + } - public function getHtmlContent() - { - return $this->htmlContent; - } + public function getHtmlContent() { + return $this->htmlContent; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setModifiedDate($modifiedDate) - { - $this->modifiedDate = $modifiedDate; - } + public function setModifiedDate($modifiedDate) { + $this->modifiedDate = $modifiedDate; + } - public function getModifiedDate() - { - return $this->modifiedDate; - } + public function getModifiedDate() { + return $this->modifiedDate; + } - public function setReplyId($replyId) - { - $this->replyId = $replyId; - } + public function setReplyId($replyId) { + $this->replyId = $replyId; + } - public function getReplyId() - { - return $this->replyId; - } + public function getReplyId() { + return $this->replyId; + } - public function setVerb($verb) - { - $this->verb = $verb; - } + public function setVerb($verb) { + $this->verb = $verb; + } - public function getVerb() - { - return $this->verb; - } + public function getVerb() { + return $this->verb; + } } -class Google_Service_Drive_CommentReplyList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Drive_CommentReply'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; +class Google_Service_Drive_CommentReplyList extends Google_Collection { + protected $itemsType = 'Google_Service_Drive_CommentReply'; + protected $itemsDataType = 'array'; + public $kind; + public $nextLink; + public $nextPageToken; + public $selfLink; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } - public function getNextLink() - { - return $this->nextLink; - } + public function getNextLink() { + return $this->nextLink; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_DriveFile extends Google_Collection -{ - public $alternateLink; - public $appDataContents; - public $copyable; - public $createdDate; - public $defaultOpenWithLink; - public $description; - public $downloadUrl; - public $editable; - public $embedLink; - public $etag; - public $explicitlyTrashed; - public $exportLinks; - public $fileExtension; - public $fileSize; - public $headRevisionId; - public $iconLink; - public $id; - protected $imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata'; - protected $imageMediaMetadataDataType = ''; - protected $indexableTextType = 'Google_Service_Drive_DriveFileIndexableText'; - protected $indexableTextDataType = ''; - public $kind; - protected $labelsType = 'Google_Service_Drive_DriveFileLabels'; - protected $labelsDataType = ''; - protected $lastModifyingUserType = 'Google_Service_Drive_User'; - protected $lastModifyingUserDataType = ''; - public $lastModifyingUserName; - public $lastViewedByMeDate; - public $markedViewedByMeDate; - public $md5Checksum; - public $mimeType; - public $modifiedByMeDate; - public $modifiedDate; - public $openWithLinks; - public $originalFilename; - public $ownerNames; - protected $ownersType = 'Google_Service_Drive_User'; - protected $ownersDataType = 'array'; - protected $parentsType = 'Google_Service_Drive_ParentReference'; - protected $parentsDataType = 'array'; - protected $permissionsType = 'Google_Service_Drive_Permission'; - protected $permissionsDataType = 'array'; - protected $propertiesType = 'Google_Service_Drive_Property'; - protected $propertiesDataType = 'array'; - public $quotaBytesUsed; - public $selfLink; - public $shared; - public $sharedWithMeDate; - protected $sharingUserType = 'Google_Service_Drive_User'; - protected $sharingUserDataType = ''; - protected $thumbnailType = 'Google_Service_Drive_DriveFileThumbnail'; - protected $thumbnailDataType = ''; - public $thumbnailLink; - public $title; - protected $userPermissionType = 'Google_Service_Drive_Permission'; - protected $userPermissionDataType = ''; - public $version; - public $webContentLink; - public $webViewLink; - public $writersCanShare; - - public function setAlternateLink($alternateLink) - { - $this->alternateLink = $alternateLink; - } - - public function getAlternateLink() - { - return $this->alternateLink; - } - - public function setAppDataContents($appDataContents) - { - $this->appDataContents = $appDataContents; - } - - public function getAppDataContents() - { - return $this->appDataContents; - } - - public function setCopyable($copyable) - { - $this->copyable = $copyable; - } - - public function getCopyable() - { - return $this->copyable; - } - - public function setCreatedDate($createdDate) - { - $this->createdDate = $createdDate; - } - - public function getCreatedDate() - { - return $this->createdDate; - } - - public function setDefaultOpenWithLink($defaultOpenWithLink) - { - $this->defaultOpenWithLink = $defaultOpenWithLink; - } - - public function getDefaultOpenWithLink() - { - return $this->defaultOpenWithLink; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDownloadUrl($downloadUrl) - { - $this->downloadUrl = $downloadUrl; - } - - public function getDownloadUrl() - { - return $this->downloadUrl; - } - - public function setEditable($editable) - { - $this->editable = $editable; - } - - public function getEditable() - { - return $this->editable; - } - - public function setEmbedLink($embedLink) - { - $this->embedLink = $embedLink; - } - - public function getEmbedLink() - { - return $this->embedLink; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setExplicitlyTrashed($explicitlyTrashed) - { - $this->explicitlyTrashed = $explicitlyTrashed; - } - - public function getExplicitlyTrashed() - { - return $this->explicitlyTrashed; - } - - public function setExportLinks($exportLinks) - { - $this->exportLinks = $exportLinks; - } - - public function getExportLinks() - { - return $this->exportLinks; - } - - public function setFileExtension($fileExtension) - { - $this->fileExtension = $fileExtension; - } - - public function getFileExtension() - { - return $this->fileExtension; - } - - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } - - public function getFileSize() - { - return $this->fileSize; - } - - public function setHeadRevisionId($headRevisionId) - { - $this->headRevisionId = $headRevisionId; - } - - public function getHeadRevisionId() - { - return $this->headRevisionId; - } - - public function setIconLink($iconLink) - { - $this->iconLink = $iconLink; - } - - public function getIconLink() - { - return $this->iconLink; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMetadata $imageMediaMetadata) - { - $this->imageMediaMetadata = $imageMediaMetadata; - } - - public function getImageMediaMetadata() - { - return $this->imageMediaMetadata; - } - - public function setIndexableText(Google_Service_Drive_DriveFileIndexableText $indexableText) - { - $this->indexableText = $indexableText; - } - - public function getIndexableText() - { - return $this->indexableText; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLabels(Google_Service_Drive_DriveFileLabels $labels) - { - $this->labels = $labels; - } - - public function getLabels() - { - return $this->labels; - } - - public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser) - { - $this->lastModifyingUser = $lastModifyingUser; - } - - public function getLastModifyingUser() - { - return $this->lastModifyingUser; - } - - public function setLastModifyingUserName($lastModifyingUserName) - { - $this->lastModifyingUserName = $lastModifyingUserName; - } - - public function getLastModifyingUserName() - { - return $this->lastModifyingUserName; - } - - public function setLastViewedByMeDate($lastViewedByMeDate) - { - $this->lastViewedByMeDate = $lastViewedByMeDate; - } - - public function getLastViewedByMeDate() - { - return $this->lastViewedByMeDate; - } - - public function setMarkedViewedByMeDate($markedViewedByMeDate) - { - $this->markedViewedByMeDate = $markedViewedByMeDate; - } - - public function getMarkedViewedByMeDate() - { - return $this->markedViewedByMeDate; - } - - public function setMd5Checksum($md5Checksum) - { - $this->md5Checksum = $md5Checksum; - } - - public function getMd5Checksum() - { - return $this->md5Checksum; - } - - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - - public function getMimeType() - { - return $this->mimeType; - } - - public function setModifiedByMeDate($modifiedByMeDate) - { - $this->modifiedByMeDate = $modifiedByMeDate; - } - - public function getModifiedByMeDate() - { - return $this->modifiedByMeDate; - } - - public function setModifiedDate($modifiedDate) - { - $this->modifiedDate = $modifiedDate; - } - - public function getModifiedDate() - { - return $this->modifiedDate; - } - - public function setOpenWithLinks($openWithLinks) - { - $this->openWithLinks = $openWithLinks; - } - - public function getOpenWithLinks() - { - return $this->openWithLinks; - } - - public function setOriginalFilename($originalFilename) - { - $this->originalFilename = $originalFilename; - } - - public function getOriginalFilename() - { - return $this->originalFilename; - } - - public function setOwnerNames($ownerNames) - { - $this->ownerNames = $ownerNames; - } - - public function getOwnerNames() - { - return $this->ownerNames; - } - - public function setOwners($owners) - { - $this->owners = $owners; - } - - public function getOwners() - { - return $this->owners; - } - - public function setParents($parents) - { - $this->parents = $parents; - } - - public function getParents() - { - return $this->parents; - } - - public function setPermissions($permissions) - { - $this->permissions = $permissions; - } - - public function getPermissions() - { - return $this->permissions; - } - - public function setProperties($properties) - { - $this->properties = $properties; - } - - public function getProperties() - { - return $this->properties; - } - - public function setQuotaBytesUsed($quotaBytesUsed) - { - $this->quotaBytesUsed = $quotaBytesUsed; - } - - public function getQuotaBytesUsed() - { - return $this->quotaBytesUsed; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } - - public function setShared($shared) - { - $this->shared = $shared; - } - - public function getShared() - { - return $this->shared; - } - - public function setSharedWithMeDate($sharedWithMeDate) - { - $this->sharedWithMeDate = $sharedWithMeDate; - } - - public function getSharedWithMeDate() - { - return $this->sharedWithMeDate; - } - - public function setSharingUser(Google_Service_Drive_User $sharingUser) - { - $this->sharingUser = $sharingUser; - } - - public function getSharingUser() - { - return $this->sharingUser; - } - - public function setThumbnail(Google_Service_Drive_DriveFileThumbnail $thumbnail) - { - $this->thumbnail = $thumbnail; - } - - public function getThumbnail() - { - return $this->thumbnail; - } - - public function setThumbnailLink($thumbnailLink) - { - $this->thumbnailLink = $thumbnailLink; - } - - public function getThumbnailLink() - { - return $this->thumbnailLink; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setUserPermission(Google_Service_Drive_Permission $userPermission) - { - $this->userPermission = $userPermission; - } - - public function getUserPermission() - { - return $this->userPermission; - } - - public function setVersion($version) - { - $this->version = $version; - } - - public function getVersion() - { - return $this->version; - } - - public function setWebContentLink($webContentLink) - { - $this->webContentLink = $webContentLink; - } - - public function getWebContentLink() - { - return $this->webContentLink; - } - - public function setWebViewLink($webViewLink) - { - $this->webViewLink = $webViewLink; - } - - public function getWebViewLink() - { - return $this->webViewLink; - } - - public function setWritersCanShare($writersCanShare) - { - $this->writersCanShare = $writersCanShare; - } - - public function getWritersCanShare() - { - return $this->writersCanShare; - } +class Google_Service_Drive_DriveFile extends Google_Collection { + public $alternateLink; + public $appDataContents; + public $copyable; + public $createdDate; + public $defaultOpenWithLink; + public $description; + public $downloadUrl; + public $editable; + public $embedLink; + public $etag; + public $explicitlyTrashed; + public $exportLinks; + public $fileExtension; + public $fileSize; + public $headRevisionId; + public $iconLink; + public $id; + protected $imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata'; + protected $imageMediaMetadataDataType = ''; + protected $indexableTextType = 'Google_Service_Drive_DriveFileIndexableText'; + protected $indexableTextDataType = ''; + public $kind; + protected $labelsType = 'Google_Service_Drive_DriveFileLabels'; + protected $labelsDataType = ''; + protected $lastModifyingUserType = 'Google_Service_Drive_User'; + protected $lastModifyingUserDataType = ''; + public $lastModifyingUserName; + public $lastViewedByMeDate; + public $markedViewedByMeDate; + public $md5Checksum; + public $mimeType; + public $modifiedByMeDate; + public $modifiedDate; + public $openWithLinks; + public $originalFilename; + public $ownerNames; + protected $ownersType = 'Google_Service_Drive_User'; + protected $ownersDataType = 'array'; + protected $parentsType = 'Google_Service_Drive_ParentReference'; + protected $parentsDataType = 'array'; + protected $permissionsType = 'Google_Service_Drive_Permission'; + protected $permissionsDataType = 'array'; + protected $propertiesType = 'Google_Service_Drive_Property'; + protected $propertiesDataType = 'array'; + public $quotaBytesUsed; + public $selfLink; + public $shared; + public $sharedWithMeDate; + protected $sharingUserType = 'Google_Service_Drive_User'; + protected $sharingUserDataType = ''; + protected $thumbnailType = 'Google_Service_Drive_DriveFileThumbnail'; + protected $thumbnailDataType = ''; + public $thumbnailLink; + public $title; + protected $userPermissionType = 'Google_Service_Drive_Permission'; + protected $userPermissionDataType = ''; + public $version; + public $webContentLink; + public $webViewLink; + public $writersCanShare; + + public function setAlternateLink($alternateLink) { + $this->alternateLink = $alternateLink; + } + + public function getAlternateLink() { + return $this->alternateLink; + } + + public function setAppDataContents($appDataContents) { + $this->appDataContents = $appDataContents; + } + + public function getAppDataContents() { + return $this->appDataContents; + } + + public function setCopyable($copyable) { + $this->copyable = $copyable; + } + + public function getCopyable() { + return $this->copyable; + } + + public function setCreatedDate($createdDate) { + $this->createdDate = $createdDate; + } + + public function getCreatedDate() { + return $this->createdDate; + } + + public function setDefaultOpenWithLink($defaultOpenWithLink) { + $this->defaultOpenWithLink = $defaultOpenWithLink; + } + + public function getDefaultOpenWithLink() { + return $this->defaultOpenWithLink; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setDownloadUrl($downloadUrl) { + $this->downloadUrl = $downloadUrl; + } + + public function getDownloadUrl() { + return $this->downloadUrl; + } + + public function setEditable($editable) { + $this->editable = $editable; + } + + public function getEditable() { + return $this->editable; + } + + public function setEmbedLink($embedLink) { + $this->embedLink = $embedLink; + } + + public function getEmbedLink() { + return $this->embedLink; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setExplicitlyTrashed($explicitlyTrashed) { + $this->explicitlyTrashed = $explicitlyTrashed; + } + + public function getExplicitlyTrashed() { + return $this->explicitlyTrashed; + } + + public function setExportLinks($exportLinks) { + $this->exportLinks = $exportLinks; + } + + public function getExportLinks() { + return $this->exportLinks; + } + + public function setFileExtension($fileExtension) { + $this->fileExtension = $fileExtension; + } + + public function getFileExtension() { + return $this->fileExtension; + } + + public function setFileSize($fileSize) { + $this->fileSize = $fileSize; + } + + public function getFileSize() { + return $this->fileSize; + } + + public function setHeadRevisionId($headRevisionId) { + $this->headRevisionId = $headRevisionId; + } + + public function getHeadRevisionId() { + return $this->headRevisionId; + } + + public function setIconLink($iconLink) { + $this->iconLink = $iconLink; + } + + public function getIconLink() { + return $this->iconLink; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMetadata $imageMediaMetadata) { + $this->imageMediaMetadata = $imageMediaMetadata; + } + + public function getImageMediaMetadata() { + return $this->imageMediaMetadata; + } + + public function setIndexableText(Google_Service_Drive_DriveFileIndexableText $indexableText) { + $this->indexableText = $indexableText; + } + + public function getIndexableText() { + return $this->indexableText; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLabels(Google_Service_Drive_DriveFileLabels $labels) { + $this->labels = $labels; + } + + public function getLabels() { + return $this->labels; + } + + public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser) { + $this->lastModifyingUser = $lastModifyingUser; + } + + public function getLastModifyingUser() { + return $this->lastModifyingUser; + } + + public function setLastModifyingUserName($lastModifyingUserName) { + $this->lastModifyingUserName = $lastModifyingUserName; + } + + public function getLastModifyingUserName() { + return $this->lastModifyingUserName; + } + + public function setLastViewedByMeDate($lastViewedByMeDate) { + $this->lastViewedByMeDate = $lastViewedByMeDate; + } + + public function getLastViewedByMeDate() { + return $this->lastViewedByMeDate; + } + + public function setMarkedViewedByMeDate($markedViewedByMeDate) { + $this->markedViewedByMeDate = $markedViewedByMeDate; + } + + public function getMarkedViewedByMeDate() { + return $this->markedViewedByMeDate; + } + + public function setMd5Checksum($md5Checksum) { + $this->md5Checksum = $md5Checksum; + } + + public function getMd5Checksum() { + return $this->md5Checksum; + } + + public function setMimeType($mimeType) { + $this->mimeType = $mimeType; + } + + public function getMimeType() { + return $this->mimeType; + } + + public function setModifiedByMeDate($modifiedByMeDate) { + $this->modifiedByMeDate = $modifiedByMeDate; + } + + public function getModifiedByMeDate() { + return $this->modifiedByMeDate; + } + + public function setModifiedDate($modifiedDate) { + $this->modifiedDate = $modifiedDate; + } + + public function getModifiedDate() { + return $this->modifiedDate; + } + + public function setOpenWithLinks($openWithLinks) { + $this->openWithLinks = $openWithLinks; + } + + public function getOpenWithLinks() { + return $this->openWithLinks; + } + + public function setOriginalFilename($originalFilename) { + $this->originalFilename = $originalFilename; + } + + public function getOriginalFilename() { + return $this->originalFilename; + } + + public function setOwnerNames($ownerNames) { + $this->ownerNames = $ownerNames; + } + + public function getOwnerNames() { + return $this->ownerNames; + } + + public function setOwners($owners) { + $this->owners = $owners; + } + + public function getOwners() { + return $this->owners; + } + + public function setParents($parents) { + $this->parents = $parents; + } + + public function getParents() { + return $this->parents; + } + + public function setPermissions($permissions) { + $this->permissions = $permissions; + } + + public function getPermissions() { + return $this->permissions; + } + + public function setProperties($properties) { + $this->properties = $properties; + } + + public function getProperties() { + return $this->properties; + } + + public function setQuotaBytesUsed($quotaBytesUsed) { + $this->quotaBytesUsed = $quotaBytesUsed; + } + + public function getQuotaBytesUsed() { + return $this->quotaBytesUsed; + } + + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } + + public function getSelfLink() { + return $this->selfLink; + } + + public function setShared($shared) { + $this->shared = $shared; + } + + public function getShared() { + return $this->shared; + } + + public function setSharedWithMeDate($sharedWithMeDate) { + $this->sharedWithMeDate = $sharedWithMeDate; + } + + public function getSharedWithMeDate() { + return $this->sharedWithMeDate; + } + + public function setSharingUser(Google_Service_Drive_User $sharingUser) { + $this->sharingUser = $sharingUser; + } + + public function getSharingUser() { + return $this->sharingUser; + } + + public function setThumbnail(Google_Service_Drive_DriveFileThumbnail $thumbnail) { + $this->thumbnail = $thumbnail; + } + + public function getThumbnail() { + return $this->thumbnail; + } + + public function setThumbnailLink($thumbnailLink) { + $this->thumbnailLink = $thumbnailLink; + } + + public function getThumbnailLink() { + return $this->thumbnailLink; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setUserPermission(Google_Service_Drive_Permission $userPermission) { + $this->userPermission = $userPermission; + } + + public function getUserPermission() { + return $this->userPermission; + } + + public function setVersion($version) { + $this->version = $version; + } + + public function getVersion() { + return $this->version; + } + + public function setWebContentLink($webContentLink) { + $this->webContentLink = $webContentLink; + } + + public function getWebContentLink() { + return $this->webContentLink; + } + + public function setWebViewLink($webViewLink) { + $this->webViewLink = $webViewLink; + } + + public function getWebViewLink() { + return $this->webViewLink; + } + + public function setWritersCanShare($writersCanShare) { + $this->writersCanShare = $writersCanShare; + } + + public function getWritersCanShare() { + return $this->writersCanShare; + } } -class Google_Service_Drive_DriveFileExportLinks extends Google_Model -{ +class Google_Service_Drive_DriveFileExportLinks extends Google_Model { } -class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model -{ - public $aperture; - public $cameraMake; - public $cameraModel; - public $colorSpace; - public $date; - public $exposureBias; - public $exposureMode; - public $exposureTime; - public $flashUsed; - public $focalLength; - public $height; - public $isoSpeed; - public $lens; - protected $locationType = 'Google_Service_Drive_DriveFileImageMediaMetadataLocation'; - protected $locationDataType = ''; - public $maxApertureValue; - public $meteringMode; - public $rotation; - public $sensor; - public $subjectDistance; - public $whiteBalance; - public $width; +class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model { + public $aperture; + public $cameraMake; + public $cameraModel; + public $colorSpace; + public $date; + public $exposureBias; + public $exposureMode; + public $exposureTime; + public $flashUsed; + public $focalLength; + public $height; + public $isoSpeed; + public $lens; + protected $locationType = 'Google_Service_Drive_DriveFileImageMediaMetadataLocation'; + protected $locationDataType = ''; + public $maxApertureValue; + public $meteringMode; + public $rotation; + public $sensor; + public $subjectDistance; + public $whiteBalance; + public $width; - public function setAperture($aperture) - { - $this->aperture = $aperture; - } + public function setAperture($aperture) { + $this->aperture = $aperture; + } - public function getAperture() - { - return $this->aperture; - } + public function getAperture() { + return $this->aperture; + } - public function setCameraMake($cameraMake) - { - $this->cameraMake = $cameraMake; - } + public function setCameraMake($cameraMake) { + $this->cameraMake = $cameraMake; + } - public function getCameraMake() - { - return $this->cameraMake; - } + public function getCameraMake() { + return $this->cameraMake; + } - public function setCameraModel($cameraModel) - { - $this->cameraModel = $cameraModel; - } + public function setCameraModel($cameraModel) { + $this->cameraModel = $cameraModel; + } - public function getCameraModel() - { - return $this->cameraModel; - } + public function getCameraModel() { + return $this->cameraModel; + } - public function setColorSpace($colorSpace) - { - $this->colorSpace = $colorSpace; - } + public function setColorSpace($colorSpace) { + $this->colorSpace = $colorSpace; + } - public function getColorSpace() - { - return $this->colorSpace; - } + public function getColorSpace() { + return $this->colorSpace; + } - public function setDate($date) - { - $this->date = $date; - } + public function setDate($date) { + $this->date = $date; + } - public function getDate() - { - return $this->date; - } + public function getDate() { + return $this->date; + } - public function setExposureBias($exposureBias) - { - $this->exposureBias = $exposureBias; - } + public function setExposureBias($exposureBias) { + $this->exposureBias = $exposureBias; + } - public function getExposureBias() - { - return $this->exposureBias; - } + public function getExposureBias() { + return $this->exposureBias; + } - public function setExposureMode($exposureMode) - { - $this->exposureMode = $exposureMode; - } + public function setExposureMode($exposureMode) { + $this->exposureMode = $exposureMode; + } - public function getExposureMode() - { - return $this->exposureMode; - } + public function getExposureMode() { + return $this->exposureMode; + } - public function setExposureTime($exposureTime) - { - $this->exposureTime = $exposureTime; - } + public function setExposureTime($exposureTime) { + $this->exposureTime = $exposureTime; + } - public function getExposureTime() - { - return $this->exposureTime; - } + public function getExposureTime() { + return $this->exposureTime; + } - public function setFlashUsed($flashUsed) - { - $this->flashUsed = $flashUsed; - } + public function setFlashUsed($flashUsed) { + $this->flashUsed = $flashUsed; + } - public function getFlashUsed() - { - return $this->flashUsed; - } + public function getFlashUsed() { + return $this->flashUsed; + } - public function setFocalLength($focalLength) - { - $this->focalLength = $focalLength; - } + public function setFocalLength($focalLength) { + $this->focalLength = $focalLength; + } - public function getFocalLength() - { - return $this->focalLength; - } + public function getFocalLength() { + return $this->focalLength; + } - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setIsoSpeed($isoSpeed) - { - $this->isoSpeed = $isoSpeed; - } + public function setIsoSpeed($isoSpeed) { + $this->isoSpeed = $isoSpeed; + } - public function getIsoSpeed() - { - return $this->isoSpeed; - } + public function getIsoSpeed() { + return $this->isoSpeed; + } - public function setLens($lens) - { - $this->lens = $lens; - } + public function setLens($lens) { + $this->lens = $lens; + } - public function getLens() - { - return $this->lens; - } + public function getLens() { + return $this->lens; + } - public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLocation $location) - { - $this->location = $location; - } + public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLocation $location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setMaxApertureValue($maxApertureValue) - { - $this->maxApertureValue = $maxApertureValue; - } + public function setMaxApertureValue($maxApertureValue) { + $this->maxApertureValue = $maxApertureValue; + } - public function getMaxApertureValue() - { - return $this->maxApertureValue; - } + public function getMaxApertureValue() { + return $this->maxApertureValue; + } - public function setMeteringMode($meteringMode) - { - $this->meteringMode = $meteringMode; - } + public function setMeteringMode($meteringMode) { + $this->meteringMode = $meteringMode; + } - public function getMeteringMode() - { - return $this->meteringMode; - } + public function getMeteringMode() { + return $this->meteringMode; + } - public function setRotation($rotation) - { - $this->rotation = $rotation; - } + public function setRotation($rotation) { + $this->rotation = $rotation; + } - public function getRotation() - { - return $this->rotation; - } + public function getRotation() { + return $this->rotation; + } - public function setSensor($sensor) - { - $this->sensor = $sensor; - } + public function setSensor($sensor) { + $this->sensor = $sensor; + } - public function getSensor() - { - return $this->sensor; - } + public function getSensor() { + return $this->sensor; + } - public function setSubjectDistance($subjectDistance) - { - $this->subjectDistance = $subjectDistance; - } + public function setSubjectDistance($subjectDistance) { + $this->subjectDistance = $subjectDistance; + } - public function getSubjectDistance() - { - return $this->subjectDistance; - } + public function getSubjectDistance() { + return $this->subjectDistance; + } - public function setWhiteBalance($whiteBalance) - { - $this->whiteBalance = $whiteBalance; - } + public function setWhiteBalance($whiteBalance) { + $this->whiteBalance = $whiteBalance; + } - public function getWhiteBalance() - { - return $this->whiteBalance; - } + public function getWhiteBalance() { + return $this->whiteBalance; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model -{ - public $altitude; - public $latitude; - public $longitude; +class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model { + public $altitude; + public $latitude; + public $longitude; - public function setAltitude($altitude) - { - $this->altitude = $altitude; - } + public function setAltitude($altitude) { + $this->altitude = $altitude; + } - public function getAltitude() - { - return $this->altitude; - } + public function getAltitude() { + return $this->altitude; + } - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } + public function setLatitude($latitude) { + $this->latitude = $latitude; + } - public function getLatitude() - { - return $this->latitude; - } + public function getLatitude() { + return $this->latitude; + } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } + public function setLongitude($longitude) { + $this->longitude = $longitude; + } - public function getLongitude() - { - return $this->longitude; - } + public function getLongitude() { + return $this->longitude; + } } -class Google_Service_Drive_DriveFileIndexableText extends Google_Model -{ - public $text; +class Google_Service_Drive_DriveFileIndexableText extends Google_Model { + public $text; - public function setText($text) - { - $this->text = $text; - } + public function setText($text) { + $this->text = $text; + } - public function getText() - { - return $this->text; - } + public function getText() { + return $this->text; + } } -class Google_Service_Drive_DriveFileLabels extends Google_Model -{ - public $hidden; - public $restricted; - public $starred; - public $trashed; - public $viewed; +class Google_Service_Drive_DriveFileLabels extends Google_Model { + public $hidden; + public $restricted; + public $starred; + public $trashed; + public $viewed; - public function setHidden($hidden) - { - $this->hidden = $hidden; - } + public function setHidden($hidden) { + $this->hidden = $hidden; + } - public function getHidden() - { - return $this->hidden; - } + public function getHidden() { + return $this->hidden; + } - public function setRestricted($restricted) - { - $this->restricted = $restricted; - } + public function setRestricted($restricted) { + $this->restricted = $restricted; + } - public function getRestricted() - { - return $this->restricted; - } + public function getRestricted() { + return $this->restricted; + } - public function setStarred($starred) - { - $this->starred = $starred; - } + public function setStarred($starred) { + $this->starred = $starred; + } - public function getStarred() - { - return $this->starred; - } + public function getStarred() { + return $this->starred; + } - public function setTrashed($trashed) - { - $this->trashed = $trashed; - } + public function setTrashed($trashed) { + $this->trashed = $trashed; + } - public function getTrashed() - { - return $this->trashed; - } + public function getTrashed() { + return $this->trashed; + } - public function setViewed($viewed) - { - $this->viewed = $viewed; - } + public function setViewed($viewed) { + $this->viewed = $viewed; + } - public function getViewed() - { - return $this->viewed; - } + public function getViewed() { + return $this->viewed; + } } -class Google_Service_Drive_DriveFileOpenWithLinks extends Google_Model -{ +class Google_Service_Drive_DriveFileOpenWithLinks extends Google_Model { } -class Google_Service_Drive_DriveFileThumbnail extends Google_Model -{ - public $image; - public $mimeType; +class Google_Service_Drive_DriveFileThumbnail extends Google_Model { + public $image; + public $mimeType; - public function setImage($image) - { - $this->image = $image; - } + public function setImage($image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } + public function setMimeType($mimeType) { + $this->mimeType = $mimeType; + } - public function getMimeType() - { - return $this->mimeType; - } + public function getMimeType() { + return $this->mimeType; + } } -class Google_Service_Drive_FileList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Drive_DriveFile'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; +class Google_Service_Drive_FileList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Drive_DriveFile'; + protected $itemsDataType = 'array'; + public $kind; + public $nextLink; + public $nextPageToken; + public $selfLink; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } - public function getNextLink() - { - return $this->nextLink; - } + public function getNextLink() { + return $this->nextLink; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_ParentList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Drive_ParentReference'; - protected $itemsDataType = 'array'; - public $kind; - public $selfLink; +class Google_Service_Drive_ParentList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Drive_ParentReference'; + protected $itemsDataType = 'array'; + public $kind; + public $selfLink; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_ParentReference extends Google_Model -{ - public $id; - public $isRoot; - public $kind; - public $parentLink; - public $selfLink; +class Google_Service_Drive_ParentReference extends Google_Model { + public $id; + public $isRoot; + public $kind; + public $parentLink; + public $selfLink; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setIsRoot($isRoot) - { - $this->isRoot = $isRoot; - } + public function setIsRoot($isRoot) { + $this->isRoot = $isRoot; + } - public function getIsRoot() - { - return $this->isRoot; - } + public function getIsRoot() { + return $this->isRoot; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setParentLink($parentLink) - { - $this->parentLink = $parentLink; - } + public function setParentLink($parentLink) { + $this->parentLink = $parentLink; + } - public function getParentLink() - { - return $this->parentLink; - } + public function getParentLink() { + return $this->parentLink; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_Permission extends Google_Collection -{ - public $additionalRoles; - public $authKey; - public $domain; - public $emailAddress; - public $etag; - public $id; - public $kind; - public $name; - public $photoLink; - public $role; - public $selfLink; - public $type; - public $value; - public $withLink; +class Google_Service_Drive_Permission extends Google_Collection { + public $additionalRoles; + public $authKey; + public $domain; + public $emailAddress; + public $etag; + public $id; + public $kind; + public $name; + public $photoLink; + public $role; + public $selfLink; + public $type; + public $value; + public $withLink; - public function setAdditionalRoles($additionalRoles) - { - $this->additionalRoles = $additionalRoles; - } + public function setAdditionalRoles($additionalRoles) { + $this->additionalRoles = $additionalRoles; + } - public function getAdditionalRoles() - { - return $this->additionalRoles; - } + public function getAdditionalRoles() { + return $this->additionalRoles; + } - public function setAuthKey($authKey) - { - $this->authKey = $authKey; - } + public function setAuthKey($authKey) { + $this->authKey = $authKey; + } - public function getAuthKey() - { - return $this->authKey; - } + public function getAuthKey() { + return $this->authKey; + } - public function setDomain($domain) - { - $this->domain = $domain; - } + public function setDomain($domain) { + $this->domain = $domain; + } - public function getDomain() - { - return $this->domain; - } + public function getDomain() { + return $this->domain; + } - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } + public function setEmailAddress($emailAddress) { + $this->emailAddress = $emailAddress; + } - public function getEmailAddress() - { - return $this->emailAddress; - } + public function getEmailAddress() { + return $this->emailAddress; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPhotoLink($photoLink) - { - $this->photoLink = $photoLink; - } + public function setPhotoLink($photoLink) { + $this->photoLink = $photoLink; + } - public function getPhotoLink() - { - return $this->photoLink; - } + public function getPhotoLink() { + return $this->photoLink; + } - public function setRole($role) - { - $this->role = $role; - } + public function setRole($role) { + $this->role = $role; + } - public function getRole() - { - return $this->role; - } + public function getRole() { + return $this->role; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } - public function setWithLink($withLink) - { - $this->withLink = $withLink; - } + public function setWithLink($withLink) { + $this->withLink = $withLink; + } - public function getWithLink() - { - return $this->withLink; - } + public function getWithLink() { + return $this->withLink; + } } -class Google_Service_Drive_PermissionId extends Google_Model -{ - public $id; - public $kind; +class Google_Service_Drive_PermissionId extends Google_Model { + public $id; + public $kind; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Drive_PermissionList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Drive_Permission'; - protected $itemsDataType = 'array'; - public $kind; - public $selfLink; +class Google_Service_Drive_PermissionList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Drive_Permission'; + protected $itemsDataType = 'array'; + public $kind; + public $selfLink; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_Property extends Google_Model -{ - public $etag; - public $key; - public $kind; - public $selfLink; - public $value; - public $visibility; +class Google_Service_Drive_Property extends Google_Model { + public $etag; + public $key; + public $kind; + public $selfLink; + public $value; + public $visibility; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } + public function setVisibility($visibility) { + $this->visibility = $visibility; + } - public function getVisibility() - { - return $this->visibility; - } + public function getVisibility() { + return $this->visibility; + } } -class Google_Service_Drive_PropertyList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Drive_Property'; - protected $itemsDataType = 'array'; - public $kind; - public $selfLink; +class Google_Service_Drive_PropertyList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Drive_Property'; + protected $itemsDataType = 'array'; + public $kind; + public $selfLink; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_Revision extends Google_Model -{ - public $downloadUrl; - public $etag; - public $exportLinks; - public $fileSize; - public $id; - public $kind; - protected $lastModifyingUserType = 'Google_Service_Drive_User'; - protected $lastModifyingUserDataType = ''; - public $lastModifyingUserName; - public $md5Checksum; - public $mimeType; - public $modifiedDate; - public $originalFilename; - public $pinned; - public $publishAuto; - public $published; - public $publishedLink; - public $publishedOutsideDomain; - public $selfLink; +class Google_Service_Drive_Revision extends Google_Model { + public $downloadUrl; + public $etag; + public $exportLinks; + public $fileSize; + public $id; + public $kind; + protected $lastModifyingUserType = 'Google_Service_Drive_User'; + protected $lastModifyingUserDataType = ''; + public $lastModifyingUserName; + public $md5Checksum; + public $mimeType; + public $modifiedDate; + public $originalFilename; + public $pinned; + public $publishAuto; + public $published; + public $publishedLink; + public $publishedOutsideDomain; + public $selfLink; - public function setDownloadUrl($downloadUrl) - { - $this->downloadUrl = $downloadUrl; - } + public function setDownloadUrl($downloadUrl) { + $this->downloadUrl = $downloadUrl; + } - public function getDownloadUrl() - { - return $this->downloadUrl; - } + public function getDownloadUrl() { + return $this->downloadUrl; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setExportLinks($exportLinks) - { - $this->exportLinks = $exportLinks; - } + public function setExportLinks($exportLinks) { + $this->exportLinks = $exportLinks; + } - public function getExportLinks() - { - return $this->exportLinks; - } + public function getExportLinks() { + return $this->exportLinks; + } - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } + public function setFileSize($fileSize) { + $this->fileSize = $fileSize; + } - public function getFileSize() - { - return $this->fileSize; - } + public function getFileSize() { + return $this->fileSize; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser) - { - $this->lastModifyingUser = $lastModifyingUser; - } + public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser) { + $this->lastModifyingUser = $lastModifyingUser; + } - public function getLastModifyingUser() - { - return $this->lastModifyingUser; - } + public function getLastModifyingUser() { + return $this->lastModifyingUser; + } - public function setLastModifyingUserName($lastModifyingUserName) - { - $this->lastModifyingUserName = $lastModifyingUserName; - } + public function setLastModifyingUserName($lastModifyingUserName) { + $this->lastModifyingUserName = $lastModifyingUserName; + } - public function getLastModifyingUserName() - { - return $this->lastModifyingUserName; - } + public function getLastModifyingUserName() { + return $this->lastModifyingUserName; + } - public function setMd5Checksum($md5Checksum) - { - $this->md5Checksum = $md5Checksum; - } + public function setMd5Checksum($md5Checksum) { + $this->md5Checksum = $md5Checksum; + } - public function getMd5Checksum() - { - return $this->md5Checksum; - } + public function getMd5Checksum() { + return $this->md5Checksum; + } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } + public function setMimeType($mimeType) { + $this->mimeType = $mimeType; + } - public function getMimeType() - { - return $this->mimeType; - } + public function getMimeType() { + return $this->mimeType; + } - public function setModifiedDate($modifiedDate) - { - $this->modifiedDate = $modifiedDate; - } + public function setModifiedDate($modifiedDate) { + $this->modifiedDate = $modifiedDate; + } - public function getModifiedDate() - { - return $this->modifiedDate; - } + public function getModifiedDate() { + return $this->modifiedDate; + } - public function setOriginalFilename($originalFilename) - { - $this->originalFilename = $originalFilename; - } + public function setOriginalFilename($originalFilename) { + $this->originalFilename = $originalFilename; + } - public function getOriginalFilename() - { - return $this->originalFilename; - } + public function getOriginalFilename() { + return $this->originalFilename; + } - public function setPinned($pinned) - { - $this->pinned = $pinned; - } + public function setPinned($pinned) { + $this->pinned = $pinned; + } - public function getPinned() - { - return $this->pinned; - } + public function getPinned() { + return $this->pinned; + } - public function setPublishAuto($publishAuto) - { - $this->publishAuto = $publishAuto; - } + public function setPublishAuto($publishAuto) { + $this->publishAuto = $publishAuto; + } - public function getPublishAuto() - { - return $this->publishAuto; - } + public function getPublishAuto() { + return $this->publishAuto; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPublished() - { - return $this->published; - } + public function getPublished() { + return $this->published; + } - public function setPublishedLink($publishedLink) - { - $this->publishedLink = $publishedLink; - } + public function setPublishedLink($publishedLink) { + $this->publishedLink = $publishedLink; + } - public function getPublishedLink() - { - return $this->publishedLink; - } + public function getPublishedLink() { + return $this->publishedLink; + } - public function setPublishedOutsideDomain($publishedOutsideDomain) - { - $this->publishedOutsideDomain = $publishedOutsideDomain; - } + public function setPublishedOutsideDomain($publishedOutsideDomain) { + $this->publishedOutsideDomain = $publishedOutsideDomain; + } - public function getPublishedOutsideDomain() - { - return $this->publishedOutsideDomain; - } + public function getPublishedOutsideDomain() { + return $this->publishedOutsideDomain; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_RevisionExportLinks extends Google_Model -{ +class Google_Service_Drive_RevisionExportLinks extends Google_Model { } -class Google_Service_Drive_RevisionList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Drive_Revision'; - protected $itemsDataType = 'array'; - public $kind; - public $selfLink; +class Google_Service_Drive_RevisionList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Drive_Revision'; + protected $itemsDataType = 'array'; + public $kind; + public $selfLink; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Drive_User extends Google_Model -{ - public $displayName; - public $emailAddress; - public $isAuthenticatedUser; - public $kind; - public $permissionId; - protected $pictureType = 'Google_Service_Drive_UserPicture'; - protected $pictureDataType = ''; +class Google_Service_Drive_User extends Google_Model { + public $displayName; + public $emailAddress; + public $isAuthenticatedUser; + public $kind; + public $permissionId; + protected $pictureType = 'Google_Service_Drive_UserPicture'; + protected $pictureDataType = ''; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } + public function setEmailAddress($emailAddress) { + $this->emailAddress = $emailAddress; + } - public function getEmailAddress() - { - return $this->emailAddress; - } + public function getEmailAddress() { + return $this->emailAddress; + } - public function setIsAuthenticatedUser($isAuthenticatedUser) - { - $this->isAuthenticatedUser = $isAuthenticatedUser; - } + public function setIsAuthenticatedUser($isAuthenticatedUser) { + $this->isAuthenticatedUser = $isAuthenticatedUser; + } - public function getIsAuthenticatedUser() - { - return $this->isAuthenticatedUser; - } + public function getIsAuthenticatedUser() { + return $this->isAuthenticatedUser; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPermissionId($permissionId) - { - $this->permissionId = $permissionId; - } + public function setPermissionId($permissionId) { + $this->permissionId = $permissionId; + } - public function getPermissionId() - { - return $this->permissionId; - } + public function getPermissionId() { + return $this->permissionId; + } - public function setPicture(Google_Service_Drive_UserPicture $picture) - { - $this->picture = $picture; - } + public function setPicture(Google_Service_Drive_UserPicture $picture) { + $this->picture = $picture; + } - public function getPicture() - { - return $this->picture; - } + public function getPicture() { + return $this->picture; + } } -class Google_Service_Drive_UserPicture extends Google_Model -{ - public $url; +class Google_Service_Drive_UserPicture extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } diff --git a/oauth/Google/Service/Exception.php b/oauth/Google/Service/Exception.php index a780ff7..4f637b9 100644 --- a/oauth/Google/Service/Exception.php +++ b/oauth/Google/Service/Exception.php @@ -2,52 +2,50 @@ require_once 'Google/Exception.php'; -class Google_Service_Exception extends Google_Exception -{ - /** - * Optional list of errors returned in a JSON body of an HTTP error response. - */ - protected $errors = array(); +class Google_Service_Exception extends Google_Exception { + /** + * Optional list of errors returned in a JSON body of an HTTP error response. + */ + protected $errors = array(); - /** - * Override default constructor to add ability to set $errors. - * - * @param string $message - * @param int $code - * @param Exception|null $previous - * @param [{string, string}] errors List of errors returned in an HTTP - * response. Defaults to []. - */ - public function __construct( - $message, - $code = 0, - Exception $previous = null, - $errors = array() - ) { - if (version_compare(PHP_VERSION, '5.3.0') >= 0) { - parent::__construct($message, $code, $previous); - } else { - parent::__construct($message, $code); + /** + * Override default constructor to add ability to set $errors. + * + * @param string $message + * @param int $code + * @param Exception|null $previous + * @param [{string, string}] errors List of errors returned in an HTTP + * response. Defaults to []. + */ + public function __construct( + $message, + $code = 0, + Exception $previous = null, + $errors = array() + ) { + if (version_compare(PHP_VERSION, '5.3.0') >= 0) { + parent::__construct($message, $code, $previous); + } else { + parent::__construct($message, $code); + } + + $this->errors = $errors; } - $this->errors = $errors; - } - - /** - * An example of the possible errors returned. - * - * { - * "domain": "global", - * "reason": "authError", - * "message": "Invalid Credentials", - * "locationType": "header", - * "location": "Authorization", - * } - * - * @return [{string, string}] List of errors return in an HTTP response or []. - */ - public function getErrors() - { - return $this->errors; - } + /** + * An example of the possible errors returned. + * + * { + * "domain": "global", + * "reason": "authError", + * "message": "Invalid Credentials", + * "locationType": "header", + * "location": "Authorization", + * } + * + * @return [{string, string}] List of errors return in an HTTP response or []. + */ + public function getErrors() { + return $this->errors; + } } diff --git a/oauth/Google/Service/Freebase.php b/oauth/Google/Service/Freebase.php index a1157f6..4069ada 100644 --- a/oauth/Google/Service/Freebase.php +++ b/oauth/Google/Service/Freebase.php @@ -29,459 +29,416 @@ * * @author Google, Inc. */ -class Google_Service_Freebase extends Google_Service -{ +class Google_Service_Freebase extends Google_Service { + private $base_methods; - private $base_methods; + /** + * Constructs the internal representation of the Freebase service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'freebase/v1/'; + $this->version = 'v1'; + $this->serviceName = 'freebase'; - /** - * Constructs the internal representation of the Freebase service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'freebase/v1/'; - $this->version = 'v1'; - $this->serviceName = 'freebase'; + $this->base_methods = new Google_Service_Resource( + $this, + $this->serviceName, + '', + array( + 'methods' => array( + 'reconcile' => array( + 'path' => 'reconcile', + 'httpMethod' => 'GET', + 'parameters' => array( + 'lang' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'confidence' => array( + 'location' => 'query', + 'type' => 'number', + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'kind' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'prop' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'limit' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'search' => array( + 'path' => 'search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'domain' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'help' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scoring' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'cursor' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'prefixed' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'exact' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'mid' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'encode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'as_of_time' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'stemmed' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'format' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'spell' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'with' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'lang' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'indent' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'callback' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'without' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'limit' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'output' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mql_output' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } - $this->base_methods = new Google_Service_Resource( - $this, - $this->serviceName, - '', - array( - 'methods' => array( - 'reconcile' => array( - 'path' => 'reconcile', - 'httpMethod' => 'GET', - 'parameters' => array( - 'lang' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'confidence' => array( - 'location' => 'query', - 'type' => 'number', - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'kind' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'prop' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'limit' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'search' => array( - 'path' => 'search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'domain' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'help' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scoring' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'cursor' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'prefixed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'exact' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'mid' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'encode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'as_of_time' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'stemmed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'spell' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'with' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'lang' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'indent' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'callback' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'without' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'limit' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'output' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mql_output' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } - /** - * Reconcile entities to Freebase open data. (reconcile) - * - * @param array $optParams Optional parameters. - * - * @opt_param string lang - * Languages for names and values. First language is used for display. Default is 'en'. - * @opt_param float confidence - * Required confidence for a candidate to match. Must be between .5 and 1.0 - * @opt_param string name - * Name of entity. - * @opt_param string kind - * Classifications of entity e.g. type, category, title. - * @opt_param string prop - * Property values for entity formatted as - : - * @opt_param int limit - * Maximum number of candidates to return. - * @return Google_Service_Freebase_ReconcileGet - */ - public function reconcile($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->base_methods->call('reconcile', array($params), "Google_Service_Freebase_ReconcileGet"); - } - /** - * Search Freebase open data. (search) - * - * @param array $optParams Optional parameters. - * - * @opt_param string domain - * Restrict to topics with this Freebase domain id. - * @opt_param string help - * The keyword to request help on. - * @opt_param string query - * Query term to search for. - * @opt_param string scoring - * Relevance scoring algorithm to use. - * @opt_param int cursor - * The cursor value to use for the next page of results. - * @opt_param bool prefixed - * Prefix match against names and aliases. - * @opt_param bool exact - * Query on exact name and keys only. - * @opt_param string mid - * A mid to use instead of a query. - * @opt_param string encode - * The encoding of the response. You can use this parameter to enable html encoding. - * @opt_param string type - * Restrict to topics with this Freebase type id. - * @opt_param string as_of_time - * A mql as_of_time value to use with mql_output queries. - * @opt_param bool stemmed - * Query on stemmed names and aliases. May not be used with prefixed. - * @opt_param string format - * Structural format of the json response. - * @opt_param string spell - * Request 'did you mean' suggestions - * @opt_param string with - * A rule to match against. - * @opt_param string lang - * The code of the language to run the query with. Default is 'en'. - * @opt_param bool indent - * Whether to indent the json results or not. - * @opt_param string filter - * A filter to apply to the query. - * @opt_param string callback - * JS method name for JSONP callbacks. - * @opt_param string without - * A rule to not match against. - * @opt_param int limit - * Maximum number of results to return. - * @opt_param string output - * An output expression to request data from matches. - * @opt_param string mql_output - * The MQL query to run againist the results to extract more data. - */ - public function search($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('search', array($params)); - } + /** + * Reconcile entities to Freebase open data. (reconcile) + * + * @param array $optParams Optional parameters. + * + * @opt_param string lang + * Languages for names and values. First language is used for display. Default is 'en'. + * @opt_param float confidence + * Required confidence for a candidate to match. Must be between .5 and 1.0 + * @opt_param string name + * Name of entity. + * @opt_param string kind + * Classifications of entity e.g. type, category, title. + * @opt_param string prop + * Property values for entity formatted as + * : + * @opt_param int limit + * Maximum number of candidates to return. + * @return Google_Service_Freebase_ReconcileGet + */ + public function reconcile($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->base_methods->call('reconcile', array($params), "Google_Service_Freebase_ReconcileGet"); + } + + /** + * Search Freebase open data. (search) + * + * @param array $optParams Optional parameters. + * + * @opt_param string domain + * Restrict to topics with this Freebase domain id. + * @opt_param string help + * The keyword to request help on. + * @opt_param string query + * Query term to search for. + * @opt_param string scoring + * Relevance scoring algorithm to use. + * @opt_param int cursor + * The cursor value to use for the next page of results. + * @opt_param bool prefixed + * Prefix match against names and aliases. + * @opt_param bool exact + * Query on exact name and keys only. + * @opt_param string mid + * A mid to use instead of a query. + * @opt_param string encode + * The encoding of the response. You can use this parameter to enable html encoding. + * @opt_param string type + * Restrict to topics with this Freebase type id. + * @opt_param string as_of_time + * A mql as_of_time value to use with mql_output queries. + * @opt_param bool stemmed + * Query on stemmed names and aliases. May not be used with prefixed. + * @opt_param string format + * Structural format of the json response. + * @opt_param string spell + * Request 'did you mean' suggestions + * @opt_param string with + * A rule to match against. + * @opt_param string lang + * The code of the language to run the query with. Default is 'en'. + * @opt_param bool indent + * Whether to indent the json results or not. + * @opt_param string filter + * A filter to apply to the query. + * @opt_param string callback + * JS method name for JSONP callbacks. + * @opt_param string without + * A rule to not match against. + * @opt_param int limit + * Maximum number of results to return. + * @opt_param string output + * An output expression to request data from matches. + * @opt_param string mql_output + * The MQL query to run againist the results to extract more data. + */ + public function search($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('search', array($params)); + } } +class Google_Service_Freebase_ReconcileCandidate extends Google_Model { + public $confidence; + public $lang; + public $mid; + public $name; + protected $notableType = 'Google_Service_Freebase_ReconcileCandidateNotable'; + protected $notableDataType = ''; + public function setConfidence($confidence) { + $this->confidence = $confidence; + } + public function getConfidence() { + return $this->confidence; + } -class Google_Service_Freebase_ReconcileCandidate extends Google_Model -{ - public $confidence; - public $lang; - public $mid; - public $name; - protected $notableType = 'Google_Service_Freebase_ReconcileCandidateNotable'; - protected $notableDataType = ''; + public function setLang($lang) { + $this->lang = $lang; + } - public function setConfidence($confidence) - { - $this->confidence = $confidence; - } + public function getLang() { + return $this->lang; + } - public function getConfidence() - { - return $this->confidence; - } + public function setMid($mid) { + $this->mid = $mid; + } - public function setLang($lang) - { - $this->lang = $lang; - } + public function getMid() { + return $this->mid; + } - public function getLang() - { - return $this->lang; - } + public function setName($name) { + $this->name = $name; + } - public function setMid($mid) - { - $this->mid = $mid; - } + public function getName() { + return $this->name; + } - public function getMid() - { - return $this->mid; - } + public function setNotable(Google_Service_Freebase_ReconcileCandidateNotable $notable) { + $this->notable = $notable; + } - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setNotable(Google_Service_Freebase_ReconcileCandidateNotable $notable) - { - $this->notable = $notable; - } - - public function getNotable() - { - return $this->notable; - } + public function getNotable() { + return $this->notable; + } } -class Google_Service_Freebase_ReconcileCandidateNotable extends Google_Model -{ - public $id; - public $name; +class Google_Service_Freebase_ReconcileCandidateNotable extends Google_Model { + public $id; + public $name; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Freebase_ReconcileGet extends Google_Collection -{ - protected $candidateType = 'Google_Service_Freebase_ReconcileCandidate'; - protected $candidateDataType = 'array'; - protected $costsType = 'Google_Service_Freebase_ReconcileGetCosts'; - protected $costsDataType = ''; - protected $matchType = 'Google_Service_Freebase_ReconcileCandidate'; - protected $matchDataType = ''; - protected $warningType = 'Google_Service_Freebase_ReconcileGetWarning'; - protected $warningDataType = 'array'; +class Google_Service_Freebase_ReconcileGet extends Google_Collection { + protected $candidateType = 'Google_Service_Freebase_ReconcileCandidate'; + protected $candidateDataType = 'array'; + protected $costsType = 'Google_Service_Freebase_ReconcileGetCosts'; + protected $costsDataType = ''; + protected $matchType = 'Google_Service_Freebase_ReconcileCandidate'; + protected $matchDataType = ''; + protected $warningType = 'Google_Service_Freebase_ReconcileGetWarning'; + protected $warningDataType = 'array'; - public function setCandidate($candidate) - { - $this->candidate = $candidate; - } + public function setCandidate($candidate) { + $this->candidate = $candidate; + } - public function getCandidate() - { - return $this->candidate; - } + public function getCandidate() { + return $this->candidate; + } - public function setCosts(Google_Service_Freebase_ReconcileGetCosts $costs) - { - $this->costs = $costs; - } + public function setCosts(Google_Service_Freebase_ReconcileGetCosts $costs) { + $this->costs = $costs; + } - public function getCosts() - { - return $this->costs; - } + public function getCosts() { + return $this->costs; + } - public function setMatch(Google_Service_Freebase_ReconcileCandidate $match) - { - $this->match = $match; - } + public function setMatch(Google_Service_Freebase_ReconcileCandidate $match) { + $this->match = $match; + } - public function getMatch() - { - return $this->match; - } + public function getMatch() { + return $this->match; + } - public function setWarning($warning) - { - $this->warning = $warning; - } + public function setWarning($warning) { + $this->warning = $warning; + } - public function getWarning() - { - return $this->warning; - } + public function getWarning() { + return $this->warning; + } } -class Google_Service_Freebase_ReconcileGetCosts extends Google_Model -{ - public $hits; - public $ms; +class Google_Service_Freebase_ReconcileGetCosts extends Google_Model { + public $hits; + public $ms; - public function setHits($hits) - { - $this->hits = $hits; - } + public function setHits($hits) { + $this->hits = $hits; + } - public function getHits() - { - return $this->hits; - } + public function getHits() { + return $this->hits; + } - public function setMs($ms) - { - $this->ms = $ms; - } + public function setMs($ms) { + $this->ms = $ms; + } - public function getMs() - { - return $this->ms; - } + public function getMs() { + return $this->ms; + } } -class Google_Service_Freebase_ReconcileGetWarning extends Google_Model -{ - public $location; - public $message; - public $reason; +class Google_Service_Freebase_ReconcileGetWarning extends Google_Model { + public $location; + public $message; + public $reason; - public function setLocation($location) - { - $this->location = $location; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setMessage($message) - { - $this->message = $message; - } + public function setMessage($message) { + $this->message = $message; + } - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } - public function setReason($reason) - { - $this->reason = $reason; - } + public function setReason($reason) { + $this->reason = $reason; + } - public function getReason() - { - return $this->reason; - } + public function getReason() { + return $this->reason; + } } diff --git a/oauth/Google/Service/Fusiontables.php b/oauth/Google/Service/Fusiontables.php index ffa01bd..207f79c 100644 --- a/oauth/Google/Service/Fusiontables.php +++ b/oauth/Google/Service/Fusiontables.php @@ -29,573 +29,571 @@ * * @author Google, Inc. */ -class Google_Service_Fusiontables extends Google_Service -{ - /** Manage your Fusion Tables. */ - const FUSIONTABLES = "https://www.googleapis.com/auth/fusiontables"; - /** View your Fusion Tables. */ - const FUSIONTABLES_READONLY = "https://www.googleapis.com/auth/fusiontables.readonly"; +class Google_Service_Fusiontables extends Google_Service { + /** Manage your Fusion Tables. */ + const FUSIONTABLES = "https://www.googleapis.com/auth/fusiontables"; + /** View your Fusion Tables. */ + const FUSIONTABLES_READONLY = "https://www.googleapis.com/auth/fusiontables.readonly"; - public $column; - public $query; - public $style; - public $table; - public $task; - public $template; - + public $column; + public $query; + public $style; + public $table; + public $task; + public $template; - /** - * Constructs the internal representation of the Fusiontables service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'fusiontables/v1/'; - $this->version = 'v1'; - $this->serviceName = 'fusiontables'; - $this->column = new Google_Service_Fusiontables_Column_Resource( - $this, - $this->serviceName, - 'column', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'tables/{tableId}/columns/{columnId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'columnId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}/columns/{columnId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'columnId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'tables/{tableId}/columns', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'tables/{tableId}/columns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'tables/{tableId}/columns/{columnId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'columnId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'tables/{tableId}/columns/{columnId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'columnId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->query = new Google_Service_Fusiontables_Query_Resource( - $this, - $this->serviceName, - 'query', - array( - 'methods' => array( - 'sql' => array( - 'path' => 'query', - 'httpMethod' => 'POST', - 'parameters' => array( - 'sql' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'typed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'hdrs' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'sqlGet' => array( - 'path' => 'query', - 'httpMethod' => 'GET', - 'parameters' => array( - 'sql' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'typed' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'hdrs' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->style = new Google_Service_Fusiontables_Style_Resource( - $this, - $this->serviceName, - 'style', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'tables/{tableId}/styles/{styleId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'styleId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}/styles/{styleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'styleId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'tables/{tableId}/styles', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'tables/{tableId}/styles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'tables/{tableId}/styles/{styleId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'styleId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'tables/{tableId}/styles/{styleId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'styleId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->table = new Google_Service_Fusiontables_Table_Resource( - $this, - $this->serviceName, - 'table', - array( - 'methods' => array( - 'copy' => array( - 'path' => 'tables/{tableId}/copy', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'copyPresentation' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => 'tables/{tableId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'importRows' => array( - 'path' => 'tables/{tableId}/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startLine' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'isStrict' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'encoding' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'delimiter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endLine' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'importTable' => array( - 'path' => 'tables/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'delimiter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'encoding' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'tables', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'tables', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'tables/{tableId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replaceViewDefinition' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'tables/{tableId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replaceViewDefinition' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->task = new Google_Service_Fusiontables_Task_Resource( - $this, - $this->serviceName, - 'task', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'tables/{tableId}/tasks/{taskId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}/tasks/{taskId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'tables/{tableId}/tasks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->template = new Google_Service_Fusiontables_Template_Resource( - $this, - $this->serviceName, - 'template', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'tables/{tableId}/templates/{templateId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}/templates/{templateId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'tables/{tableId}/templates', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'tables/{tableId}/templates', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'tables/{tableId}/templates/{templateId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'tables/{tableId}/templates/{templateId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Fusiontables service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'fusiontables/v1/'; + $this->version = 'v1'; + $this->serviceName = 'fusiontables'; + + $this->column = new Google_Service_Fusiontables_Column_Resource( + $this, + $this->serviceName, + 'column', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'tables/{tableId}/columns/{columnId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'columnId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'tables/{tableId}/columns/{columnId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'columnId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'tables/{tableId}/columns', + 'httpMethod' => 'POST', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'tables/{tableId}/columns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'tables/{tableId}/columns/{columnId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'columnId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'tables/{tableId}/columns/{columnId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'columnId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->query = new Google_Service_Fusiontables_Query_Resource( + $this, + $this->serviceName, + 'query', + array( + 'methods' => array( + 'sql' => array( + 'path' => 'query', + 'httpMethod' => 'POST', + 'parameters' => array( + 'sql' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'typed' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'hdrs' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'sqlGet' => array( + 'path' => 'query', + 'httpMethod' => 'GET', + 'parameters' => array( + 'sql' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'typed' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'hdrs' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->style = new Google_Service_Fusiontables_Style_Resource( + $this, + $this->serviceName, + 'style', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'tables/{tableId}/styles/{styleId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'styleId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'tables/{tableId}/styles/{styleId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'styleId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'tables/{tableId}/styles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'tables/{tableId}/styles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'tables/{tableId}/styles/{styleId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'styleId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'tables/{tableId}/styles/{styleId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'styleId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->table = new Google_Service_Fusiontables_Table_Resource( + $this, + $this->serviceName, + 'table', + array( + 'methods' => array( + 'copy' => array( + 'path' => 'tables/{tableId}/copy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'copyPresentation' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'delete' => array( + 'path' => 'tables/{tableId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'tables/{tableId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'importRows' => array( + 'path' => 'tables/{tableId}/import', + 'httpMethod' => 'POST', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startLine' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'isStrict' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'encoding' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'delimiter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endLine' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'importTable' => array( + 'path' => 'tables/import', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'delimiter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'encoding' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'tables', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'list' => array( + 'path' => 'tables', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'tables/{tableId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replaceViewDefinition' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'update' => array( + 'path' => 'tables/{tableId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replaceViewDefinition' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->task = new Google_Service_Fusiontables_Task_Resource( + $this, + $this->serviceName, + 'task', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'tables/{tableId}/tasks/{taskId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'tables/{tableId}/tasks/{taskId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'tables/{tableId}/tasks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->template = new Google_Service_Fusiontables_Template_Resource( + $this, + $this->serviceName, + 'template', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'tables/{tableId}/templates/{templateId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'templateId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'tables/{tableId}/templates/{templateId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'templateId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'tables/{tableId}/templates', + 'httpMethod' => 'POST', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'tables/{tableId}/templates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'tables/{tableId}/templates/{templateId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'templateId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'tables/{tableId}/templates/{templateId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'templateId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -607,109 +605,107 @@ class Google_Service_Fusiontables extends Google_Service * $column = $fusiontablesService->column; * */ -class Google_Service_Fusiontables_Column_Resource extends Google_Service_Resource -{ +class Google_Service_Fusiontables_Column_Resource extends Google_Service_Resource { - /** - * Deletes the column. (column.delete) - * - * @param string $tableId - * Table from which the column is being deleted. - * @param string $columnId - * Name or identifier for the column being deleted. - * @param array $optParams Optional parameters. - */ - public function delete($tableId, $columnId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'columnId' => $columnId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a specific column by its id. (column.get) - * - * @param string $tableId - * Table to which the column belongs. - * @param string $columnId - * Name or identifier for the column that is being requested. - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Column - */ - public function get($tableId, $columnId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'columnId' => $columnId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fusiontables_Column"); - } - /** - * Adds a new column to the table. (column.insert) - * - * @param string $tableId - * Table for which a new column is being added. - * @param Google_Column $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Column - */ - public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Fusiontables_Column"); - } - /** - * Retrieves a list of columns. (column.listColumn) - * - * @param string $tableId - * Table whose columns are being listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Continuation token specifying which result page to return. Optional. - * @opt_param string maxResults - * Maximum number of columns to return. Optional. Default is 5. - * @return Google_Service_Fusiontables_ColumnList - */ - public function listColumn($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Fusiontables_ColumnList"); - } - /** - * Updates the name or type of an existing column. This method supports patch - * semantics. (column.patch) - * - * @param string $tableId - * Table for which the column is being updated. - * @param string $columnId - * Name or identifier for the column that is being updated. - * @param Google_Column $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Column - */ - public function patch($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Fusiontables_Column"); - } - /** - * Updates the name or type of an existing column. (column.update) - * - * @param string $tableId - * Table for which the column is being updated. - * @param string $columnId - * Name or identifier for the column that is being updated. - * @param Google_Column $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Column - */ - public function update($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Fusiontables_Column"); - } + /** + * Deletes the column. (column.delete) + * + * @param string $tableId + * Table from which the column is being deleted. + * @param string $columnId + * Name or identifier for the column being deleted. + * @param array $optParams Optional parameters. + */ + public function delete($tableId, $columnId, $optParams = array()) { + $params = array('tableId' => $tableId, 'columnId' => $columnId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a specific column by its id. (column.get) + * + * @param string $tableId + * Table to which the column belongs. + * @param string $columnId + * Name or identifier for the column that is being requested. + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Column + */ + public function get($tableId, $columnId, $optParams = array()) { + $params = array('tableId' => $tableId, 'columnId' => $columnId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Fusiontables_Column"); + } + + /** + * Adds a new column to the table. (column.insert) + * + * @param string $tableId + * Table for which a new column is being added. + * @param Google_Column $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Column + */ + public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) { + $params = array('tableId' => $tableId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Fusiontables_Column"); + } + + /** + * Retrieves a list of columns. (column.listColumn) + * + * @param string $tableId + * Table whose columns are being listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Continuation token specifying which result page to return. Optional. + * @opt_param string maxResults + * Maximum number of columns to return. Optional. Default is 5. + * @return Google_Service_Fusiontables_ColumnList + */ + public function listColumn($tableId, $optParams = array()) { + $params = array('tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Fusiontables_ColumnList"); + } + + /** + * Updates the name or type of an existing column. This method supports patch + * semantics. (column.patch) + * + * @param string $tableId + * Table for which the column is being updated. + * @param string $columnId + * Name or identifier for the column that is being updated. + * @param Google_Column $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Column + */ + public function patch($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) { + $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Fusiontables_Column"); + } + + /** + * Updates the name or type of an existing column. (column.update) + * + * @param string $tableId + * Table for which the column is being updated. + * @param string $columnId + * Name or identifier for the column that is being updated. + * @param Google_Column $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Column + */ + public function update($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array()) { + $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Fusiontables_Column"); + } } /** @@ -720,50 +716,48 @@ class Google_Service_Fusiontables_Column_Resource extends Google_Service_Resourc * $query = $fusiontablesService->query; * */ -class Google_Service_Fusiontables_Query_Resource extends Google_Service_Resource -{ +class Google_Service_Fusiontables_Query_Resource extends Google_Service_Resource { - /** - * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement. - * (query.sql) - * - * @param string $sql - * An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE statement. - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param bool hdrs - * Should column names be included (in the first row)?. Default is true. - * @return Google_Service_Fusiontables_Sqlresponse - */ - public function sql($sql, $optParams = array()) - { - $params = array('sql' => $sql); - $params = array_merge($params, $optParams); - return $this->call('sql', array($params), "Google_Service_Fusiontables_Sqlresponse"); - } - /** - * Executes an SQL SELECT/SHOW/DESCRIBE statement. (query.sqlGet) - * - * @param string $sql - * An SQL SELECT/SHOW/DESCRIBE statement. - * @param array $optParams Optional parameters. - * - * @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. - * @opt_param bool hdrs - * Should column names be included (in the first row)?. Default is true. - * @return Google_Service_Fusiontables_Sqlresponse - */ - public function sqlGet($sql, $optParams = array()) - { - $params = array('sql' => $sql); - $params = array_merge($params, $optParams); - return $this->call('sqlGet', array($params), "Google_Service_Fusiontables_Sqlresponse"); - } + /** + * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement. + * (query.sql) + * + * @param string $sql + * An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE statement. + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param bool hdrs + * Should column names be included (in the first row)?. Default is true. + * @return Google_Service_Fusiontables_Sqlresponse + */ + public function sql($sql, $optParams = array()) { + $params = array('sql' => $sql); + $params = array_merge($params, $optParams); + return $this->call('sql', array($params), "Google_Service_Fusiontables_Sqlresponse"); + } + + /** + * Executes an SQL SELECT/SHOW/DESCRIBE statement. (query.sqlGet) + * + * @param string $sql + * An SQL SELECT/SHOW/DESCRIBE statement. + * @param array $optParams Optional parameters. + * + * @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. + * @opt_param bool hdrs + * Should column names be included (in the first row)?. Default is true. + * @return Google_Service_Fusiontables_Sqlresponse + */ + public function sqlGet($sql, $optParams = array()) { + $params = array('sql' => $sql); + $params = array_merge($params, $optParams); + return $this->call('sqlGet', array($params), "Google_Service_Fusiontables_Sqlresponse"); + } } /** @@ -774,109 +768,107 @@ class Google_Service_Fusiontables_Query_Resource extends Google_Service_Resource * $style = $fusiontablesService->style; * */ -class Google_Service_Fusiontables_Style_Resource extends Google_Service_Resource -{ +class Google_Service_Fusiontables_Style_Resource extends Google_Service_Resource { - /** - * Deletes a style. (style.delete) - * - * @param string $tableId - * Table from which the style is being deleted - * @param int $styleId - * Identifier (within a table) for the style being deleted - * @param array $optParams Optional parameters. - */ - public function delete($tableId, $styleId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'styleId' => $styleId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a specific style. (style.get) - * - * @param string $tableId - * Table to which the requested style belongs - * @param int $styleId - * Identifier (integer) for a specific style in a table - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_StyleSetting - */ - public function get($tableId, $styleId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'styleId' => $styleId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fusiontables_StyleSetting"); - } - /** - * Adds a new style for the table. (style.insert) - * - * @param string $tableId - * Table for which a new style is being added - * @param Google_StyleSetting $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_StyleSetting - */ - public function insert($tableId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Fusiontables_StyleSetting"); - } - /** - * Retrieves a list of styles. (style.listStyle) - * - * @param string $tableId - * Table whose styles are being listed - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Continuation token specifying which result page to return. Optional. - * @opt_param string maxResults - * Maximum number of styles to return. Optional. Default is 5. - * @return Google_Service_Fusiontables_StyleSettingList - */ - public function listStyle($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Fusiontables_StyleSettingList"); - } - /** - * Updates an existing style. This method supports patch semantics. - * (style.patch) - * - * @param string $tableId - * Table whose style is being updated. - * @param int $styleId - * Identifier (within a table) for the style being updated. - * @param Google_StyleSetting $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_StyleSetting - */ - public function patch($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Fusiontables_StyleSetting"); - } - /** - * Updates an existing style. (style.update) - * - * @param string $tableId - * Table whose style is being updated. - * @param int $styleId - * Identifier (within a table) for the style being updated. - * @param Google_StyleSetting $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_StyleSetting - */ - public function update($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Fusiontables_StyleSetting"); - } + /** + * Deletes a style. (style.delete) + * + * @param string $tableId + * Table from which the style is being deleted + * @param int $styleId + * Identifier (within a table) for the style being deleted + * @param array $optParams Optional parameters. + */ + public function delete($tableId, $styleId, $optParams = array()) { + $params = array('tableId' => $tableId, 'styleId' => $styleId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a specific style. (style.get) + * + * @param string $tableId + * Table to which the requested style belongs + * @param int $styleId + * Identifier (integer) for a specific style in a table + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_StyleSetting + */ + public function get($tableId, $styleId, $optParams = array()) { + $params = array('tableId' => $tableId, 'styleId' => $styleId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Fusiontables_StyleSetting"); + } + + /** + * Adds a new style for the table. (style.insert) + * + * @param string $tableId + * Table for which a new style is being added + * @param Google_StyleSetting $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_StyleSetting + */ + public function insert($tableId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) { + $params = array('tableId' => $tableId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Fusiontables_StyleSetting"); + } + + /** + * Retrieves a list of styles. (style.listStyle) + * + * @param string $tableId + * Table whose styles are being listed + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Continuation token specifying which result page to return. Optional. + * @opt_param string maxResults + * Maximum number of styles to return. Optional. Default is 5. + * @return Google_Service_Fusiontables_StyleSettingList + */ + public function listStyle($tableId, $optParams = array()) { + $params = array('tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Fusiontables_StyleSettingList"); + } + + /** + * Updates an existing style. This method supports patch semantics. + * (style.patch) + * + * @param string $tableId + * Table whose style is being updated. + * @param int $styleId + * Identifier (within a table) for the style being updated. + * @param Google_StyleSetting $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_StyleSetting + */ + public function patch($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) { + $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Fusiontables_StyleSetting"); + } + + /** + * Updates an existing style. (style.update) + * + * @param string $tableId + * Table whose style is being updated. + * @param int $styleId + * Identifier (within a table) for the style being updated. + * @param Google_StyleSetting $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_StyleSetting + */ + public function update($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array()) { + $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Fusiontables_StyleSetting"); + } } /** @@ -887,178 +879,176 @@ class Google_Service_Fusiontables_Style_Resource extends Google_Service_Resource * $table = $fusiontablesService->table; * */ -class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource -{ +class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource { - /** - * Copies a table. (table.copy) - * - * @param string $tableId - * ID of the table that is being copied. - * @param array $optParams Optional parameters. - * - * @opt_param bool copyPresentation - * Whether to also copy tabs, styles, and templates. Default is false. - * @return Google_Service_Fusiontables_Table - */ - public function copy($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('copy', array($params), "Google_Service_Fusiontables_Table"); - } - /** - * Deletes a table. (table.delete) - * - * @param string $tableId - * ID of the table that is being deleted. - * @param array $optParams Optional parameters. - */ - public function delete($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a specific table by its id. (table.get) - * - * @param string $tableId - * Identifier(ID) for the table being requested. - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Table - */ - public function get($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fusiontables_Table"); - } - /** - * Import more rows into a table. (table.importRows) - * - * @param string $tableId - * The table into which new rows are being imported. - * @param array $optParams Optional parameters. - * - * @opt_param int startLine - * The index of the first line from which to start importing, inclusive. Default is 0. - * @opt_param bool isStrict - * Whether the CSV must have the same number of values for each row. If false, rows with fewer - * values will be padded with empty values. Default is true. - * @opt_param string encoding - * The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the - * encoding. - * @opt_param string delimiter - * The delimiter used to separate cell values. This can only consist of a single character. Default - * is ','. - * @opt_param int endLine - * The index of the last line from which to start importing, exclusive. Thus, the number of - * imported lines is endLine - startLine. If this parameter is not provided, the file will be - * imported until the last line of the file. If endLine is negative, then the imported content will - * exclude the last endLine lines. That is, if endline is negative, no line will be imported whose - * index is greater than N + endLine where N is the number of lines in the file, and the number of - * imported lines will be N + endLine - startLine. - * @return Google_Service_Fusiontables_Import - */ - public function importRows($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('importRows', array($params), "Google_Service_Fusiontables_Import"); - } - /** - * Import a new table. (table.importTable) - * - * @param string $name - * The name to be assigned to the new table. - * @param array $optParams Optional parameters. - * - * @opt_param string delimiter - * The delimiter used to separate cell values. This can only consist of a single character. Default - * is ','. - * @opt_param string encoding - * The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the - * encoding. - * @return Google_Service_Fusiontables_Table - */ - public function importTable($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('importTable', array($params), "Google_Service_Fusiontables_Table"); - } - /** - * Creates a new table. (table.insert) - * - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Table - */ - public function insert(Google_Service_Fusiontables_Table $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Fusiontables_Table"); - } - /** - * Retrieves a list of tables a user owns. (table.listTable) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Continuation token specifying which result page to return. Optional. - * @opt_param string maxResults - * Maximum number of styles to return. Optional. Default is 5. - * @return Google_Service_Fusiontables_TableList - */ - public function listTable($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Fusiontables_TableList"); - } - /** - * Updates an existing table. Unless explicitly requested, only the name, - * description, and attribution will be updated. This method supports patch - * semantics. (table.patch) - * - * @param string $tableId - * ID of the table that is being updated. - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * - * @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. - * @return Google_Service_Fusiontables_Table - */ - public function patch($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Fusiontables_Table"); - } - /** - * Updates an existing table. Unless explicitly requested, only the name, - * description, and attribution will be updated. (table.update) - * - * @param string $tableId - * ID of the table that is being updated. - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * - * @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. - * @return Google_Service_Fusiontables_Table - */ - public function update($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Fusiontables_Table"); - } + /** + * Copies a table. (table.copy) + * + * @param string $tableId + * ID of the table that is being copied. + * @param array $optParams Optional parameters. + * + * @opt_param bool copyPresentation + * Whether to also copy tabs, styles, and templates. Default is false. + * @return Google_Service_Fusiontables_Table + */ + public function copy($tableId, $optParams = array()) { + $params = array('tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('copy', array($params), "Google_Service_Fusiontables_Table"); + } + + /** + * Deletes a table. (table.delete) + * + * @param string $tableId + * ID of the table that is being deleted. + * @param array $optParams Optional parameters. + */ + public function delete($tableId, $optParams = array()) { + $params = array('tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a specific table by its id. (table.get) + * + * @param string $tableId + * Identifier(ID) for the table being requested. + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Table + */ + public function get($tableId, $optParams = array()) { + $params = array('tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Fusiontables_Table"); + } + + /** + * Import more rows into a table. (table.importRows) + * + * @param string $tableId + * The table into which new rows are being imported. + * @param array $optParams Optional parameters. + * + * @opt_param int startLine + * The index of the first line from which to start importing, inclusive. Default is 0. + * @opt_param bool isStrict + * Whether the CSV must have the same number of values for each row. If false, rows with fewer + * values will be padded with empty values. Default is true. + * @opt_param string encoding + * The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the + * encoding. + * @opt_param string delimiter + * The delimiter used to separate cell values. This can only consist of a single character. Default + * is ','. + * @opt_param int endLine + * The index of the last line from which to start importing, exclusive. Thus, the number of + * imported lines is endLine - startLine. If this parameter is not provided, the file will be + * imported until the last line of the file. If endLine is negative, then the imported content will + * exclude the last endLine lines. That is, if endline is negative, no line will be imported whose + * index is greater than N + endLine where N is the number of lines in the file, and the number of + * imported lines will be N + endLine - startLine. + * @return Google_Service_Fusiontables_Import + */ + public function importRows($tableId, $optParams = array()) { + $params = array('tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('importRows', array($params), "Google_Service_Fusiontables_Import"); + } + + /** + * Import a new table. (table.importTable) + * + * @param string $name + * The name to be assigned to the new table. + * @param array $optParams Optional parameters. + * + * @opt_param string delimiter + * The delimiter used to separate cell values. This can only consist of a single character. Default + * is ','. + * @opt_param string encoding + * The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the + * encoding. + * @return Google_Service_Fusiontables_Table + */ + public function importTable($name, $optParams = array()) { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('importTable', array($params), "Google_Service_Fusiontables_Table"); + } + + /** + * Creates a new table. (table.insert) + * + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Table + */ + public function insert(Google_Service_Fusiontables_Table $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Fusiontables_Table"); + } + + /** + * Retrieves a list of tables a user owns. (table.listTable) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Continuation token specifying which result page to return. Optional. + * @opt_param string maxResults + * Maximum number of styles to return. Optional. Default is 5. + * @return Google_Service_Fusiontables_TableList + */ + public function listTable($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Fusiontables_TableList"); + } + + /** + * Updates an existing table. Unless explicitly requested, only the name, + * description, and attribution will be updated. This method supports patch + * semantics. (table.patch) + * + * @param string $tableId + * ID of the table that is being updated. + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + * + * @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. + * @return Google_Service_Fusiontables_Table + */ + public function patch($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array()) { + $params = array('tableId' => $tableId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Fusiontables_Table"); + } + + /** + * Updates an existing table. Unless explicitly requested, only the name, + * description, and attribution will be updated. (table.update) + * + * @param string $tableId + * ID of the table that is being updated. + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + * + * @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. + * @return Google_Service_Fusiontables_Table + */ + public function update($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array()) { + $params = array('tableId' => $tableId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Fusiontables_Table"); + } } /** @@ -1069,61 +1059,59 @@ class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource * $task = $fusiontablesService->task; * */ -class Google_Service_Fusiontables_Task_Resource extends Google_Service_Resource -{ +class Google_Service_Fusiontables_Task_Resource extends Google_Service_Resource { - /** - * Deletes the task, unless already started. (task.delete) - * - * @param string $tableId - * Table from which the task is being deleted. - * @param string $taskId - * - * @param array $optParams Optional parameters. - */ - public function delete($tableId, $taskId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'taskId' => $taskId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a specific task by its id. (task.get) - * - * @param string $tableId - * Table to which the task belongs. - * @param string $taskId - * - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Task - */ - public function get($tableId, $taskId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'taskId' => $taskId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fusiontables_Task"); - } - /** - * Retrieves a list of tasks. (task.listTask) - * - * @param string $tableId - * Table whose tasks are being listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * - * @opt_param string startIndex - * - * @opt_param string maxResults - * Maximum number of columns to return. Optional. Default is 5. - * @return Google_Service_Fusiontables_TaskList - */ - public function listTask($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Fusiontables_TaskList"); - } + /** + * Deletes the task, unless already started. (task.delete) + * + * @param string $tableId + * Table from which the task is being deleted. + * @param string $taskId + * + * @param array $optParams Optional parameters. + */ + public function delete($tableId, $taskId, $optParams = array()) { + $params = array('tableId' => $tableId, 'taskId' => $taskId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a specific task by its id. (task.get) + * + * @param string $tableId + * Table to which the task belongs. + * @param string $taskId + * + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Task + */ + public function get($tableId, $taskId, $optParams = array()) { + $params = array('tableId' => $tableId, 'taskId' => $taskId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Fusiontables_Task"); + } + + /** + * Retrieves a list of tasks. (task.listTask) + * + * @param string $tableId + * Table whose tasks are being listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * + * @opt_param string startIndex + * + * @opt_param string maxResults + * Maximum number of columns to return. Optional. Default is 5. + * @return Google_Service_Fusiontables_TaskList + */ + public function listTask($tableId, $optParams = array()) { + $params = array('tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Fusiontables_TaskList"); + } } /** @@ -1134,1325 +1122,1097 @@ class Google_Service_Fusiontables_Task_Resource extends Google_Service_Resource * $template = $fusiontablesService->template; * */ -class Google_Service_Fusiontables_Template_Resource extends Google_Service_Resource -{ +class Google_Service_Fusiontables_Template_Resource extends Google_Service_Resource { - /** - * Deletes a template (template.delete) - * - * @param string $tableId - * Table from which the template is being deleted - * @param int $templateId - * Identifier for the template which is being deleted - * @param array $optParams Optional parameters. - */ - public function delete($tableId, $templateId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'templateId' => $templateId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a specific template by its id (template.get) - * - * @param string $tableId - * Table to which the template belongs - * @param int $templateId - * Identifier for the template that is being requested - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Template - */ - public function get($tableId, $templateId, $optParams = array()) - { - $params = array('tableId' => $tableId, 'templateId' => $templateId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Fusiontables_Template"); - } - /** - * Creates a new template for the table. (template.insert) - * - * @param string $tableId - * Table for which a new template is being created - * @param Google_Template $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Template - */ - public function insert($tableId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Fusiontables_Template"); - } - /** - * Retrieves a list of templates. (template.listTemplate) - * - * @param string $tableId - * Identifier for the table whose templates are being requested - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Continuation token specifying which results page to return. Optional. - * @opt_param string maxResults - * Maximum number of templates to return. Optional. Default is 5. - * @return Google_Service_Fusiontables_TemplateList - */ - public function listTemplate($tableId, $optParams = array()) - { - $params = array('tableId' => $tableId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Fusiontables_TemplateList"); - } - /** - * Updates an existing template. This method supports patch semantics. - * (template.patch) - * - * @param string $tableId - * Table to which the updated template belongs - * @param int $templateId - * Identifier for the template that is being updated - * @param Google_Template $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Template - */ - public function patch($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Fusiontables_Template"); - } - /** - * Updates an existing template (template.update) - * - * @param string $tableId - * Table to which the updated template belongs - * @param int $templateId - * Identifier for the template that is being updated - * @param Google_Template $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fusiontables_Template - */ - public function update($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) - { - $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Fusiontables_Template"); - } + /** + * Deletes a template (template.delete) + * + * @param string $tableId + * Table from which the template is being deleted + * @param int $templateId + * Identifier for the template which is being deleted + * @param array $optParams Optional parameters. + */ + public function delete($tableId, $templateId, $optParams = array()) { + $params = array('tableId' => $tableId, 'templateId' => $templateId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a specific template by its id (template.get) + * + * @param string $tableId + * Table to which the template belongs + * @param int $templateId + * Identifier for the template that is being requested + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Template + */ + public function get($tableId, $templateId, $optParams = array()) { + $params = array('tableId' => $tableId, 'templateId' => $templateId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Fusiontables_Template"); + } + + /** + * Creates a new template for the table. (template.insert) + * + * @param string $tableId + * Table for which a new template is being created + * @param Google_Template $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Template + */ + public function insert($tableId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) { + $params = array('tableId' => $tableId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Fusiontables_Template"); + } + + /** + * Retrieves a list of templates. (template.listTemplate) + * + * @param string $tableId + * Identifier for the table whose templates are being requested + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Continuation token specifying which results page to return. Optional. + * @opt_param string maxResults + * Maximum number of templates to return. Optional. Default is 5. + * @return Google_Service_Fusiontables_TemplateList + */ + public function listTemplate($tableId, $optParams = array()) { + $params = array('tableId' => $tableId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Fusiontables_TemplateList"); + } + + /** + * Updates an existing template. This method supports patch semantics. + * (template.patch) + * + * @param string $tableId + * Table to which the updated template belongs + * @param int $templateId + * Identifier for the template that is being updated + * @param Google_Template $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Template + */ + public function patch($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) { + $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Fusiontables_Template"); + } + + /** + * Updates an existing template (template.update) + * + * @param string $tableId + * Table to which the updated template belongs + * @param int $templateId + * Identifier for the template that is being updated + * @param Google_Template $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fusiontables_Template + */ + public function update($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array()) { + $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Fusiontables_Template"); + } } +class Google_Service_Fusiontables_Bucket extends Google_Model { + public $color; + public $icon; + public $max; + public $min; + public $opacity; + public $weight; + public function setColor($color) { + $this->color = $color; + } -class Google_Service_Fusiontables_Bucket extends Google_Model -{ - public $color; - public $icon; - public $max; - public $min; - public $opacity; - public $weight; + public function getColor() { + return $this->color; + } - public function setColor($color) - { - $this->color = $color; - } + public function setIcon($icon) { + $this->icon = $icon; + } - public function getColor() - { - return $this->color; - } + public function getIcon() { + return $this->icon; + } - public function setIcon($icon) - { - $this->icon = $icon; - } + public function setMax($max) { + $this->max = $max; + } - public function getIcon() - { - return $this->icon; - } + public function getMax() { + return $this->max; + } - public function setMax($max) - { - $this->max = $max; - } + public function setMin($min) { + $this->min = $min; + } - public function getMax() - { - return $this->max; - } + public function getMin() { + return $this->min; + } - public function setMin($min) - { - $this->min = $min; - } + public function setOpacity($opacity) { + $this->opacity = $opacity; + } - public function getMin() - { - return $this->min; - } + public function getOpacity() { + return $this->opacity; + } - public function setOpacity($opacity) - { - $this->opacity = $opacity; - } + public function setWeight($weight) { + $this->weight = $weight; + } - public function getOpacity() - { - return $this->opacity; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - - public function getWeight() - { - return $this->weight; - } + public function getWeight() { + return $this->weight; + } } -class Google_Service_Fusiontables_Column extends Google_Model -{ - protected $baseColumnType = 'Google_Service_Fusiontables_ColumnBaseColumn'; - protected $baseColumnDataType = ''; - public $columnId; - public $description; - public $graphPredicate; - public $kind; - public $name; - public $type; +class Google_Service_Fusiontables_Column extends Google_Model { + protected $baseColumnType = 'Google_Service_Fusiontables_ColumnBaseColumn'; + protected $baseColumnDataType = ''; + public $columnId; + public $description; + public $graphPredicate; + public $kind; + public $name; + public $type; - public function setBaseColumn(Google_Service_Fusiontables_ColumnBaseColumn $baseColumn) - { - $this->baseColumn = $baseColumn; - } + public function setBaseColumn(Google_Service_Fusiontables_ColumnBaseColumn $baseColumn) { + $this->baseColumn = $baseColumn; + } - public function getBaseColumn() - { - return $this->baseColumn; - } + public function getBaseColumn() { + return $this->baseColumn; + } - public function setColumnId($columnId) - { - $this->columnId = $columnId; - } + public function setColumnId($columnId) { + $this->columnId = $columnId; + } - public function getColumnId() - { - return $this->columnId; - } + public function getColumnId() { + return $this->columnId; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setGraphPredicate($graphPredicate) - { - $this->graphPredicate = $graphPredicate; - } + public function setGraphPredicate($graphPredicate) { + $this->graphPredicate = $graphPredicate; + } - public function getGraphPredicate() - { - return $this->graphPredicate; - } + public function getGraphPredicate() { + return $this->graphPredicate; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Fusiontables_ColumnBaseColumn extends Google_Model -{ - public $columnId; - public $tableIndex; +class Google_Service_Fusiontables_ColumnBaseColumn extends Google_Model { + public $columnId; + public $tableIndex; - public function setColumnId($columnId) - { - $this->columnId = $columnId; - } + public function setColumnId($columnId) { + $this->columnId = $columnId; + } - public function getColumnId() - { - return $this->columnId; - } + public function getColumnId() { + return $this->columnId; + } - public function setTableIndex($tableIndex) - { - $this->tableIndex = $tableIndex; - } + public function setTableIndex($tableIndex) { + $this->tableIndex = $tableIndex; + } - public function getTableIndex() - { - return $this->tableIndex; - } + public function getTableIndex() { + return $this->tableIndex; + } } -class Google_Service_Fusiontables_ColumnList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Fusiontables_Column'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; +class Google_Service_Fusiontables_ColumnList extends Google_Collection { + protected $itemsType = 'Google_Service_Fusiontables_Column'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $totalItems; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Fusiontables_Geometry extends Google_Collection -{ - public $geometries; - public $geometry; - public $type; +class Google_Service_Fusiontables_Geometry extends Google_Collection { + public $geometries; + public $geometry; + public $type; - public function setGeometries($geometries) - { - $this->geometries = $geometries; - } + public function setGeometries($geometries) { + $this->geometries = $geometries; + } - public function getGeometries() - { - return $this->geometries; - } + public function getGeometries() { + return $this->geometries; + } - public function setGeometry($geometry) - { - $this->geometry = $geometry; - } + public function setGeometry($geometry) { + $this->geometry = $geometry; + } - public function getGeometry() - { - return $this->geometry; - } + public function getGeometry() { + return $this->geometry; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Fusiontables_Import extends Google_Model -{ - public $kind; - public $numRowsReceived; +class Google_Service_Fusiontables_Import extends Google_Model { + public $kind; + public $numRowsReceived; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNumRowsReceived($numRowsReceived) - { - $this->numRowsReceived = $numRowsReceived; - } + public function setNumRowsReceived($numRowsReceived) { + $this->numRowsReceived = $numRowsReceived; + } - public function getNumRowsReceived() - { - return $this->numRowsReceived; - } + public function getNumRowsReceived() { + return $this->numRowsReceived; + } } -class Google_Service_Fusiontables_Line extends Google_Collection -{ - public $coordinates; - public $type; +class Google_Service_Fusiontables_Line extends Google_Collection { + public $coordinates; + public $type; - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } + public function setCoordinates($coordinates) { + $this->coordinates = $coordinates; + } - public function getCoordinates() - { - return $this->coordinates; - } + public function getCoordinates() { + return $this->coordinates; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Fusiontables_LineStyle extends Google_Model -{ - public $strokeColor; - protected $strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $strokeColorStylerDataType = ''; - public $strokeOpacity; - public $strokeWeight; - protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $strokeWeightStylerDataType = ''; +class Google_Service_Fusiontables_LineStyle extends Google_Model { + public $strokeColor; + protected $strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction'; + protected $strokeColorStylerDataType = ''; + public $strokeOpacity; + public $strokeWeight; + protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction'; + protected $strokeWeightStylerDataType = ''; - public function setStrokeColor($strokeColor) - { - $this->strokeColor = $strokeColor; - } + public function setStrokeColor($strokeColor) { + $this->strokeColor = $strokeColor; + } - public function getStrokeColor() - { - return $this->strokeColor; - } + public function getStrokeColor() { + return $this->strokeColor; + } - public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $strokeColorStyler) - { - $this->strokeColorStyler = $strokeColorStyler; - } + public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $strokeColorStyler) { + $this->strokeColorStyler = $strokeColorStyler; + } - public function getStrokeColorStyler() - { - return $this->strokeColorStyler; - } + public function getStrokeColorStyler() { + return $this->strokeColorStyler; + } - public function setStrokeOpacity($strokeOpacity) - { - $this->strokeOpacity = $strokeOpacity; - } + public function setStrokeOpacity($strokeOpacity) { + $this->strokeOpacity = $strokeOpacity; + } - public function getStrokeOpacity() - { - return $this->strokeOpacity; - } + public function getStrokeOpacity() { + return $this->strokeOpacity; + } - public function setStrokeWeight($strokeWeight) - { - $this->strokeWeight = $strokeWeight; - } + public function setStrokeWeight($strokeWeight) { + $this->strokeWeight = $strokeWeight; + } - public function getStrokeWeight() - { - return $this->strokeWeight; - } + public function getStrokeWeight() { + return $this->strokeWeight; + } - public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction $strokeWeightStyler) - { - $this->strokeWeightStyler = $strokeWeightStyler; - } + public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction $strokeWeightStyler) { + $this->strokeWeightStyler = $strokeWeightStyler; + } - public function getStrokeWeightStyler() - { - return $this->strokeWeightStyler; - } + public function getStrokeWeightStyler() { + return $this->strokeWeightStyler; + } } -class Google_Service_Fusiontables_Point extends Google_Collection -{ - public $coordinates; - public $type; +class Google_Service_Fusiontables_Point extends Google_Collection { + public $coordinates; + public $type; - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } + public function setCoordinates($coordinates) { + $this->coordinates = $coordinates; + } - public function getCoordinates() - { - return $this->coordinates; - } + public function getCoordinates() { + return $this->coordinates; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Fusiontables_PointStyle extends Google_Model -{ - public $iconName; - protected $iconStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $iconStylerDataType = ''; +class Google_Service_Fusiontables_PointStyle extends Google_Model { + public $iconName; + protected $iconStylerType = 'Google_Service_Fusiontables_StyleFunction'; + protected $iconStylerDataType = ''; - public function setIconName($iconName) - { - $this->iconName = $iconName; - } + public function setIconName($iconName) { + $this->iconName = $iconName; + } - public function getIconName() - { - return $this->iconName; - } + public function getIconName() { + return $this->iconName; + } - public function setIconStyler(Google_Service_Fusiontables_StyleFunction $iconStyler) - { - $this->iconStyler = $iconStyler; - } + public function setIconStyler(Google_Service_Fusiontables_StyleFunction $iconStyler) { + $this->iconStyler = $iconStyler; + } - public function getIconStyler() - { - return $this->iconStyler; - } + public function getIconStyler() { + return $this->iconStyler; + } } -class Google_Service_Fusiontables_Polygon extends Google_Collection -{ - public $coordinates; - public $type; +class Google_Service_Fusiontables_Polygon extends Google_Collection { + public $coordinates; + public $type; - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } + public function setCoordinates($coordinates) { + $this->coordinates = $coordinates; + } - public function getCoordinates() - { - return $this->coordinates; - } + public function getCoordinates() { + return $this->coordinates; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Fusiontables_PolygonStyle extends Google_Model -{ - public $fillColor; - protected $fillColorStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $fillColorStylerDataType = ''; - public $fillOpacity; - public $strokeColor; - protected $strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $strokeColorStylerDataType = ''; - public $strokeOpacity; - public $strokeWeight; - protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction'; - protected $strokeWeightStylerDataType = ''; +class Google_Service_Fusiontables_PolygonStyle extends Google_Model { + public $fillColor; + protected $fillColorStylerType = 'Google_Service_Fusiontables_StyleFunction'; + protected $fillColorStylerDataType = ''; + public $fillOpacity; + public $strokeColor; + protected $strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction'; + protected $strokeColorStylerDataType = ''; + public $strokeOpacity; + public $strokeWeight; + protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction'; + protected $strokeWeightStylerDataType = ''; - public function setFillColor($fillColor) - { - $this->fillColor = $fillColor; - } + public function setFillColor($fillColor) { + $this->fillColor = $fillColor; + } - public function getFillColor() - { - return $this->fillColor; - } + public function getFillColor() { + return $this->fillColor; + } - public function setFillColorStyler(Google_Service_Fusiontables_StyleFunction $fillColorStyler) - { - $this->fillColorStyler = $fillColorStyler; - } + public function setFillColorStyler(Google_Service_Fusiontables_StyleFunction $fillColorStyler) { + $this->fillColorStyler = $fillColorStyler; + } - public function getFillColorStyler() - { - return $this->fillColorStyler; - } + public function getFillColorStyler() { + return $this->fillColorStyler; + } - public function setFillOpacity($fillOpacity) - { - $this->fillOpacity = $fillOpacity; - } + public function setFillOpacity($fillOpacity) { + $this->fillOpacity = $fillOpacity; + } - public function getFillOpacity() - { - return $this->fillOpacity; - } + public function getFillOpacity() { + return $this->fillOpacity; + } - public function setStrokeColor($strokeColor) - { - $this->strokeColor = $strokeColor; - } + public function setStrokeColor($strokeColor) { + $this->strokeColor = $strokeColor; + } - public function getStrokeColor() - { - return $this->strokeColor; - } + public function getStrokeColor() { + return $this->strokeColor; + } - public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $strokeColorStyler) - { - $this->strokeColorStyler = $strokeColorStyler; - } + public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $strokeColorStyler) { + $this->strokeColorStyler = $strokeColorStyler; + } - public function getStrokeColorStyler() - { - return $this->strokeColorStyler; - } + public function getStrokeColorStyler() { + return $this->strokeColorStyler; + } - public function setStrokeOpacity($strokeOpacity) - { - $this->strokeOpacity = $strokeOpacity; - } + public function setStrokeOpacity($strokeOpacity) { + $this->strokeOpacity = $strokeOpacity; + } - public function getStrokeOpacity() - { - return $this->strokeOpacity; - } + public function getStrokeOpacity() { + return $this->strokeOpacity; + } - public function setStrokeWeight($strokeWeight) - { - $this->strokeWeight = $strokeWeight; - } + public function setStrokeWeight($strokeWeight) { + $this->strokeWeight = $strokeWeight; + } - public function getStrokeWeight() - { - return $this->strokeWeight; - } + public function getStrokeWeight() { + return $this->strokeWeight; + } - public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction $strokeWeightStyler) - { - $this->strokeWeightStyler = $strokeWeightStyler; - } + public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction $strokeWeightStyler) { + $this->strokeWeightStyler = $strokeWeightStyler; + } - public function getStrokeWeightStyler() - { - return $this->strokeWeightStyler; - } + public function getStrokeWeightStyler() { + return $this->strokeWeightStyler; + } } -class Google_Service_Fusiontables_Sqlresponse extends Google_Collection -{ - public $columns; - public $kind; - public $rows; +class Google_Service_Fusiontables_Sqlresponse extends Google_Collection { + public $columns; + public $kind; + public $rows; - public function setColumns($columns) - { - $this->columns = $columns; - } + public function setColumns($columns) { + $this->columns = $columns; + } - public function getColumns() - { - return $this->columns; - } + public function getColumns() { + return $this->columns; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRows($rows) - { - $this->rows = $rows; - } + public function setRows($rows) { + $this->rows = $rows; + } - public function getRows() - { - return $this->rows; - } + public function getRows() { + return $this->rows; + } } -class Google_Service_Fusiontables_StyleFunction extends Google_Collection -{ - protected $bucketsType = 'Google_Service_Fusiontables_Bucket'; - protected $bucketsDataType = 'array'; - public $columnName; - protected $gradientType = 'Google_Service_Fusiontables_StyleFunctionGradient'; - protected $gradientDataType = ''; - public $kind; +class Google_Service_Fusiontables_StyleFunction extends Google_Collection { + protected $bucketsType = 'Google_Service_Fusiontables_Bucket'; + protected $bucketsDataType = 'array'; + public $columnName; + protected $gradientType = 'Google_Service_Fusiontables_StyleFunctionGradient'; + protected $gradientDataType = ''; + public $kind; - public function setBuckets($buckets) - { - $this->buckets = $buckets; - } + public function setBuckets($buckets) { + $this->buckets = $buckets; + } - public function getBuckets() - { - return $this->buckets; - } + public function getBuckets() { + return $this->buckets; + } - public function setColumnName($columnName) - { - $this->columnName = $columnName; - } + public function setColumnName($columnName) { + $this->columnName = $columnName; + } - public function getColumnName() - { - return $this->columnName; - } + public function getColumnName() { + return $this->columnName; + } - public function setGradient(Google_Service_Fusiontables_StyleFunctionGradient $gradient) - { - $this->gradient = $gradient; - } + public function setGradient(Google_Service_Fusiontables_StyleFunctionGradient $gradient) { + $this->gradient = $gradient; + } - public function getGradient() - { - return $this->gradient; - } + public function getGradient() { + return $this->gradient; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Fusiontables_StyleFunctionGradient extends Google_Collection -{ - protected $colorsType = 'Google_Service_Fusiontables_StyleFunctionGradientColors'; - protected $colorsDataType = 'array'; - public $max; - public $min; +class Google_Service_Fusiontables_StyleFunctionGradient extends Google_Collection { + protected $colorsType = 'Google_Service_Fusiontables_StyleFunctionGradientColors'; + protected $colorsDataType = 'array'; + public $max; + public $min; - public function setColors($colors) - { - $this->colors = $colors; - } + public function setColors($colors) { + $this->colors = $colors; + } - public function getColors() - { - return $this->colors; - } + public function getColors() { + return $this->colors; + } - public function setMax($max) - { - $this->max = $max; - } + public function setMax($max) { + $this->max = $max; + } - public function getMax() - { - return $this->max; - } + public function getMax() { + return $this->max; + } - public function setMin($min) - { - $this->min = $min; - } + public function setMin($min) { + $this->min = $min; + } - public function getMin() - { - return $this->min; - } + public function getMin() { + return $this->min; + } } -class Google_Service_Fusiontables_StyleFunctionGradientColors extends Google_Model -{ - public $color; - public $opacity; +class Google_Service_Fusiontables_StyleFunctionGradientColors extends Google_Model { + public $color; + public $opacity; - public function setColor($color) - { - $this->color = $color; - } + public function setColor($color) { + $this->color = $color; + } - public function getColor() - { - return $this->color; - } + public function getColor() { + return $this->color; + } - public function setOpacity($opacity) - { - $this->opacity = $opacity; - } + public function setOpacity($opacity) { + $this->opacity = $opacity; + } - public function getOpacity() - { - return $this->opacity; - } + public function getOpacity() { + return $this->opacity; + } } -class Google_Service_Fusiontables_StyleSetting extends Google_Model -{ - public $kind; - protected $markerOptionsType = 'Google_Service_Fusiontables_PointStyle'; - protected $markerOptionsDataType = ''; - public $name; - protected $polygonOptionsType = 'Google_Service_Fusiontables_PolygonStyle'; - protected $polygonOptionsDataType = ''; - protected $polylineOptionsType = 'Google_Service_Fusiontables_LineStyle'; - protected $polylineOptionsDataType = ''; - public $styleId; - public $tableId; +class Google_Service_Fusiontables_StyleSetting extends Google_Model { + public $kind; + protected $markerOptionsType = 'Google_Service_Fusiontables_PointStyle'; + protected $markerOptionsDataType = ''; + public $name; + protected $polygonOptionsType = 'Google_Service_Fusiontables_PolygonStyle'; + protected $polygonOptionsDataType = ''; + protected $polylineOptionsType = 'Google_Service_Fusiontables_LineStyle'; + protected $polylineOptionsDataType = ''; + public $styleId; + public $tableId; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMarkerOptions(Google_Service_Fusiontables_PointStyle $markerOptions) - { - $this->markerOptions = $markerOptions; - } + public function setMarkerOptions(Google_Service_Fusiontables_PointStyle $markerOptions) { + $this->markerOptions = $markerOptions; + } - public function getMarkerOptions() - { - return $this->markerOptions; - } + public function getMarkerOptions() { + return $this->markerOptions; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPolygonOptions(Google_Service_Fusiontables_PolygonStyle $polygonOptions) - { - $this->polygonOptions = $polygonOptions; - } + public function setPolygonOptions(Google_Service_Fusiontables_PolygonStyle $polygonOptions) { + $this->polygonOptions = $polygonOptions; + } - public function getPolygonOptions() - { - return $this->polygonOptions; - } + public function getPolygonOptions() { + return $this->polygonOptions; + } - public function setPolylineOptions(Google_Service_Fusiontables_LineStyle $polylineOptions) - { - $this->polylineOptions = $polylineOptions; - } + public function setPolylineOptions(Google_Service_Fusiontables_LineStyle $polylineOptions) { + $this->polylineOptions = $polylineOptions; + } - public function getPolylineOptions() - { - return $this->polylineOptions; - } + public function getPolylineOptions() { + return $this->polylineOptions; + } - public function setStyleId($styleId) - { - $this->styleId = $styleId; - } + public function setStyleId($styleId) { + $this->styleId = $styleId; + } - public function getStyleId() - { - return $this->styleId; - } + public function getStyleId() { + return $this->styleId; + } - public function setTableId($tableId) - { - $this->tableId = $tableId; - } + public function setTableId($tableId) { + $this->tableId = $tableId; + } - public function getTableId() - { - return $this->tableId; - } + public function getTableId() { + return $this->tableId; + } } -class Google_Service_Fusiontables_StyleSettingList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Fusiontables_StyleSetting'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; +class Google_Service_Fusiontables_StyleSettingList extends Google_Collection { + protected $itemsType = 'Google_Service_Fusiontables_StyleSetting'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $totalItems; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Fusiontables_Table extends Google_Collection -{ - public $attribution; - public $attributionLink; - public $baseTableIds; - protected $columnsType = 'Google_Service_Fusiontables_Column'; - protected $columnsDataType = 'array'; - public $description; - public $isExportable; - public $kind; - public $name; - public $sql; - public $tableId; +class Google_Service_Fusiontables_Table extends Google_Collection { + public $attribution; + public $attributionLink; + public $baseTableIds; + protected $columnsType = 'Google_Service_Fusiontables_Column'; + protected $columnsDataType = 'array'; + public $description; + public $isExportable; + public $kind; + public $name; + public $sql; + public $tableId; - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } + public function setAttribution($attribution) { + $this->attribution = $attribution; + } - public function getAttribution() - { - return $this->attribution; - } + public function getAttribution() { + return $this->attribution; + } - public function setAttributionLink($attributionLink) - { - $this->attributionLink = $attributionLink; - } + public function setAttributionLink($attributionLink) { + $this->attributionLink = $attributionLink; + } - public function getAttributionLink() - { - return $this->attributionLink; - } + public function getAttributionLink() { + return $this->attributionLink; + } - public function setBaseTableIds($baseTableIds) - { - $this->baseTableIds = $baseTableIds; - } + public function setBaseTableIds($baseTableIds) { + $this->baseTableIds = $baseTableIds; + } - public function getBaseTableIds() - { - return $this->baseTableIds; - } + public function getBaseTableIds() { + return $this->baseTableIds; + } - public function setColumns($columns) - { - $this->columns = $columns; - } + public function setColumns($columns) { + $this->columns = $columns; + } - public function getColumns() - { - return $this->columns; - } + public function getColumns() { + return $this->columns; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setIsExportable($isExportable) - { - $this->isExportable = $isExportable; - } + public function setIsExportable($isExportable) { + $this->isExportable = $isExportable; + } - public function getIsExportable() - { - return $this->isExportable; - } + public function getIsExportable() { + return $this->isExportable; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setSql($sql) - { - $this->sql = $sql; - } + public function setSql($sql) { + $this->sql = $sql; + } - public function getSql() - { - return $this->sql; - } + public function getSql() { + return $this->sql; + } - public function setTableId($tableId) - { - $this->tableId = $tableId; - } + public function setTableId($tableId) { + $this->tableId = $tableId; + } - public function getTableId() - { - return $this->tableId; - } + public function getTableId() { + return $this->tableId; + } } -class Google_Service_Fusiontables_TableList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Fusiontables_Table'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Fusiontables_TableList extends Google_Collection { + protected $itemsType = 'Google_Service_Fusiontables_Table'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Fusiontables_Task extends Google_Model -{ - public $kind; - public $progress; - public $started; - public $taskId; - public $type; +class Google_Service_Fusiontables_Task extends Google_Model { + public $kind; + public $progress; + public $started; + public $taskId; + public $type; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setProgress($progress) - { - $this->progress = $progress; - } + public function setProgress($progress) { + $this->progress = $progress; + } - public function getProgress() - { - return $this->progress; - } + public function getProgress() { + return $this->progress; + } - public function setStarted($started) - { - $this->started = $started; - } + public function setStarted($started) { + $this->started = $started; + } - public function getStarted() - { - return $this->started; - } + public function getStarted() { + return $this->started; + } - public function setTaskId($taskId) - { - $this->taskId = $taskId; - } + public function setTaskId($taskId) { + $this->taskId = $taskId; + } - public function getTaskId() - { - return $this->taskId; - } + public function getTaskId() { + return $this->taskId; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Fusiontables_TaskList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Fusiontables_Task'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; +class Google_Service_Fusiontables_TaskList extends Google_Collection { + protected $itemsType = 'Google_Service_Fusiontables_Task'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $totalItems; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Fusiontables_Template extends Google_Collection -{ - public $automaticColumnNames; - public $body; - public $kind; - public $name; - public $tableId; - public $templateId; +class Google_Service_Fusiontables_Template extends Google_Collection { + public $automaticColumnNames; + public $body; + public $kind; + public $name; + public $tableId; + public $templateId; - public function setAutomaticColumnNames($automaticColumnNames) - { - $this->automaticColumnNames = $automaticColumnNames; - } + public function setAutomaticColumnNames($automaticColumnNames) { + $this->automaticColumnNames = $automaticColumnNames; + } - public function getAutomaticColumnNames() - { - return $this->automaticColumnNames; - } + public function getAutomaticColumnNames() { + return $this->automaticColumnNames; + } - public function setBody($body) - { - $this->body = $body; - } + public function setBody($body) { + $this->body = $body; + } - public function getBody() - { - return $this->body; - } + public function getBody() { + return $this->body; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setTableId($tableId) - { - $this->tableId = $tableId; - } + public function setTableId($tableId) { + $this->tableId = $tableId; + } - public function getTableId() - { - return $this->tableId; - } + public function getTableId() { + return $this->tableId; + } - public function setTemplateId($templateId) - { - $this->templateId = $templateId; - } + public function setTemplateId($templateId) { + $this->templateId = $templateId; + } - public function getTemplateId() - { - return $this->templateId; - } + public function getTemplateId() { + return $this->templateId; + } } -class Google_Service_Fusiontables_TemplateList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Fusiontables_Template'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; +class Google_Service_Fusiontables_TemplateList extends Google_Collection { + protected $itemsType = 'Google_Service_Fusiontables_Template'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $totalItems; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } diff --git a/oauth/Google/Service/Games.php b/oauth/Google/Service/Games.php index 312825d..66ed844 100644 --- a/oauth/Google/Service/Games.php +++ b/oauth/Google/Service/Games.php @@ -29,1023 +29,1021 @@ * * @author Google, Inc. */ -class Google_Service_Games extends Google_Service -{ - /** View and manage its own configuration data in your Google Drive. */ - const DRIVE_APPDATA = "https://www.googleapis.com/auth/drive.appdata"; - /** Share your Google+ profile information and view and manage your game activity. */ - const GAMES = "https://www.googleapis.com/auth/games"; - /** Know your basic profile info and list of people in your circles.. */ - const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; +class Google_Service_Games extends Google_Service { + /** View and manage its own configuration data in your Google Drive. */ + const DRIVE_APPDATA = "https://www.googleapis.com/auth/drive.appdata"; + /** Share your Google+ profile information and view and manage your game activity. */ + const GAMES = "https://www.googleapis.com/auth/games"; + /** Know your basic profile info and list of people in your circles.. */ + const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; - public $achievementDefinitions; - public $achievements; - public $applications; - public $events; - public $leaderboards; - public $metagame; - public $players; - public $pushtokens; - public $questMilestones; - public $quests; - public $revisions; - public $rooms; - public $scores; - public $snapshots; - public $turnBasedMatches; - + public $achievementDefinitions; + public $achievements; + public $applications; + public $events; + public $leaderboards; + public $metagame; + public $players; + public $pushtokens; + public $questMilestones; + public $quests; + public $revisions; + public $rooms; + public $scores; + public $snapshots; + public $turnBasedMatches; - /** - * Constructs the internal representation of the Games service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'games/v1/'; - $this->version = 'v1'; - $this->serviceName = 'games'; - $this->achievementDefinitions = new Google_Service_Games_AchievementDefinitions_Resource( - $this, - $this->serviceName, - 'achievementDefinitions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'achievements', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->achievements = new Google_Service_Games_Achievements_Resource( - $this, - $this->serviceName, - 'achievements', - array( - 'methods' => array( - 'increment' => array( - 'path' => 'achievements/{achievementId}/increment', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'stepsToIncrement' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'requestId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'players/{playerId}/achievements', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'state' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'reveal' => array( - 'path' => 'achievements/{achievementId}/reveal', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setStepsAtLeast' => array( - 'path' => 'achievements/{achievementId}/setStepsAtLeast', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'steps' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'unlock' => array( - 'path' => 'achievements/{achievementId}/unlock', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updateMultiple' => array( - 'path' => 'achievements/updateMultiple', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->applications = new Google_Service_Games_Applications_Resource( - $this, - $this->serviceName, - 'applications', - array( - 'methods' => array( - 'get' => array( - 'path' => 'applications/{applicationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'platformType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'played' => array( - 'path' => 'applications/played', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->events = new Google_Service_Games_Events_Resource( - $this, - $this->serviceName, - 'events', - array( - 'methods' => array( - 'listByPlayer' => array( - 'path' => 'events', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listDefinitions' => array( - 'path' => 'eventDefinitions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'record' => array( - 'path' => 'events', - 'httpMethod' => 'POST', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->leaderboards = new Google_Service_Games_Leaderboards_Resource( - $this, - $this->serviceName, - 'leaderboards', - array( - 'methods' => array( - 'get' => array( - 'path' => 'leaderboards/{leaderboardId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'leaderboards', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->metagame = new Google_Service_Games_Metagame_Resource( - $this, - $this->serviceName, - 'metagame', - array( - 'methods' => array( - 'getMetagameConfig' => array( - 'path' => 'metagameConfig', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'listCategoriesByPlayer' => array( - 'path' => 'players/{playerId}/categories/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->players = new Google_Service_Games_Players_Resource( - $this, - $this->serviceName, - 'players', - array( - 'methods' => array( - 'get' => array( - 'path' => 'players/{playerId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'players/me/players/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->pushtokens = new Google_Service_Games_Pushtokens_Resource( - $this, - $this->serviceName, - 'pushtokens', - array( - 'methods' => array( - 'remove' => array( - 'path' => 'pushtokens/remove', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'pushtokens', - 'httpMethod' => 'PUT', - 'parameters' => array(), - ), - ) - ) - ); - $this->questMilestones = new Google_Service_Games_QuestMilestones_Resource( - $this, - $this->serviceName, - 'questMilestones', - array( - 'methods' => array( - 'claim' => array( - 'path' => 'quests/{questId}/milestones/{milestoneId}/claim', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'questId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'milestoneId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'requestId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->quests = new Google_Service_Games_Quests_Resource( - $this, - $this->serviceName, - 'quests', - array( - 'methods' => array( - 'accept' => array( - 'path' => 'quests/{questId}/accept', - 'httpMethod' => 'POST', - 'parameters' => array( - 'questId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'players/{playerId}/quests', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->revisions = new Google_Service_Games_Revisions_Resource( - $this, - $this->serviceName, - 'revisions', - array( - 'methods' => array( - 'check' => array( - 'path' => 'revisions/check', - 'httpMethod' => 'GET', - 'parameters' => array( - 'clientRevision' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->rooms = new Google_Service_Games_Rooms_Resource( - $this, - $this->serviceName, - 'rooms', - array( - 'methods' => array( - 'create' => array( - 'path' => 'rooms/create', - 'httpMethod' => 'POST', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'decline' => array( - 'path' => 'rooms/{roomId}/decline', - 'httpMethod' => 'POST', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'dismiss' => array( - 'path' => 'rooms/{roomId}/dismiss', - 'httpMethod' => 'POST', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'rooms/{roomId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'join' => array( - 'path' => 'rooms/{roomId}/join', - 'httpMethod' => 'POST', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'leave' => array( - 'path' => 'rooms/{roomId}/leave', - 'httpMethod' => 'POST', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'rooms', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'reportStatus' => array( - 'path' => 'rooms/{roomId}/reportstatus', - 'httpMethod' => 'POST', - 'parameters' => array( - 'roomId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->scores = new Google_Service_Games_Scores_Resource( - $this, - $this->serviceName, - 'scores', - array( - 'methods' => array( - 'get' => array( - 'path' => 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'timeSpan' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'includeRankType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'leaderboards/{leaderboardId}/scores/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'timeSpan' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'listWindow' => array( - 'path' => 'leaderboards/{leaderboardId}/window/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'timeSpan' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'returnTopIfAbsent' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'resultsAbove' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'submit' => array( - 'path' => 'leaderboards/{leaderboardId}/scores', - 'httpMethod' => 'POST', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'score' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scoreTag' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'submitMultiple' => array( - 'path' => 'leaderboards/scores', - 'httpMethod' => 'POST', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->snapshots = new Google_Service_Games_Snapshots_Resource( - $this, - $this->serviceName, - 'snapshots', - array( - 'methods' => array( - 'get' => array( - 'path' => 'snapshots/{snapshotId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'snapshotId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'players/{playerId}/snapshots', - 'httpMethod' => 'GET', - 'parameters' => array( - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->turnBasedMatches = new Google_Service_Games_TurnBasedMatches_Resource( - $this, - $this->serviceName, - 'turnBasedMatches', - array( - 'methods' => array( - 'cancel' => array( - 'path' => 'turnbasedmatches/{matchId}/cancel', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'turnbasedmatches/create', - 'httpMethod' => 'POST', - 'parameters' => array( - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'decline' => array( - 'path' => 'turnbasedmatches/{matchId}/decline', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'dismiss' => array( - 'path' => 'turnbasedmatches/{matchId}/dismiss', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'finish' => array( - 'path' => 'turnbasedmatches/{matchId}/finish', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'turnbasedmatches/{matchId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeMatchData' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'join' => array( - 'path' => 'turnbasedmatches/{matchId}/join', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'leave' => array( - 'path' => 'turnbasedmatches/{matchId}/leave', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'leaveTurn' => array( - 'path' => 'turnbasedmatches/{matchId}/leaveTurn', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'matchVersion' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pendingParticipantId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'turnbasedmatches', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxCompletedMatches' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeMatchData' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'rematch' => array( - 'path' => 'turnbasedmatches/{matchId}/rematch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'requestId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'sync' => array( - 'path' => 'turnbasedmatches/sync', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxCompletedMatches' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeMatchData' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'takeTurn' => array( - 'path' => 'turnbasedmatches/{matchId}/turn', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'matchId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Games service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'games/v1/'; + $this->version = 'v1'; + $this->serviceName = 'games'; + + $this->achievementDefinitions = new Google_Service_Games_AchievementDefinitions_Resource( + $this, + $this->serviceName, + 'achievementDefinitions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'achievements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->achievements = new Google_Service_Games_Achievements_Resource( + $this, + $this->serviceName, + 'achievements', + array( + 'methods' => array( + 'increment' => array( + 'path' => 'achievements/{achievementId}/increment', + 'httpMethod' => 'POST', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'stepsToIncrement' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'players/{playerId}/achievements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'playerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'state' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'reveal' => array( + 'path' => 'achievements/{achievementId}/reveal', + 'httpMethod' => 'POST', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'setStepsAtLeast' => array( + 'path' => 'achievements/{achievementId}/setStepsAtLeast', + 'httpMethod' => 'POST', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'steps' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'unlock' => array( + 'path' => 'achievements/{achievementId}/unlock', + 'httpMethod' => 'POST', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'updateMultiple' => array( + 'path' => 'achievements/updateMultiple', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->applications = new Google_Service_Games_Applications_Resource( + $this, + $this->serviceName, + 'applications', + array( + 'methods' => array( + 'get' => array( + 'path' => 'applications/{applicationId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'platformType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'played' => array( + 'path' => 'applications/played', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->events = new Google_Service_Games_Events_Resource( + $this, + $this->serviceName, + 'events', + array( + 'methods' => array( + 'listByPlayer' => array( + 'path' => 'events', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'listDefinitions' => array( + 'path' => 'eventDefinitions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'record' => array( + 'path' => 'events', + 'httpMethod' => 'POST', + 'parameters' => array( + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->leaderboards = new Google_Service_Games_Leaderboards_Resource( + $this, + $this->serviceName, + 'leaderboards', + array( + 'methods' => array( + 'get' => array( + 'path' => 'leaderboards/{leaderboardId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'leaderboards', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->metagame = new Google_Service_Games_Metagame_Resource( + $this, + $this->serviceName, + 'metagame', + array( + 'methods' => array( + 'getMetagameConfig' => array( + 'path' => 'metagameConfig', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), 'listCategoriesByPlayer' => array( + 'path' => 'players/{playerId}/categories/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'playerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->players = new Google_Service_Games_Players_Resource( + $this, + $this->serviceName, + 'players', + array( + 'methods' => array( + 'get' => array( + 'path' => 'players/{playerId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'playerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'players/me/players/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->pushtokens = new Google_Service_Games_Pushtokens_Resource( + $this, + $this->serviceName, + 'pushtokens', + array( + 'methods' => array( + 'remove' => array( + 'path' => 'pushtokens/remove', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'update' => array( + 'path' => 'pushtokens', + 'httpMethod' => 'PUT', + 'parameters' => array(), + ), + ) + ) + ); + $this->questMilestones = new Google_Service_Games_QuestMilestones_Resource( + $this, + $this->serviceName, + 'questMilestones', + array( + 'methods' => array( + 'claim' => array( + 'path' => 'quests/{questId}/milestones/{milestoneId}/claim', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'questId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'milestoneId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->quests = new Google_Service_Games_Quests_Resource( + $this, + $this->serviceName, + 'quests', + array( + 'methods' => array( + 'accept' => array( + 'path' => 'quests/{questId}/accept', + 'httpMethod' => 'POST', + 'parameters' => array( + 'questId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'players/{playerId}/quests', + 'httpMethod' => 'GET', + 'parameters' => array( + 'playerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->revisions = new Google_Service_Games_Revisions_Resource( + $this, + $this->serviceName, + 'revisions', + array( + 'methods' => array( + 'check' => array( + 'path' => 'revisions/check', + 'httpMethod' => 'GET', + 'parameters' => array( + 'clientRevision' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->rooms = new Google_Service_Games_Rooms_Resource( + $this, + $this->serviceName, + 'rooms', + array( + 'methods' => array( + 'create' => array( + 'path' => 'rooms/create', + 'httpMethod' => 'POST', + 'parameters' => array( + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'decline' => array( + 'path' => 'rooms/{roomId}/decline', + 'httpMethod' => 'POST', + 'parameters' => array( + 'roomId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'dismiss' => array( + 'path' => 'rooms/{roomId}/dismiss', + 'httpMethod' => 'POST', + 'parameters' => array( + 'roomId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'rooms/{roomId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'roomId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'join' => array( + 'path' => 'rooms/{roomId}/join', + 'httpMethod' => 'POST', + 'parameters' => array( + 'roomId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'leave' => array( + 'path' => 'rooms/{roomId}/leave', + 'httpMethod' => 'POST', + 'parameters' => array( + 'roomId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'rooms', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'reportStatus' => array( + 'path' => 'rooms/{roomId}/reportstatus', + 'httpMethod' => 'POST', + 'parameters' => array( + 'roomId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->scores = new Google_Service_Games_Scores_Resource( + $this, + $this->serviceName, + 'scores', + array( + 'methods' => array( + 'get' => array( + 'path' => 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'playerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'timeSpan' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeRankType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'leaderboards/{leaderboardId}/scores/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'timeSpan' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'listWindow' => array( + 'path' => 'leaderboards/{leaderboardId}/window/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'timeSpan' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'returnTopIfAbsent' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'resultsAbove' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'submit' => array( + 'path' => 'leaderboards/{leaderboardId}/scores', + 'httpMethod' => 'POST', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'score' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scoreTag' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'submitMultiple' => array( + 'path' => 'leaderboards/scores', + 'httpMethod' => 'POST', + 'parameters' => array( + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->snapshots = new Google_Service_Games_Snapshots_Resource( + $this, + $this->serviceName, + 'snapshots', + array( + 'methods' => array( + 'get' => array( + 'path' => 'snapshots/{snapshotId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'snapshotId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'players/{playerId}/snapshots', + 'httpMethod' => 'GET', + 'parameters' => array( + 'playerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->turnBasedMatches = new Google_Service_Games_TurnBasedMatches_Resource( + $this, + $this->serviceName, + 'turnBasedMatches', + array( + 'methods' => array( + 'cancel' => array( + 'path' => 'turnbasedmatches/{matchId}/cancel', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'matchId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'create' => array( + 'path' => 'turnbasedmatches/create', + 'httpMethod' => 'POST', + 'parameters' => array( + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'decline' => array( + 'path' => 'turnbasedmatches/{matchId}/decline', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'matchId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'dismiss' => array( + 'path' => 'turnbasedmatches/{matchId}/dismiss', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'matchId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'finish' => array( + 'path' => 'turnbasedmatches/{matchId}/finish', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'matchId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'get' => array( + 'path' => 'turnbasedmatches/{matchId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'matchId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeMatchData' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'join' => array( + 'path' => 'turnbasedmatches/{matchId}/join', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'matchId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'leave' => array( + 'path' => 'turnbasedmatches/{matchId}/leave', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'matchId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'leaveTurn' => array( + 'path' => 'turnbasedmatches/{matchId}/leaveTurn', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'matchId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'matchVersion' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pendingParticipantId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'turnbasedmatches', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxCompletedMatches' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeMatchData' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'rematch' => array( + 'path' => 'turnbasedmatches/{matchId}/rematch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'matchId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'sync' => array( + 'path' => 'turnbasedmatches/sync', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxCompletedMatches' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeMatchData' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'takeTurn' => array( + 'path' => 'turnbasedmatches/{matchId}/turn', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'matchId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -1057,31 +1055,29 @@ class Google_Service_Games extends Google_Service * $achievementDefinitions = $gamesService->achievementDefinitions; * */ -class Google_Service_Games_AchievementDefinitions_Resource extends Google_Service_Resource -{ +class Google_Service_Games_AchievementDefinitions_Resource extends Google_Service_Resource { - /** - * Lists all the achievement definitions for your application. - * (achievementDefinitions.listAchievementDefinitions) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of achievement resources to return in the response, used for paging. For any - * response, the actual number of achievement resources returned may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_AchievementDefinitionsListResponse - */ - public function listAchievementDefinitions($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_AchievementDefinitionsListResponse"); - } + /** + * Lists all the achievement definitions for your application. + * (achievementDefinitions.listAchievementDefinitions) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of achievement resources to return in the response, used for paging. For any + * response, the actual number of achievement resources returned may be less than the specified + * maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_AchievementDefinitionsListResponse + */ + public function listAchievementDefinitions($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Games_AchievementDefinitionsListResponse"); + } } /** @@ -1092,120 +1088,118 @@ class Google_Service_Games_AchievementDefinitions_Resource extends Google_Servic * $achievements = $gamesService->achievements; * */ -class Google_Service_Games_Achievements_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Achievements_Resource extends Google_Service_Resource { - /** - * Increments the steps of the achievement with the given ID for the currently - * authenticated player. (achievements.increment) - * - * @param string $achievementId - * The ID of the achievement used by this method. - * @param int $stepsToIncrement - * The number of steps to increment. - * @param array $optParams Optional parameters. - * - * @opt_param string requestId - * A randomly generated numeric ID for each request specified by the caller. This number is used at - * the server to ensure that the request is handled correctly across retries. - * @return Google_Service_Games_AchievementIncrementResponse - */ - public function increment($achievementId, $stepsToIncrement, $optParams = array()) - { - $params = array('achievementId' => $achievementId, 'stepsToIncrement' => $stepsToIncrement); - $params = array_merge($params, $optParams); - return $this->call('increment', array($params), "Google_Service_Games_AchievementIncrementResponse"); - } - /** - * Lists the progress for all your application's achievements for the currently - * authenticated player. (achievements.listAchievements) - * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string state - * Tells the server to return only achievements with the specified state. If this parameter isn't - * specified, all achievements are returned. - * @opt_param int maxResults - * The maximum number of achievement resources to return in the response, used for paging. For any - * response, the actual number of achievement resources returned may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_PlayerAchievementListResponse - */ - public function listAchievements($playerId, $optParams = array()) - { - $params = array('playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_PlayerAchievementListResponse"); - } - /** - * Sets the state of the achievement with the given ID to REVEALED for the - * currently authenticated player. (achievements.reveal) - * - * @param string $achievementId - * The ID of the achievement used by this method. - * @param array $optParams Optional parameters. - * @return Google_Service_Games_AchievementRevealResponse - */ - public function reveal($achievementId, $optParams = array()) - { - $params = array('achievementId' => $achievementId); - $params = array_merge($params, $optParams); - return $this->call('reveal', array($params), "Google_Service_Games_AchievementRevealResponse"); - } - /** - * Sets the steps for the currently authenticated player towards unlocking an - * achievement. If the steps parameter is less than the current number of steps - * that the player already gained for the achievement, the achievement is not - * modified. (achievements.setStepsAtLeast) - * - * @param string $achievementId - * The ID of the achievement used by this method. - * @param int $steps - * The minimum value to set the steps to. - * @param array $optParams Optional parameters. - * @return Google_Service_Games_AchievementSetStepsAtLeastResponse - */ - public function setStepsAtLeast($achievementId, $steps, $optParams = array()) - { - $params = array('achievementId' => $achievementId, 'steps' => $steps); - $params = array_merge($params, $optParams); - return $this->call('setStepsAtLeast', array($params), "Google_Service_Games_AchievementSetStepsAtLeastResponse"); - } - /** - * Unlocks this achievement for the currently authenticated player. - * (achievements.unlock) - * - * @param string $achievementId - * The ID of the achievement used by this method. - * @param array $optParams Optional parameters. - * @return Google_Service_Games_AchievementUnlockResponse - */ - public function unlock($achievementId, $optParams = array()) - { - $params = array('achievementId' => $achievementId); - $params = array_merge($params, $optParams); - return $this->call('unlock', array($params), "Google_Service_Games_AchievementUnlockResponse"); - } - /** - * Updates multiple achievements for the currently authenticated player. - * (achievements.updateMultiple) - * - * @param Google_AchievementUpdateMultipleRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Games_AchievementUpdateMultipleResponse - */ - public function updateMultiple(Google_Service_Games_AchievementUpdateMultipleRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateMultiple', array($params), "Google_Service_Games_AchievementUpdateMultipleResponse"); - } + /** + * Increments the steps of the achievement with the given ID for the currently + * authenticated player. (achievements.increment) + * + * @param string $achievementId + * The ID of the achievement used by this method. + * @param int $stepsToIncrement + * The number of steps to increment. + * @param array $optParams Optional parameters. + * + * @opt_param string requestId + * A randomly generated numeric ID for each request specified by the caller. This number is used at + * the server to ensure that the request is handled correctly across retries. + * @return Google_Service_Games_AchievementIncrementResponse + */ + public function increment($achievementId, $stepsToIncrement, $optParams = array()) { + $params = array('achievementId' => $achievementId, 'stepsToIncrement' => $stepsToIncrement); + $params = array_merge($params, $optParams); + return $this->call('increment', array($params), "Google_Service_Games_AchievementIncrementResponse"); + } + + /** + * Lists the progress for all your application's achievements for the currently + * authenticated player. (achievements.listAchievements) + * + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string state + * Tells the server to return only achievements with the specified state. If this parameter isn't + * specified, all achievements are returned. + * @opt_param int maxResults + * The maximum number of achievement resources to return in the response, used for paging. For any + * response, the actual number of achievement resources returned may be less than the specified + * maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_PlayerAchievementListResponse + */ + public function listAchievements($playerId, $optParams = array()) { + $params = array('playerId' => $playerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Games_PlayerAchievementListResponse"); + } + + /** + * Sets the state of the achievement with the given ID to REVEALED for the + * currently authenticated player. (achievements.reveal) + * + * @param string $achievementId + * The ID of the achievement used by this method. + * @param array $optParams Optional parameters. + * @return Google_Service_Games_AchievementRevealResponse + */ + public function reveal($achievementId, $optParams = array()) { + $params = array('achievementId' => $achievementId); + $params = array_merge($params, $optParams); + return $this->call('reveal', array($params), "Google_Service_Games_AchievementRevealResponse"); + } + + /** + * Sets the steps for the currently authenticated player towards unlocking an + * achievement. If the steps parameter is less than the current number of steps + * that the player already gained for the achievement, the achievement is not + * modified. (achievements.setStepsAtLeast) + * + * @param string $achievementId + * The ID of the achievement used by this method. + * @param int $steps + * The minimum value to set the steps to. + * @param array $optParams Optional parameters. + * @return Google_Service_Games_AchievementSetStepsAtLeastResponse + */ + public function setStepsAtLeast($achievementId, $steps, $optParams = array()) { + $params = array('achievementId' => $achievementId, 'steps' => $steps); + $params = array_merge($params, $optParams); + return $this->call('setStepsAtLeast', array($params), "Google_Service_Games_AchievementSetStepsAtLeastResponse"); + } + + /** + * Unlocks this achievement for the currently authenticated player. + * (achievements.unlock) + * + * @param string $achievementId + * The ID of the achievement used by this method. + * @param array $optParams Optional parameters. + * @return Google_Service_Games_AchievementUnlockResponse + */ + public function unlock($achievementId, $optParams = array()) { + $params = array('achievementId' => $achievementId); + $params = array_merge($params, $optParams); + return $this->call('unlock', array($params), "Google_Service_Games_AchievementUnlockResponse"); + } + + /** + * Updates multiple achievements for the currently authenticated player. + * (achievements.updateMultiple) + * + * @param Google_AchievementUpdateMultipleRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Games_AchievementUpdateMultipleResponse + */ + public function updateMultiple(Google_Service_Games_AchievementUpdateMultipleRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateMultiple', array($params), "Google_Service_Games_AchievementUpdateMultipleResponse"); + } } /** @@ -1216,42 +1210,40 @@ class Google_Service_Games_Achievements_Resource extends Google_Service_Resource * $applications = $gamesService->applications; * */ -class Google_Service_Games_Applications_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Applications_Resource extends Google_Service_Resource { - /** - * Retrieves the metadata of the application with the given ID. If the requested - * application is not available for the specified platformType, the returned - * response will not include any instance data. (applications.get) - * - * @param string $applicationId - * The application being requested. - * @param array $optParams Optional parameters. - * - * @opt_param string platformType - * Restrict application details returned to the specific platform. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_Application - */ - public function get($applicationId, $optParams = array()) - { - $params = array('applicationId' => $applicationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_Application"); - } - /** - * Indicate that the the currently authenticated user is playing your - * application. (applications.played) - * - * @param array $optParams Optional parameters. - */ - public function played($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('played', array($params)); - } + /** + * Retrieves the metadata of the application with the given ID. If the requested + * application is not available for the specified platformType, the returned + * response will not include any instance data. (applications.get) + * + * @param string $applicationId + * The application being requested. + * @param array $optParams Optional parameters. + * + * @opt_param string platformType + * Restrict application details returned to the specific platform. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Application + */ + public function get($applicationId, $optParams = array()) { + $params = array('applicationId' => $applicationId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Games_Application"); + } + + /** + * Indicate that the the currently authenticated user is playing your + * application. (applications.played) + * + * @param array $optParams Optional parameters. + */ + public function played($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('played', array($params)); + } } /** @@ -1262,69 +1254,67 @@ class Google_Service_Games_Applications_Resource extends Google_Service_Resource * $events = $gamesService->events; * */ -class Google_Service_Games_Events_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Events_Resource extends Google_Service_Resource { - /** - * Returns a list showing the current progress on events in this application for - * the currently authenticated user. (events.listByPlayer) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of events to return in the response, used for paging. For any response, the - * actual number of events to return may be less than the specified maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_PlayerEventListResponse - */ - public function listByPlayer($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('listByPlayer', array($params), "Google_Service_Games_PlayerEventListResponse"); - } - /** - * Returns a list of the event definitions in this application. - * (events.listDefinitions) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of event definitions to return in the response, used for paging. For any - * response, the actual number of event definitions to return may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_EventDefinitionListResponse - */ - public function listDefinitions($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('listDefinitions', array($params), "Google_Service_Games_EventDefinitionListResponse"); - } - /** - * Records a batch of changes to the number of times events have occurred for - * the currently authenticated user of this application. (events.record) - * - * @param Google_EventRecordRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_EventUpdateResponse - */ - public function record(Google_Service_Games_EventRecordRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('record', array($params), "Google_Service_Games_EventUpdateResponse"); - } + /** + * Returns a list showing the current progress on events in this application for + * the currently authenticated user. (events.listByPlayer) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of events to return in the response, used for paging. For any response, the + * actual number of events to return may be less than the specified maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_PlayerEventListResponse + */ + public function listByPlayer($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('listByPlayer', array($params), "Google_Service_Games_PlayerEventListResponse"); + } + + /** + * Returns a list of the event definitions in this application. + * (events.listDefinitions) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of event definitions to return in the response, used for paging. For any + * response, the actual number of event definitions to return may be less than the specified + * maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_EventDefinitionListResponse + */ + public function listDefinitions($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('listDefinitions', array($params), "Google_Service_Games_EventDefinitionListResponse"); + } + + /** + * Records a batch of changes to the number of times events have occurred for + * the currently authenticated user of this application. (events.record) + * + * @param Google_EventRecordRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_EventUpdateResponse + */ + public function record(Google_Service_Games_EventRecordRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('record', array($params), "Google_Service_Games_EventUpdateResponse"); + } } /** @@ -1335,48 +1325,46 @@ class Google_Service_Games_Events_Resource extends Google_Service_Resource * $leaderboards = $gamesService->leaderboards; * */ -class Google_Service_Games_Leaderboards_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Leaderboards_Resource extends Google_Service_Resource { - /** - * Retrieves the metadata of the leaderboard with the given ID. - * (leaderboards.get) - * - * @param string $leaderboardId - * The ID of the leaderboard. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_Leaderboard - */ - public function get($leaderboardId, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_Leaderboard"); - } - /** - * Lists all the leaderboard metadata for your application. - * (leaderboards.listLeaderboards) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of leaderboards to return in the response. For any response, the actual - * number of leaderboards returned may be less than the specified maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_LeaderboardListResponse - */ - public function listLeaderboards($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_LeaderboardListResponse"); - } + /** + * Retrieves the metadata of the leaderboard with the given ID. + * (leaderboards.get) + * + * @param string $leaderboardId + * The ID of the leaderboard. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Leaderboard + */ + public function get($leaderboardId, $optParams = array()) { + $params = array('leaderboardId' => $leaderboardId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Games_Leaderboard"); + } + + /** + * Lists all the leaderboard metadata for your application. + * (leaderboards.listLeaderboards) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of leaderboards to return in the response. For any response, the actual + * number of leaderboards returned may be less than the specified maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_LeaderboardListResponse + */ + public function listLeaderboards($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Games_LeaderboardListResponse"); + } } /** @@ -1387,48 +1375,46 @@ class Google_Service_Games_Leaderboards_Resource extends Google_Service_Resource * $metagame = $gamesService->metagame; * */ -class Google_Service_Games_Metagame_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Metagame_Resource extends Google_Service_Resource { - /** - * Return the metagame configuration data for the calling application. - * (metagame.getMetagameConfig) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Games_MetagameConfig - */ - public function getMetagameConfig($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getMetagameConfig', array($params), "Google_Service_Games_MetagameConfig"); - } - /** - * List play data aggregated per category for the player corresponding to - * playerId. (metagame.listCategoriesByPlayer) - * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. - * @param string $collection - * The collection of categories for which data will be returned. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of category resources to return in the response, used for paging. For any - * response, the actual number of category resources returned may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_CategoryListResponse - */ - public function listCategoriesByPlayer($playerId, $collection, $optParams = array()) - { - $params = array('playerId' => $playerId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('listCategoriesByPlayer', array($params), "Google_Service_Games_CategoryListResponse"); - } + /** + * Return the metagame configuration data for the calling application. + * (metagame.getMetagameConfig) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Games_MetagameConfig + */ + public function getMetagameConfig($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getMetagameConfig', array($params), "Google_Service_Games_MetagameConfig"); + } + + /** + * List play data aggregated per category for the player corresponding to + * playerId. (metagame.listCategoriesByPlayer) + * + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param string $collection + * The collection of categories for which data will be returned. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of category resources to return in the response, used for paging. For any + * response, the actual number of category resources returned may be less than the specified + * maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_CategoryListResponse + */ + public function listCategoriesByPlayer($playerId, $collection, $optParams = array()) { + $params = array('playerId' => $playerId, 'collection' => $collection); + $params = array_merge($params, $optParams); + return $this->call('listCategoriesByPlayer', array($params), "Google_Service_Games_CategoryListResponse"); + } } /** @@ -1439,51 +1425,49 @@ class Google_Service_Games_Metagame_Resource extends Google_Service_Resource * $players = $gamesService->players; * */ -class Google_Service_Games_Players_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Players_Resource extends Google_Service_Resource { - /** - * Retrieves the Player resource with the given ID. To retrieve the player for - * the currently authenticated user, set playerId to me. (players.get) - * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_Player - */ - public function get($playerId, $optParams = array()) - { - $params = array('playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_Player"); - } - /** - * Get the collection of players for the currently authenticated user. - * (players.listPlayers) - * - * @param string $collection - * Collection of players being retrieved - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of player resources to return in the response, used for paging. For any - * response, the actual number of player resources returned may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_PlayerListResponse - */ - public function listPlayers($collection, $optParams = array()) - { - $params = array('collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_PlayerListResponse"); - } + /** + * Retrieves the Player resource with the given ID. To retrieve the player for + * the currently authenticated user, set playerId to me. (players.get) + * + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Player + */ + public function get($playerId, $optParams = array()) { + $params = array('playerId' => $playerId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Games_Player"); + } + + /** + * Get the collection of players for the currently authenticated user. + * (players.listPlayers) + * + * @param string $collection + * Collection of players being retrieved + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of player resources to return in the response, used for paging. For any + * response, the actual number of player resources returned may be less than the specified + * maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_PlayerListResponse + */ + public function listPlayers($collection, $optParams = array()) { + $params = array('collection' => $collection); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Games_PlayerListResponse"); + } } /** @@ -1494,35 +1478,33 @@ class Google_Service_Games_Players_Resource extends Google_Service_Resource * $pushtokens = $gamesService->pushtokens; * */ -class Google_Service_Games_Pushtokens_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Pushtokens_Resource extends Google_Service_Resource { - /** - * Removes a push token for the current user and application. Removing a non- - * existent push token will report success. (pushtokens.remove) - * - * @param Google_PushTokenId $postBody - * @param array $optParams Optional parameters. - */ - public function remove(Google_Service_Games_PushTokenId $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('remove', array($params)); - } - /** - * Registers a push token for the current user and application. - * (pushtokens.update) - * - * @param Google_PushToken $postBody - * @param array $optParams Optional parameters. - */ - public function update(Google_Service_Games_PushToken $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params)); - } + /** + * Removes a push token for the current user and application. Removing a non- + * existent push token will report success. (pushtokens.remove) + * + * @param Google_PushTokenId $postBody + * @param array $optParams Optional parameters. + */ + public function remove(Google_Service_Games_PushTokenId $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('remove', array($params)); + } + + /** + * Registers a push token for the current user and application. + * (pushtokens.update) + * + * @param Google_PushToken $postBody + * @param array $optParams Optional parameters. + */ + public function update(Google_Service_Games_PushToken $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params)); + } } /** @@ -1533,29 +1515,27 @@ class Google_Service_Games_Pushtokens_Resource extends Google_Service_Resource * $questMilestones = $gamesService->questMilestones; * */ -class Google_Service_Games_QuestMilestones_Resource extends Google_Service_Resource -{ +class Google_Service_Games_QuestMilestones_Resource extends Google_Service_Resource { - /** - * Report that a reward for the milestone corresponding to milestoneId for the - * quest corresponding to questId has been claimed by the currently authorized - * user. (questMilestones.claim) - * - * @param string $questId - * The ID of the quest. - * @param string $milestoneId - * The ID of the milestone. - * @param string $requestId - * A numeric ID to ensure that the request is handled correctly across retries. Your client - * application must generate this ID randomly. - * @param array $optParams Optional parameters. - */ - public function claim($questId, $milestoneId, $requestId, $optParams = array()) - { - $params = array('questId' => $questId, 'milestoneId' => $milestoneId, 'requestId' => $requestId); - $params = array_merge($params, $optParams); - return $this->call('claim', array($params)); - } + /** + * Report that a reward for the milestone corresponding to milestoneId for the + * quest corresponding to questId has been claimed by the currently authorized + * user. (questMilestones.claim) + * + * @param string $questId + * The ID of the quest. + * @param string $milestoneId + * The ID of the milestone. + * @param string $requestId + * A numeric ID to ensure that the request is handled correctly across retries. Your client + * application must generate this ID randomly. + * @param array $optParams Optional parameters. + */ + public function claim($questId, $milestoneId, $requestId, $optParams = array()) { + $params = array('questId' => $questId, 'milestoneId' => $milestoneId, 'requestId' => $requestId); + $params = array_merge($params, $optParams); + return $this->call('claim', array($params)); + } } /** @@ -1566,51 +1546,49 @@ class Google_Service_Games_QuestMilestones_Resource extends Google_Service_Resou * $quests = $gamesService->quests; * */ -class Google_Service_Games_Quests_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Quests_Resource extends Google_Service_Resource { - /** - * Indicates that the currently authorized user will participate in the quest. - * (quests.accept) - * - * @param string $questId - * The ID of the quest. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_Quest - */ - public function accept($questId, $optParams = array()) - { - $params = array('questId' => $questId); - $params = array_merge($params, $optParams); - return $this->call('accept', array($params), "Google_Service_Games_Quest"); - } - /** - * Get a list of quests for your application and the currently authenticated - * player. (quests.listQuests) - * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of quest resources to return in the response, used for paging. For any - * response, the actual number of quest resources returned may be less than the specified - * maxResults. Acceptable values are 1 to 50, inclusive. (Default: 50). - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_QuestListResponse - */ - public function listQuests($playerId, $optParams = array()) - { - $params = array('playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_QuestListResponse"); - } + /** + * Indicates that the currently authorized user will participate in the quest. + * (quests.accept) + * + * @param string $questId + * The ID of the quest. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Quest + */ + public function accept($questId, $optParams = array()) { + $params = array('questId' => $questId); + $params = array_merge($params, $optParams); + return $this->call('accept', array($params), "Google_Service_Games_Quest"); + } + + /** + * Get a list of quests for your application and the currently authenticated + * player. (quests.listQuests) + * + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of quest resources to return in the response, used for paging. For any + * response, the actual number of quest resources returned may be less than the specified + * maxResults. Acceptable values are 1 to 50, inclusive. (Default: 50). + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_QuestListResponse + */ + public function listQuests($playerId, $optParams = array()) { + $params = array('playerId' => $playerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Games_QuestListResponse"); + } } /** @@ -1621,29 +1599,27 @@ class Google_Service_Games_Quests_Resource extends Google_Service_Resource * $revisions = $gamesService->revisions; * */ -class Google_Service_Games_Revisions_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Revisions_Resource extends Google_Service_Resource { - /** - * Checks whether the games client is out of date. (revisions.check) - * - * @param string $clientRevision - * The revision of the client SDK used by your application. Format: - * [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are: - - "ANDROID" - Client - * is running the Android SDK. - - "IOS" - Client is running the iOS SDK. - - "WEB_APP" - Client is - * running as a Web App. - * @param array $optParams Optional parameters. - * @return Google_Service_Games_RevisionCheckResponse - */ - public function check($clientRevision, $optParams = array()) - { - $params = array('clientRevision' => $clientRevision); - $params = array_merge($params, $optParams); - return $this->call('check', array($params), "Google_Service_Games_RevisionCheckResponse"); - } + /** + * Checks whether the games client is out of date. (revisions.check) + * + * @param string $clientRevision + * The revision of the client SDK used by your application. Format: + * [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are: + * - "ANDROID" - Client + * is running the Android SDK. + * - "IOS" - Client is running the iOS SDK. + * - "WEB_APP" - Client is + * running as a Web App. + * @param array $optParams Optional parameters. + * @return Google_Service_Games_RevisionCheckResponse + */ + public function check($clientRevision, $optParams = array()) { + $params = array('clientRevision' => $clientRevision); + $params = array_merge($params, $optParams); + return $this->call('check', array($params), "Google_Service_Games_RevisionCheckResponse"); + } } /** @@ -1654,153 +1630,151 @@ class Google_Service_Games_Revisions_Resource extends Google_Service_Resource * $rooms = $gamesService->rooms; * */ -class Google_Service_Games_Rooms_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Rooms_Resource extends Google_Service_Resource { - /** - * Create a room. For internal use by the Games SDK only. Calling this method - * directly is unsupported. (rooms.create) - * - * @param Google_RoomCreateRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_Room - */ - public function create(Google_Service_Games_RoomCreateRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Games_Room"); - } - /** - * Decline an invitation to join a room. For internal use by the Games SDK only. - * Calling this method directly is unsupported. (rooms.decline) - * - * @param string $roomId - * The ID of the room. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_Room - */ - public function decline($roomId, $optParams = array()) - { - $params = array('roomId' => $roomId); - $params = array_merge($params, $optParams); - return $this->call('decline', array($params), "Google_Service_Games_Room"); - } - /** - * Dismiss an invitation to join a room. For internal use by the Games SDK only. - * Calling this method directly is unsupported. (rooms.dismiss) - * - * @param string $roomId - * The ID of the room. - * @param array $optParams Optional parameters. - */ - public function dismiss($roomId, $optParams = array()) - { - $params = array('roomId' => $roomId); - $params = array_merge($params, $optParams); - return $this->call('dismiss', array($params)); - } - /** - * Get the data for a room. (rooms.get) - * - * @param string $roomId - * The ID of the room. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_Room - */ - public function get($roomId, $optParams = array()) - { - $params = array('roomId' => $roomId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_Room"); - } - /** - * Join a room. For internal use by the Games SDK only. Calling this method - * directly is unsupported. (rooms.join) - * - * @param string $roomId - * The ID of the room. - * @param Google_RoomJoinRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_Room - */ - public function join($roomId, Google_Service_Games_RoomJoinRequest $postBody, $optParams = array()) - { - $params = array('roomId' => $roomId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('join', array($params), "Google_Service_Games_Room"); - } - /** - * Leave a room. For internal use by the Games SDK only. Calling this method - * directly is unsupported. (rooms.leave) - * - * @param string $roomId - * The ID of the room. - * @param Google_RoomLeaveRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_Room - */ - public function leave($roomId, Google_Service_Games_RoomLeaveRequest $postBody, $optParams = array()) - { - $params = array('roomId' => $roomId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('leave', array($params), "Google_Service_Games_Room"); - } - /** - * Returns invitations to join rooms. (rooms.listRooms) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of rooms to return in the response, used for paging. For any response, the - * actual number of rooms to return may be less than the specified maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_RoomList - */ - public function listRooms($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_RoomList"); - } - /** - * Updates sent by a client reporting the status of peers in a room. For - * internal use by the Games SDK only. Calling this method directly is - * unsupported. (rooms.reportStatus) - * - * @param string $roomId - * The ID of the room. - * @param Google_RoomP2PStatuses $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_RoomStatus - */ - public function reportStatus($roomId, Google_Service_Games_RoomP2PStatuses $postBody, $optParams = array()) - { - $params = array('roomId' => $roomId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('reportStatus', array($params), "Google_Service_Games_RoomStatus"); - } + /** + * Create a room. For internal use by the Games SDK only. Calling this method + * directly is unsupported. (rooms.create) + * + * @param Google_RoomCreateRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Room + */ + public function create(Google_Service_Games_RoomCreateRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Games_Room"); + } + + /** + * Decline an invitation to join a room. For internal use by the Games SDK only. + * Calling this method directly is unsupported. (rooms.decline) + * + * @param string $roomId + * The ID of the room. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Room + */ + public function decline($roomId, $optParams = array()) { + $params = array('roomId' => $roomId); + $params = array_merge($params, $optParams); + return $this->call('decline', array($params), "Google_Service_Games_Room"); + } + + /** + * Dismiss an invitation to join a room. For internal use by the Games SDK only. + * Calling this method directly is unsupported. (rooms.dismiss) + * + * @param string $roomId + * The ID of the room. + * @param array $optParams Optional parameters. + */ + public function dismiss($roomId, $optParams = array()) { + $params = array('roomId' => $roomId); + $params = array_merge($params, $optParams); + return $this->call('dismiss', array($params)); + } + + /** + * Get the data for a room. (rooms.get) + * + * @param string $roomId + * The ID of the room. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Room + */ + public function get($roomId, $optParams = array()) { + $params = array('roomId' => $roomId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Games_Room"); + } + + /** + * Join a room. For internal use by the Games SDK only. Calling this method + * directly is unsupported. (rooms.join) + * + * @param string $roomId + * The ID of the room. + * @param Google_RoomJoinRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Room + */ + public function join($roomId, Google_Service_Games_RoomJoinRequest $postBody, $optParams = array()) { + $params = array('roomId' => $roomId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('join', array($params), "Google_Service_Games_Room"); + } + + /** + * Leave a room. For internal use by the Games SDK only. Calling this method + * directly is unsupported. (rooms.leave) + * + * @param string $roomId + * The ID of the room. + * @param Google_RoomLeaveRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Room + */ + public function leave($roomId, Google_Service_Games_RoomLeaveRequest $postBody, $optParams = array()) { + $params = array('roomId' => $roomId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('leave', array($params), "Google_Service_Games_Room"); + } + + /** + * Returns invitations to join rooms. (rooms.listRooms) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of rooms to return in the response, used for paging. For any response, the + * actual number of rooms to return may be less than the specified maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_RoomList + */ + public function listRooms($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Games_RoomList"); + } + + /** + * Updates sent by a client reporting the status of peers in a room. For + * internal use by the Games SDK only. Calling this method directly is + * unsupported. (rooms.reportStatus) + * + * @param string $roomId + * The ID of the room. + * @param Google_RoomP2PStatuses $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_RoomStatus + */ + public function reportStatus($roomId, Google_Service_Games_RoomP2PStatuses $postBody, $optParams = array()) { + $params = array('roomId' => $roomId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('reportStatus', array($params), "Google_Service_Games_RoomStatus"); + } } /** @@ -1811,144 +1785,142 @@ class Google_Service_Games_Rooms_Resource extends Google_Service_Resource * $scores = $gamesService->scores; * */ -class Google_Service_Games_Scores_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Scores_Resource extends Google_Service_Resource { - /** - * Get high scores, and optionally ranks, in leaderboards for the currently - * authenticated player. For a specific time span, leaderboardId can be set to - * ALL to retrieve data for all leaderboards in a given time span. NOTE: You - * cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request; - * only one parameter may be set to 'ALL'. (scores.get) - * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. - * @param string $leaderboardId - * The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this - * application. - * @param string $timeSpan - * The time span for the scores and ranks you're requesting. - * @param array $optParams Optional parameters. - * - * @opt_param string includeRankType - * The types of ranks to return. If the parameter is omitted, no ranks will be returned. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param int maxResults - * The maximum number of leaderboard scores to return in the response. For any response, the actual - * number of leaderboard scores returned may be less than the specified maxResults. - * @opt_param string pageToken - * The token returned by the previous request. - * @return Google_Service_Games_PlayerLeaderboardScoreListResponse - */ - public function get($playerId, $leaderboardId, $timeSpan, $optParams = array()) - { - $params = array('playerId' => $playerId, 'leaderboardId' => $leaderboardId, 'timeSpan' => $timeSpan); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_PlayerLeaderboardScoreListResponse"); - } - /** - * Lists the scores in a leaderboard, starting from the top. (scores.listScores) - * - * @param string $leaderboardId - * The ID of the leaderboard. - * @param string $collection - * The collection of scores you're requesting. - * @param string $timeSpan - * The time span for the scores and ranks you're requesting. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param int maxResults - * The maximum number of leaderboard scores to return in the response. For any response, the actual - * number of leaderboard scores returned may be less than the specified maxResults. - * @opt_param string pageToken - * The token returned by the previous request. - * @return Google_Service_Games_LeaderboardScores - */ - public function listScores($leaderboardId, $collection, $timeSpan, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_LeaderboardScores"); - } - /** - * Lists the scores in a leaderboard around (and including) a player's score. - * (scores.listWindow) - * - * @param string $leaderboardId - * The ID of the leaderboard. - * @param string $collection - * The collection of scores you're requesting. - * @param string $timeSpan - * The time span for the scores and ranks you're requesting. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param bool returnTopIfAbsent - * True if the top scores should be returned when the player is not in the leaderboard. Defaults to - * true. - * @opt_param int resultsAbove - * The preferred number of scores to return above the player's score. More scores may be returned - * if the player is at the bottom of the leaderboard; fewer may be returned if the player is at the - * top. Must be less than or equal to maxResults. - * @opt_param int maxResults - * The maximum number of leaderboard scores to return in the response. For any response, the actual - * number of leaderboard scores returned may be less than the specified maxResults. - * @opt_param string pageToken - * The token returned by the previous request. - * @return Google_Service_Games_LeaderboardScores - */ - public function listWindow($leaderboardId, $collection, $timeSpan, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan); - $params = array_merge($params, $optParams); - return $this->call('listWindow', array($params), "Google_Service_Games_LeaderboardScores"); - } - /** - * Submits a score to the specified leaderboard. (scores.submit) - * - * @param string $leaderboardId - * The ID of the leaderboard. - * @param string $score - * The score you're submitting. The submitted score is ignored if it is worse than a previously - * submitted score, where worse depends on the leaderboard sort order. The meaning of the score - * value depends on the leaderboard format type. For fixed-point, the score represents the raw - * value. For time, the score represents elapsed time in milliseconds. For currency, the score - * represents a value in micro units. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param string scoreTag - * Additional information about the score you're submitting. Values must contain no more than 64 - * URI-safe characters as defined by section 2.3 of RFC 3986. - * @return Google_Service_Games_PlayerScoreResponse - */ - public function submit($leaderboardId, $score, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId, 'score' => $score); - $params = array_merge($params, $optParams); - return $this->call('submit', array($params), "Google_Service_Games_PlayerScoreResponse"); - } - /** - * Submits multiple scores to leaderboards. (scores.submitMultiple) - * - * @param Google_PlayerScoreSubmissionList $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_PlayerScoreListResponse - */ - public function submitMultiple(Google_Service_Games_PlayerScoreSubmissionList $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('submitMultiple', array($params), "Google_Service_Games_PlayerScoreListResponse"); - } + /** + * Get high scores, and optionally ranks, in leaderboards for the currently + * authenticated player. For a specific time span, leaderboardId can be set to + * ALL to retrieve data for all leaderboards in a given time span. NOTE: You + * cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request; + * only one parameter may be set to 'ALL'. (scores.get) + * + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param string $leaderboardId + * The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this + * application. + * @param string $timeSpan + * The time span for the scores and ranks you're requesting. + * @param array $optParams Optional parameters. + * + * @opt_param string includeRankType + * The types of ranks to return. If the parameter is omitted, no ranks will be returned. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @opt_param int maxResults + * The maximum number of leaderboard scores to return in the response. For any response, the actual + * number of leaderboard scores returned may be less than the specified maxResults. + * @opt_param string pageToken + * The token returned by the previous request. + * @return Google_Service_Games_PlayerLeaderboardScoreListResponse + */ + public function get($playerId, $leaderboardId, $timeSpan, $optParams = array()) { + $params = array('playerId' => $playerId, 'leaderboardId' => $leaderboardId, 'timeSpan' => $timeSpan); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Games_PlayerLeaderboardScoreListResponse"); + } + + /** + * Lists the scores in a leaderboard, starting from the top. (scores.listScores) + * + * @param string $leaderboardId + * The ID of the leaderboard. + * @param string $collection + * The collection of scores you're requesting. + * @param string $timeSpan + * The time span for the scores and ranks you're requesting. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @opt_param int maxResults + * The maximum number of leaderboard scores to return in the response. For any response, the actual + * number of leaderboard scores returned may be less than the specified maxResults. + * @opt_param string pageToken + * The token returned by the previous request. + * @return Google_Service_Games_LeaderboardScores + */ + public function listScores($leaderboardId, $collection, $timeSpan, $optParams = array()) { + $params = array('leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Games_LeaderboardScores"); + } + + /** + * Lists the scores in a leaderboard around (and including) a player's score. + * (scores.listWindow) + * + * @param string $leaderboardId + * The ID of the leaderboard. + * @param string $collection + * The collection of scores you're requesting. + * @param string $timeSpan + * The time span for the scores and ranks you're requesting. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @opt_param bool returnTopIfAbsent + * True if the top scores should be returned when the player is not in the leaderboard. Defaults to + * true. + * @opt_param int resultsAbove + * The preferred number of scores to return above the player's score. More scores may be returned + * if the player is at the bottom of the leaderboard; fewer may be returned if the player is at the + * top. Must be less than or equal to maxResults. + * @opt_param int maxResults + * The maximum number of leaderboard scores to return in the response. For any response, the actual + * number of leaderboard scores returned may be less than the specified maxResults. + * @opt_param string pageToken + * The token returned by the previous request. + * @return Google_Service_Games_LeaderboardScores + */ + public function listWindow($leaderboardId, $collection, $timeSpan, $optParams = array()) { + $params = array('leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan); + $params = array_merge($params, $optParams); + return $this->call('listWindow', array($params), "Google_Service_Games_LeaderboardScores"); + } + + /** + * Submits a score to the specified leaderboard. (scores.submit) + * + * @param string $leaderboardId + * The ID of the leaderboard. + * @param string $score + * The score you're submitting. The submitted score is ignored if it is worse than a previously + * submitted score, where worse depends on the leaderboard sort order. The meaning of the score + * value depends on the leaderboard format type. For fixed-point, the score represents the raw + * value. For time, the score represents elapsed time in milliseconds. For currency, the score + * represents a value in micro units. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @opt_param string scoreTag + * Additional information about the score you're submitting. Values must contain no more than 64 + * URI-safe characters as defined by section 2.3 of RFC 3986. + * @return Google_Service_Games_PlayerScoreResponse + */ + public function submit($leaderboardId, $score, $optParams = array()) { + $params = array('leaderboardId' => $leaderboardId, 'score' => $score); + $params = array_merge($params, $optParams); + return $this->call('submit', array($params), "Google_Service_Games_PlayerScoreResponse"); + } + + /** + * Submits multiple scores to leaderboards. (scores.submitMultiple) + * + * @param Google_PlayerScoreSubmissionList $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_PlayerScoreListResponse + */ + public function submitMultiple(Google_Service_Games_PlayerScoreSubmissionList $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('submitMultiple', array($params), "Google_Service_Games_PlayerScoreListResponse"); + } } /** @@ -1959,50 +1931,48 @@ class Google_Service_Games_Scores_Resource extends Google_Service_Resource * $snapshots = $gamesService->snapshots; * */ -class Google_Service_Games_Snapshots_Resource extends Google_Service_Resource -{ +class Google_Service_Games_Snapshots_Resource extends Google_Service_Resource { - /** - * Retrieves the metadata for a given snapshot ID. (snapshots.get) - * - * @param string $snapshotId - * The ID of the snapshot. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_Snapshot - */ - public function get($snapshotId, $optParams = array()) - { - $params = array('snapshotId' => $snapshotId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_Snapshot"); - } - /** - * Retrieves a list of snapshots created by your application for the player - * corresponding to the player ID. (snapshots.listSnapshots) - * - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of snapshot resources to return in the response, used for paging. For any - * response, the actual number of snapshot resources returned may be less than the specified - * maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_SnapshotListResponse - */ - public function listSnapshots($playerId, $optParams = array()) - { - $params = array('playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_SnapshotListResponse"); - } + /** + * Retrieves the metadata for a given snapshot ID. (snapshots.get) + * + * @param string $snapshotId + * The ID of the snapshot. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_Snapshot + */ + public function get($snapshotId, $optParams = array()) { + $params = array('snapshotId' => $snapshotId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Games_Snapshot"); + } + + /** + * Retrieves a list of snapshots created by your application for the player + * corresponding to the player ID. (snapshots.listSnapshots) + * + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of snapshot resources to return in the response, used for paging. For any + * response, the actual number of snapshot resources returned may be less than the specified + * maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_SnapshotListResponse + */ + public function listSnapshots($playerId, $optParams = array()) { + $params = array('playerId' => $playerId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Games_SnapshotListResponse"); + } } /** @@ -2013,5914 +1983,4874 @@ class Google_Service_Games_Snapshots_Resource extends Google_Service_Resource * $turnBasedMatches = $gamesService->turnBasedMatches; * */ -class Google_Service_Games_TurnBasedMatches_Resource extends Google_Service_Resource -{ - - /** - * Cancel a turn-based match. (turnBasedMatches.cancel) - * - * @param string $matchId - * The ID of the match. - * @param array $optParams Optional parameters. - */ - public function cancel($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params)); - } - /** - * Create a turn-based match. (turnBasedMatches.create) - * - * @param Google_TurnBasedMatchCreateRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function create(Google_Service_Games_TurnBasedMatchCreateRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Games_TurnBasedMatch"); - } - /** - * Decline an invitation to play a turn-based match. (turnBasedMatches.decline) - * - * @param string $matchId - * The ID of the match. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function decline($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('decline', array($params), "Google_Service_Games_TurnBasedMatch"); - } - /** - * Dismiss a turn-based match from the match list. The match will no longer show - * up in the list and will not generate notifications. - * (turnBasedMatches.dismiss) - * - * @param string $matchId - * The ID of the match. - * @param array $optParams Optional parameters. - */ - public function dismiss($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('dismiss', array($params)); - } - /** - * Finish a turn-based match. Each player should make this call once, after all - * results are in. Only the player whose turn it is may make the first call to - * Finish, and can pass in the final match state. (turnBasedMatches.finish) - * - * @param string $matchId - * The ID of the match. - * @param Google_TurnBasedMatchResults $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function finish($matchId, Google_Service_Games_TurnBasedMatchResults $postBody, $optParams = array()) - { - $params = array('matchId' => $matchId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('finish', array($params), "Google_Service_Games_TurnBasedMatch"); - } - /** - * Get the data for a turn-based match. (turnBasedMatches.get) - * - * @param string $matchId - * The ID of the match. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param bool includeMatchData - * Get match data along with metadata. - * @return Google_Service_Games_TurnBasedMatch - */ - public function get($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Games_TurnBasedMatch"); - } - /** - * Join a turn-based match. (turnBasedMatches.join) - * - * @param string $matchId - * The ID of the match. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function join($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('join', array($params), "Google_Service_Games_TurnBasedMatch"); - } - /** - * Leave a turn-based match when it is not the current player's turn, without - * canceling the match. (turnBasedMatches.leave) - * - * @param string $matchId - * The ID of the match. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function leave($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('leave', array($params), "Google_Service_Games_TurnBasedMatch"); - } - /** - * Leave a turn-based match during the current player's turn, without canceling - * the match. (turnBasedMatches.leaveTurn) - * - * @param string $matchId - * The ID of the match. - * @param int $matchVersion - * The version of the match being updated. - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param string pendingParticipantId - * The ID of another participant who should take their turn next. If not set, the match will wait - * for other player(s) to join via automatching; this is only valid if automatch criteria is set on - * the match with remaining slots for automatched players. - * @return Google_Service_Games_TurnBasedMatch - */ - public function leaveTurn($matchId, $matchVersion, $optParams = array()) - { - $params = array('matchId' => $matchId, 'matchVersion' => $matchVersion); - $params = array_merge($params, $optParams); - return $this->call('leaveTurn', array($params), "Google_Service_Games_TurnBasedMatch"); - } - /** - * Returns turn-based matches the player is or was involved in. - * (turnBasedMatches.listTurnBasedMatches) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxCompletedMatches - * The maximum number of completed or canceled matches to return in the response. If not set, all - * matches returned could be completed or canceled. - * @opt_param int maxResults - * The maximum number of matches to return in the response, used for paging. For any response, the - * actual number of matches to return may be less than the specified maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param bool includeMatchData - * True if match data should be returned in the response. Note that not all data will necessarily - * be returned if include_match_data is true; the server may decide to only return data for some of - * the matches to limit download size for the client. The remainder of the data for these matches - * will be retrievable on request. - * @return Google_Service_Games_TurnBasedMatchList - */ - public function listTurnBasedMatches($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Games_TurnBasedMatchList"); - } - /** - * Create a rematch of a match that was previously completed, with the same - * participants. This can be called by only one player on a match still in their - * list; the player must have called Finish first. Returns the newly created - * match; it will be the caller's turn. (turnBasedMatches.rematch) - * - * @param string $matchId - * The ID of the match. - * @param array $optParams Optional parameters. - * - * @opt_param string requestId - * A randomly generated numeric ID for each request specified by the caller. This number is used at - * the server to ensure that the request is handled correctly across retries. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_TurnBasedMatchRematch - */ - public function rematch($matchId, $optParams = array()) - { - $params = array('matchId' => $matchId); - $params = array_merge($params, $optParams); - return $this->call('rematch', array($params), "Google_Service_Games_TurnBasedMatchRematch"); - } - /** - * Returns turn-based matches the player is or was involved in that changed - * since the last sync call, with the least recent changes coming first. Matches - * that should be removed from the local cache will have a status of - * MATCH_DELETED. (turnBasedMatches.sync) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxCompletedMatches - * The maximum number of completed or canceled matches to return in the response. If not set, all - * matches returned could be completed or canceled. - * @opt_param int maxResults - * The maximum number of matches to return in the response, used for paging. For any response, the - * actual number of matches to return may be less than the specified maxResults. - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @opt_param bool includeMatchData - * True if match data should be returned in the response. Note that not all data will necessarily - * be returned if include_match_data is true; the server may decide to only return data for some of - * the matches to limit download size for the client. The remainder of the data for these matches - * will be retrievable on request. - * @return Google_Service_Games_TurnBasedMatchSync - */ - public function sync($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('sync', array($params), "Google_Service_Games_TurnBasedMatchSync"); - } - /** - * Commit the results of a player turn. (turnBasedMatches.takeTurn) - * - * @param string $matchId - * The ID of the match. - * @param Google_TurnBasedMatchTurn $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string language - * The preferred language to use for strings returned by this method. - * @return Google_Service_Games_TurnBasedMatch - */ - public function takeTurn($matchId, Google_Service_Games_TurnBasedMatchTurn $postBody, $optParams = array()) - { - $params = array('matchId' => $matchId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('takeTurn', array($params), "Google_Service_Games_TurnBasedMatch"); - } +class Google_Service_Games_TurnBasedMatches_Resource extends Google_Service_Resource { + + /** + * Cancel a turn-based match. (turnBasedMatches.cancel) + * + * @param string $matchId + * The ID of the match. + * @param array $optParams Optional parameters. + */ + public function cancel($matchId, $optParams = array()) { + $params = array('matchId' => $matchId); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params)); + } + + /** + * Create a turn-based match. (turnBasedMatches.create) + * + * @param Google_TurnBasedMatchCreateRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_TurnBasedMatch + */ + public function create(Google_Service_Games_TurnBasedMatchCreateRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Games_TurnBasedMatch"); + } + + /** + * Decline an invitation to play a turn-based match. (turnBasedMatches.decline) + * + * @param string $matchId + * The ID of the match. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_TurnBasedMatch + */ + public function decline($matchId, $optParams = array()) { + $params = array('matchId' => $matchId); + $params = array_merge($params, $optParams); + return $this->call('decline', array($params), "Google_Service_Games_TurnBasedMatch"); + } + + /** + * Dismiss a turn-based match from the match list. The match will no longer show + * up in the list and will not generate notifications. + * (turnBasedMatches.dismiss) + * + * @param string $matchId + * The ID of the match. + * @param array $optParams Optional parameters. + */ + public function dismiss($matchId, $optParams = array()) { + $params = array('matchId' => $matchId); + $params = array_merge($params, $optParams); + return $this->call('dismiss', array($params)); + } + + /** + * Finish a turn-based match. Each player should make this call once, after all + * results are in. Only the player whose turn it is may make the first call to + * Finish, and can pass in the final match state. (turnBasedMatches.finish) + * + * @param string $matchId + * The ID of the match. + * @param Google_TurnBasedMatchResults $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_TurnBasedMatch + */ + public function finish($matchId, Google_Service_Games_TurnBasedMatchResults $postBody, $optParams = array()) { + $params = array('matchId' => $matchId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('finish', array($params), "Google_Service_Games_TurnBasedMatch"); + } + + /** + * Get the data for a turn-based match. (turnBasedMatches.get) + * + * @param string $matchId + * The ID of the match. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @opt_param bool includeMatchData + * Get match data along with metadata. + * @return Google_Service_Games_TurnBasedMatch + */ + public function get($matchId, $optParams = array()) { + $params = array('matchId' => $matchId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Games_TurnBasedMatch"); + } + + /** + * Join a turn-based match. (turnBasedMatches.join) + * + * @param string $matchId + * The ID of the match. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_TurnBasedMatch + */ + public function join($matchId, $optParams = array()) { + $params = array('matchId' => $matchId); + $params = array_merge($params, $optParams); + return $this->call('join', array($params), "Google_Service_Games_TurnBasedMatch"); + } + + /** + * Leave a turn-based match when it is not the current player's turn, without + * canceling the match. (turnBasedMatches.leave) + * + * @param string $matchId + * The ID of the match. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_TurnBasedMatch + */ + public function leave($matchId, $optParams = array()) { + $params = array('matchId' => $matchId); + $params = array_merge($params, $optParams); + return $this->call('leave', array($params), "Google_Service_Games_TurnBasedMatch"); + } + + /** + * Leave a turn-based match during the current player's turn, without canceling + * the match. (turnBasedMatches.leaveTurn) + * + * @param string $matchId + * The ID of the match. + * @param int $matchVersion + * The version of the match being updated. + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @opt_param string pendingParticipantId + * The ID of another participant who should take their turn next. If not set, the match will wait + * for other player(s) to join via automatching; this is only valid if automatch criteria is set on + * the match with remaining slots for automatched players. + * @return Google_Service_Games_TurnBasedMatch + */ + public function leaveTurn($matchId, $matchVersion, $optParams = array()) { + $params = array('matchId' => $matchId, 'matchVersion' => $matchVersion); + $params = array_merge($params, $optParams); + return $this->call('leaveTurn', array($params), "Google_Service_Games_TurnBasedMatch"); + } + + /** + * Returns turn-based matches the player is or was involved in. + * (turnBasedMatches.listTurnBasedMatches) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxCompletedMatches + * The maximum number of completed or canceled matches to return in the response. If not set, all + * matches returned could be completed or canceled. + * @opt_param int maxResults + * The maximum number of matches to return in the response, used for paging. For any response, the + * actual number of matches to return may be less than the specified maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @opt_param bool includeMatchData + * True if match data should be returned in the response. Note that not all data will necessarily + * be returned if include_match_data is true; the server may decide to only return data for some of + * the matches to limit download size for the client. The remainder of the data for these matches + * will be retrievable on request. + * @return Google_Service_Games_TurnBasedMatchList + */ + public function listTurnBasedMatches($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Games_TurnBasedMatchList"); + } + + /** + * Create a rematch of a match that was previously completed, with the same + * participants. This can be called by only one player on a match still in their + * list; the player must have called Finish first. Returns the newly created + * match; it will be the caller's turn. (turnBasedMatches.rematch) + * + * @param string $matchId + * The ID of the match. + * @param array $optParams Optional parameters. + * + * @opt_param string requestId + * A randomly generated numeric ID for each request specified by the caller. This number is used at + * the server to ensure that the request is handled correctly across retries. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_TurnBasedMatchRematch + */ + public function rematch($matchId, $optParams = array()) { + $params = array('matchId' => $matchId); + $params = array_merge($params, $optParams); + return $this->call('rematch', array($params), "Google_Service_Games_TurnBasedMatchRematch"); + } + + /** + * Returns turn-based matches the player is or was involved in that changed + * since the last sync call, with the least recent changes coming first. Matches + * that should be removed from the local cache will have a status of + * MATCH_DELETED. (turnBasedMatches.sync) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxCompletedMatches + * The maximum number of completed or canceled matches to return in the response. If not set, all + * matches returned could be completed or canceled. + * @opt_param int maxResults + * The maximum number of matches to return in the response, used for paging. For any response, the + * actual number of matches to return may be less than the specified maxResults. + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @opt_param bool includeMatchData + * True if match data should be returned in the response. Note that not all data will necessarily + * be returned if include_match_data is true; the server may decide to only return data for some of + * the matches to limit download size for the client. The remainder of the data for these matches + * will be retrievable on request. + * @return Google_Service_Games_TurnBasedMatchSync + */ + public function sync($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('sync', array($params), "Google_Service_Games_TurnBasedMatchSync"); + } + + /** + * Commit the results of a player turn. (turnBasedMatches.takeTurn) + * + * @param string $matchId + * The ID of the match. + * @param Google_TurnBasedMatchTurn $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string language + * The preferred language to use for strings returned by this method. + * @return Google_Service_Games_TurnBasedMatch + */ + public function takeTurn($matchId, Google_Service_Games_TurnBasedMatchTurn $postBody, $optParams = array()) { + $params = array('matchId' => $matchId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('takeTurn', array($params), "Google_Service_Games_TurnBasedMatch"); + } } +class Google_Service_Games_AchievementDefinition extends Google_Model { + public $achievementType; + public $description; + public $experiencePoints; + public $formattedTotalSteps; + public $id; + public $initialState; + public $isRevealedIconUrlDefault; + public $isUnlockedIconUrlDefault; + public $kind; + public $name; + public $revealedIconUrl; + public $totalSteps; + public $unlockedIconUrl; + + public function setAchievementType($achievementType) { + $this->achievementType = $achievementType; + } + + public function getAchievementType() { + return $this->achievementType; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setExperiencePoints($experiencePoints) { + $this->experiencePoints = $experiencePoints; + } + + public function getExperiencePoints() { + return $this->experiencePoints; + } + + public function setFormattedTotalSteps($formattedTotalSteps) { + $this->formattedTotalSteps = $formattedTotalSteps; + } + + public function getFormattedTotalSteps() { + return $this->formattedTotalSteps; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInitialState($initialState) { + $this->initialState = $initialState; + } + + public function getInitialState() { + return $this->initialState; + } + + public function setIsRevealedIconUrlDefault($isRevealedIconUrlDefault) { + $this->isRevealedIconUrlDefault = $isRevealedIconUrlDefault; + } + + public function getIsRevealedIconUrlDefault() { + return $this->isRevealedIconUrlDefault; + } + + public function setIsUnlockedIconUrlDefault($isUnlockedIconUrlDefault) { + $this->isUnlockedIconUrlDefault = $isUnlockedIconUrlDefault; + } + + public function getIsUnlockedIconUrlDefault() { + return $this->isUnlockedIconUrlDefault; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setRevealedIconUrl($revealedIconUrl) { + $this->revealedIconUrl = $revealedIconUrl; + } + + public function getRevealedIconUrl() { + return $this->revealedIconUrl; + } + + public function setTotalSteps($totalSteps) { + $this->totalSteps = $totalSteps; + } + + public function getTotalSteps() { + return $this->totalSteps; + } + + public function setUnlockedIconUrl($unlockedIconUrl) { + $this->unlockedIconUrl = $unlockedIconUrl; + } - -class Google_Service_Games_AchievementDefinition extends Google_Model -{ - public $achievementType; - public $description; - public $experiencePoints; - public $formattedTotalSteps; - public $id; - public $initialState; - public $isRevealedIconUrlDefault; - public $isUnlockedIconUrlDefault; - public $kind; - public $name; - public $revealedIconUrl; - public $totalSteps; - public $unlockedIconUrl; - - public function setAchievementType($achievementType) - { - $this->achievementType = $achievementType; - } - - public function getAchievementType() - { - return $this->achievementType; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setExperiencePoints($experiencePoints) - { - $this->experiencePoints = $experiencePoints; - } - - public function getExperiencePoints() - { - return $this->experiencePoints; - } - - public function setFormattedTotalSteps($formattedTotalSteps) - { - $this->formattedTotalSteps = $formattedTotalSteps; - } - - public function getFormattedTotalSteps() - { - return $this->formattedTotalSteps; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInitialState($initialState) - { - $this->initialState = $initialState; - } - - public function getInitialState() - { - return $this->initialState; - } - - public function setIsRevealedIconUrlDefault($isRevealedIconUrlDefault) - { - $this->isRevealedIconUrlDefault = $isRevealedIconUrlDefault; - } - - public function getIsRevealedIconUrlDefault() - { - return $this->isRevealedIconUrlDefault; - } - - public function setIsUnlockedIconUrlDefault($isUnlockedIconUrlDefault) - { - $this->isUnlockedIconUrlDefault = $isUnlockedIconUrlDefault; - } - - public function getIsUnlockedIconUrlDefault() - { - return $this->isUnlockedIconUrlDefault; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setRevealedIconUrl($revealedIconUrl) - { - $this->revealedIconUrl = $revealedIconUrl; - } - - public function getRevealedIconUrl() - { - return $this->revealedIconUrl; - } - - public function setTotalSteps($totalSteps) - { - $this->totalSteps = $totalSteps; - } - - public function getTotalSteps() - { - return $this->totalSteps; - } - - public function setUnlockedIconUrl($unlockedIconUrl) - { - $this->unlockedIconUrl = $unlockedIconUrl; - } - - public function getUnlockedIconUrl() - { - return $this->unlockedIconUrl; - } + public function getUnlockedIconUrl() { + return $this->unlockedIconUrl; + } } -class Google_Service_Games_AchievementDefinitionsListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_AchievementDefinition'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_AchievementDefinitionsListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Games_AchievementDefinition'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_AchievementIncrementResponse extends Google_Model -{ - public $currentSteps; - public $kind; - public $newlyUnlocked; - - public function setCurrentSteps($currentSteps) - { - $this->currentSteps = $currentSteps; - } - - public function getCurrentSteps() - { - return $this->currentSteps; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNewlyUnlocked($newlyUnlocked) - { - $this->newlyUnlocked = $newlyUnlocked; - } - - public function getNewlyUnlocked() - { - return $this->newlyUnlocked; - } +class Google_Service_Games_AchievementIncrementResponse extends Google_Model { + public $currentSteps; + public $kind; + public $newlyUnlocked; + + public function setCurrentSteps($currentSteps) { + $this->currentSteps = $currentSteps; + } + + public function getCurrentSteps() { + return $this->currentSteps; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNewlyUnlocked($newlyUnlocked) { + $this->newlyUnlocked = $newlyUnlocked; + } + + public function getNewlyUnlocked() { + return $this->newlyUnlocked; + } } -class Google_Service_Games_AchievementRevealResponse extends Google_Model -{ - public $currentState; - public $kind; - - public function setCurrentState($currentState) - { - $this->currentState = $currentState; - } - - public function getCurrentState() - { - return $this->currentState; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Games_AchievementRevealResponse extends Google_Model { + public $currentState; + public $kind; + + public function setCurrentState($currentState) { + $this->currentState = $currentState; + } + + public function getCurrentState() { + return $this->currentState; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Games_AchievementSetStepsAtLeastResponse extends Google_Model -{ - public $currentSteps; - public $kind; - public $newlyUnlocked; - - public function setCurrentSteps($currentSteps) - { - $this->currentSteps = $currentSteps; - } - - public function getCurrentSteps() - { - return $this->currentSteps; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNewlyUnlocked($newlyUnlocked) - { - $this->newlyUnlocked = $newlyUnlocked; - } - - public function getNewlyUnlocked() - { - return $this->newlyUnlocked; - } +class Google_Service_Games_AchievementSetStepsAtLeastResponse extends Google_Model { + public $currentSteps; + public $kind; + public $newlyUnlocked; + + public function setCurrentSteps($currentSteps) { + $this->currentSteps = $currentSteps; + } + + public function getCurrentSteps() { + return $this->currentSteps; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNewlyUnlocked($newlyUnlocked) { + $this->newlyUnlocked = $newlyUnlocked; + } + + public function getNewlyUnlocked() { + return $this->newlyUnlocked; + } } -class Google_Service_Games_AchievementUnlockResponse extends Google_Model -{ - public $kind; - public $newlyUnlocked; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNewlyUnlocked($newlyUnlocked) - { - $this->newlyUnlocked = $newlyUnlocked; - } - - public function getNewlyUnlocked() - { - return $this->newlyUnlocked; - } +class Google_Service_Games_AchievementUnlockResponse extends Google_Model { + public $kind; + public $newlyUnlocked; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNewlyUnlocked($newlyUnlocked) { + $this->newlyUnlocked = $newlyUnlocked; + } + + public function getNewlyUnlocked() { + return $this->newlyUnlocked; + } } -class Google_Service_Games_AchievementUpdateMultipleRequest extends Google_Collection -{ - public $kind; - protected $updatesType = 'Google_Service_Games_AchievementUpdateRequest'; - protected $updatesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setUpdates($updates) - { - $this->updates = $updates; - } - - public function getUpdates() - { - return $this->updates; - } +class Google_Service_Games_AchievementUpdateMultipleRequest extends Google_Collection { + public $kind; + protected $updatesType = 'Google_Service_Games_AchievementUpdateRequest'; + protected $updatesDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setUpdates($updates) { + $this->updates = $updates; + } + + public function getUpdates() { + return $this->updates; + } } -class Google_Service_Games_AchievementUpdateMultipleResponse extends Google_Collection -{ - public $kind; - protected $updatedAchievementsType = 'Google_Service_Games_AchievementUpdateResponse'; - protected $updatedAchievementsDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setUpdatedAchievements($updatedAchievements) - { - $this->updatedAchievements = $updatedAchievements; - } - - public function getUpdatedAchievements() - { - return $this->updatedAchievements; - } +class Google_Service_Games_AchievementUpdateMultipleResponse extends Google_Collection { + public $kind; + protected $updatedAchievementsType = 'Google_Service_Games_AchievementUpdateResponse'; + protected $updatedAchievementsDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setUpdatedAchievements($updatedAchievements) { + $this->updatedAchievements = $updatedAchievements; + } + + public function getUpdatedAchievements() { + return $this->updatedAchievements; + } } -class Google_Service_Games_AchievementUpdateRequest extends Google_Model -{ - public $achievementId; - protected $incrementPayloadType = 'Google_Service_Games_GamesAchievementIncrement'; - protected $incrementPayloadDataType = ''; - public $kind; - protected $setStepsAtLeastPayloadType = 'Google_Service_Games_GamesAchievementSetStepsAtLeast'; - protected $setStepsAtLeastPayloadDataType = ''; - public $updateType; - - public function setAchievementId($achievementId) - { - $this->achievementId = $achievementId; - } - - public function getAchievementId() - { - return $this->achievementId; - } - - public function setIncrementPayload(Google_Service_Games_GamesAchievementIncrement $incrementPayload) - { - $this->incrementPayload = $incrementPayload; - } - - public function getIncrementPayload() - { - return $this->incrementPayload; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSetStepsAtLeastPayload(Google_Service_Games_GamesAchievementSetStepsAtLeast $setStepsAtLeastPayload) - { - $this->setStepsAtLeastPayload = $setStepsAtLeastPayload; - } - - public function getSetStepsAtLeastPayload() - { - return $this->setStepsAtLeastPayload; - } - - public function setUpdateType($updateType) - { - $this->updateType = $updateType; - } - - public function getUpdateType() - { - return $this->updateType; - } +class Google_Service_Games_AchievementUpdateRequest extends Google_Model { + public $achievementId; + protected $incrementPayloadType = 'Google_Service_Games_GamesAchievementIncrement'; + protected $incrementPayloadDataType = ''; + public $kind; + protected $setStepsAtLeastPayloadType = 'Google_Service_Games_GamesAchievementSetStepsAtLeast'; + protected $setStepsAtLeastPayloadDataType = ''; + public $updateType; + + public function setAchievementId($achievementId) { + $this->achievementId = $achievementId; + } + + public function getAchievementId() { + return $this->achievementId; + } + + public function setIncrementPayload(Google_Service_Games_GamesAchievementIncrement $incrementPayload) { + $this->incrementPayload = $incrementPayload; + } + + public function getIncrementPayload() { + return $this->incrementPayload; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSetStepsAtLeastPayload(Google_Service_Games_GamesAchievementSetStepsAtLeast $setStepsAtLeastPayload) { + $this->setStepsAtLeastPayload = $setStepsAtLeastPayload; + } + + public function getSetStepsAtLeastPayload() { + return $this->setStepsAtLeastPayload; + } + + public function setUpdateType($updateType) { + $this->updateType = $updateType; + } + + public function getUpdateType() { + return $this->updateType; + } } -class Google_Service_Games_AchievementUpdateResponse extends Google_Model -{ - public $achievementId; - public $currentState; - public $currentSteps; - public $kind; - public $newlyUnlocked; - public $updateOccurred; - - public function setAchievementId($achievementId) - { - $this->achievementId = $achievementId; - } - - public function getAchievementId() - { - return $this->achievementId; - } - - public function setCurrentState($currentState) - { - $this->currentState = $currentState; - } - - public function getCurrentState() - { - return $this->currentState; - } - - public function setCurrentSteps($currentSteps) - { - $this->currentSteps = $currentSteps; - } - - public function getCurrentSteps() - { - return $this->currentSteps; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNewlyUnlocked($newlyUnlocked) - { - $this->newlyUnlocked = $newlyUnlocked; - } - - public function getNewlyUnlocked() - { - return $this->newlyUnlocked; - } - - public function setUpdateOccurred($updateOccurred) - { - $this->updateOccurred = $updateOccurred; - } - - public function getUpdateOccurred() - { - return $this->updateOccurred; - } +class Google_Service_Games_AchievementUpdateResponse extends Google_Model { + public $achievementId; + public $currentState; + public $currentSteps; + public $kind; + public $newlyUnlocked; + public $updateOccurred; + + public function setAchievementId($achievementId) { + $this->achievementId = $achievementId; + } + + public function getAchievementId() { + return $this->achievementId; + } + + public function setCurrentState($currentState) { + $this->currentState = $currentState; + } + + public function getCurrentState() { + return $this->currentState; + } + + public function setCurrentSteps($currentSteps) { + $this->currentSteps = $currentSteps; + } + + public function getCurrentSteps() { + return $this->currentSteps; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNewlyUnlocked($newlyUnlocked) { + $this->newlyUnlocked = $newlyUnlocked; + } + + public function getNewlyUnlocked() { + return $this->newlyUnlocked; + } + + public function setUpdateOccurred($updateOccurred) { + $this->updateOccurred = $updateOccurred; + } + + public function getUpdateOccurred() { + return $this->updateOccurred; + } } -class Google_Service_Games_AggregateStats extends Google_Model -{ - public $count; - public $kind; - public $max; - public $min; - public $sum; - - public function setCount($count) - { - $this->count = $count; - } - - public function getCount() - { - return $this->count; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMax($max) - { - $this->max = $max; - } - - public function getMax() - { - return $this->max; - } - - public function setMin($min) - { - $this->min = $min; - } - - public function getMin() - { - return $this->min; - } - - public function setSum($sum) - { - $this->sum = $sum; - } - - public function getSum() - { - return $this->sum; - } +class Google_Service_Games_AggregateStats extends Google_Model { + public $count; + public $kind; + public $max; + public $min; + public $sum; + + public function setCount($count) { + $this->count = $count; + } + + public function getCount() { + return $this->count; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMax($max) { + $this->max = $max; + } + + public function getMax() { + return $this->max; + } + + public function setMin($min) { + $this->min = $min; + } + + public function getMin() { + return $this->min; + } + + public function setSum($sum) { + $this->sum = $sum; + } + + public function getSum() { + return $this->sum; + } } -class Google_Service_Games_AnonymousPlayer extends Google_Model -{ - public $avatarImageUrl; - public $displayName; - public $kind; - - public function setAvatarImageUrl($avatarImageUrl) - { - $this->avatarImageUrl = $avatarImageUrl; - } - - public function getAvatarImageUrl() - { - return $this->avatarImageUrl; - } - - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - - public function getDisplayName() - { - return $this->displayName; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Games_AnonymousPlayer extends Google_Model { + public $avatarImageUrl; + public $displayName; + public $kind; + + public function setAvatarImageUrl($avatarImageUrl) { + $this->avatarImageUrl = $avatarImageUrl; + } + + public function getAvatarImageUrl() { + return $this->avatarImageUrl; + } + + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } + + public function getDisplayName() { + return $this->displayName; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Games_Application extends Google_Collection -{ - public $achievementCount; - protected $assetsType = 'Google_Service_Games_ImageAsset'; - protected $assetsDataType = 'array'; - public $author; - protected $categoryType = 'Google_Service_Games_ApplicationCategory'; - protected $categoryDataType = ''; - public $description; - public $enabledFeatures; - public $id; - protected $instancesType = 'Google_Service_Games_Instance'; - protected $instancesDataType = 'array'; - public $kind; - public $lastUpdatedTimestamp; - public $leaderboardCount; - public $name; - - public function setAchievementCount($achievementCount) - { - $this->achievementCount = $achievementCount; - } - - public function getAchievementCount() - { - return $this->achievementCount; - } - - public function setAssets($assets) - { - $this->assets = $assets; - } - - public function getAssets() - { - return $this->assets; - } - - public function setAuthor($author) - { - $this->author = $author; - } - - public function getAuthor() - { - return $this->author; - } - - public function setCategory(Google_Service_Games_ApplicationCategory $category) - { - $this->category = $category; - } - - public function getCategory() - { - return $this->category; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setEnabledFeatures($enabledFeatures) - { - $this->enabledFeatures = $enabledFeatures; - } - - public function getEnabledFeatures() - { - return $this->enabledFeatures; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInstances($instances) - { - $this->instances = $instances; - } - - public function getInstances() - { - return $this->instances; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLastUpdatedTimestamp($lastUpdatedTimestamp) - { - $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; - } - - public function getLastUpdatedTimestamp() - { - return $this->lastUpdatedTimestamp; - } - - public function setLeaderboardCount($leaderboardCount) - { - $this->leaderboardCount = $leaderboardCount; - } - - public function getLeaderboardCount() - { - return $this->leaderboardCount; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } +class Google_Service_Games_Application extends Google_Collection { + public $achievementCount; + protected $assetsType = 'Google_Service_Games_ImageAsset'; + protected $assetsDataType = 'array'; + public $author; + protected $categoryType = 'Google_Service_Games_ApplicationCategory'; + protected $categoryDataType = ''; + public $description; + public $enabledFeatures; + public $id; + protected $instancesType = 'Google_Service_Games_Instance'; + protected $instancesDataType = 'array'; + public $kind; + public $lastUpdatedTimestamp; + public $leaderboardCount; + public $name; + + public function setAchievementCount($achievementCount) { + $this->achievementCount = $achievementCount; + } + + public function getAchievementCount() { + return $this->achievementCount; + } + + public function setAssets($assets) { + $this->assets = $assets; + } + + public function getAssets() { + return $this->assets; + } + + public function setAuthor($author) { + $this->author = $author; + } + + public function getAuthor() { + return $this->author; + } + + public function setCategory(Google_Service_Games_ApplicationCategory $category) { + $this->category = $category; + } + + public function getCategory() { + return $this->category; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setEnabledFeatures($enabledFeatures) { + $this->enabledFeatures = $enabledFeatures; + } + + public function getEnabledFeatures() { + return $this->enabledFeatures; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInstances($instances) { + $this->instances = $instances; + } + + public function getInstances() { + return $this->instances; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLastUpdatedTimestamp($lastUpdatedTimestamp) { + $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; + } + + public function getLastUpdatedTimestamp() { + return $this->lastUpdatedTimestamp; + } + + public function setLeaderboardCount($leaderboardCount) { + $this->leaderboardCount = $leaderboardCount; + } + + public function getLeaderboardCount() { + return $this->leaderboardCount; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } } -class Google_Service_Games_ApplicationCategory extends Google_Model -{ - public $kind; - public $primary; - public $secondary; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPrimary($primary) - { - $this->primary = $primary; - } - - public function getPrimary() - { - return $this->primary; - } - - public function setSecondary($secondary) - { - $this->secondary = $secondary; - } - - public function getSecondary() - { - return $this->secondary; - } +class Google_Service_Games_ApplicationCategory extends Google_Model { + public $kind; + public $primary; + public $secondary; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPrimary($primary) { + $this->primary = $primary; + } + + public function getPrimary() { + return $this->primary; + } + + public function setSecondary($secondary) { + $this->secondary = $secondary; + } + + public function getSecondary() { + return $this->secondary; + } } -class Google_Service_Games_Category extends Google_Model -{ - public $category; - public $experiencePoints; - public $kind; - - public function setCategory($category) - { - $this->category = $category; - } - - public function getCategory() - { - return $this->category; - } - - public function setExperiencePoints($experiencePoints) - { - $this->experiencePoints = $experiencePoints; - } - - public function getExperiencePoints() - { - return $this->experiencePoints; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Games_Category extends Google_Model { + public $category; + public $experiencePoints; + public $kind; + + public function setCategory($category) { + $this->category = $category; + } + + public function getCategory() { + return $this->category; + } + + public function setExperiencePoints($experiencePoints) { + $this->experiencePoints = $experiencePoints; + } + + public function getExperiencePoints() { + return $this->experiencePoints; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Games_CategoryListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_Category'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_CategoryListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Games_Category'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_EventBatchRecordFailure extends Google_Model -{ - public $failureCause; - public $kind; - protected $rangeType = 'Google_Service_Games_EventPeriodRange'; - protected $rangeDataType = ''; - - public function setFailureCause($failureCause) - { - $this->failureCause = $failureCause; - } - - public function getFailureCause() - { - return $this->failureCause; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setRange(Google_Service_Games_EventPeriodRange $range) - { - $this->range = $range; - } - - public function getRange() - { - return $this->range; - } +class Google_Service_Games_EventBatchRecordFailure extends Google_Model { + public $failureCause; + public $kind; + protected $rangeType = 'Google_Service_Games_EventPeriodRange'; + protected $rangeDataType = ''; + + public function setFailureCause($failureCause) { + $this->failureCause = $failureCause; + } + + public function getFailureCause() { + return $this->failureCause; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setRange(Google_Service_Games_EventPeriodRange $range) { + $this->range = $range; + } + + public function getRange() { + return $this->range; + } } -class Google_Service_Games_EventChild extends Google_Model -{ - public $childId; - public $kind; - - public function setChildId($childId) - { - $this->childId = $childId; - } - - public function getChildId() - { - return $this->childId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Games_EventChild extends Google_Model { + public $childId; + public $kind; + + public function setChildId($childId) { + $this->childId = $childId; + } + + public function getChildId() { + return $this->childId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Games_EventDefinition extends Google_Collection -{ - protected $childEventsType = 'Google_Service_Games_EventChild'; - protected $childEventsDataType = 'array'; - public $description; - public $displayName; - public $id; - public $imageUrl; - public $isDefaultImageUrl; - public $kind; - public $visibility; - - public function setChildEvents($childEvents) - { - $this->childEvents = $childEvents; - } - - public function getChildEvents() - { - return $this->childEvents; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - - public function getDisplayName() - { - return $this->displayName; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - - public function getImageUrl() - { - return $this->imageUrl; - } - - public function setIsDefaultImageUrl($isDefaultImageUrl) - { - $this->isDefaultImageUrl = $isDefaultImageUrl; - } - - public function getIsDefaultImageUrl() - { - return $this->isDefaultImageUrl; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } - - public function getVisibility() - { - return $this->visibility; - } +class Google_Service_Games_EventDefinition extends Google_Collection { + protected $childEventsType = 'Google_Service_Games_EventChild'; + protected $childEventsDataType = 'array'; + public $description; + public $displayName; + public $id; + public $imageUrl; + public $isDefaultImageUrl; + public $kind; + public $visibility; + + public function setChildEvents($childEvents) { + $this->childEvents = $childEvents; + } + + public function getChildEvents() { + return $this->childEvents; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } + + public function getDisplayName() { + return $this->displayName; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setImageUrl($imageUrl) { + $this->imageUrl = $imageUrl; + } + + public function getImageUrl() { + return $this->imageUrl; + } + + public function setIsDefaultImageUrl($isDefaultImageUrl) { + $this->isDefaultImageUrl = $isDefaultImageUrl; + } + + public function getIsDefaultImageUrl() { + return $this->isDefaultImageUrl; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setVisibility($visibility) { + $this->visibility = $visibility; + } + + public function getVisibility() { + return $this->visibility; + } } -class Google_Service_Games_EventDefinitionListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_EventDefinition'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_EventDefinitionListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Games_EventDefinition'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_EventPeriodRange extends Google_Model -{ - public $kind; - public $periodEndMillis; - public $periodStartMillis; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPeriodEndMillis($periodEndMillis) - { - $this->periodEndMillis = $periodEndMillis; - } - - public function getPeriodEndMillis() - { - return $this->periodEndMillis; - } - - public function setPeriodStartMillis($periodStartMillis) - { - $this->periodStartMillis = $periodStartMillis; - } - - public function getPeriodStartMillis() - { - return $this->periodStartMillis; - } +class Google_Service_Games_EventPeriodRange extends Google_Model { + public $kind; + public $periodEndMillis; + public $periodStartMillis; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPeriodEndMillis($periodEndMillis) { + $this->periodEndMillis = $periodEndMillis; + } + + public function getPeriodEndMillis() { + return $this->periodEndMillis; + } + + public function setPeriodStartMillis($periodStartMillis) { + $this->periodStartMillis = $periodStartMillis; + } + + public function getPeriodStartMillis() { + return $this->periodStartMillis; + } } -class Google_Service_Games_EventPeriodUpdate extends Google_Collection -{ - public $kind; - protected $timePeriodType = 'Google_Service_Games_EventPeriodRange'; - protected $timePeriodDataType = ''; - protected $updatesType = 'Google_Service_Games_EventUpdateRequest'; - protected $updatesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setTimePeriod(Google_Service_Games_EventPeriodRange $timePeriod) - { - $this->timePeriod = $timePeriod; - } - - public function getTimePeriod() - { - return $this->timePeriod; - } - - public function setUpdates($updates) - { - $this->updates = $updates; - } - - public function getUpdates() - { - return $this->updates; - } +class Google_Service_Games_EventPeriodUpdate extends Google_Collection { + public $kind; + protected $timePeriodType = 'Google_Service_Games_EventPeriodRange'; + protected $timePeriodDataType = ''; + protected $updatesType = 'Google_Service_Games_EventUpdateRequest'; + protected $updatesDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setTimePeriod(Google_Service_Games_EventPeriodRange $timePeriod) { + $this->timePeriod = $timePeriod; + } + + public function getTimePeriod() { + return $this->timePeriod; + } + + public function setUpdates($updates) { + $this->updates = $updates; + } + + public function getUpdates() { + return $this->updates; + } } -class Google_Service_Games_EventRecordFailure extends Google_Model -{ - public $eventId; - public $failureCause; - public $kind; - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setFailureCause($failureCause) - { - $this->failureCause = $failureCause; - } - - public function getFailureCause() - { - return $this->failureCause; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Games_EventRecordFailure extends Google_Model { + public $eventId; + public $failureCause; + public $kind; + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setFailureCause($failureCause) { + $this->failureCause = $failureCause; + } + + public function getFailureCause() { + return $this->failureCause; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Games_EventRecordRequest extends Google_Collection -{ - public $currentTimeMillis; - public $kind; - public $requestId; - protected $timePeriodsType = 'Google_Service_Games_EventPeriodUpdate'; - protected $timePeriodsDataType = 'array'; - - public function setCurrentTimeMillis($currentTimeMillis) - { - $this->currentTimeMillis = $currentTimeMillis; - } - - public function getCurrentTimeMillis() - { - return $this->currentTimeMillis; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - - public function getRequestId() - { - return $this->requestId; - } - - public function setTimePeriods($timePeriods) - { - $this->timePeriods = $timePeriods; - } - - public function getTimePeriods() - { - return $this->timePeriods; - } +class Google_Service_Games_EventRecordRequest extends Google_Collection { + public $currentTimeMillis; + public $kind; + public $requestId; + protected $timePeriodsType = 'Google_Service_Games_EventPeriodUpdate'; + protected $timePeriodsDataType = 'array'; + + public function setCurrentTimeMillis($currentTimeMillis) { + $this->currentTimeMillis = $currentTimeMillis; + } + + public function getCurrentTimeMillis() { + return $this->currentTimeMillis; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setRequestId($requestId) { + $this->requestId = $requestId; + } + + public function getRequestId() { + return $this->requestId; + } + + public function setTimePeriods($timePeriods) { + $this->timePeriods = $timePeriods; + } + + public function getTimePeriods() { + return $this->timePeriods; + } } -class Google_Service_Games_EventUpdateRequest extends Google_Model -{ - public $definitionId; - public $kind; - public $updateCount; - - public function setDefinitionId($definitionId) - { - $this->definitionId = $definitionId; - } - - public function getDefinitionId() - { - return $this->definitionId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setUpdateCount($updateCount) - { - $this->updateCount = $updateCount; - } - - public function getUpdateCount() - { - return $this->updateCount; - } +class Google_Service_Games_EventUpdateRequest extends Google_Model { + public $definitionId; + public $kind; + public $updateCount; + + public function setDefinitionId($definitionId) { + $this->definitionId = $definitionId; + } + + public function getDefinitionId() { + return $this->definitionId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setUpdateCount($updateCount) { + $this->updateCount = $updateCount; + } + + public function getUpdateCount() { + return $this->updateCount; + } } -class Google_Service_Games_EventUpdateResponse extends Google_Collection -{ - protected $batchFailuresType = 'Google_Service_Games_EventBatchRecordFailure'; - protected $batchFailuresDataType = 'array'; - protected $eventFailuresType = 'Google_Service_Games_EventRecordFailure'; - protected $eventFailuresDataType = 'array'; - public $kind; - protected $playerEventsType = 'Google_Service_Games_PlayerEvent'; - protected $playerEventsDataType = 'array'; - - public function setBatchFailures($batchFailures) - { - $this->batchFailures = $batchFailures; - } - - public function getBatchFailures() - { - return $this->batchFailures; - } - - public function setEventFailures($eventFailures) - { - $this->eventFailures = $eventFailures; - } - - public function getEventFailures() - { - return $this->eventFailures; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPlayerEvents($playerEvents) - { - $this->playerEvents = $playerEvents; - } - - public function getPlayerEvents() - { - return $this->playerEvents; - } +class Google_Service_Games_EventUpdateResponse extends Google_Collection { + protected $batchFailuresType = 'Google_Service_Games_EventBatchRecordFailure'; + protected $batchFailuresDataType = 'array'; + protected $eventFailuresType = 'Google_Service_Games_EventRecordFailure'; + protected $eventFailuresDataType = 'array'; + public $kind; + protected $playerEventsType = 'Google_Service_Games_PlayerEvent'; + protected $playerEventsDataType = 'array'; + + public function setBatchFailures($batchFailures) { + $this->batchFailures = $batchFailures; + } + + public function getBatchFailures() { + return $this->batchFailures; + } + + public function setEventFailures($eventFailures) { + $this->eventFailures = $eventFailures; + } + + public function getEventFailures() { + return $this->eventFailures; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPlayerEvents($playerEvents) { + $this->playerEvents = $playerEvents; + } + + public function getPlayerEvents() { + return $this->playerEvents; + } } -class Google_Service_Games_GamesAchievementIncrement extends Google_Model -{ - public $kind; - public $requestId; - public $steps; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - - public function getRequestId() - { - return $this->requestId; - } - - public function setSteps($steps) - { - $this->steps = $steps; - } - - public function getSteps() - { - return $this->steps; - } +class Google_Service_Games_GamesAchievementIncrement extends Google_Model { + public $kind; + public $requestId; + public $steps; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setRequestId($requestId) { + $this->requestId = $requestId; + } + + public function getRequestId() { + return $this->requestId; + } + + public function setSteps($steps) { + $this->steps = $steps; + } + + public function getSteps() { + return $this->steps; + } } -class Google_Service_Games_GamesAchievementSetStepsAtLeast extends Google_Model -{ - public $kind; - public $steps; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSteps($steps) - { - $this->steps = $steps; - } - - public function getSteps() - { - return $this->steps; - } +class Google_Service_Games_GamesAchievementSetStepsAtLeast extends Google_Model { + public $kind; + public $steps; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSteps($steps) { + $this->steps = $steps; + } + + public function getSteps() { + return $this->steps; + } } -class Google_Service_Games_ImageAsset extends Google_Model -{ - public $height; - public $kind; - public $name; - public $url; - public $width; - - public function setHeight($height) - { - $this->height = $height; - } - - public function getHeight() - { - return $this->height; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } - - public function setWidth($width) - { - $this->width = $width; - } - - public function getWidth() - { - return $this->width; - } +class Google_Service_Games_ImageAsset extends Google_Model { + public $height; + public $kind; + public $name; + public $url; + public $width; + + public function setHeight($height) { + $this->height = $height; + } + + public function getHeight() { + return $this->height; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } + + public function setWidth($width) { + $this->width = $width; + } + + public function getWidth() { + return $this->width; + } } -class Google_Service_Games_Instance extends Google_Model -{ - public $acquisitionUri; - protected $androidInstanceType = 'Google_Service_Games_InstanceAndroidDetails'; - protected $androidInstanceDataType = ''; - protected $iosInstanceType = 'Google_Service_Games_InstanceIosDetails'; - protected $iosInstanceDataType = ''; - public $kind; - public $name; - public $platformType; - public $realtimePlay; - public $turnBasedPlay; - protected $webInstanceType = 'Google_Service_Games_InstanceWebDetails'; - protected $webInstanceDataType = ''; - - public function setAcquisitionUri($acquisitionUri) - { - $this->acquisitionUri = $acquisitionUri; - } - - public function getAcquisitionUri() - { - return $this->acquisitionUri; - } - - public function setAndroidInstance(Google_Service_Games_InstanceAndroidDetails $androidInstance) - { - $this->androidInstance = $androidInstance; - } - - public function getAndroidInstance() - { - return $this->androidInstance; - } - - public function setIosInstance(Google_Service_Games_InstanceIosDetails $iosInstance) - { - $this->iosInstance = $iosInstance; - } - - public function getIosInstance() - { - return $this->iosInstance; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPlatformType($platformType) - { - $this->platformType = $platformType; - } - - public function getPlatformType() - { - return $this->platformType; - } - - public function setRealtimePlay($realtimePlay) - { - $this->realtimePlay = $realtimePlay; - } - - public function getRealtimePlay() - { - return $this->realtimePlay; - } - - public function setTurnBasedPlay($turnBasedPlay) - { - $this->turnBasedPlay = $turnBasedPlay; - } - - public function getTurnBasedPlay() - { - return $this->turnBasedPlay; - } - - public function setWebInstance(Google_Service_Games_InstanceWebDetails $webInstance) - { - $this->webInstance = $webInstance; - } - - public function getWebInstance() - { - return $this->webInstance; - } +class Google_Service_Games_Instance extends Google_Model { + public $acquisitionUri; + protected $androidInstanceType = 'Google_Service_Games_InstanceAndroidDetails'; + protected $androidInstanceDataType = ''; + protected $iosInstanceType = 'Google_Service_Games_InstanceIosDetails'; + protected $iosInstanceDataType = ''; + public $kind; + public $name; + public $platformType; + public $realtimePlay; + public $turnBasedPlay; + protected $webInstanceType = 'Google_Service_Games_InstanceWebDetails'; + protected $webInstanceDataType = ''; + + public function setAcquisitionUri($acquisitionUri) { + $this->acquisitionUri = $acquisitionUri; + } + + public function getAcquisitionUri() { + return $this->acquisitionUri; + } + + public function setAndroidInstance(Google_Service_Games_InstanceAndroidDetails $androidInstance) { + $this->androidInstance = $androidInstance; + } + + public function getAndroidInstance() { + return $this->androidInstance; + } + + public function setIosInstance(Google_Service_Games_InstanceIosDetails $iosInstance) { + $this->iosInstance = $iosInstance; + } + + public function getIosInstance() { + return $this->iosInstance; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setPlatformType($platformType) { + $this->platformType = $platformType; + } + + public function getPlatformType() { + return $this->platformType; + } + + public function setRealtimePlay($realtimePlay) { + $this->realtimePlay = $realtimePlay; + } + + public function getRealtimePlay() { + return $this->realtimePlay; + } + + public function setTurnBasedPlay($turnBasedPlay) { + $this->turnBasedPlay = $turnBasedPlay; + } + + public function getTurnBasedPlay() { + return $this->turnBasedPlay; + } + + public function setWebInstance(Google_Service_Games_InstanceWebDetails $webInstance) { + $this->webInstance = $webInstance; + } + + public function getWebInstance() { + return $this->webInstance; + } } -class Google_Service_Games_InstanceAndroidDetails extends Google_Model -{ - public $enablePiracyCheck; - public $kind; - public $packageName; - public $preferred; - - public function setEnablePiracyCheck($enablePiracyCheck) - { - $this->enablePiracyCheck = $enablePiracyCheck; - } - - public function getEnablePiracyCheck() - { - return $this->enablePiracyCheck; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPackageName($packageName) - { - $this->packageName = $packageName; - } - - public function getPackageName() - { - return $this->packageName; - } - - public function setPreferred($preferred) - { - $this->preferred = $preferred; - } - - public function getPreferred() - { - return $this->preferred; - } +class Google_Service_Games_InstanceAndroidDetails extends Google_Model { + public $enablePiracyCheck; + public $kind; + public $packageName; + public $preferred; + + public function setEnablePiracyCheck($enablePiracyCheck) { + $this->enablePiracyCheck = $enablePiracyCheck; + } + + public function getEnablePiracyCheck() { + return $this->enablePiracyCheck; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPackageName($packageName) { + $this->packageName = $packageName; + } + + public function getPackageName() { + return $this->packageName; + } + + public function setPreferred($preferred) { + $this->preferred = $preferred; + } + + public function getPreferred() { + return $this->preferred; + } } -class Google_Service_Games_InstanceIosDetails extends Google_Model -{ - public $bundleIdentifier; - public $itunesAppId; - public $kind; - public $preferredForIpad; - public $preferredForIphone; - public $supportIpad; - public $supportIphone; - - public function setBundleIdentifier($bundleIdentifier) - { - $this->bundleIdentifier = $bundleIdentifier; - } - - public function getBundleIdentifier() - { - return $this->bundleIdentifier; - } - - public function setItunesAppId($itunesAppId) - { - $this->itunesAppId = $itunesAppId; - } - - public function getItunesAppId() - { - return $this->itunesAppId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPreferredForIpad($preferredForIpad) - { - $this->preferredForIpad = $preferredForIpad; - } - - public function getPreferredForIpad() - { - return $this->preferredForIpad; - } - - public function setPreferredForIphone($preferredForIphone) - { - $this->preferredForIphone = $preferredForIphone; - } - - public function getPreferredForIphone() - { - return $this->preferredForIphone; - } - - public function setSupportIpad($supportIpad) - { - $this->supportIpad = $supportIpad; - } - - public function getSupportIpad() - { - return $this->supportIpad; - } - - public function setSupportIphone($supportIphone) - { - $this->supportIphone = $supportIphone; - } - - public function getSupportIphone() - { - return $this->supportIphone; - } +class Google_Service_Games_InstanceIosDetails extends Google_Model { + public $bundleIdentifier; + public $itunesAppId; + public $kind; + public $preferredForIpad; + public $preferredForIphone; + public $supportIpad; + public $supportIphone; + + public function setBundleIdentifier($bundleIdentifier) { + $this->bundleIdentifier = $bundleIdentifier; + } + + public function getBundleIdentifier() { + return $this->bundleIdentifier; + } + + public function setItunesAppId($itunesAppId) { + $this->itunesAppId = $itunesAppId; + } + + public function getItunesAppId() { + return $this->itunesAppId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPreferredForIpad($preferredForIpad) { + $this->preferredForIpad = $preferredForIpad; + } + + public function getPreferredForIpad() { + return $this->preferredForIpad; + } + + public function setPreferredForIphone($preferredForIphone) { + $this->preferredForIphone = $preferredForIphone; + } + + public function getPreferredForIphone() { + return $this->preferredForIphone; + } + + public function setSupportIpad($supportIpad) { + $this->supportIpad = $supportIpad; + } + + public function getSupportIpad() { + return $this->supportIpad; + } + + public function setSupportIphone($supportIphone) { + $this->supportIphone = $supportIphone; + } + + public function getSupportIphone() { + return $this->supportIphone; + } } -class Google_Service_Games_InstanceWebDetails extends Google_Model -{ - public $kind; - public $launchUrl; - public $preferred; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLaunchUrl($launchUrl) - { - $this->launchUrl = $launchUrl; - } - - public function getLaunchUrl() - { - return $this->launchUrl; - } - - public function setPreferred($preferred) - { - $this->preferred = $preferred; - } - - public function getPreferred() - { - return $this->preferred; - } +class Google_Service_Games_InstanceWebDetails extends Google_Model { + public $kind; + public $launchUrl; + public $preferred; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLaunchUrl($launchUrl) { + $this->launchUrl = $launchUrl; + } + + public function getLaunchUrl() { + return $this->launchUrl; + } + + public function setPreferred($preferred) { + $this->preferred = $preferred; + } + + public function getPreferred() { + return $this->preferred; + } } -class Google_Service_Games_Leaderboard extends Google_Model -{ - public $iconUrl; - public $id; - public $isIconUrlDefault; - public $kind; - public $name; - public $order; - - public function setIconUrl($iconUrl) - { - $this->iconUrl = $iconUrl; - } - - public function getIconUrl() - { - return $this->iconUrl; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setIsIconUrlDefault($isIconUrlDefault) - { - $this->isIconUrlDefault = $isIconUrlDefault; - } - - public function getIsIconUrlDefault() - { - return $this->isIconUrlDefault; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setOrder($order) - { - $this->order = $order; - } - - public function getOrder() - { - return $this->order; - } +class Google_Service_Games_Leaderboard extends Google_Model { + public $iconUrl; + public $id; + public $isIconUrlDefault; + public $kind; + public $name; + public $order; + + public function setIconUrl($iconUrl) { + $this->iconUrl = $iconUrl; + } + + public function getIconUrl() { + return $this->iconUrl; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setIsIconUrlDefault($isIconUrlDefault) { + $this->isIconUrlDefault = $isIconUrlDefault; + } + + public function getIsIconUrlDefault() { + return $this->isIconUrlDefault; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setOrder($order) { + $this->order = $order; + } + + public function getOrder() { + return $this->order; + } } -class Google_Service_Games_LeaderboardEntry extends Google_Model -{ - public $formattedScore; - public $formattedScoreRank; - public $kind; - protected $playerType = 'Google_Service_Games_Player'; - protected $playerDataType = ''; - public $scoreRank; - public $scoreTag; - public $scoreValue; - public $timeSpan; - public $writeTimestampMillis; - - public function setFormattedScore($formattedScore) - { - $this->formattedScore = $formattedScore; - } - - public function getFormattedScore() - { - return $this->formattedScore; - } - - public function setFormattedScoreRank($formattedScoreRank) - { - $this->formattedScoreRank = $formattedScoreRank; - } - - public function getFormattedScoreRank() - { - return $this->formattedScoreRank; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPlayer(Google_Service_Games_Player $player) - { - $this->player = $player; - } - - public function getPlayer() - { - return $this->player; - } - - public function setScoreRank($scoreRank) - { - $this->scoreRank = $scoreRank; - } - - public function getScoreRank() - { - return $this->scoreRank; - } - - public function setScoreTag($scoreTag) - { - $this->scoreTag = $scoreTag; - } - - public function getScoreTag() - { - return $this->scoreTag; - } - - public function setScoreValue($scoreValue) - { - $this->scoreValue = $scoreValue; - } - - public function getScoreValue() - { - return $this->scoreValue; - } - - public function setTimeSpan($timeSpan) - { - $this->timeSpan = $timeSpan; - } - - public function getTimeSpan() - { - return $this->timeSpan; - } - - public function setWriteTimestampMillis($writeTimestampMillis) - { - $this->writeTimestampMillis = $writeTimestampMillis; - } - - public function getWriteTimestampMillis() - { - return $this->writeTimestampMillis; - } +class Google_Service_Games_LeaderboardEntry extends Google_Model { + public $formattedScore; + public $formattedScoreRank; + public $kind; + protected $playerType = 'Google_Service_Games_Player'; + protected $playerDataType = ''; + public $scoreRank; + public $scoreTag; + public $scoreValue; + public $timeSpan; + public $writeTimestampMillis; + + public function setFormattedScore($formattedScore) { + $this->formattedScore = $formattedScore; + } + + public function getFormattedScore() { + return $this->formattedScore; + } + + public function setFormattedScoreRank($formattedScoreRank) { + $this->formattedScoreRank = $formattedScoreRank; + } + + public function getFormattedScoreRank() { + return $this->formattedScoreRank; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPlayer(Google_Service_Games_Player $player) { + $this->player = $player; + } + + public function getPlayer() { + return $this->player; + } + + public function setScoreRank($scoreRank) { + $this->scoreRank = $scoreRank; + } + + public function getScoreRank() { + return $this->scoreRank; + } + + public function setScoreTag($scoreTag) { + $this->scoreTag = $scoreTag; + } + + public function getScoreTag() { + return $this->scoreTag; + } + + public function setScoreValue($scoreValue) { + $this->scoreValue = $scoreValue; + } + + public function getScoreValue() { + return $this->scoreValue; + } + + public function setTimeSpan($timeSpan) { + $this->timeSpan = $timeSpan; + } + + public function getTimeSpan() { + return $this->timeSpan; + } + + public function setWriteTimestampMillis($writeTimestampMillis) { + $this->writeTimestampMillis = $writeTimestampMillis; + } + + public function getWriteTimestampMillis() { + return $this->writeTimestampMillis; + } } -class Google_Service_Games_LeaderboardListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_Leaderboard'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_LeaderboardListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Games_Leaderboard'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_LeaderboardScoreRank extends Google_Model -{ - public $formattedNumScores; - public $formattedRank; - public $kind; - public $numScores; - public $rank; - - public function setFormattedNumScores($formattedNumScores) - { - $this->formattedNumScores = $formattedNumScores; - } - - public function getFormattedNumScores() - { - return $this->formattedNumScores; - } - - public function setFormattedRank($formattedRank) - { - $this->formattedRank = $formattedRank; - } - - public function getFormattedRank() - { - return $this->formattedRank; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNumScores($numScores) - { - $this->numScores = $numScores; - } - - public function getNumScores() - { - return $this->numScores; - } - - public function setRank($rank) - { - $this->rank = $rank; - } - - public function getRank() - { - return $this->rank; - } +class Google_Service_Games_LeaderboardScoreRank extends Google_Model { + public $formattedNumScores; + public $formattedRank; + public $kind; + public $numScores; + public $rank; + + public function setFormattedNumScores($formattedNumScores) { + $this->formattedNumScores = $formattedNumScores; + } + + public function getFormattedNumScores() { + return $this->formattedNumScores; + } + + public function setFormattedRank($formattedRank) { + $this->formattedRank = $formattedRank; + } + + public function getFormattedRank() { + return $this->formattedRank; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNumScores($numScores) { + $this->numScores = $numScores; + } + + public function getNumScores() { + return $this->numScores; + } + + public function setRank($rank) { + $this->rank = $rank; + } + + public function getRank() { + return $this->rank; + } } -class Google_Service_Games_LeaderboardScores extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_LeaderboardEntry'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $numScores; - protected $playerScoreType = 'Google_Service_Games_LeaderboardEntry'; - protected $playerScoreDataType = ''; - public $prevPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setNumScores($numScores) - { - $this->numScores = $numScores; - } - - public function getNumScores() - { - return $this->numScores; - } - - public function setPlayerScore(Google_Service_Games_LeaderboardEntry $playerScore) - { - $this->playerScore = $playerScore; - } - - public function getPlayerScore() - { - return $this->playerScore; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } +class Google_Service_Games_LeaderboardScores extends Google_Collection { + protected $itemsType = 'Google_Service_Games_LeaderboardEntry'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $numScores; + protected $playerScoreType = 'Google_Service_Games_LeaderboardEntry'; + protected $playerScoreDataType = ''; + public $prevPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setNumScores($numScores) { + $this->numScores = $numScores; + } + + public function getNumScores() { + return $this->numScores; + } + + public function setPlayerScore(Google_Service_Games_LeaderboardEntry $playerScore) { + $this->playerScore = $playerScore; + } + + public function getPlayerScore() { + return $this->playerScore; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } } -class Google_Service_Games_MetagameConfig extends Google_Collection -{ - public $currentVersion; - public $kind; - protected $playerLevelsType = 'Google_Service_Games_PlayerLevel'; - protected $playerLevelsDataType = 'array'; - - public function setCurrentVersion($currentVersion) - { - $this->currentVersion = $currentVersion; - } - - public function getCurrentVersion() - { - return $this->currentVersion; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPlayerLevels($playerLevels) - { - $this->playerLevels = $playerLevels; - } - - public function getPlayerLevels() - { - return $this->playerLevels; - } +class Google_Service_Games_MetagameConfig extends Google_Collection { + public $currentVersion; + public $kind; + protected $playerLevelsType = 'Google_Service_Games_PlayerLevel'; + protected $playerLevelsDataType = 'array'; + + public function setCurrentVersion($currentVersion) { + $this->currentVersion = $currentVersion; + } + + public function getCurrentVersion() { + return $this->currentVersion; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPlayerLevels($playerLevels) { + $this->playerLevels = $playerLevels; + } + + public function getPlayerLevels() { + return $this->playerLevels; + } } -class Google_Service_Games_NetworkDiagnostics extends Google_Model -{ - public $androidNetworkSubtype; - public $androidNetworkType; - public $iosNetworkType; - public $kind; - public $networkOperatorCode; - public $networkOperatorName; - public $registrationLatencyMillis; - - public function setAndroidNetworkSubtype($androidNetworkSubtype) - { - $this->androidNetworkSubtype = $androidNetworkSubtype; - } - - public function getAndroidNetworkSubtype() - { - return $this->androidNetworkSubtype; - } - - public function setAndroidNetworkType($androidNetworkType) - { - $this->androidNetworkType = $androidNetworkType; - } - - public function getAndroidNetworkType() - { - return $this->androidNetworkType; - } - - public function setIosNetworkType($iosNetworkType) - { - $this->iosNetworkType = $iosNetworkType; - } - - public function getIosNetworkType() - { - return $this->iosNetworkType; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNetworkOperatorCode($networkOperatorCode) - { - $this->networkOperatorCode = $networkOperatorCode; - } - - public function getNetworkOperatorCode() - { - return $this->networkOperatorCode; - } - - public function setNetworkOperatorName($networkOperatorName) - { - $this->networkOperatorName = $networkOperatorName; - } - - public function getNetworkOperatorName() - { - return $this->networkOperatorName; - } - - public function setRegistrationLatencyMillis($registrationLatencyMillis) - { - $this->registrationLatencyMillis = $registrationLatencyMillis; - } - - public function getRegistrationLatencyMillis() - { - return $this->registrationLatencyMillis; - } +class Google_Service_Games_NetworkDiagnostics extends Google_Model { + public $androidNetworkSubtype; + public $androidNetworkType; + public $iosNetworkType; + public $kind; + public $networkOperatorCode; + public $networkOperatorName; + public $registrationLatencyMillis; + + public function setAndroidNetworkSubtype($androidNetworkSubtype) { + $this->androidNetworkSubtype = $androidNetworkSubtype; + } + + public function getAndroidNetworkSubtype() { + return $this->androidNetworkSubtype; + } + + public function setAndroidNetworkType($androidNetworkType) { + $this->androidNetworkType = $androidNetworkType; + } + + public function getAndroidNetworkType() { + return $this->androidNetworkType; + } + + public function setIosNetworkType($iosNetworkType) { + $this->iosNetworkType = $iosNetworkType; + } + + public function getIosNetworkType() { + return $this->iosNetworkType; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNetworkOperatorCode($networkOperatorCode) { + $this->networkOperatorCode = $networkOperatorCode; + } + + public function getNetworkOperatorCode() { + return $this->networkOperatorCode; + } + + public function setNetworkOperatorName($networkOperatorName) { + $this->networkOperatorName = $networkOperatorName; + } + + public function getNetworkOperatorName() { + return $this->networkOperatorName; + } + + public function setRegistrationLatencyMillis($registrationLatencyMillis) { + $this->registrationLatencyMillis = $registrationLatencyMillis; + } + + public function getRegistrationLatencyMillis() { + return $this->registrationLatencyMillis; + } } -class Google_Service_Games_ParticipantResult extends Google_Model -{ - public $kind; - public $participantId; - public $placing; - public $result; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - - public function getParticipantId() - { - return $this->participantId; - } - - public function setPlacing($placing) - { - $this->placing = $placing; - } - - public function getPlacing() - { - return $this->placing; - } - - public function setResult($result) - { - $this->result = $result; - } - - public function getResult() - { - return $this->result; - } +class Google_Service_Games_ParticipantResult extends Google_Model { + public $kind; + public $participantId; + public $placing; + public $result; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setParticipantId($participantId) { + $this->participantId = $participantId; + } + + public function getParticipantId() { + return $this->participantId; + } + + public function setPlacing($placing) { + $this->placing = $placing; + } + + public function getPlacing() { + return $this->placing; + } + + public function setResult($result) { + $this->result = $result; + } + + public function getResult() { + return $this->result; + } } -class Google_Service_Games_PeerChannelDiagnostics extends Google_Model -{ - protected $bytesReceivedType = 'Google_Service_Games_AggregateStats'; - protected $bytesReceivedDataType = ''; - protected $bytesSentType = 'Google_Service_Games_AggregateStats'; - protected $bytesSentDataType = ''; - public $kind; - public $numMessagesLost; - public $numMessagesReceived; - public $numMessagesSent; - public $numSendFailures; - protected $roundtripLatencyMillisType = 'Google_Service_Games_AggregateStats'; - protected $roundtripLatencyMillisDataType = ''; - - public function setBytesReceived(Google_Service_Games_AggregateStats $bytesReceived) - { - $this->bytesReceived = $bytesReceived; - } - - public function getBytesReceived() - { - return $this->bytesReceived; - } - - public function setBytesSent(Google_Service_Games_AggregateStats $bytesSent) - { - $this->bytesSent = $bytesSent; - } - - public function getBytesSent() - { - return $this->bytesSent; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNumMessagesLost($numMessagesLost) - { - $this->numMessagesLost = $numMessagesLost; - } - - public function getNumMessagesLost() - { - return $this->numMessagesLost; - } - - public function setNumMessagesReceived($numMessagesReceived) - { - $this->numMessagesReceived = $numMessagesReceived; - } - - public function getNumMessagesReceived() - { - return $this->numMessagesReceived; - } - - public function setNumMessagesSent($numMessagesSent) - { - $this->numMessagesSent = $numMessagesSent; - } - - public function getNumMessagesSent() - { - return $this->numMessagesSent; - } - - public function setNumSendFailures($numSendFailures) - { - $this->numSendFailures = $numSendFailures; - } - - public function getNumSendFailures() - { - return $this->numSendFailures; - } - - public function setRoundtripLatencyMillis(Google_Service_Games_AggregateStats $roundtripLatencyMillis) - { - $this->roundtripLatencyMillis = $roundtripLatencyMillis; - } - - public function getRoundtripLatencyMillis() - { - return $this->roundtripLatencyMillis; - } +class Google_Service_Games_PeerChannelDiagnostics extends Google_Model { + protected $bytesReceivedType = 'Google_Service_Games_AggregateStats'; + protected $bytesReceivedDataType = ''; + protected $bytesSentType = 'Google_Service_Games_AggregateStats'; + protected $bytesSentDataType = ''; + public $kind; + public $numMessagesLost; + public $numMessagesReceived; + public $numMessagesSent; + public $numSendFailures; + protected $roundtripLatencyMillisType = 'Google_Service_Games_AggregateStats'; + protected $roundtripLatencyMillisDataType = ''; + + public function setBytesReceived(Google_Service_Games_AggregateStats $bytesReceived) { + $this->bytesReceived = $bytesReceived; + } + + public function getBytesReceived() { + return $this->bytesReceived; + } + + public function setBytesSent(Google_Service_Games_AggregateStats $bytesSent) { + $this->bytesSent = $bytesSent; + } + + public function getBytesSent() { + return $this->bytesSent; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNumMessagesLost($numMessagesLost) { + $this->numMessagesLost = $numMessagesLost; + } + + public function getNumMessagesLost() { + return $this->numMessagesLost; + } + + public function setNumMessagesReceived($numMessagesReceived) { + $this->numMessagesReceived = $numMessagesReceived; + } + + public function getNumMessagesReceived() { + return $this->numMessagesReceived; + } + + public function setNumMessagesSent($numMessagesSent) { + $this->numMessagesSent = $numMessagesSent; + } + + public function getNumMessagesSent() { + return $this->numMessagesSent; + } + + public function setNumSendFailures($numSendFailures) { + $this->numSendFailures = $numSendFailures; + } + + public function getNumSendFailures() { + return $this->numSendFailures; + } + + public function setRoundtripLatencyMillis(Google_Service_Games_AggregateStats $roundtripLatencyMillis) { + $this->roundtripLatencyMillis = $roundtripLatencyMillis; + } + + public function getRoundtripLatencyMillis() { + return $this->roundtripLatencyMillis; + } } -class Google_Service_Games_PeerSessionDiagnostics extends Google_Model -{ - public $connectedTimestampMillis; - public $kind; - public $participantId; - protected $reliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics'; - protected $reliableChannelDataType = ''; - protected $unreliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics'; - protected $unreliableChannelDataType = ''; - - public function setConnectedTimestampMillis($connectedTimestampMillis) - { - $this->connectedTimestampMillis = $connectedTimestampMillis; - } - - public function getConnectedTimestampMillis() - { - return $this->connectedTimestampMillis; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - - public function getParticipantId() - { - return $this->participantId; - } - - public function setReliableChannel(Google_Service_Games_PeerChannelDiagnostics $reliableChannel) - { - $this->reliableChannel = $reliableChannel; - } - - public function getReliableChannel() - { - return $this->reliableChannel; - } - - public function setUnreliableChannel(Google_Service_Games_PeerChannelDiagnostics $unreliableChannel) - { - $this->unreliableChannel = $unreliableChannel; - } - - public function getUnreliableChannel() - { - return $this->unreliableChannel; - } +class Google_Service_Games_PeerSessionDiagnostics extends Google_Model { + public $connectedTimestampMillis; + public $kind; + public $participantId; + protected $reliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics'; + protected $reliableChannelDataType = ''; + protected $unreliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics'; + protected $unreliableChannelDataType = ''; + + public function setConnectedTimestampMillis($connectedTimestampMillis) { + $this->connectedTimestampMillis = $connectedTimestampMillis; + } + + public function getConnectedTimestampMillis() { + return $this->connectedTimestampMillis; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setParticipantId($participantId) { + $this->participantId = $participantId; + } + + public function getParticipantId() { + return $this->participantId; + } + + public function setReliableChannel(Google_Service_Games_PeerChannelDiagnostics $reliableChannel) { + $this->reliableChannel = $reliableChannel; + } + + public function getReliableChannel() { + return $this->reliableChannel; + } + + public function setUnreliableChannel(Google_Service_Games_PeerChannelDiagnostics $unreliableChannel) { + $this->unreliableChannel = $unreliableChannel; + } + + public function getUnreliableChannel() { + return $this->unreliableChannel; + } } -class Google_Service_Games_Played extends Google_Model -{ - public $autoMatched; - public $kind; - public $timeMillis; - - public function setAutoMatched($autoMatched) - { - $this->autoMatched = $autoMatched; - } - - public function getAutoMatched() - { - return $this->autoMatched; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setTimeMillis($timeMillis) - { - $this->timeMillis = $timeMillis; - } - - public function getTimeMillis() - { - return $this->timeMillis; - } +class Google_Service_Games_Played extends Google_Model { + public $autoMatched; + public $kind; + public $timeMillis; + + public function setAutoMatched($autoMatched) { + $this->autoMatched = $autoMatched; + } + + public function getAutoMatched() { + return $this->autoMatched; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setTimeMillis($timeMillis) { + $this->timeMillis = $timeMillis; + } + + public function getTimeMillis() { + return $this->timeMillis; + } } -class Google_Service_Games_Player extends Google_Model -{ - public $avatarImageUrl; - public $displayName; - protected $experienceInfoType = 'Google_Service_Games_PlayerExperienceInfo'; - protected $experienceInfoDataType = ''; - public $kind; - protected $lastPlayedWithType = 'Google_Service_Games_Played'; - protected $lastPlayedWithDataType = ''; - protected $nameType = 'Google_Service_Games_PlayerName'; - protected $nameDataType = ''; - public $playerId; - public $title; - - public function setAvatarImageUrl($avatarImageUrl) - { - $this->avatarImageUrl = $avatarImageUrl; - } - - public function getAvatarImageUrl() - { - return $this->avatarImageUrl; - } - - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } - - public function getDisplayName() - { - return $this->displayName; - } - - public function setExperienceInfo(Google_Service_Games_PlayerExperienceInfo $experienceInfo) - { - $this->experienceInfo = $experienceInfo; - } - - public function getExperienceInfo() - { - return $this->experienceInfo; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLastPlayedWith(Google_Service_Games_Played $lastPlayedWith) - { - $this->lastPlayedWith = $lastPlayedWith; - } - - public function getLastPlayedWith() - { - return $this->lastPlayedWith; - } - - public function setName(Google_Service_Games_PlayerName $name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPlayerId($playerId) - { - $this->playerId = $playerId; - } - - public function getPlayerId() - { - return $this->playerId; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_Games_Player extends Google_Model { + public $avatarImageUrl; + public $displayName; + protected $experienceInfoType = 'Google_Service_Games_PlayerExperienceInfo'; + protected $experienceInfoDataType = ''; + public $kind; + protected $lastPlayedWithType = 'Google_Service_Games_Played'; + protected $lastPlayedWithDataType = ''; + protected $nameType = 'Google_Service_Games_PlayerName'; + protected $nameDataType = ''; + public $playerId; + public $title; + + public function setAvatarImageUrl($avatarImageUrl) { + $this->avatarImageUrl = $avatarImageUrl; + } + + public function getAvatarImageUrl() { + return $this->avatarImageUrl; + } + + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } + + public function getDisplayName() { + return $this->displayName; + } + + public function setExperienceInfo(Google_Service_Games_PlayerExperienceInfo $experienceInfo) { + $this->experienceInfo = $experienceInfo; + } + + public function getExperienceInfo() { + return $this->experienceInfo; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLastPlayedWith(Google_Service_Games_Played $lastPlayedWith) { + $this->lastPlayedWith = $lastPlayedWith; + } + + public function getLastPlayedWith() { + return $this->lastPlayedWith; + } + + public function setName(Google_Service_Games_PlayerName $name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setPlayerId($playerId) { + $this->playerId = $playerId; + } + + public function getPlayerId() { + return $this->playerId; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_Games_PlayerAchievement extends Google_Model -{ - public $achievementState; - public $currentSteps; - public $experiencePoints; - public $formattedCurrentStepsString; - public $id; - public $kind; - public $lastUpdatedTimestamp; - - public function setAchievementState($achievementState) - { - $this->achievementState = $achievementState; - } - - public function getAchievementState() - { - return $this->achievementState; - } - - public function setCurrentSteps($currentSteps) - { - $this->currentSteps = $currentSteps; - } - - public function getCurrentSteps() - { - return $this->currentSteps; - } - - public function setExperiencePoints($experiencePoints) - { - $this->experiencePoints = $experiencePoints; - } - - public function getExperiencePoints() - { - return $this->experiencePoints; - } - - public function setFormattedCurrentStepsString($formattedCurrentStepsString) - { - $this->formattedCurrentStepsString = $formattedCurrentStepsString; - } - - public function getFormattedCurrentStepsString() - { - return $this->formattedCurrentStepsString; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLastUpdatedTimestamp($lastUpdatedTimestamp) - { - $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; - } - - public function getLastUpdatedTimestamp() - { - return $this->lastUpdatedTimestamp; - } +class Google_Service_Games_PlayerAchievement extends Google_Model { + public $achievementState; + public $currentSteps; + public $experiencePoints; + public $formattedCurrentStepsString; + public $id; + public $kind; + public $lastUpdatedTimestamp; + + public function setAchievementState($achievementState) { + $this->achievementState = $achievementState; + } + + public function getAchievementState() { + return $this->achievementState; + } + + public function setCurrentSteps($currentSteps) { + $this->currentSteps = $currentSteps; + } + + public function getCurrentSteps() { + return $this->currentSteps; + } + + public function setExperiencePoints($experiencePoints) { + $this->experiencePoints = $experiencePoints; + } + + public function getExperiencePoints() { + return $this->experiencePoints; + } + + public function setFormattedCurrentStepsString($formattedCurrentStepsString) { + $this->formattedCurrentStepsString = $formattedCurrentStepsString; + } + + public function getFormattedCurrentStepsString() { + return $this->formattedCurrentStepsString; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLastUpdatedTimestamp($lastUpdatedTimestamp) { + $this->lastUpdatedTimestamp = $lastUpdatedTimestamp; + } + + public function getLastUpdatedTimestamp() { + return $this->lastUpdatedTimestamp; + } } -class Google_Service_Games_PlayerAchievementListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_PlayerAchievement'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_PlayerAchievementListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Games_PlayerAchievement'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_PlayerEvent extends Google_Model -{ - public $definitionId; - public $formattedNumEvents; - public $kind; - public $numEvents; - public $playerId; - - public function setDefinitionId($definitionId) - { - $this->definitionId = $definitionId; - } - - public function getDefinitionId() - { - return $this->definitionId; - } - - public function setFormattedNumEvents($formattedNumEvents) - { - $this->formattedNumEvents = $formattedNumEvents; - } - - public function getFormattedNumEvents() - { - return $this->formattedNumEvents; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNumEvents($numEvents) - { - $this->numEvents = $numEvents; - } - - public function getNumEvents() - { - return $this->numEvents; - } - - public function setPlayerId($playerId) - { - $this->playerId = $playerId; - } - - public function getPlayerId() - { - return $this->playerId; - } +class Google_Service_Games_PlayerEvent extends Google_Model { + public $definitionId; + public $formattedNumEvents; + public $kind; + public $numEvents; + public $playerId; + + public function setDefinitionId($definitionId) { + $this->definitionId = $definitionId; + } + + public function getDefinitionId() { + return $this->definitionId; + } + + public function setFormattedNumEvents($formattedNumEvents) { + $this->formattedNumEvents = $formattedNumEvents; + } + + public function getFormattedNumEvents() { + return $this->formattedNumEvents; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNumEvents($numEvents) { + $this->numEvents = $numEvents; + } + + public function getNumEvents() { + return $this->numEvents; + } + + public function setPlayerId($playerId) { + $this->playerId = $playerId; + } + + public function getPlayerId() { + return $this->playerId; + } } -class Google_Service_Games_PlayerEventListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_PlayerEvent'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_PlayerEventListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Games_PlayerEvent'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_PlayerExperienceInfo extends Google_Model -{ - public $currentExperiencePoints; - protected $currentLevelType = 'Google_Service_Games_PlayerLevel'; - protected $currentLevelDataType = ''; - public $kind; - public $lastLevelUpTimestampMillis; - protected $nextLevelType = 'Google_Service_Games_PlayerLevel'; - protected $nextLevelDataType = ''; - - public function setCurrentExperiencePoints($currentExperiencePoints) - { - $this->currentExperiencePoints = $currentExperiencePoints; - } - - public function getCurrentExperiencePoints() - { - return $this->currentExperiencePoints; - } - - public function setCurrentLevel(Google_Service_Games_PlayerLevel $currentLevel) - { - $this->currentLevel = $currentLevel; - } - - public function getCurrentLevel() - { - return $this->currentLevel; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) - { - $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; - } - - public function getLastLevelUpTimestampMillis() - { - return $this->lastLevelUpTimestampMillis; - } - - public function setNextLevel(Google_Service_Games_PlayerLevel $nextLevel) - { - $this->nextLevel = $nextLevel; - } - - public function getNextLevel() - { - return $this->nextLevel; - } +class Google_Service_Games_PlayerExperienceInfo extends Google_Model { + public $currentExperiencePoints; + protected $currentLevelType = 'Google_Service_Games_PlayerLevel'; + protected $currentLevelDataType = ''; + public $kind; + public $lastLevelUpTimestampMillis; + protected $nextLevelType = 'Google_Service_Games_PlayerLevel'; + protected $nextLevelDataType = ''; + + public function setCurrentExperiencePoints($currentExperiencePoints) { + $this->currentExperiencePoints = $currentExperiencePoints; + } + + public function getCurrentExperiencePoints() { + return $this->currentExperiencePoints; + } + + public function setCurrentLevel(Google_Service_Games_PlayerLevel $currentLevel) { + $this->currentLevel = $currentLevel; + } + + public function getCurrentLevel() { + return $this->currentLevel; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) { + $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; + } + + public function getLastLevelUpTimestampMillis() { + return $this->lastLevelUpTimestampMillis; + } + + public function setNextLevel(Google_Service_Games_PlayerLevel $nextLevel) { + $this->nextLevel = $nextLevel; + } + + public function getNextLevel() { + return $this->nextLevel; + } } -class Google_Service_Games_PlayerLeaderboardScore extends Google_Model -{ - public $kind; - public $leaderboardId; - protected $publicRankType = 'Google_Service_Games_LeaderboardScoreRank'; - protected $publicRankDataType = ''; - public $scoreString; - public $scoreTag; - public $scoreValue; - protected $socialRankType = 'Google_Service_Games_LeaderboardScoreRank'; - protected $socialRankDataType = ''; - public $timeSpan; - public $writeTimestamp; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLeaderboardId($leaderboardId) - { - $this->leaderboardId = $leaderboardId; - } - - public function getLeaderboardId() - { - return $this->leaderboardId; - } - - public function setPublicRank(Google_Service_Games_LeaderboardScoreRank $publicRank) - { - $this->publicRank = $publicRank; - } - - public function getPublicRank() - { - return $this->publicRank; - } - - public function setScoreString($scoreString) - { - $this->scoreString = $scoreString; - } - - public function getScoreString() - { - return $this->scoreString; - } - - public function setScoreTag($scoreTag) - { - $this->scoreTag = $scoreTag; - } - - public function getScoreTag() - { - return $this->scoreTag; - } - - public function setScoreValue($scoreValue) - { - $this->scoreValue = $scoreValue; - } - - public function getScoreValue() - { - return $this->scoreValue; - } - - public function setSocialRank(Google_Service_Games_LeaderboardScoreRank $socialRank) - { - $this->socialRank = $socialRank; - } - - public function getSocialRank() - { - return $this->socialRank; - } - - public function setTimeSpan($timeSpan) - { - $this->timeSpan = $timeSpan; - } - - public function getTimeSpan() - { - return $this->timeSpan; - } - - public function setWriteTimestamp($writeTimestamp) - { - $this->writeTimestamp = $writeTimestamp; - } - - public function getWriteTimestamp() - { - return $this->writeTimestamp; - } +class Google_Service_Games_PlayerLeaderboardScore extends Google_Model { + public $kind; + public $leaderboardId; + protected $publicRankType = 'Google_Service_Games_LeaderboardScoreRank'; + protected $publicRankDataType = ''; + public $scoreString; + public $scoreTag; + public $scoreValue; + protected $socialRankType = 'Google_Service_Games_LeaderboardScoreRank'; + protected $socialRankDataType = ''; + public $timeSpan; + public $writeTimestamp; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLeaderboardId($leaderboardId) { + $this->leaderboardId = $leaderboardId; + } + + public function getLeaderboardId() { + return $this->leaderboardId; + } + + public function setPublicRank(Google_Service_Games_LeaderboardScoreRank $publicRank) { + $this->publicRank = $publicRank; + } + + public function getPublicRank() { + return $this->publicRank; + } + + public function setScoreString($scoreString) { + $this->scoreString = $scoreString; + } + + public function getScoreString() { + return $this->scoreString; + } + + public function setScoreTag($scoreTag) { + $this->scoreTag = $scoreTag; + } + + public function getScoreTag() { + return $this->scoreTag; + } + + public function setScoreValue($scoreValue) { + $this->scoreValue = $scoreValue; + } + + public function getScoreValue() { + return $this->scoreValue; + } + + public function setSocialRank(Google_Service_Games_LeaderboardScoreRank $socialRank) { + $this->socialRank = $socialRank; + } + + public function getSocialRank() { + return $this->socialRank; + } + + public function setTimeSpan($timeSpan) { + $this->timeSpan = $timeSpan; + } + + public function getTimeSpan() { + return $this->timeSpan; + } + + public function setWriteTimestamp($writeTimestamp) { + $this->writeTimestamp = $writeTimestamp; + } + + public function getWriteTimestamp() { + return $this->writeTimestamp; + } } -class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_PlayerLeaderboardScore'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $playerType = 'Google_Service_Games_Player'; - protected $playerDataType = ''; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPlayer(Google_Service_Games_Player $player) - { - $this->player = $player; - } - - public function getPlayer() - { - return $this->player; - } +class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Games_PlayerLeaderboardScore'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $playerType = 'Google_Service_Games_Player'; + protected $playerDataType = ''; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPlayer(Google_Service_Games_Player $player) { + $this->player = $player; + } + + public function getPlayer() { + return $this->player; + } } -class Google_Service_Games_PlayerLevel extends Google_Model -{ - public $kind; - public $level; - public $maxExperiencePoints; - public $minExperiencePoints; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLevel($level) - { - $this->level = $level; - } - - public function getLevel() - { - return $this->level; - } - - public function setMaxExperiencePoints($maxExperiencePoints) - { - $this->maxExperiencePoints = $maxExperiencePoints; - } - - public function getMaxExperiencePoints() - { - return $this->maxExperiencePoints; - } - - public function setMinExperiencePoints($minExperiencePoints) - { - $this->minExperiencePoints = $minExperiencePoints; - } - - public function getMinExperiencePoints() - { - return $this->minExperiencePoints; - } +class Google_Service_Games_PlayerLevel extends Google_Model { + public $kind; + public $level; + public $maxExperiencePoints; + public $minExperiencePoints; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLevel($level) { + $this->level = $level; + } + + public function getLevel() { + return $this->level; + } + + public function setMaxExperiencePoints($maxExperiencePoints) { + $this->maxExperiencePoints = $maxExperiencePoints; + } + + public function getMaxExperiencePoints() { + return $this->maxExperiencePoints; + } + + public function setMinExperiencePoints($minExperiencePoints) { + $this->minExperiencePoints = $minExperiencePoints; + } + + public function getMinExperiencePoints() { + return $this->minExperiencePoints; + } } -class Google_Service_Games_PlayerListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_Player'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_PlayerListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Games_Player'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_PlayerName extends Google_Model -{ - public $familyName; - public $givenName; - - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } - - public function getFamilyName() - { - return $this->familyName; - } - - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } - - public function getGivenName() - { - return $this->givenName; - } +class Google_Service_Games_PlayerName extends Google_Model { + public $familyName; + public $givenName; + + public function setFamilyName($familyName) { + $this->familyName = $familyName; + } + + public function getFamilyName() { + return $this->familyName; + } + + public function setGivenName($givenName) { + $this->givenName = $givenName; + } + + public function getGivenName() { + return $this->givenName; + } } -class Google_Service_Games_PlayerScore extends Google_Model -{ - public $formattedScore; - public $kind; - public $score; - public $scoreTag; - public $timeSpan; - - public function setFormattedScore($formattedScore) - { - $this->formattedScore = $formattedScore; - } - - public function getFormattedScore() - { - return $this->formattedScore; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setScore($score) - { - $this->score = $score; - } - - public function getScore() - { - return $this->score; - } - - public function setScoreTag($scoreTag) - { - $this->scoreTag = $scoreTag; - } - - public function getScoreTag() - { - return $this->scoreTag; - } - - public function setTimeSpan($timeSpan) - { - $this->timeSpan = $timeSpan; - } - - public function getTimeSpan() - { - return $this->timeSpan; - } +class Google_Service_Games_PlayerScore extends Google_Model { + public $formattedScore; + public $kind; + public $score; + public $scoreTag; + public $timeSpan; + + public function setFormattedScore($formattedScore) { + $this->formattedScore = $formattedScore; + } + + public function getFormattedScore() { + return $this->formattedScore; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setScore($score) { + $this->score = $score; + } + + public function getScore() { + return $this->score; + } + + public function setScoreTag($scoreTag) { + $this->scoreTag = $scoreTag; + } + + public function getScoreTag() { + return $this->scoreTag; + } + + public function setTimeSpan($timeSpan) { + $this->timeSpan = $timeSpan; + } + + public function getTimeSpan() { + return $this->timeSpan; + } } -class Google_Service_Games_PlayerScoreListResponse extends Google_Collection -{ - public $kind; - protected $submittedScoresType = 'Google_Service_Games_PlayerScoreResponse'; - protected $submittedScoresDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSubmittedScores($submittedScores) - { - $this->submittedScores = $submittedScores; - } - - public function getSubmittedScores() - { - return $this->submittedScores; - } +class Google_Service_Games_PlayerScoreListResponse extends Google_Collection { + public $kind; + protected $submittedScoresType = 'Google_Service_Games_PlayerScoreResponse'; + protected $submittedScoresDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSubmittedScores($submittedScores) { + $this->submittedScores = $submittedScores; + } + + public function getSubmittedScores() { + return $this->submittedScores; + } } -class Google_Service_Games_PlayerScoreResponse extends Google_Collection -{ - public $beatenScoreTimeSpans; - public $formattedScore; - public $kind; - public $leaderboardId; - public $scoreTag; - protected $unbeatenScoresType = 'Google_Service_Games_PlayerScore'; - protected $unbeatenScoresDataType = 'array'; - - public function setBeatenScoreTimeSpans($beatenScoreTimeSpans) - { - $this->beatenScoreTimeSpans = $beatenScoreTimeSpans; - } - - public function getBeatenScoreTimeSpans() - { - return $this->beatenScoreTimeSpans; - } - - public function setFormattedScore($formattedScore) - { - $this->formattedScore = $formattedScore; - } - - public function getFormattedScore() - { - return $this->formattedScore; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLeaderboardId($leaderboardId) - { - $this->leaderboardId = $leaderboardId; - } - - public function getLeaderboardId() - { - return $this->leaderboardId; - } - - public function setScoreTag($scoreTag) - { - $this->scoreTag = $scoreTag; - } - - public function getScoreTag() - { - return $this->scoreTag; - } - - public function setUnbeatenScores($unbeatenScores) - { - $this->unbeatenScores = $unbeatenScores; - } - - public function getUnbeatenScores() - { - return $this->unbeatenScores; - } +class Google_Service_Games_PlayerScoreResponse extends Google_Collection { + public $beatenScoreTimeSpans; + public $formattedScore; + public $kind; + public $leaderboardId; + public $scoreTag; + protected $unbeatenScoresType = 'Google_Service_Games_PlayerScore'; + protected $unbeatenScoresDataType = 'array'; + + public function setBeatenScoreTimeSpans($beatenScoreTimeSpans) { + $this->beatenScoreTimeSpans = $beatenScoreTimeSpans; + } + + public function getBeatenScoreTimeSpans() { + return $this->beatenScoreTimeSpans; + } + + public function setFormattedScore($formattedScore) { + $this->formattedScore = $formattedScore; + } + + public function getFormattedScore() { + return $this->formattedScore; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLeaderboardId($leaderboardId) { + $this->leaderboardId = $leaderboardId; + } + + public function getLeaderboardId() { + return $this->leaderboardId; + } + + public function setScoreTag($scoreTag) { + $this->scoreTag = $scoreTag; + } + + public function getScoreTag() { + return $this->scoreTag; + } + + public function setUnbeatenScores($unbeatenScores) { + $this->unbeatenScores = $unbeatenScores; + } + + public function getUnbeatenScores() { + return $this->unbeatenScores; + } } -class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection -{ - public $kind; - protected $scoresType = 'Google_Service_Games_ScoreSubmission'; - protected $scoresDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setScores($scores) - { - $this->scores = $scores; - } - - public function getScores() - { - return $this->scores; - } +class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection { + public $kind; + protected $scoresType = 'Google_Service_Games_ScoreSubmission'; + protected $scoresDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setScores($scores) { + $this->scores = $scores; + } + + public function getScores() { + return $this->scores; + } } -class Google_Service_Games_PushToken extends Google_Model -{ - public $clientRevision; - protected $idType = 'Google_Service_Games_PushTokenId'; - protected $idDataType = ''; - public $kind; - public $language; - - public function setClientRevision($clientRevision) - { - $this->clientRevision = $clientRevision; - } - - public function getClientRevision() - { - return $this->clientRevision; - } - - public function setId(Google_Service_Games_PushTokenId $id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLanguage($language) - { - $this->language = $language; - } - - public function getLanguage() - { - return $this->language; - } +class Google_Service_Games_PushToken extends Google_Model { + public $clientRevision; + protected $idType = 'Google_Service_Games_PushTokenId'; + protected $idDataType = ''; + public $kind; + public $language; + + public function setClientRevision($clientRevision) { + $this->clientRevision = $clientRevision; + } + + public function getClientRevision() { + return $this->clientRevision; + } + + public function setId(Google_Service_Games_PushTokenId $id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLanguage($language) { + $this->language = $language; + } + + public function getLanguage() { + return $this->language; + } } -class Google_Service_Games_PushTokenId extends Google_Model -{ - protected $iosType = 'Google_Service_Games_PushTokenIdIos'; - protected $iosDataType = ''; - public $kind; - - public function setIos(Google_Service_Games_PushTokenIdIos $ios) - { - $this->ios = $ios; - } - - public function getIos() - { - return $this->ios; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Games_PushTokenId extends Google_Model { + protected $iosType = 'Google_Service_Games_PushTokenIdIos'; + protected $iosDataType = ''; + public $kind; + + public function setIos(Google_Service_Games_PushTokenIdIos $ios) { + $this->ios = $ios; + } + + public function getIos() { + return $this->ios; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Games_PushTokenIdIos extends Google_Model -{ - public $apnsDeviceToken; - public $apnsEnvironment; - - public function setApnsDeviceToken($apnsDeviceToken) - { - $this->apnsDeviceToken = $apnsDeviceToken; - } - - public function getApnsDeviceToken() - { - return $this->apnsDeviceToken; - } - - public function setApnsEnvironment($apnsEnvironment) - { - $this->apnsEnvironment = $apnsEnvironment; - } - - public function getApnsEnvironment() - { - return $this->apnsEnvironment; - } +class Google_Service_Games_PushTokenIdIos extends Google_Model { + public $apnsDeviceToken; + public $apnsEnvironment; + + public function setApnsDeviceToken($apnsDeviceToken) { + $this->apnsDeviceToken = $apnsDeviceToken; + } + + public function getApnsDeviceToken() { + return $this->apnsDeviceToken; + } + + public function setApnsEnvironment($apnsEnvironment) { + $this->apnsEnvironment = $apnsEnvironment; + } + + public function getApnsEnvironment() { + return $this->apnsEnvironment; + } } -class Google_Service_Games_Quest extends Google_Collection -{ - public $acceptedTimestampMillis; - public $applicationId; - public $bannerUrl; - public $description; - public $endTimestampMillis; - public $iconUrl; - public $id; - public $isDefaultBannerUrl; - public $isDefaultIconUrl; - public $kind; - public $lastUpdatedTimestampMillis; - protected $milestonesType = 'Google_Service_Games_QuestMilestone'; - protected $milestonesDataType = 'array'; - public $name; - public $notifyTimestampMillis; - public $startTimestampMillis; - public $state; - - public function setAcceptedTimestampMillis($acceptedTimestampMillis) - { - $this->acceptedTimestampMillis = $acceptedTimestampMillis; - } - - public function getAcceptedTimestampMillis() - { - return $this->acceptedTimestampMillis; - } - - public function setApplicationId($applicationId) - { - $this->applicationId = $applicationId; - } - - public function getApplicationId() - { - return $this->applicationId; - } - - public function setBannerUrl($bannerUrl) - { - $this->bannerUrl = $bannerUrl; - } - - public function getBannerUrl() - { - return $this->bannerUrl; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setEndTimestampMillis($endTimestampMillis) - { - $this->endTimestampMillis = $endTimestampMillis; - } - - public function getEndTimestampMillis() - { - return $this->endTimestampMillis; - } - - public function setIconUrl($iconUrl) - { - $this->iconUrl = $iconUrl; - } - - public function getIconUrl() - { - return $this->iconUrl; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setIsDefaultBannerUrl($isDefaultBannerUrl) - { - $this->isDefaultBannerUrl = $isDefaultBannerUrl; - } - - public function getIsDefaultBannerUrl() - { - return $this->isDefaultBannerUrl; - } - - public function setIsDefaultIconUrl($isDefaultIconUrl) - { - $this->isDefaultIconUrl = $isDefaultIconUrl; - } - - public function getIsDefaultIconUrl() - { - return $this->isDefaultIconUrl; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLastUpdatedTimestampMillis($lastUpdatedTimestampMillis) - { - $this->lastUpdatedTimestampMillis = $lastUpdatedTimestampMillis; - } - - public function getLastUpdatedTimestampMillis() - { - return $this->lastUpdatedTimestampMillis; - } - - public function setMilestones($milestones) - { - $this->milestones = $milestones; - } - - public function getMilestones() - { - return $this->milestones; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setNotifyTimestampMillis($notifyTimestampMillis) - { - $this->notifyTimestampMillis = $notifyTimestampMillis; - } - - public function getNotifyTimestampMillis() - { - return $this->notifyTimestampMillis; - } - - public function setStartTimestampMillis($startTimestampMillis) - { - $this->startTimestampMillis = $startTimestampMillis; - } - - public function getStartTimestampMillis() - { - return $this->startTimestampMillis; - } - - public function setState($state) - { - $this->state = $state; - } - - public function getState() - { - return $this->state; - } +class Google_Service_Games_Quest extends Google_Collection { + public $acceptedTimestampMillis; + public $applicationId; + public $bannerUrl; + public $description; + public $endTimestampMillis; + public $iconUrl; + public $id; + public $isDefaultBannerUrl; + public $isDefaultIconUrl; + public $kind; + public $lastUpdatedTimestampMillis; + protected $milestonesType = 'Google_Service_Games_QuestMilestone'; + protected $milestonesDataType = 'array'; + public $name; + public $notifyTimestampMillis; + public $startTimestampMillis; + public $state; + + public function setAcceptedTimestampMillis($acceptedTimestampMillis) { + $this->acceptedTimestampMillis = $acceptedTimestampMillis; + } + + public function getAcceptedTimestampMillis() { + return $this->acceptedTimestampMillis; + } + + public function setApplicationId($applicationId) { + $this->applicationId = $applicationId; + } + + public function getApplicationId() { + return $this->applicationId; + } + + public function setBannerUrl($bannerUrl) { + $this->bannerUrl = $bannerUrl; + } + + public function getBannerUrl() { + return $this->bannerUrl; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setEndTimestampMillis($endTimestampMillis) { + $this->endTimestampMillis = $endTimestampMillis; + } + + public function getEndTimestampMillis() { + return $this->endTimestampMillis; + } + + public function setIconUrl($iconUrl) { + $this->iconUrl = $iconUrl; + } + + public function getIconUrl() { + return $this->iconUrl; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setIsDefaultBannerUrl($isDefaultBannerUrl) { + $this->isDefaultBannerUrl = $isDefaultBannerUrl; + } + + public function getIsDefaultBannerUrl() { + return $this->isDefaultBannerUrl; + } + + public function setIsDefaultIconUrl($isDefaultIconUrl) { + $this->isDefaultIconUrl = $isDefaultIconUrl; + } + + public function getIsDefaultIconUrl() { + return $this->isDefaultIconUrl; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLastUpdatedTimestampMillis($lastUpdatedTimestampMillis) { + $this->lastUpdatedTimestampMillis = $lastUpdatedTimestampMillis; + } + + public function getLastUpdatedTimestampMillis() { + return $this->lastUpdatedTimestampMillis; + } + + public function setMilestones($milestones) { + $this->milestones = $milestones; + } + + public function getMilestones() { + return $this->milestones; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setNotifyTimestampMillis($notifyTimestampMillis) { + $this->notifyTimestampMillis = $notifyTimestampMillis; + } + + public function getNotifyTimestampMillis() { + return $this->notifyTimestampMillis; + } + + public function setStartTimestampMillis($startTimestampMillis) { + $this->startTimestampMillis = $startTimestampMillis; + } + + public function getStartTimestampMillis() { + return $this->startTimestampMillis; + } + + public function setState($state) { + $this->state = $state; + } + + public function getState() { + return $this->state; + } } -class Google_Service_Games_QuestContribution extends Google_Model -{ - public $formattedValue; - public $kind; - public $value; - - public function setFormattedValue($formattedValue) - { - $this->formattedValue = $formattedValue; - } - - public function getFormattedValue() - { - return $this->formattedValue; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } +class Google_Service_Games_QuestContribution extends Google_Model { + public $formattedValue; + public $kind; + public $value; + + public function setFormattedValue($formattedValue) { + $this->formattedValue = $formattedValue; + } + + public function getFormattedValue() { + return $this->formattedValue; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } } -class Google_Service_Games_QuestCriterion extends Google_Model -{ - protected $completionContributionType = 'Google_Service_Games_QuestContribution'; - protected $completionContributionDataType = ''; - protected $currentContributionType = 'Google_Service_Games_QuestContribution'; - protected $currentContributionDataType = ''; - public $eventId; - protected $initialPlayerProgressType = 'Google_Service_Games_QuestContribution'; - protected $initialPlayerProgressDataType = ''; - public $kind; - - public function setCompletionContribution(Google_Service_Games_QuestContribution $completionContribution) - { - $this->completionContribution = $completionContribution; - } - - public function getCompletionContribution() - { - return $this->completionContribution; - } - - public function setCurrentContribution(Google_Service_Games_QuestContribution $currentContribution) - { - $this->currentContribution = $currentContribution; - } - - public function getCurrentContribution() - { - return $this->currentContribution; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setInitialPlayerProgress(Google_Service_Games_QuestContribution $initialPlayerProgress) - { - $this->initialPlayerProgress = $initialPlayerProgress; - } - - public function getInitialPlayerProgress() - { - return $this->initialPlayerProgress; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Games_QuestCriterion extends Google_Model { + protected $completionContributionType = 'Google_Service_Games_QuestContribution'; + protected $completionContributionDataType = ''; + protected $currentContributionType = 'Google_Service_Games_QuestContribution'; + protected $currentContributionDataType = ''; + public $eventId; + protected $initialPlayerProgressType = 'Google_Service_Games_QuestContribution'; + protected $initialPlayerProgressDataType = ''; + public $kind; + + public function setCompletionContribution(Google_Service_Games_QuestContribution $completionContribution) { + $this->completionContribution = $completionContribution; + } + + public function getCompletionContribution() { + return $this->completionContribution; + } + + public function setCurrentContribution(Google_Service_Games_QuestContribution $currentContribution) { + $this->currentContribution = $currentContribution; + } + + public function getCurrentContribution() { + return $this->currentContribution; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setInitialPlayerProgress(Google_Service_Games_QuestContribution $initialPlayerProgress) { + $this->initialPlayerProgress = $initialPlayerProgress; + } + + public function getInitialPlayerProgress() { + return $this->initialPlayerProgress; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Games_QuestListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_Quest'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_QuestListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Games_Quest'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_QuestMilestone extends Google_Collection -{ - public $completionRewardData; - protected $criteriaType = 'Google_Service_Games_QuestCriterion'; - protected $criteriaDataType = 'array'; - public $id; - public $kind; - public $state; - - public function setCompletionRewardData($completionRewardData) - { - $this->completionRewardData = $completionRewardData; - } - - public function getCompletionRewardData() - { - return $this->completionRewardData; - } - - public function setCriteria($criteria) - { - $this->criteria = $criteria; - } - - public function getCriteria() - { - return $this->criteria; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setState($state) - { - $this->state = $state; - } - - public function getState() - { - return $this->state; - } +class Google_Service_Games_QuestMilestone extends Google_Collection { + public $completionRewardData; + protected $criteriaType = 'Google_Service_Games_QuestCriterion'; + protected $criteriaDataType = 'array'; + public $id; + public $kind; + public $state; + + public function setCompletionRewardData($completionRewardData) { + $this->completionRewardData = $completionRewardData; + } + + public function getCompletionRewardData() { + return $this->completionRewardData; + } + + public function setCriteria($criteria) { + $this->criteria = $criteria; + } + + public function getCriteria() { + return $this->criteria; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setState($state) { + $this->state = $state; + } + + public function getState() { + return $this->state; + } } -class Google_Service_Games_RevisionCheckResponse extends Google_Model -{ - public $apiVersion; - public $kind; - public $revisionStatus; - - public function setApiVersion($apiVersion) - { - $this->apiVersion = $apiVersion; - } - - public function getApiVersion() - { - return $this->apiVersion; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setRevisionStatus($revisionStatus) - { - $this->revisionStatus = $revisionStatus; - } - - public function getRevisionStatus() - { - return $this->revisionStatus; - } +class Google_Service_Games_RevisionCheckResponse extends Google_Model { + public $apiVersion; + public $kind; + public $revisionStatus; + + public function setApiVersion($apiVersion) { + $this->apiVersion = $apiVersion; + } + + public function getApiVersion() { + return $this->apiVersion; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setRevisionStatus($revisionStatus) { + $this->revisionStatus = $revisionStatus; + } + + public function getRevisionStatus() { + return $this->revisionStatus; + } } -class Google_Service_Games_Room extends Google_Collection -{ - public $applicationId; - protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria'; - protected $autoMatchingCriteriaDataType = ''; - protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus'; - protected $autoMatchingStatusDataType = ''; - protected $creationDetailsType = 'Google_Service_Games_RoomModification'; - protected $creationDetailsDataType = ''; - public $description; - public $inviterId; - public $kind; - protected $lastUpdateDetailsType = 'Google_Service_Games_RoomModification'; - protected $lastUpdateDetailsDataType = ''; - protected $participantsType = 'Google_Service_Games_RoomParticipant'; - protected $participantsDataType = 'array'; - public $roomId; - public $roomStatusVersion; - public $status; - public $variant; - - public function setApplicationId($applicationId) - { - $this->applicationId = $applicationId; - } - - public function getApplicationId() - { - return $this->applicationId; - } - - public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria) - { - $this->autoMatchingCriteria = $autoMatchingCriteria; - } - - public function getAutoMatchingCriteria() - { - return $this->autoMatchingCriteria; - } - - public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus) - { - $this->autoMatchingStatus = $autoMatchingStatus; - } - - public function getAutoMatchingStatus() - { - return $this->autoMatchingStatus; - } - - public function setCreationDetails(Google_Service_Games_RoomModification $creationDetails) - { - $this->creationDetails = $creationDetails; - } - - public function getCreationDetails() - { - return $this->creationDetails; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setInviterId($inviterId) - { - $this->inviterId = $inviterId; - } - - public function getInviterId() - { - return $this->inviterId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLastUpdateDetails(Google_Service_Games_RoomModification $lastUpdateDetails) - { - $this->lastUpdateDetails = $lastUpdateDetails; - } - - public function getLastUpdateDetails() - { - return $this->lastUpdateDetails; - } - - public function setParticipants($participants) - { - $this->participants = $participants; - } - - public function getParticipants() - { - return $this->participants; - } - - public function setRoomId($roomId) - { - $this->roomId = $roomId; - } - - public function getRoomId() - { - return $this->roomId; - } - - public function setRoomStatusVersion($roomStatusVersion) - { - $this->roomStatusVersion = $roomStatusVersion; - } - - public function getRoomStatusVersion() - { - return $this->roomStatusVersion; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setVariant($variant) - { - $this->variant = $variant; - } - - public function getVariant() - { - return $this->variant; - } +class Google_Service_Games_Room extends Google_Collection { + public $applicationId; + protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria'; + protected $autoMatchingCriteriaDataType = ''; + protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus'; + protected $autoMatchingStatusDataType = ''; + protected $creationDetailsType = 'Google_Service_Games_RoomModification'; + protected $creationDetailsDataType = ''; + public $description; + public $inviterId; + public $kind; + protected $lastUpdateDetailsType = 'Google_Service_Games_RoomModification'; + protected $lastUpdateDetailsDataType = ''; + protected $participantsType = 'Google_Service_Games_RoomParticipant'; + protected $participantsDataType = 'array'; + public $roomId; + public $roomStatusVersion; + public $status; + public $variant; + + public function setApplicationId($applicationId) { + $this->applicationId = $applicationId; + } + + public function getApplicationId() { + return $this->applicationId; + } + + public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria) { + $this->autoMatchingCriteria = $autoMatchingCriteria; + } + + public function getAutoMatchingCriteria() { + return $this->autoMatchingCriteria; + } + + public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus) { + $this->autoMatchingStatus = $autoMatchingStatus; + } + + public function getAutoMatchingStatus() { + return $this->autoMatchingStatus; + } + + public function setCreationDetails(Google_Service_Games_RoomModification $creationDetails) { + $this->creationDetails = $creationDetails; + } + + public function getCreationDetails() { + return $this->creationDetails; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setInviterId($inviterId) { + $this->inviterId = $inviterId; + } + + public function getInviterId() { + return $this->inviterId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLastUpdateDetails(Google_Service_Games_RoomModification $lastUpdateDetails) { + $this->lastUpdateDetails = $lastUpdateDetails; + } + + public function getLastUpdateDetails() { + return $this->lastUpdateDetails; + } + + public function setParticipants($participants) { + $this->participants = $participants; + } + + public function getParticipants() { + return $this->participants; + } + + public function setRoomId($roomId) { + $this->roomId = $roomId; + } + + public function getRoomId() { + return $this->roomId; + } + + public function setRoomStatusVersion($roomStatusVersion) { + $this->roomStatusVersion = $roomStatusVersion; + } + + public function getRoomStatusVersion() { + return $this->roomStatusVersion; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setVariant($variant) { + $this->variant = $variant; + } + + public function getVariant() { + return $this->variant; + } } -class Google_Service_Games_RoomAutoMatchStatus extends Google_Model -{ - public $kind; - public $waitEstimateSeconds; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setWaitEstimateSeconds($waitEstimateSeconds) - { - $this->waitEstimateSeconds = $waitEstimateSeconds; - } - - public function getWaitEstimateSeconds() - { - return $this->waitEstimateSeconds; - } +class Google_Service_Games_RoomAutoMatchStatus extends Google_Model { + public $kind; + public $waitEstimateSeconds; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setWaitEstimateSeconds($waitEstimateSeconds) { + $this->waitEstimateSeconds = $waitEstimateSeconds; + } + + public function getWaitEstimateSeconds() { + return $this->waitEstimateSeconds; + } } -class Google_Service_Games_RoomAutoMatchingCriteria extends Google_Model -{ - public $exclusiveBitmask; - public $kind; - public $maxAutoMatchingPlayers; - public $minAutoMatchingPlayers; - - public function setExclusiveBitmask($exclusiveBitmask) - { - $this->exclusiveBitmask = $exclusiveBitmask; - } - - public function getExclusiveBitmask() - { - return $this->exclusiveBitmask; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers) - { - $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers; - } - - public function getMaxAutoMatchingPlayers() - { - return $this->maxAutoMatchingPlayers; - } - - public function setMinAutoMatchingPlayers($minAutoMatchingPlayers) - { - $this->minAutoMatchingPlayers = $minAutoMatchingPlayers; - } - - public function getMinAutoMatchingPlayers() - { - return $this->minAutoMatchingPlayers; - } +class Google_Service_Games_RoomAutoMatchingCriteria extends Google_Model { + public $exclusiveBitmask; + public $kind; + public $maxAutoMatchingPlayers; + public $minAutoMatchingPlayers; + + public function setExclusiveBitmask($exclusiveBitmask) { + $this->exclusiveBitmask = $exclusiveBitmask; + } + + public function getExclusiveBitmask() { + return $this->exclusiveBitmask; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers) { + $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers; + } + + public function getMaxAutoMatchingPlayers() { + return $this->maxAutoMatchingPlayers; + } + + public function setMinAutoMatchingPlayers($minAutoMatchingPlayers) { + $this->minAutoMatchingPlayers = $minAutoMatchingPlayers; + } + + public function getMinAutoMatchingPlayers() { + return $this->minAutoMatchingPlayers; + } } -class Google_Service_Games_RoomClientAddress extends Google_Model -{ - public $kind; - public $xmppAddress; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setXmppAddress($xmppAddress) - { - $this->xmppAddress = $xmppAddress; - } - - public function getXmppAddress() - { - return $this->xmppAddress; - } +class Google_Service_Games_RoomClientAddress extends Google_Model { + public $kind; + public $xmppAddress; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setXmppAddress($xmppAddress) { + $this->xmppAddress = $xmppAddress; + } + + public function getXmppAddress() { + return $this->xmppAddress; + } } -class Google_Service_Games_RoomCreateRequest extends Google_Collection -{ - protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria'; - protected $autoMatchingCriteriaDataType = ''; - public $capabilities; - protected $clientAddressType = 'Google_Service_Games_RoomClientAddress'; - protected $clientAddressDataType = ''; - public $invitedPlayerIds; - public $kind; - protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics'; - protected $networkDiagnosticsDataType = ''; - public $requestId; - public $variant; - - public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria) - { - $this->autoMatchingCriteria = $autoMatchingCriteria; - } - - public function getAutoMatchingCriteria() - { - return $this->autoMatchingCriteria; - } - - public function setCapabilities($capabilities) - { - $this->capabilities = $capabilities; - } - - public function getCapabilities() - { - return $this->capabilities; - } - - public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) - { - $this->clientAddress = $clientAddress; - } - - public function getClientAddress() - { - return $this->clientAddress; - } - - public function setInvitedPlayerIds($invitedPlayerIds) - { - $this->invitedPlayerIds = $invitedPlayerIds; - } - - public function getInvitedPlayerIds() - { - return $this->invitedPlayerIds; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics) - { - $this->networkDiagnostics = $networkDiagnostics; - } - - public function getNetworkDiagnostics() - { - return $this->networkDiagnostics; - } - - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - - public function getRequestId() - { - return $this->requestId; - } - - public function setVariant($variant) - { - $this->variant = $variant; - } - - public function getVariant() - { - return $this->variant; - } +class Google_Service_Games_RoomCreateRequest extends Google_Collection { + protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria'; + protected $autoMatchingCriteriaDataType = ''; + public $capabilities; + protected $clientAddressType = 'Google_Service_Games_RoomClientAddress'; + protected $clientAddressDataType = ''; + public $invitedPlayerIds; + public $kind; + protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics'; + protected $networkDiagnosticsDataType = ''; + public $requestId; + public $variant; + + public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria) { + $this->autoMatchingCriteria = $autoMatchingCriteria; + } + + public function getAutoMatchingCriteria() { + return $this->autoMatchingCriteria; + } + + public function setCapabilities($capabilities) { + $this->capabilities = $capabilities; + } + + public function getCapabilities() { + return $this->capabilities; + } + + public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) { + $this->clientAddress = $clientAddress; + } + + public function getClientAddress() { + return $this->clientAddress; + } + + public function setInvitedPlayerIds($invitedPlayerIds) { + $this->invitedPlayerIds = $invitedPlayerIds; + } + + public function getInvitedPlayerIds() { + return $this->invitedPlayerIds; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics) { + $this->networkDiagnostics = $networkDiagnostics; + } + + public function getNetworkDiagnostics() { + return $this->networkDiagnostics; + } + + public function setRequestId($requestId) { + $this->requestId = $requestId; + } + + public function getRequestId() { + return $this->requestId; + } + + public function setVariant($variant) { + $this->variant = $variant; + } + + public function getVariant() { + return $this->variant; + } } -class Google_Service_Games_RoomJoinRequest extends Google_Collection -{ - public $capabilities; - protected $clientAddressType = 'Google_Service_Games_RoomClientAddress'; - protected $clientAddressDataType = ''; - public $kind; - protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics'; - protected $networkDiagnosticsDataType = ''; - - public function setCapabilities($capabilities) - { - $this->capabilities = $capabilities; - } - - public function getCapabilities() - { - return $this->capabilities; - } - - public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) - { - $this->clientAddress = $clientAddress; - } - - public function getClientAddress() - { - return $this->clientAddress; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics) - { - $this->networkDiagnostics = $networkDiagnostics; - } - - public function getNetworkDiagnostics() - { - return $this->networkDiagnostics; - } +class Google_Service_Games_RoomJoinRequest extends Google_Collection { + public $capabilities; + protected $clientAddressType = 'Google_Service_Games_RoomClientAddress'; + protected $clientAddressDataType = ''; + public $kind; + protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics'; + protected $networkDiagnosticsDataType = ''; + + public function setCapabilities($capabilities) { + $this->capabilities = $capabilities; + } + + public function getCapabilities() { + return $this->capabilities; + } + + public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) { + $this->clientAddress = $clientAddress; + } + + public function getClientAddress() { + return $this->clientAddress; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics) { + $this->networkDiagnostics = $networkDiagnostics; + } + + public function getNetworkDiagnostics() { + return $this->networkDiagnostics; + } } -class Google_Service_Games_RoomLeaveDiagnostics extends Google_Collection -{ - public $androidNetworkSubtype; - public $androidNetworkType; - public $iosNetworkType; - public $kind; - public $networkOperatorCode; - public $networkOperatorName; - protected $peerSessionType = 'Google_Service_Games_PeerSessionDiagnostics'; - protected $peerSessionDataType = 'array'; - public $socketsUsed; - - public function setAndroidNetworkSubtype($androidNetworkSubtype) - { - $this->androidNetworkSubtype = $androidNetworkSubtype; - } - - public function getAndroidNetworkSubtype() - { - return $this->androidNetworkSubtype; - } - - public function setAndroidNetworkType($androidNetworkType) - { - $this->androidNetworkType = $androidNetworkType; - } - - public function getAndroidNetworkType() - { - return $this->androidNetworkType; - } - - public function setIosNetworkType($iosNetworkType) - { - $this->iosNetworkType = $iosNetworkType; - } - - public function getIosNetworkType() - { - return $this->iosNetworkType; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNetworkOperatorCode($networkOperatorCode) - { - $this->networkOperatorCode = $networkOperatorCode; - } - - public function getNetworkOperatorCode() - { - return $this->networkOperatorCode; - } - - public function setNetworkOperatorName($networkOperatorName) - { - $this->networkOperatorName = $networkOperatorName; - } - - public function getNetworkOperatorName() - { - return $this->networkOperatorName; - } - - public function setPeerSession($peerSession) - { - $this->peerSession = $peerSession; - } - - public function getPeerSession() - { - return $this->peerSession; - } - - public function setSocketsUsed($socketsUsed) - { - $this->socketsUsed = $socketsUsed; - } - - public function getSocketsUsed() - { - return $this->socketsUsed; - } +class Google_Service_Games_RoomLeaveDiagnostics extends Google_Collection { + public $androidNetworkSubtype; + public $androidNetworkType; + public $iosNetworkType; + public $kind; + public $networkOperatorCode; + public $networkOperatorName; + protected $peerSessionType = 'Google_Service_Games_PeerSessionDiagnostics'; + protected $peerSessionDataType = 'array'; + public $socketsUsed; + + public function setAndroidNetworkSubtype($androidNetworkSubtype) { + $this->androidNetworkSubtype = $androidNetworkSubtype; + } + + public function getAndroidNetworkSubtype() { + return $this->androidNetworkSubtype; + } + + public function setAndroidNetworkType($androidNetworkType) { + $this->androidNetworkType = $androidNetworkType; + } + + public function getAndroidNetworkType() { + return $this->androidNetworkType; + } + + public function setIosNetworkType($iosNetworkType) { + $this->iosNetworkType = $iosNetworkType; + } + + public function getIosNetworkType() { + return $this->iosNetworkType; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNetworkOperatorCode($networkOperatorCode) { + $this->networkOperatorCode = $networkOperatorCode; + } + + public function getNetworkOperatorCode() { + return $this->networkOperatorCode; + } + + public function setNetworkOperatorName($networkOperatorName) { + $this->networkOperatorName = $networkOperatorName; + } + + public function getNetworkOperatorName() { + return $this->networkOperatorName; + } + + public function setPeerSession($peerSession) { + $this->peerSession = $peerSession; + } + + public function getPeerSession() { + return $this->peerSession; + } + + public function setSocketsUsed($socketsUsed) { + $this->socketsUsed = $socketsUsed; + } + + public function getSocketsUsed() { + return $this->socketsUsed; + } } -class Google_Service_Games_RoomLeaveRequest extends Google_Model -{ - public $kind; - protected $leaveDiagnosticsType = 'Google_Service_Games_RoomLeaveDiagnostics'; - protected $leaveDiagnosticsDataType = ''; - public $reason; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLeaveDiagnostics(Google_Service_Games_RoomLeaveDiagnostics $leaveDiagnostics) - { - $this->leaveDiagnostics = $leaveDiagnostics; - } - - public function getLeaveDiagnostics() - { - return $this->leaveDiagnostics; - } - - public function setReason($reason) - { - $this->reason = $reason; - } - - public function getReason() - { - return $this->reason; - } +class Google_Service_Games_RoomLeaveRequest extends Google_Model { + public $kind; + protected $leaveDiagnosticsType = 'Google_Service_Games_RoomLeaveDiagnostics'; + protected $leaveDiagnosticsDataType = ''; + public $reason; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLeaveDiagnostics(Google_Service_Games_RoomLeaveDiagnostics $leaveDiagnostics) { + $this->leaveDiagnostics = $leaveDiagnostics; + } + + public function getLeaveDiagnostics() { + return $this->leaveDiagnostics; + } + + public function setReason($reason) { + $this->reason = $reason; + } + + public function getReason() { + return $this->reason; + } } -class Google_Service_Games_RoomList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_Room'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_RoomList extends Google_Collection { + protected $itemsType = 'Google_Service_Games_Room'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_RoomModification extends Google_Model -{ - public $kind; - public $modifiedTimestampMillis; - public $participantId; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setModifiedTimestampMillis($modifiedTimestampMillis) - { - $this->modifiedTimestampMillis = $modifiedTimestampMillis; - } - - public function getModifiedTimestampMillis() - { - return $this->modifiedTimestampMillis; - } - - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - - public function getParticipantId() - { - return $this->participantId; - } +class Google_Service_Games_RoomModification extends Google_Model { + public $kind; + public $modifiedTimestampMillis; + public $participantId; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setModifiedTimestampMillis($modifiedTimestampMillis) { + $this->modifiedTimestampMillis = $modifiedTimestampMillis; + } + + public function getModifiedTimestampMillis() { + return $this->modifiedTimestampMillis; + } + + public function setParticipantId($participantId) { + $this->participantId = $participantId; + } + + public function getParticipantId() { + return $this->participantId; + } } -class Google_Service_Games_RoomP2PStatus extends Google_Model -{ - public $connectionSetupLatencyMillis; - public $error; - public $errorReason; - public $kind; - public $participantId; - public $status; - public $unreliableRoundtripLatencyMillis; - - public function setConnectionSetupLatencyMillis($connectionSetupLatencyMillis) - { - $this->connectionSetupLatencyMillis = $connectionSetupLatencyMillis; - } - - public function getConnectionSetupLatencyMillis() - { - return $this->connectionSetupLatencyMillis; - } - - public function setError($error) - { - $this->error = $error; - } - - public function getError() - { - return $this->error; - } - - public function setErrorReason($errorReason) - { - $this->errorReason = $errorReason; - } - - public function getErrorReason() - { - return $this->errorReason; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - - public function getParticipantId() - { - return $this->participantId; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setUnreliableRoundtripLatencyMillis($unreliableRoundtripLatencyMillis) - { - $this->unreliableRoundtripLatencyMillis = $unreliableRoundtripLatencyMillis; - } - - public function getUnreliableRoundtripLatencyMillis() - { - return $this->unreliableRoundtripLatencyMillis; - } +class Google_Service_Games_RoomP2PStatus extends Google_Model { + public $connectionSetupLatencyMillis; + public $error; + public $errorReason; + public $kind; + public $participantId; + public $status; + public $unreliableRoundtripLatencyMillis; + + public function setConnectionSetupLatencyMillis($connectionSetupLatencyMillis) { + $this->connectionSetupLatencyMillis = $connectionSetupLatencyMillis; + } + + public function getConnectionSetupLatencyMillis() { + return $this->connectionSetupLatencyMillis; + } + + public function setError($error) { + $this->error = $error; + } + + public function getError() { + return $this->error; + } + + public function setErrorReason($errorReason) { + $this->errorReason = $errorReason; + } + + public function getErrorReason() { + return $this->errorReason; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setParticipantId($participantId) { + $this->participantId = $participantId; + } + + public function getParticipantId() { + return $this->participantId; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setUnreliableRoundtripLatencyMillis($unreliableRoundtripLatencyMillis) { + $this->unreliableRoundtripLatencyMillis = $unreliableRoundtripLatencyMillis; + } + + public function getUnreliableRoundtripLatencyMillis() { + return $this->unreliableRoundtripLatencyMillis; + } } -class Google_Service_Games_RoomP2PStatuses extends Google_Collection -{ - public $kind; - protected $updatesType = 'Google_Service_Games_RoomP2PStatus'; - protected $updatesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setUpdates($updates) - { - $this->updates = $updates; - } - - public function getUpdates() - { - return $this->updates; - } +class Google_Service_Games_RoomP2PStatuses extends Google_Collection { + public $kind; + protected $updatesType = 'Google_Service_Games_RoomP2PStatus'; + protected $updatesDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setUpdates($updates) { + $this->updates = $updates; + } + + public function getUpdates() { + return $this->updates; + } } -class Google_Service_Games_RoomParticipant extends Google_Collection -{ - public $autoMatched; - protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer'; - protected $autoMatchedPlayerDataType = ''; - public $capabilities; - protected $clientAddressType = 'Google_Service_Games_RoomClientAddress'; - protected $clientAddressDataType = ''; - public $connected; - public $id; - public $kind; - public $leaveReason; - protected $playerType = 'Google_Service_Games_Player'; - protected $playerDataType = ''; - public $status; - - public function setAutoMatched($autoMatched) - { - $this->autoMatched = $autoMatched; - } - - public function getAutoMatched() - { - return $this->autoMatched; - } - - public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer) - { - $this->autoMatchedPlayer = $autoMatchedPlayer; - } - - public function getAutoMatchedPlayer() - { - return $this->autoMatchedPlayer; - } - - public function setCapabilities($capabilities) - { - $this->capabilities = $capabilities; - } - - public function getCapabilities() - { - return $this->capabilities; - } - - public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) - { - $this->clientAddress = $clientAddress; - } - - public function getClientAddress() - { - return $this->clientAddress; - } - - public function setConnected($connected) - { - $this->connected = $connected; - } - - public function getConnected() - { - return $this->connected; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLeaveReason($leaveReason) - { - $this->leaveReason = $leaveReason; - } - - public function getLeaveReason() - { - return $this->leaveReason; - } - - public function setPlayer(Google_Service_Games_Player $player) - { - $this->player = $player; - } - - public function getPlayer() - { - return $this->player; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } +class Google_Service_Games_RoomParticipant extends Google_Collection { + public $autoMatched; + protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer'; + protected $autoMatchedPlayerDataType = ''; + public $capabilities; + protected $clientAddressType = 'Google_Service_Games_RoomClientAddress'; + protected $clientAddressDataType = ''; + public $connected; + public $id; + public $kind; + public $leaveReason; + protected $playerType = 'Google_Service_Games_Player'; + protected $playerDataType = ''; + public $status; + + public function setAutoMatched($autoMatched) { + $this->autoMatched = $autoMatched; + } + + public function getAutoMatched() { + return $this->autoMatched; + } + + public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer) { + $this->autoMatchedPlayer = $autoMatchedPlayer; + } + + public function getAutoMatchedPlayer() { + return $this->autoMatchedPlayer; + } + + public function setCapabilities($capabilities) { + $this->capabilities = $capabilities; + } + + public function getCapabilities() { + return $this->capabilities; + } + + public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress) { + $this->clientAddress = $clientAddress; + } + + public function getClientAddress() { + return $this->clientAddress; + } + + public function setConnected($connected) { + $this->connected = $connected; + } + + public function getConnected() { + return $this->connected; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLeaveReason($leaveReason) { + $this->leaveReason = $leaveReason; + } + + public function getLeaveReason() { + return $this->leaveReason; + } + + public function setPlayer(Google_Service_Games_Player $player) { + $this->player = $player; + } + + public function getPlayer() { + return $this->player; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } } -class Google_Service_Games_RoomStatus extends Google_Collection -{ - protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus'; - protected $autoMatchingStatusDataType = ''; - public $kind; - protected $participantsType = 'Google_Service_Games_RoomParticipant'; - protected $participantsDataType = 'array'; - public $roomId; - public $status; - public $statusVersion; - - public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus) - { - $this->autoMatchingStatus = $autoMatchingStatus; - } - - public function getAutoMatchingStatus() - { - return $this->autoMatchingStatus; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setParticipants($participants) - { - $this->participants = $participants; - } - - public function getParticipants() - { - return $this->participants; - } - - public function setRoomId($roomId) - { - $this->roomId = $roomId; - } - - public function getRoomId() - { - return $this->roomId; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setStatusVersion($statusVersion) - { - $this->statusVersion = $statusVersion; - } - - public function getStatusVersion() - { - return $this->statusVersion; - } +class Google_Service_Games_RoomStatus extends Google_Collection { + protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus'; + protected $autoMatchingStatusDataType = ''; + public $kind; + protected $participantsType = 'Google_Service_Games_RoomParticipant'; + protected $participantsDataType = 'array'; + public $roomId; + public $status; + public $statusVersion; + + public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus) { + $this->autoMatchingStatus = $autoMatchingStatus; + } + + public function getAutoMatchingStatus() { + return $this->autoMatchingStatus; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setParticipants($participants) { + $this->participants = $participants; + } + + public function getParticipants() { + return $this->participants; + } + + public function setRoomId($roomId) { + $this->roomId = $roomId; + } + + public function getRoomId() { + return $this->roomId; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setStatusVersion($statusVersion) { + $this->statusVersion = $statusVersion; + } + + public function getStatusVersion() { + return $this->statusVersion; + } } -class Google_Service_Games_ScoreSubmission extends Google_Model -{ - public $kind; - public $leaderboardId; - public $score; - public $scoreTag; - public $signature; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLeaderboardId($leaderboardId) - { - $this->leaderboardId = $leaderboardId; - } - - public function getLeaderboardId() - { - return $this->leaderboardId; - } - - public function setScore($score) - { - $this->score = $score; - } - - public function getScore() - { - return $this->score; - } - - public function setScoreTag($scoreTag) - { - $this->scoreTag = $scoreTag; - } - - public function getScoreTag() - { - return $this->scoreTag; - } - - public function setSignature($signature) - { - $this->signature = $signature; - } - - public function getSignature() - { - return $this->signature; - } +class Google_Service_Games_ScoreSubmission extends Google_Model { + public $kind; + public $leaderboardId; + public $score; + public $scoreTag; + public $signature; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLeaderboardId($leaderboardId) { + $this->leaderboardId = $leaderboardId; + } + + public function getLeaderboardId() { + return $this->leaderboardId; + } + + public function setScore($score) { + $this->score = $score; + } + + public function getScore() { + return $this->score; + } + + public function setScoreTag($scoreTag) { + $this->scoreTag = $scoreTag; + } + + public function getScoreTag() { + return $this->scoreTag; + } + + public function setSignature($signature) { + $this->signature = $signature; + } + + public function getSignature() { + return $this->signature; + } } -class Google_Service_Games_Snapshot extends Google_Model -{ - protected $coverImageType = 'Google_Service_Games_SnapshotImage'; - protected $coverImageDataType = ''; - public $description; - public $driveId; - public $durationMillis; - public $id; - public $kind; - public $lastModifiedMillis; - public $title; - public $type; - public $uniqueName; - - public function setCoverImage(Google_Service_Games_SnapshotImage $coverImage) - { - $this->coverImage = $coverImage; - } - - public function getCoverImage() - { - return $this->coverImage; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDriveId($driveId) - { - $this->driveId = $driveId; - } - - public function getDriveId() - { - return $this->driveId; - } - - public function setDurationMillis($durationMillis) - { - $this->durationMillis = $durationMillis; - } - - public function getDurationMillis() - { - return $this->durationMillis; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLastModifiedMillis($lastModifiedMillis) - { - $this->lastModifiedMillis = $lastModifiedMillis; - } - - public function getLastModifiedMillis() - { - return $this->lastModifiedMillis; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setUniqueName($uniqueName) - { - $this->uniqueName = $uniqueName; - } - - public function getUniqueName() - { - return $this->uniqueName; - } +class Google_Service_Games_Snapshot extends Google_Model { + protected $coverImageType = 'Google_Service_Games_SnapshotImage'; + protected $coverImageDataType = ''; + public $description; + public $driveId; + public $durationMillis; + public $id; + public $kind; + public $lastModifiedMillis; + public $title; + public $type; + public $uniqueName; + + public function setCoverImage(Google_Service_Games_SnapshotImage $coverImage) { + $this->coverImage = $coverImage; + } + + public function getCoverImage() { + return $this->coverImage; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setDriveId($driveId) { + $this->driveId = $driveId; + } + + public function getDriveId() { + return $this->driveId; + } + + public function setDurationMillis($durationMillis) { + $this->durationMillis = $durationMillis; + } + + public function getDurationMillis() { + return $this->durationMillis; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLastModifiedMillis($lastModifiedMillis) { + $this->lastModifiedMillis = $lastModifiedMillis; + } + + public function getLastModifiedMillis() { + return $this->lastModifiedMillis; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setUniqueName($uniqueName) { + $this->uniqueName = $uniqueName; + } + + public function getUniqueName() { + return $this->uniqueName; + } } -class Google_Service_Games_SnapshotImage extends Google_Model -{ - public $height; - public $kind; - public $mimeType; - public $url; - public $width; - - public function setHeight($height) - { - $this->height = $height; - } - - public function getHeight() - { - return $this->height; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - - public function getMimeType() - { - return $this->mimeType; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } - - public function setWidth($width) - { - $this->width = $width; - } - - public function getWidth() - { - return $this->width; - } +class Google_Service_Games_SnapshotImage extends Google_Model { + public $height; + public $kind; + public $mimeType; + public $url; + public $width; + + public function setHeight($height) { + $this->height = $height; + } + + public function getHeight() { + return $this->height; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMimeType($mimeType) { + $this->mimeType = $mimeType; + } + + public function getMimeType() { + return $this->mimeType; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } + + public function setWidth($width) { + $this->width = $width; + } + + public function getWidth() { + return $this->width; + } } -class Google_Service_Games_SnapshotListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_Snapshot'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_SnapshotListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Games_Snapshot'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_TurnBasedAutoMatchingCriteria extends Google_Model -{ - public $exclusiveBitmask; - public $kind; - public $maxAutoMatchingPlayers; - public $minAutoMatchingPlayers; - - public function setExclusiveBitmask($exclusiveBitmask) - { - $this->exclusiveBitmask = $exclusiveBitmask; - } - - public function getExclusiveBitmask() - { - return $this->exclusiveBitmask; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers) - { - $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers; - } - - public function getMaxAutoMatchingPlayers() - { - return $this->maxAutoMatchingPlayers; - } - - public function setMinAutoMatchingPlayers($minAutoMatchingPlayers) - { - $this->minAutoMatchingPlayers = $minAutoMatchingPlayers; - } - - public function getMinAutoMatchingPlayers() - { - return $this->minAutoMatchingPlayers; - } +class Google_Service_Games_TurnBasedAutoMatchingCriteria extends Google_Model { + public $exclusiveBitmask; + public $kind; + public $maxAutoMatchingPlayers; + public $minAutoMatchingPlayers; + + public function setExclusiveBitmask($exclusiveBitmask) { + $this->exclusiveBitmask = $exclusiveBitmask; + } + + public function getExclusiveBitmask() { + return $this->exclusiveBitmask; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers) { + $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers; + } + + public function getMaxAutoMatchingPlayers() { + return $this->maxAutoMatchingPlayers; + } + + public function setMinAutoMatchingPlayers($minAutoMatchingPlayers) { + $this->minAutoMatchingPlayers = $minAutoMatchingPlayers; + } + + public function getMinAutoMatchingPlayers() { + return $this->minAutoMatchingPlayers; + } } -class Google_Service_Games_TurnBasedMatch extends Google_Collection -{ - public $applicationId; - protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria'; - protected $autoMatchingCriteriaDataType = ''; - protected $creationDetailsType = 'Google_Service_Games_TurnBasedMatchModification'; - protected $creationDetailsDataType = ''; - protected $dataType = 'Google_Service_Games_TurnBasedMatchData'; - protected $dataDataType = ''; - public $description; - public $inviterId; - public $kind; - protected $lastUpdateDetailsType = 'Google_Service_Games_TurnBasedMatchModification'; - protected $lastUpdateDetailsDataType = ''; - public $matchId; - public $matchNumber; - public $matchVersion; - protected $participantsType = 'Google_Service_Games_TurnBasedMatchParticipant'; - protected $participantsDataType = 'array'; - public $pendingParticipantId; - protected $previousMatchDataType = 'Google_Service_Games_TurnBasedMatchData'; - protected $previousMatchDataDataType = ''; - public $rematchId; - protected $resultsType = 'Google_Service_Games_ParticipantResult'; - protected $resultsDataType = 'array'; - public $status; - public $userMatchStatus; - public $variant; - public $withParticipantId; - - public function setApplicationId($applicationId) - { - $this->applicationId = $applicationId; - } - - public function getApplicationId() - { - return $this->applicationId; - } - - public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria) - { - $this->autoMatchingCriteria = $autoMatchingCriteria; - } - - public function getAutoMatchingCriteria() - { - return $this->autoMatchingCriteria; - } - - public function setCreationDetails(Google_Service_Games_TurnBasedMatchModification $creationDetails) - { - $this->creationDetails = $creationDetails; - } - - public function getCreationDetails() - { - return $this->creationDetails; - } - - public function setData(Google_Service_Games_TurnBasedMatchData $data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setInviterId($inviterId) - { - $this->inviterId = $inviterId; - } - - public function getInviterId() - { - return $this->inviterId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLastUpdateDetails(Google_Service_Games_TurnBasedMatchModification $lastUpdateDetails) - { - $this->lastUpdateDetails = $lastUpdateDetails; - } - - public function getLastUpdateDetails() - { - return $this->lastUpdateDetails; - } - - public function setMatchId($matchId) - { - $this->matchId = $matchId; - } - - public function getMatchId() - { - return $this->matchId; - } - - public function setMatchNumber($matchNumber) - { - $this->matchNumber = $matchNumber; - } - - public function getMatchNumber() - { - return $this->matchNumber; - } - - public function setMatchVersion($matchVersion) - { - $this->matchVersion = $matchVersion; - } - - public function getMatchVersion() - { - return $this->matchVersion; - } - - public function setParticipants($participants) - { - $this->participants = $participants; - } - - public function getParticipants() - { - return $this->participants; - } - - public function setPendingParticipantId($pendingParticipantId) - { - $this->pendingParticipantId = $pendingParticipantId; - } - - public function getPendingParticipantId() - { - return $this->pendingParticipantId; - } - - public function setPreviousMatchData(Google_Service_Games_TurnBasedMatchData $previousMatchData) - { - $this->previousMatchData = $previousMatchData; - } - - public function getPreviousMatchData() - { - return $this->previousMatchData; - } - - public function setRematchId($rematchId) - { - $this->rematchId = $rematchId; - } - - public function getRematchId() - { - return $this->rematchId; - } - - public function setResults($results) - { - $this->results = $results; - } - - public function getResults() - { - return $this->results; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setUserMatchStatus($userMatchStatus) - { - $this->userMatchStatus = $userMatchStatus; - } - - public function getUserMatchStatus() - { - return $this->userMatchStatus; - } - - public function setVariant($variant) - { - $this->variant = $variant; - } - - public function getVariant() - { - return $this->variant; - } - - public function setWithParticipantId($withParticipantId) - { - $this->withParticipantId = $withParticipantId; - } - - public function getWithParticipantId() - { - return $this->withParticipantId; - } +class Google_Service_Games_TurnBasedMatch extends Google_Collection { + public $applicationId; + protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria'; + protected $autoMatchingCriteriaDataType = ''; + protected $creationDetailsType = 'Google_Service_Games_TurnBasedMatchModification'; + protected $creationDetailsDataType = ''; + protected $dataType = 'Google_Service_Games_TurnBasedMatchData'; + protected $dataDataType = ''; + public $description; + public $inviterId; + public $kind; + protected $lastUpdateDetailsType = 'Google_Service_Games_TurnBasedMatchModification'; + protected $lastUpdateDetailsDataType = ''; + public $matchId; + public $matchNumber; + public $matchVersion; + protected $participantsType = 'Google_Service_Games_TurnBasedMatchParticipant'; + protected $participantsDataType = 'array'; + public $pendingParticipantId; + protected $previousMatchDataType = 'Google_Service_Games_TurnBasedMatchData'; + protected $previousMatchDataDataType = ''; + public $rematchId; + protected $resultsType = 'Google_Service_Games_ParticipantResult'; + protected $resultsDataType = 'array'; + public $status; + public $userMatchStatus; + public $variant; + public $withParticipantId; + + public function setApplicationId($applicationId) { + $this->applicationId = $applicationId; + } + + public function getApplicationId() { + return $this->applicationId; + } + + public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria) { + $this->autoMatchingCriteria = $autoMatchingCriteria; + } + + public function getAutoMatchingCriteria() { + return $this->autoMatchingCriteria; + } + + public function setCreationDetails(Google_Service_Games_TurnBasedMatchModification $creationDetails) { + $this->creationDetails = $creationDetails; + } + + public function getCreationDetails() { + return $this->creationDetails; + } + + public function setData(Google_Service_Games_TurnBasedMatchData $data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setInviterId($inviterId) { + $this->inviterId = $inviterId; + } + + public function getInviterId() { + return $this->inviterId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLastUpdateDetails(Google_Service_Games_TurnBasedMatchModification $lastUpdateDetails) { + $this->lastUpdateDetails = $lastUpdateDetails; + } + + public function getLastUpdateDetails() { + return $this->lastUpdateDetails; + } + + public function setMatchId($matchId) { + $this->matchId = $matchId; + } + + public function getMatchId() { + return $this->matchId; + } + + public function setMatchNumber($matchNumber) { + $this->matchNumber = $matchNumber; + } + + public function getMatchNumber() { + return $this->matchNumber; + } + + public function setMatchVersion($matchVersion) { + $this->matchVersion = $matchVersion; + } + + public function getMatchVersion() { + return $this->matchVersion; + } + + public function setParticipants($participants) { + $this->participants = $participants; + } + + public function getParticipants() { + return $this->participants; + } + + public function setPendingParticipantId($pendingParticipantId) { + $this->pendingParticipantId = $pendingParticipantId; + } + + public function getPendingParticipantId() { + return $this->pendingParticipantId; + } + + public function setPreviousMatchData(Google_Service_Games_TurnBasedMatchData $previousMatchData) { + $this->previousMatchData = $previousMatchData; + } + + public function getPreviousMatchData() { + return $this->previousMatchData; + } + + public function setRematchId($rematchId) { + $this->rematchId = $rematchId; + } + + public function getRematchId() { + return $this->rematchId; + } + + public function setResults($results) { + $this->results = $results; + } + + public function getResults() { + return $this->results; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setUserMatchStatus($userMatchStatus) { + $this->userMatchStatus = $userMatchStatus; + } + + public function getUserMatchStatus() { + return $this->userMatchStatus; + } + + public function setVariant($variant) { + $this->variant = $variant; + } + + public function getVariant() { + return $this->variant; + } + + public function setWithParticipantId($withParticipantId) { + $this->withParticipantId = $withParticipantId; + } + + public function getWithParticipantId() { + return $this->withParticipantId; + } } -class Google_Service_Games_TurnBasedMatchCreateRequest extends Google_Collection -{ - protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria'; - protected $autoMatchingCriteriaDataType = ''; - public $invitedPlayerIds; - public $kind; - public $requestId; - public $variant; - - public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria) - { - $this->autoMatchingCriteria = $autoMatchingCriteria; - } - - public function getAutoMatchingCriteria() - { - return $this->autoMatchingCriteria; - } - - public function setInvitedPlayerIds($invitedPlayerIds) - { - $this->invitedPlayerIds = $invitedPlayerIds; - } - - public function getInvitedPlayerIds() - { - return $this->invitedPlayerIds; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - - public function getRequestId() - { - return $this->requestId; - } - - public function setVariant($variant) - { - $this->variant = $variant; - } - - public function getVariant() - { - return $this->variant; - } +class Google_Service_Games_TurnBasedMatchCreateRequest extends Google_Collection { + protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria'; + protected $autoMatchingCriteriaDataType = ''; + public $invitedPlayerIds; + public $kind; + public $requestId; + public $variant; + + public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria) { + $this->autoMatchingCriteria = $autoMatchingCriteria; + } + + public function getAutoMatchingCriteria() { + return $this->autoMatchingCriteria; + } + + public function setInvitedPlayerIds($invitedPlayerIds) { + $this->invitedPlayerIds = $invitedPlayerIds; + } + + public function getInvitedPlayerIds() { + return $this->invitedPlayerIds; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setRequestId($requestId) { + $this->requestId = $requestId; + } + + public function getRequestId() { + return $this->requestId; + } + + public function setVariant($variant) { + $this->variant = $variant; + } + + public function getVariant() { + return $this->variant; + } } -class Google_Service_Games_TurnBasedMatchData extends Google_Model -{ - public $data; - public $dataAvailable; - public $kind; - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setDataAvailable($dataAvailable) - { - $this->dataAvailable = $dataAvailable; - } - - public function getDataAvailable() - { - return $this->dataAvailable; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Games_TurnBasedMatchData extends Google_Model { + public $data; + public $dataAvailable; + public $kind; + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setDataAvailable($dataAvailable) { + $this->dataAvailable = $dataAvailable; + } + + public function getDataAvailable() { + return $this->dataAvailable; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Games_TurnBasedMatchDataRequest extends Google_Model -{ - public $data; - public $kind; - - public function setData($data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_Games_TurnBasedMatchDataRequest extends Google_Model { + public $data; + public $kind; + + public function setData($data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_Games_TurnBasedMatchList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_TurnBasedMatch'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_TurnBasedMatchList extends Google_Collection { + protected $itemsType = 'Google_Service_Games_TurnBasedMatch'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_TurnBasedMatchModification extends Google_Model -{ - public $kind; - public $modifiedTimestampMillis; - public $participantId; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setModifiedTimestampMillis($modifiedTimestampMillis) - { - $this->modifiedTimestampMillis = $modifiedTimestampMillis; - } - - public function getModifiedTimestampMillis() - { - return $this->modifiedTimestampMillis; - } - - public function setParticipantId($participantId) - { - $this->participantId = $participantId; - } - - public function getParticipantId() - { - return $this->participantId; - } +class Google_Service_Games_TurnBasedMatchModification extends Google_Model { + public $kind; + public $modifiedTimestampMillis; + public $participantId; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setModifiedTimestampMillis($modifiedTimestampMillis) { + $this->modifiedTimestampMillis = $modifiedTimestampMillis; + } + + public function getModifiedTimestampMillis() { + return $this->modifiedTimestampMillis; + } + + public function setParticipantId($participantId) { + $this->participantId = $participantId; + } + + public function getParticipantId() { + return $this->participantId; + } } -class Google_Service_Games_TurnBasedMatchParticipant extends Google_Model -{ - public $autoMatched; - protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer'; - protected $autoMatchedPlayerDataType = ''; - public $id; - public $kind; - protected $playerType = 'Google_Service_Games_Player'; - protected $playerDataType = ''; - public $status; - - public function setAutoMatched($autoMatched) - { - $this->autoMatched = $autoMatched; - } - - public function getAutoMatched() - { - return $this->autoMatched; - } - - public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer) - { - $this->autoMatchedPlayer = $autoMatchedPlayer; - } - - public function getAutoMatchedPlayer() - { - return $this->autoMatchedPlayer; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPlayer(Google_Service_Games_Player $player) - { - $this->player = $player; - } - - public function getPlayer() - { - return $this->player; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } +class Google_Service_Games_TurnBasedMatchParticipant extends Google_Model { + public $autoMatched; + protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer'; + protected $autoMatchedPlayerDataType = ''; + public $id; + public $kind; + protected $playerType = 'Google_Service_Games_Player'; + protected $playerDataType = ''; + public $status; + + public function setAutoMatched($autoMatched) { + $this->autoMatched = $autoMatched; + } + + public function getAutoMatched() { + return $this->autoMatched; + } + + public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer) { + $this->autoMatchedPlayer = $autoMatchedPlayer; + } + + public function getAutoMatchedPlayer() { + return $this->autoMatchedPlayer; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPlayer(Google_Service_Games_Player $player) { + $this->player = $player; + } + + public function getPlayer() { + return $this->player; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } } -class Google_Service_Games_TurnBasedMatchRematch extends Google_Model -{ - public $kind; - protected $previousMatchType = 'Google_Service_Games_TurnBasedMatch'; - protected $previousMatchDataType = ''; - protected $rematchType = 'Google_Service_Games_TurnBasedMatch'; - protected $rematchDataType = ''; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPreviousMatch(Google_Service_Games_TurnBasedMatch $previousMatch) - { - $this->previousMatch = $previousMatch; - } - - public function getPreviousMatch() - { - return $this->previousMatch; - } - - public function setRematch(Google_Service_Games_TurnBasedMatch $rematch) - { - $this->rematch = $rematch; - } - - public function getRematch() - { - return $this->rematch; - } +class Google_Service_Games_TurnBasedMatchRematch extends Google_Model { + public $kind; + protected $previousMatchType = 'Google_Service_Games_TurnBasedMatch'; + protected $previousMatchDataType = ''; + protected $rematchType = 'Google_Service_Games_TurnBasedMatch'; + protected $rematchDataType = ''; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPreviousMatch(Google_Service_Games_TurnBasedMatch $previousMatch) { + $this->previousMatch = $previousMatch; + } + + public function getPreviousMatch() { + return $this->previousMatch; + } + + public function setRematch(Google_Service_Games_TurnBasedMatch $rematch) { + $this->rematch = $rematch; + } + + public function getRematch() { + return $this->rematch; + } } -class Google_Service_Games_TurnBasedMatchResults extends Google_Collection -{ - protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest'; - protected $dataDataType = ''; - public $kind; - public $matchVersion; - protected $resultsType = 'Google_Service_Games_ParticipantResult'; - protected $resultsDataType = 'array'; - - public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMatchVersion($matchVersion) - { - $this->matchVersion = $matchVersion; - } - - public function getMatchVersion() - { - return $this->matchVersion; - } - - public function setResults($results) - { - $this->results = $results; - } - - public function getResults() - { - return $this->results; - } +class Google_Service_Games_TurnBasedMatchResults extends Google_Collection { + protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest'; + protected $dataDataType = ''; + public $kind; + public $matchVersion; + protected $resultsType = 'Google_Service_Games_ParticipantResult'; + protected $resultsDataType = 'array'; + + public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMatchVersion($matchVersion) { + $this->matchVersion = $matchVersion; + } + + public function getMatchVersion() { + return $this->matchVersion; + } + + public function setResults($results) { + $this->results = $results; + } + + public function getResults() { + return $this->results; + } } -class Google_Service_Games_TurnBasedMatchSync extends Google_Collection -{ - protected $itemsType = 'Google_Service_Games_TurnBasedMatch'; - protected $itemsDataType = 'array'; - public $kind; - public $moreAvailable; - public $nextPageToken; - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMoreAvailable($moreAvailable) - { - $this->moreAvailable = $moreAvailable; - } - - public function getMoreAvailable() - { - return $this->moreAvailable; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } +class Google_Service_Games_TurnBasedMatchSync extends Google_Collection { + protected $itemsType = 'Google_Service_Games_TurnBasedMatch'; + protected $itemsDataType = 'array'; + public $kind; + public $moreAvailable; + public $nextPageToken; + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMoreAvailable($moreAvailable) { + $this->moreAvailable = $moreAvailable; + } + + public function getMoreAvailable() { + return $this->moreAvailable; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Games_TurnBasedMatchTurn extends Google_Collection -{ - protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest'; - protected $dataDataType = ''; - public $kind; - public $matchVersion; - public $pendingParticipantId; - protected $resultsType = 'Google_Service_Games_ParticipantResult'; - protected $resultsDataType = 'array'; - - public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data) - { - $this->data = $data; - } - - public function getData() - { - return $this->data; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setMatchVersion($matchVersion) - { - $this->matchVersion = $matchVersion; - } - - public function getMatchVersion() - { - return $this->matchVersion; - } - - public function setPendingParticipantId($pendingParticipantId) - { - $this->pendingParticipantId = $pendingParticipantId; - } - - public function getPendingParticipantId() - { - return $this->pendingParticipantId; - } - - public function setResults($results) - { - $this->results = $results; - } - - public function getResults() - { - return $this->results; - } +class Google_Service_Games_TurnBasedMatchTurn extends Google_Collection { + protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest'; + protected $dataDataType = ''; + public $kind; + public $matchVersion; + public $pendingParticipantId; + protected $resultsType = 'Google_Service_Games_ParticipantResult'; + protected $resultsDataType = 'array'; + + public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data) { + $this->data = $data; + } + + public function getData() { + return $this->data; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setMatchVersion($matchVersion) { + $this->matchVersion = $matchVersion; + } + + public function getMatchVersion() { + return $this->matchVersion; + } + + public function setPendingParticipantId($pendingParticipantId) { + $this->pendingParticipantId = $pendingParticipantId; + } + + public function getPendingParticipantId() { + return $this->pendingParticipantId; + } + + public function setResults($results) { + $this->results = $results; + } + + public function getResults() { + return $this->results; + } } diff --git a/oauth/Google/Service/GamesManagement.php b/oauth/Google/Service/GamesManagement.php index ed61500..21ec1e3 100644 --- a/oauth/Google/Service/GamesManagement.php +++ b/oauth/Google/Service/GamesManagement.php @@ -29,250 +29,248 @@ * * @author Google, Inc. */ -class Google_Service_GamesManagement extends Google_Service -{ - /** Share your Google+ profile information and view and manage your game activity. */ - const GAMES = "https://www.googleapis.com/auth/games"; - /** Know your basic profile info and list of people in your circles.. */ - const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; +class Google_Service_GamesManagement extends Google_Service { + /** Share your Google+ profile information and view and manage your game activity. */ + const GAMES = "https://www.googleapis.com/auth/games"; + /** Know your basic profile info and list of people in your circles.. */ + const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; - public $achievements; - public $applications; - public $events; - public $players; - public $quests; - public $rooms; - public $scores; - public $turnBasedMatches; - + public $achievements; + public $applications; + public $events; + public $players; + public $quests; + public $rooms; + public $scores; + public $turnBasedMatches; - /** - * Constructs the internal representation of the GamesManagement service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'games/v1management/'; - $this->version = 'v1management'; - $this->serviceName = 'gamesManagement'; - $this->achievements = new Google_Service_GamesManagement_Achievements_Resource( - $this, - $this->serviceName, - 'achievements', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'achievements/{achievementId}/reset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetAll' => array( - 'path' => 'achievements/reset', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetForAllPlayers' => array( - 'path' => 'achievements/{achievementId}/resetForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'achievementId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->applications = new Google_Service_GamesManagement_Applications_Resource( - $this, - $this->serviceName, - 'applications', - array( - 'methods' => array( - 'listHidden' => array( - 'path' => 'applications/{applicationId}/players/hidden', - 'httpMethod' => 'GET', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->events = new Google_Service_GamesManagement_Events_Resource( - $this, - $this->serviceName, - 'events', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'events/{eventId}/reset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetAll' => array( - 'path' => 'events/reset', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'resetForAllPlayers' => array( - 'path' => 'events/{eventId}/resetForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'eventId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->players = new Google_Service_GamesManagement_Players_Resource( - $this, - $this->serviceName, - 'players', - array( - 'methods' => array( - 'hide' => array( - 'path' => 'applications/{applicationId}/players/hidden/{playerId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'unhide' => array( - 'path' => 'applications/{applicationId}/players/hidden/{playerId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'applicationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'playerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->quests = new Google_Service_GamesManagement_Quests_Resource( - $this, - $this->serviceName, - 'quests', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'quests/{questId}/reset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'questId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->rooms = new Google_Service_GamesManagement_Rooms_Resource( - $this, - $this->serviceName, - 'rooms', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'rooms/reset', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->scores = new Google_Service_GamesManagement_Scores_Resource( - $this, - $this->serviceName, - 'scores', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'leaderboards/{leaderboardId}/scores/reset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetForAllPlayers' => array( - 'path' => 'leaderboards/{leaderboardId}/scores/resetForAllPlayers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'leaderboardId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->turnBasedMatches = new Google_Service_GamesManagement_TurnBasedMatches_Resource( - $this, - $this->serviceName, - 'turnBasedMatches', - array( - 'methods' => array( - 'reset' => array( - 'path' => 'turnbasedmatches/reset', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the GamesManagement service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'games/v1management/'; + $this->version = 'v1management'; + $this->serviceName = 'gamesManagement'; + + $this->achievements = new Google_Service_GamesManagement_Achievements_Resource( + $this, + $this->serviceName, + 'achievements', + array( + 'methods' => array( + 'reset' => array( + 'path' => 'achievements/{achievementId}/reset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'resetAll' => array( + 'path' => 'achievements/reset', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'resetForAllPlayers' => array( + 'path' => 'achievements/{achievementId}/resetForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->applications = new Google_Service_GamesManagement_Applications_Resource( + $this, + $this->serviceName, + 'applications', + array( + 'methods' => array( + 'listHidden' => array( + 'path' => 'applications/{applicationId}/players/hidden', + 'httpMethod' => 'GET', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->events = new Google_Service_GamesManagement_Events_Resource( + $this, + $this->serviceName, + 'events', + array( + 'methods' => array( + 'reset' => array( + 'path' => 'events/{eventId}/reset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'eventId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'resetAll' => array( + 'path' => 'events/reset', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'resetForAllPlayers' => array( + 'path' => 'events/{eventId}/resetForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'eventId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->players = new Google_Service_GamesManagement_Players_Resource( + $this, + $this->serviceName, + 'players', + array( + 'methods' => array( + 'hide' => array( + 'path' => 'applications/{applicationId}/players/hidden/{playerId}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'playerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'unhide' => array( + 'path' => 'applications/{applicationId}/players/hidden/{playerId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'playerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->quests = new Google_Service_GamesManagement_Quests_Resource( + $this, + $this->serviceName, + 'quests', + array( + 'methods' => array( + 'reset' => array( + 'path' => 'quests/{questId}/reset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'questId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->rooms = new Google_Service_GamesManagement_Rooms_Resource( + $this, + $this->serviceName, + 'rooms', + array( + 'methods' => array( + 'reset' => array( + 'path' => 'rooms/reset', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->scores = new Google_Service_GamesManagement_Scores_Resource( + $this, + $this->serviceName, + 'scores', + array( + 'methods' => array( + 'reset' => array( + 'path' => 'leaderboards/{leaderboardId}/scores/reset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'resetForAllPlayers' => array( + 'path' => 'leaderboards/{leaderboardId}/scores/resetForAllPlayers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->turnBasedMatches = new Google_Service_GamesManagement_TurnBasedMatches_Resource( + $this, + $this->serviceName, + 'turnBasedMatches', + array( + 'methods' => array( + 'reset' => array( + 'path' => 'turnbasedmatches/reset', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } } @@ -284,54 +282,52 @@ class Google_Service_GamesManagement extends Google_Service * $achievements = $gamesManagementService->achievements; * */ -class Google_Service_GamesManagement_Achievements_Resource extends Google_Service_Resource -{ +class Google_Service_GamesManagement_Achievements_Resource extends Google_Service_Resource { - /** - * Resets the achievement with the given ID for the currently authenticated - * player. This method is only accessible to whitelisted tester accounts for - * your application. (achievements.reset) - * - * @param string $achievementId - * The ID of the achievement used by this method. - * @param array $optParams Optional parameters. - * @return Google_Service_GamesManagement_AchievementResetResponse - */ - public function reset($achievementId, $optParams = array()) - { - $params = array('achievementId' => $achievementId); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params), "Google_Service_GamesManagement_AchievementResetResponse"); - } - /** - * Resets all achievements for the currently authenticated player for your - * application. This method is only accessible to whitelisted tester accounts - * for your application. (achievements.resetAll) - * - * @param array $optParams Optional parameters. - * @return Google_Service_GamesManagement_AchievementResetAllResponse - */ - public function resetAll($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetAll', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse"); - } - /** - * Resets the achievement with the given ID for the all players. This method is - * only available to user accounts for your developer console. Only draft - * achievements can be reset. (achievements.resetForAllPlayers) - * - * @param string $achievementId - * The ID of the achievement used by this method. - * @param array $optParams Optional parameters. - */ - public function resetForAllPlayers($achievementId, $optParams = array()) - { - $params = array('achievementId' => $achievementId); - $params = array_merge($params, $optParams); - return $this->call('resetForAllPlayers', array($params)); - } + /** + * Resets the achievement with the given ID for the currently authenticated + * player. This method is only accessible to whitelisted tester accounts for + * your application. (achievements.reset) + * + * @param string $achievementId + * The ID of the achievement used by this method. + * @param array $optParams Optional parameters. + * @return Google_Service_GamesManagement_AchievementResetResponse + */ + public function reset($achievementId, $optParams = array()) { + $params = array('achievementId' => $achievementId); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params), "Google_Service_GamesManagement_AchievementResetResponse"); + } + + /** + * Resets all achievements for the currently authenticated player for your + * application. This method is only accessible to whitelisted tester accounts + * for your application. (achievements.resetAll) + * + * @param array $optParams Optional parameters. + * @return Google_Service_GamesManagement_AchievementResetAllResponse + */ + public function resetAll($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('resetAll', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse"); + } + + /** + * Resets the achievement with the given ID for the all players. This method is + * only available to user accounts for your developer console. Only draft + * achievements can be reset. (achievements.resetForAllPlayers) + * + * @param string $achievementId + * The ID of the achievement used by this method. + * @param array $optParams Optional parameters. + */ + public function resetForAllPlayers($achievementId, $optParams = array()) { + $params = array('achievementId' => $achievementId); + $params = array_merge($params, $optParams); + return $this->call('resetForAllPlayers', array($params)); + } } /** @@ -342,32 +338,30 @@ class Google_Service_GamesManagement_Achievements_Resource extends Google_Servic * $applications = $gamesManagementService->applications; * */ -class Google_Service_GamesManagement_Applications_Resource extends Google_Service_Resource -{ +class Google_Service_GamesManagement_Applications_Resource extends Google_Service_Resource { - /** - * Get the list of players hidden from the given application. This method is - * only available to user accounts for your developer console. - * (applications.listHidden) - * - * @param string $applicationId - * The application being requested. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param int maxResults - * The maximum number of player resources to return in the response, used for paging. For any - * response, the actual number of player resources returned may be less than the specified - * maxResults. - * @return Google_Service_GamesManagement_HiddenPlayerList - */ - public function listHidden($applicationId, $optParams = array()) - { - $params = array('applicationId' => $applicationId); - $params = array_merge($params, $optParams); - return $this->call('listHidden', array($params), "Google_Service_GamesManagement_HiddenPlayerList"); - } + /** + * Get the list of players hidden from the given application. This method is + * only available to user accounts for your developer console. + * (applications.listHidden) + * + * @param string $applicationId + * The application being requested. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param int maxResults + * The maximum number of player resources to return in the response, used for paging. For any + * response, the actual number of player resources returned may be less than the specified + * maxResults. + * @return Google_Service_GamesManagement_HiddenPlayerList + */ + public function listHidden($applicationId, $optParams = array()) { + $params = array('applicationId' => $applicationId); + $params = array_merge($params, $optParams); + return $this->call('listHidden', array($params), "Google_Service_GamesManagement_HiddenPlayerList"); + } } /** @@ -378,55 +372,53 @@ class Google_Service_GamesManagement_Applications_Resource extends Google_Servic * $events = $gamesManagementService->events; * */ -class Google_Service_GamesManagement_Events_Resource extends Google_Service_Resource -{ +class Google_Service_GamesManagement_Events_Resource extends Google_Service_Resource { - /** - * Reset all player progress on the event for the currently authenticated - * player. This method is only accessible to whitelisted tester accounts for - * your application. All resources that use the event will also be reset. - * (events.reset) - * - * @param string $eventId - * The ID of the event. - * @param array $optParams Optional parameters. - */ - public function reset($eventId, $optParams = array()) - { - $params = array('eventId' => $eventId); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params)); - } - /** - * Reset all player progress on all unpublished events for the currently - * authenticated player. This method is only accessible to whitelisted tester - * accounts for your application. All resources that use the events will also be - * reset. (events.resetAll) - * - * @param array $optParams Optional parameters. - */ - public function resetAll($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('resetAll', array($params)); - } - /** - * Reset all player progress on the event for all players. This method is only - * available to user accounts for your developer console. Only draft events can - * be reset. All resources that use the event will also be reset. - * (events.resetForAllPlayers) - * - * @param string $eventId - * The ID of the event. - * @param array $optParams Optional parameters. - */ - public function resetForAllPlayers($eventId, $optParams = array()) - { - $params = array('eventId' => $eventId); - $params = array_merge($params, $optParams); - return $this->call('resetForAllPlayers', array($params)); - } + /** + * Reset all player progress on the event for the currently authenticated + * player. This method is only accessible to whitelisted tester accounts for + * your application. All resources that use the event will also be reset. + * (events.reset) + * + * @param string $eventId + * The ID of the event. + * @param array $optParams Optional parameters. + */ + public function reset($eventId, $optParams = array()) { + $params = array('eventId' => $eventId); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params)); + } + + /** + * Reset all player progress on all unpublished events for the currently + * authenticated player. This method is only accessible to whitelisted tester + * accounts for your application. All resources that use the events will also be + * reset. (events.resetAll) + * + * @param array $optParams Optional parameters. + */ + public function resetAll($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('resetAll', array($params)); + } + + /** + * Reset all player progress on the event for all players. This method is only + * available to user accounts for your developer console. Only draft events can + * be reset. All resources that use the event will also be reset. + * (events.resetForAllPlayers) + * + * @param string $eventId + * The ID of the event. + * @param array $optParams Optional parameters. + */ + public function resetForAllPlayers($eventId, $optParams = array()) { + $params = array('eventId' => $eventId); + $params = array_merge($params, $optParams); + return $this->call('resetForAllPlayers', array($params)); + } } /** @@ -437,43 +429,41 @@ class Google_Service_GamesManagement_Events_Resource extends Google_Service_Reso * $players = $gamesManagementService->players; * */ -class Google_Service_GamesManagement_Players_Resource extends Google_Service_Resource -{ +class Google_Service_GamesManagement_Players_Resource extends Google_Service_Resource { - /** - * Hide the given player's leaderboard scores from the given application. This - * method is only available to user accounts for your developer console. - * (players.hide) - * - * @param string $applicationId - * The application being requested. - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. - * @param array $optParams Optional parameters. - */ - public function hide($applicationId, $playerId, $optParams = array()) - { - $params = array('applicationId' => $applicationId, 'playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('hide', array($params)); - } - /** - * Unhide the given player's leaderboard scores from the given application. This - * method is only available to user accounts for your developer console. - * (players.unhide) - * - * @param string $applicationId - * The application being requested. - * @param string $playerId - * A player ID. A value of me may be used in place of the authenticated player's ID. - * @param array $optParams Optional parameters. - */ - public function unhide($applicationId, $playerId, $optParams = array()) - { - $params = array('applicationId' => $applicationId, 'playerId' => $playerId); - $params = array_merge($params, $optParams); - return $this->call('unhide', array($params)); - } + /** + * Hide the given player's leaderboard scores from the given application. This + * method is only available to user accounts for your developer console. + * (players.hide) + * + * @param string $applicationId + * The application being requested. + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param array $optParams Optional parameters. + */ + public function hide($applicationId, $playerId, $optParams = array()) { + $params = array('applicationId' => $applicationId, 'playerId' => $playerId); + $params = array_merge($params, $optParams); + return $this->call('hide', array($params)); + } + + /** + * Unhide the given player's leaderboard scores from the given application. This + * method is only available to user accounts for your developer console. + * (players.unhide) + * + * @param string $applicationId + * The application being requested. + * @param string $playerId + * A player ID. A value of me may be used in place of the authenticated player's ID. + * @param array $optParams Optional parameters. + */ + public function unhide($applicationId, $playerId, $optParams = array()) { + $params = array('applicationId' => $applicationId, 'playerId' => $playerId); + $params = array_merge($params, $optParams); + return $this->call('unhide', array($params)); + } } /** @@ -484,24 +474,22 @@ class Google_Service_GamesManagement_Players_Resource extends Google_Service_Res * $quests = $gamesManagementService->quests; * */ -class Google_Service_GamesManagement_Quests_Resource extends Google_Service_Resource -{ +class Google_Service_GamesManagement_Quests_Resource extends Google_Service_Resource { - /** - * Reset all player progress on the quest for the currently authenticated - * player. This method is only accessible to whitelisted tester accounts for - * your application. (quests.reset) - * - * @param string $questId - * The ID of the quest. - * @param array $optParams Optional parameters. - */ - public function reset($questId, $optParams = array()) - { - $params = array('questId' => $questId); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params)); - } + /** + * Reset all player progress on the quest for the currently authenticated + * player. This method is only accessible to whitelisted tester accounts for + * your application. (quests.reset) + * + * @param string $questId + * The ID of the quest. + * @param array $optParams Optional parameters. + */ + public function reset($questId, $optParams = array()) { + $params = array('questId' => $questId); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params)); + } } /** @@ -512,22 +500,20 @@ class Google_Service_GamesManagement_Quests_Resource extends Google_Service_Reso * $rooms = $gamesManagementService->rooms; * */ -class Google_Service_GamesManagement_Rooms_Resource extends Google_Service_Resource -{ +class Google_Service_GamesManagement_Rooms_Resource extends Google_Service_Resource { - /** - * Reset all rooms for the currently authenticated player for your application. - * This method is only accessible to whitelisted tester accounts for your - * application. (rooms.reset) - * - * @param array $optParams Optional parameters. - */ - public function reset($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params)); - } + /** + * Reset all rooms for the currently authenticated player for your application. + * This method is only accessible to whitelisted tester accounts for your + * application. (rooms.reset) + * + * @param array $optParams Optional parameters. + */ + public function reset($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params)); + } } /** @@ -538,40 +524,38 @@ class Google_Service_GamesManagement_Rooms_Resource extends Google_Service_Resou * $scores = $gamesManagementService->scores; * */ -class Google_Service_GamesManagement_Scores_Resource extends Google_Service_Resource -{ +class Google_Service_GamesManagement_Scores_Resource extends Google_Service_Resource { - /** - * Reset scores for the specified leaderboard for the currently authenticated - * player. This method is only accessible to whitelisted tester accounts for - * your application. (scores.reset) - * - * @param string $leaderboardId - * The ID of the leaderboard. - * @param array $optParams Optional parameters. - * @return Google_Service_GamesManagement_PlayerScoreResetResponse - */ - public function reset($leaderboardId, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params), "Google_Service_GamesManagement_PlayerScoreResetResponse"); - } - /** - * Reset scores for the specified leaderboard for all players. This method is - * only available to user accounts for your developer console. Only draft - * leaderboards can be reset. (scores.resetForAllPlayers) - * - * @param string $leaderboardId - * The ID of the leaderboard. - * @param array $optParams Optional parameters. - */ - public function resetForAllPlayers($leaderboardId, $optParams = array()) - { - $params = array('leaderboardId' => $leaderboardId); - $params = array_merge($params, $optParams); - return $this->call('resetForAllPlayers', array($params)); - } + /** + * Reset scores for the specified leaderboard for the currently authenticated + * player. This method is only accessible to whitelisted tester accounts for + * your application. (scores.reset) + * + * @param string $leaderboardId + * The ID of the leaderboard. + * @param array $optParams Optional parameters. + * @return Google_Service_GamesManagement_PlayerScoreResetResponse + */ + public function reset($leaderboardId, $optParams = array()) { + $params = array('leaderboardId' => $leaderboardId); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params), "Google_Service_GamesManagement_PlayerScoreResetResponse"); + } + + /** + * Reset scores for the specified leaderboard for all players. This method is + * only available to user accounts for your developer console. Only draft + * leaderboards can be reset. (scores.resetForAllPlayers) + * + * @param string $leaderboardId + * The ID of the leaderboard. + * @param array $optParams Optional parameters. + */ + public function resetForAllPlayers($leaderboardId, $optParams = array()) { + $params = array('leaderboardId' => $leaderboardId); + $params = array_merge($params, $optParams); + return $this->call('resetForAllPlayers', array($params)); + } } /** @@ -582,433 +566,353 @@ class Google_Service_GamesManagement_Scores_Resource extends Google_Service_Reso * $turnBasedMatches = $gamesManagementService->turnBasedMatches; * */ -class Google_Service_GamesManagement_TurnBasedMatches_Resource extends Google_Service_Resource -{ +class Google_Service_GamesManagement_TurnBasedMatches_Resource extends Google_Service_Resource { - /** - * Reset all turn-based match data for a user. This method is only accessible to - * whitelisted tester accounts for your application. (turnBasedMatches.reset) - * - * @param array $optParams Optional parameters. - */ - public function reset($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params)); - } + /** + * Reset all turn-based match data for a user. This method is only accessible to + * whitelisted tester accounts for your application. (turnBasedMatches.reset) + * + * @param array $optParams Optional parameters. + */ + public function reset($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params)); + } } +class Google_Service_GamesManagement_AchievementResetAllResponse extends Google_Collection { + public $kind; + protected $resultsType = 'Google_Service_GamesManagement_AchievementResetResponse'; + protected $resultsDataType = 'array'; + public function setKind($kind) { + $this->kind = $kind; + } -class Google_Service_GamesManagement_AchievementResetAllResponse extends Google_Collection -{ - public $kind; - protected $resultsType = 'Google_Service_GamesManagement_AchievementResetResponse'; - protected $resultsDataType = 'array'; + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setResults($results) { + $this->results = $results; + } - public function getKind() - { - return $this->kind; - } - - public function setResults($results) - { - $this->results = $results; - } - - public function getResults() - { - return $this->results; - } + public function getResults() { + return $this->results; + } } -class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model -{ - public $currentState; - public $definitionId; - public $kind; - public $updateOccurred; +class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model { + public $currentState; + public $definitionId; + public $kind; + public $updateOccurred; - public function setCurrentState($currentState) - { - $this->currentState = $currentState; - } + public function setCurrentState($currentState) { + $this->currentState = $currentState; + } - public function getCurrentState() - { - return $this->currentState; - } + public function getCurrentState() { + return $this->currentState; + } - public function setDefinitionId($definitionId) - { - $this->definitionId = $definitionId; - } + public function setDefinitionId($definitionId) { + $this->definitionId = $definitionId; + } - public function getDefinitionId() - { - return $this->definitionId; - } + public function getDefinitionId() { + return $this->definitionId; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setUpdateOccurred($updateOccurred) - { - $this->updateOccurred = $updateOccurred; - } + public function setUpdateOccurred($updateOccurred) { + $this->updateOccurred = $updateOccurred; + } - public function getUpdateOccurred() - { - return $this->updateOccurred; - } + public function getUpdateOccurred() { + return $this->updateOccurred; + } } -class Google_Service_GamesManagement_GamesPlayedResource extends Google_Model -{ - public $autoMatched; - public $timeMillis; +class Google_Service_GamesManagement_GamesPlayedResource extends Google_Model { + public $autoMatched; + public $timeMillis; - public function setAutoMatched($autoMatched) - { - $this->autoMatched = $autoMatched; - } + public function setAutoMatched($autoMatched) { + $this->autoMatched = $autoMatched; + } - public function getAutoMatched() - { - return $this->autoMatched; - } + public function getAutoMatched() { + return $this->autoMatched; + } - public function setTimeMillis($timeMillis) - { - $this->timeMillis = $timeMillis; - } + public function setTimeMillis($timeMillis) { + $this->timeMillis = $timeMillis; + } - public function getTimeMillis() - { - return $this->timeMillis; - } + public function getTimeMillis() { + return $this->timeMillis; + } } -class Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends Google_Model -{ - public $currentExperiencePoints; - protected $currentLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; - protected $currentLevelDataType = ''; - public $lastLevelUpTimestampMillis; - protected $nextLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; - protected $nextLevelDataType = ''; +class Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends Google_Model { + public $currentExperiencePoints; + protected $currentLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; + protected $currentLevelDataType = ''; + public $lastLevelUpTimestampMillis; + protected $nextLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource'; + protected $nextLevelDataType = ''; - public function setCurrentExperiencePoints($currentExperiencePoints) - { - $this->currentExperiencePoints = $currentExperiencePoints; - } + public function setCurrentExperiencePoints($currentExperiencePoints) { + $this->currentExperiencePoints = $currentExperiencePoints; + } - public function getCurrentExperiencePoints() - { - return $this->currentExperiencePoints; - } + public function getCurrentExperiencePoints() { + return $this->currentExperiencePoints; + } - public function setCurrentLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $currentLevel) - { - $this->currentLevel = $currentLevel; - } + public function setCurrentLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $currentLevel) { + $this->currentLevel = $currentLevel; + } - public function getCurrentLevel() - { - return $this->currentLevel; - } + public function getCurrentLevel() { + return $this->currentLevel; + } - public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) - { - $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; - } + public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis) { + $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis; + } - public function getLastLevelUpTimestampMillis() - { - return $this->lastLevelUpTimestampMillis; - } + public function getLastLevelUpTimestampMillis() { + return $this->lastLevelUpTimestampMillis; + } - public function setNextLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $nextLevel) - { - $this->nextLevel = $nextLevel; - } + public function setNextLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $nextLevel) { + $this->nextLevel = $nextLevel; + } - public function getNextLevel() - { - return $this->nextLevel; - } + public function getNextLevel() { + return $this->nextLevel; + } } -class Google_Service_GamesManagement_GamesPlayerLevelResource extends Google_Model -{ - public $level; - public $maxExperiencePoints; - public $minExperiencePoints; +class Google_Service_GamesManagement_GamesPlayerLevelResource extends Google_Model { + public $level; + public $maxExperiencePoints; + public $minExperiencePoints; - public function setLevel($level) - { - $this->level = $level; - } + public function setLevel($level) { + $this->level = $level; + } - public function getLevel() - { - return $this->level; - } + public function getLevel() { + return $this->level; + } - public function setMaxExperiencePoints($maxExperiencePoints) - { - $this->maxExperiencePoints = $maxExperiencePoints; - } + public function setMaxExperiencePoints($maxExperiencePoints) { + $this->maxExperiencePoints = $maxExperiencePoints; + } - public function getMaxExperiencePoints() - { - return $this->maxExperiencePoints; - } + public function getMaxExperiencePoints() { + return $this->maxExperiencePoints; + } - public function setMinExperiencePoints($minExperiencePoints) - { - $this->minExperiencePoints = $minExperiencePoints; - } + public function setMinExperiencePoints($minExperiencePoints) { + $this->minExperiencePoints = $minExperiencePoints; + } - public function getMinExperiencePoints() - { - return $this->minExperiencePoints; - } + public function getMinExperiencePoints() { + return $this->minExperiencePoints; + } } -class Google_Service_GamesManagement_HiddenPlayer extends Google_Model -{ - public $hiddenTimeMillis; - public $kind; - protected $playerType = 'Google_Service_GamesManagement_Player'; - protected $playerDataType = ''; +class Google_Service_GamesManagement_HiddenPlayer extends Google_Model { + public $hiddenTimeMillis; + public $kind; + protected $playerType = 'Google_Service_GamesManagement_Player'; + protected $playerDataType = ''; - public function setHiddenTimeMillis($hiddenTimeMillis) - { - $this->hiddenTimeMillis = $hiddenTimeMillis; - } + public function setHiddenTimeMillis($hiddenTimeMillis) { + $this->hiddenTimeMillis = $hiddenTimeMillis; + } - public function getHiddenTimeMillis() - { - return $this->hiddenTimeMillis; - } + public function getHiddenTimeMillis() { + return $this->hiddenTimeMillis; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPlayer(Google_Service_GamesManagement_Player $player) - { - $this->player = $player; - } + public function setPlayer(Google_Service_GamesManagement_Player $player) { + $this->player = $player; + } - public function getPlayer() - { - return $this->player; - } + public function getPlayer() { + return $this->player; + } } -class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection -{ - protected $itemsType = 'Google_Service_GamesManagement_HiddenPlayer'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection { + protected $itemsType = 'Google_Service_GamesManagement_HiddenPlayer'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_GamesManagement_Player extends Google_Model -{ - public $avatarImageUrl; - public $displayName; - protected $experienceInfoType = 'Google_Service_GamesManagement_GamesPlayerExperienceInfoResource'; - protected $experienceInfoDataType = ''; - public $kind; - protected $lastPlayedWithType = 'Google_Service_GamesManagement_GamesPlayedResource'; - protected $lastPlayedWithDataType = ''; - protected $nameType = 'Google_Service_GamesManagement_PlayerName'; - protected $nameDataType = ''; - public $playerId; - public $title; +class Google_Service_GamesManagement_Player extends Google_Model { + public $avatarImageUrl; + public $displayName; + protected $experienceInfoType = 'Google_Service_GamesManagement_GamesPlayerExperienceInfoResource'; + protected $experienceInfoDataType = ''; + public $kind; + protected $lastPlayedWithType = 'Google_Service_GamesManagement_GamesPlayedResource'; + protected $lastPlayedWithDataType = ''; + protected $nameType = 'Google_Service_GamesManagement_PlayerName'; + protected $nameDataType = ''; + public $playerId; + public $title; - public function setAvatarImageUrl($avatarImageUrl) - { - $this->avatarImageUrl = $avatarImageUrl; - } + public function setAvatarImageUrl($avatarImageUrl) { + $this->avatarImageUrl = $avatarImageUrl; + } - public function getAvatarImageUrl() - { - return $this->avatarImageUrl; - } + public function getAvatarImageUrl() { + return $this->avatarImageUrl; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setExperienceInfo(Google_Service_GamesManagement_GamesPlayerExperienceInfoResource $experienceInfo) - { - $this->experienceInfo = $experienceInfo; - } + public function setExperienceInfo(Google_Service_GamesManagement_GamesPlayerExperienceInfoResource $experienceInfo) { + $this->experienceInfo = $experienceInfo; + } - public function getExperienceInfo() - { - return $this->experienceInfo; - } + public function getExperienceInfo() { + return $this->experienceInfo; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastPlayedWith(Google_Service_GamesManagement_GamesPlayedResource $lastPlayedWith) - { - $this->lastPlayedWith = $lastPlayedWith; - } + public function setLastPlayedWith(Google_Service_GamesManagement_GamesPlayedResource $lastPlayedWith) { + $this->lastPlayedWith = $lastPlayedWith; + } - public function getLastPlayedWith() - { - return $this->lastPlayedWith; - } + public function getLastPlayedWith() { + return $this->lastPlayedWith; + } - public function setName(Google_Service_GamesManagement_PlayerName $name) - { - $this->name = $name; - } + public function setName(Google_Service_GamesManagement_PlayerName $name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPlayerId($playerId) - { - $this->playerId = $playerId; - } + public function setPlayerId($playerId) { + $this->playerId = $playerId; + } - public function getPlayerId() - { - return $this->playerId; - } + public function getPlayerId() { + return $this->playerId; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_GamesManagement_PlayerName extends Google_Model -{ - public $familyName; - public $givenName; +class Google_Service_GamesManagement_PlayerName extends Google_Model { + public $familyName; + public $givenName; - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } + public function setFamilyName($familyName) { + $this->familyName = $familyName; + } - public function getFamilyName() - { - return $this->familyName; - } + public function getFamilyName() { + return $this->familyName; + } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } + public function setGivenName($givenName) { + $this->givenName = $givenName; + } - public function getGivenName() - { - return $this->givenName; - } + public function getGivenName() { + return $this->givenName; + } } -class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection -{ - public $kind; - public $resetScoreTimeSpans; +class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection { + public $kind; + public $resetScoreTimeSpans; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setResetScoreTimeSpans($resetScoreTimeSpans) - { - $this->resetScoreTimeSpans = $resetScoreTimeSpans; - } + public function setResetScoreTimeSpans($resetScoreTimeSpans) { + $this->resetScoreTimeSpans = $resetScoreTimeSpans; + } - public function getResetScoreTimeSpans() - { - return $this->resetScoreTimeSpans; - } + public function getResetScoreTimeSpans() { + return $this->resetScoreTimeSpans; + } } diff --git a/oauth/Google/Service/Genomics.php b/oauth/Google/Service/Genomics.php index b568ca9..1971710 100644 --- a/oauth/Google/Service/Genomics.php +++ b/oauth/Google/Service/Genomics.php @@ -29,455 +29,453 @@ * * @author Google, Inc. */ -class Google_Service_Genomics extends Google_Service -{ - /** View and manage your data in Google BigQuery. */ - const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; - /** View and manage Genomics data. */ - const GENOMICS = "https://www.googleapis.com/auth/genomics"; - /** View Genomics data. */ - const GENOMICS_READONLY = "https://www.googleapis.com/auth/genomics.readonly"; +class Google_Service_Genomics extends Google_Service { + /** View and manage your data in Google BigQuery. */ + const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; + /** Manage your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; + /** View and manage Genomics data. */ + const GENOMICS = "https://www.googleapis.com/auth/genomics"; + /** View Genomics data. */ + const GENOMICS_READONLY = "https://www.googleapis.com/auth/genomics.readonly"; - public $beacons; - public $callsets; - public $datasets; - public $experimental_jobs; - public $jobs; - public $reads; - public $readsets; - public $readsets_coveragebuckets; - public $variants; - + public $beacons; + public $callsets; + public $datasets; + public $experimental_jobs; + public $jobs; + public $reads; + public $readsets; + public $readsets_coveragebuckets; + public $variants; - /** - * Constructs the internal representation of the Genomics service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'genomics/v1beta/'; - $this->version = 'v1beta'; - $this->serviceName = 'genomics'; - $this->beacons = new Google_Service_Genomics_Beacons_Resource( - $this, - $this->serviceName, - 'beacons', - array( - 'methods' => array( - 'get' => array( - 'path' => 'beacons/{datasetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'allele' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'contig' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'position' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->callsets = new Google_Service_Genomics_Callsets_Resource( - $this, - $this->serviceName, - 'callsets', - array( - 'methods' => array( - 'create' => array( - 'path' => 'callsets', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'callsets/{callsetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'callsetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'callsets/{callsetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'callsetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'callsets/{callsetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'callsetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'callsets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'callsets/{callsetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'callsetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->datasets = new Google_Service_Genomics_Datasets_Resource( - $this, - $this->serviceName, - 'datasets', - array( - 'methods' => array( - 'create' => array( - 'path' => 'datasets', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'datasets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'undelete' => array( - 'path' => 'datasets/{datasetId}/undelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->experimental_jobs = new Google_Service_Genomics_ExperimentalJobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'create' => array( - 'path' => 'experimental/jobs/create', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->jobs = new Google_Service_Genomics_Jobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'cancel' => array( - 'path' => 'jobs/{jobId}/cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'jobs/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'jobs/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->reads = new Google_Service_Genomics_Reads_Resource( - $this, - $this->serviceName, - 'reads', - array( - 'methods' => array( - 'search' => array( - 'path' => 'reads/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->readsets = new Google_Service_Genomics_Readsets_Resource( - $this, - $this->serviceName, - 'readsets', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'readsets/{readsetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'readsetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'readsets/export', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => 'readsets/{readsetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'readsetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'readsets/import', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'readsets/{readsetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'readsetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'readsets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'readsets/{readsetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'readsetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->readsets_coveragebuckets = new Google_Service_Genomics_ReadsetsCoveragebuckets_Resource( - $this, - $this->serviceName, - 'coveragebuckets', - array( - 'methods' => array( - 'list' => array( - 'path' => 'readsets/{readsetId}/coveragebuckets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'readsetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'range.sequenceStart' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'range.sequenceName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'targetBucketWidth' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'range.sequenceEnd' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->variants = new Google_Service_Genomics_Variants_Resource( - $this, - $this->serviceName, - 'variants', - array( - 'methods' => array( - 'create' => array( - 'path' => 'variants', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'variants/{variantId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'variants/export', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => 'variants/{variantId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getSummary' => array( - 'path' => 'variants/summary', - 'httpMethod' => 'GET', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'import' => array( - 'path' => 'variants/import', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'variants/{variantId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'variants/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'variants/{variantId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Genomics service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'genomics/v1beta/'; + $this->version = 'v1beta'; + $this->serviceName = 'genomics'; + + $this->beacons = new Google_Service_Genomics_Beacons_Resource( + $this, + $this->serviceName, + 'beacons', + array( + 'methods' => array( + 'get' => array( + 'path' => 'beacons/{datasetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'allele' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contig' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'position' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->callsets = new Google_Service_Genomics_Callsets_Resource( + $this, + $this->serviceName, + 'callsets', + array( + 'methods' => array( + 'create' => array( + 'path' => 'callsets', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'delete' => array( + 'path' => 'callsets/{callsetId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'callsetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'callsets/{callsetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'callsetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => 'callsets/{callsetId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'callsetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'search' => array( + 'path' => 'callsets/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'update' => array( + 'path' => 'callsets/{callsetId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'callsetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->datasets = new Google_Service_Genomics_Datasets_Resource( + $this, + $this->serviceName, + 'datasets', + array( + 'methods' => array( + 'create' => array( + 'path' => 'datasets', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'delete' => array( + 'path' => 'datasets/{datasetId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'datasets/{datasetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'datasets', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'datasets/{datasetId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'undelete' => array( + 'path' => 'datasets/{datasetId}/undelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'datasets/{datasetId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->experimental_jobs = new Google_Service_Genomics_ExperimentalJobs_Resource( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'create' => array( + 'path' => 'experimental/jobs/create', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->jobs = new Google_Service_Genomics_Jobs_Resource( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'cancel' => array( + 'path' => 'jobs/{jobId}/cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'jobs/{jobId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'search' => array( + 'path' => 'jobs/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->reads = new Google_Service_Genomics_Reads_Resource( + $this, + $this->serviceName, + 'reads', + array( + 'methods' => array( + 'search' => array( + 'path' => 'reads/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->readsets = new Google_Service_Genomics_Readsets_Resource( + $this, + $this->serviceName, + 'readsets', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'readsets/{readsetId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'readsetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'export' => array( + 'path' => 'readsets/export', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'get' => array( + 'path' => 'readsets/{readsetId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'readsetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'import' => array( + 'path' => 'readsets/import', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'patch' => array( + 'path' => 'readsets/{readsetId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'readsetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'search' => array( + 'path' => 'readsets/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'update' => array( + 'path' => 'readsets/{readsetId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'readsetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->readsets_coveragebuckets = new Google_Service_Genomics_ReadsetsCoveragebuckets_Resource( + $this, + $this->serviceName, + 'coveragebuckets', + array( + 'methods' => array( + 'list' => array( + 'path' => 'readsets/{readsetId}/coveragebuckets', + 'httpMethod' => 'GET', + 'parameters' => array( + 'readsetId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'range.sequenceStart' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'range.sequenceName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'targetBucketWidth' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'range.sequenceEnd' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->variants = new Google_Service_Genomics_Variants_Resource( + $this, + $this->serviceName, + 'variants', + array( + 'methods' => array( + 'create' => array( + 'path' => 'variants', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'delete' => array( + 'path' => 'variants/{variantId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'variantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'export' => array( + 'path' => 'variants/export', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'get' => array( + 'path' => 'variants/{variantId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'variantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getSummary' => array( + 'path' => 'variants/summary', + 'httpMethod' => 'GET', + 'parameters' => array( + 'datasetId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'import' => array( + 'path' => 'variants/import', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'patch' => array( + 'path' => 'variants/{variantId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'variantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'search' => array( + 'path' => 'variants/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'update' => array( + 'path' => 'variants/{variantId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'variantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -489,32 +487,30 @@ class Google_Service_Genomics extends Google_Service * $beacons = $genomicsService->beacons; * */ -class Google_Service_Genomics_Beacons_Resource extends Google_Service_Resource -{ +class Google_Service_Genomics_Beacons_Resource extends Google_Service_Resource { - /** - * This is an experimental API that provides a Global Alliance for Genomics and - * Health Beacon. It may change at any time. (beacons.get) - * - * @param string $datasetId - * The ID of the dataset to query over. It must be public. Private datasets will return an - * unauthorized exception. - * @param array $optParams Optional parameters. - * - * @opt_param string allele - * Required. The allele to look for ('A', 'C', 'G' or 'T'). - * @opt_param string contig - * Required. The contig to query over. - * @opt_param string position - * Required. The 1-based position to query at. - * @return Google_Service_Genomics_Beacon - */ - public function get($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Beacon"); - } + /** + * This is an experimental API that provides a Global Alliance for Genomics and + * Health Beacon. It may change at any time. (beacons.get) + * + * @param string $datasetId + * The ID of the dataset to query over. It must be public. Private datasets will return an + * unauthorized exception. + * @param array $optParams Optional parameters. + * + * @opt_param string allele + * Required. The allele to look for ('A', 'C', 'G' or 'T'). + * @opt_param string contig + * Required. The contig to query over. + * @opt_param string position + * Required. The 1-based position to query at. + * @return Google_Service_Genomics_Beacon + */ + public function get($datasetId, $optParams = array()) { + $params = array('datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Beacon"); + } } /** @@ -525,92 +521,90 @@ class Google_Service_Genomics_Beacons_Resource extends Google_Service_Resource * $callsets = $genomicsService->callsets; * */ -class Google_Service_Genomics_Callsets_Resource extends Google_Service_Resource -{ +class Google_Service_Genomics_Callsets_Resource extends Google_Service_Resource { - /** - * Creates a new callset. (callsets.create) - * - * @param Google_Callset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Callset - */ - public function create(Google_Service_Genomics_Callset $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Callset"); - } - /** - * Deletes a callset. (callsets.delete) - * - * @param string $callsetId - * The ID of the callset to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($callsetId, $optParams = array()) - { - $params = array('callsetId' => $callsetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a callset by ID. (callsets.get) - * - * @param string $callsetId - * The ID of the callset. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Callset - */ - public function get($callsetId, $optParams = array()) - { - $params = array('callsetId' => $callsetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Callset"); - } - /** - * Updates a callset. This method supports patch semantics. (callsets.patch) - * - * @param string $callsetId - * The ID of the callset to be updated. - * @param Google_Callset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Callset - */ - public function patch($callsetId, Google_Service_Genomics_Callset $postBody, $optParams = array()) - { - $params = array('callsetId' => $callsetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Callset"); - } - /** - * Gets a list of callsets matching the criteria. (callsets.search) - * - * @param Google_SearchCallsetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchCallsetsResponse - */ - public function search(Google_Service_Genomics_SearchCallsetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchCallsetsResponse"); - } - /** - * Updates a callset. (callsets.update) - * - * @param string $callsetId - * The ID of the callset to be updated. - * @param Google_Callset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Callset - */ - public function update($callsetId, Google_Service_Genomics_Callset $postBody, $optParams = array()) - { - $params = array('callsetId' => $callsetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_Callset"); - } + /** + * Creates a new callset. (callsets.create) + * + * @param Google_Callset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Callset + */ + public function create(Google_Service_Genomics_Callset $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Genomics_Callset"); + } + + /** + * Deletes a callset. (callsets.delete) + * + * @param string $callsetId + * The ID of the callset to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($callsetId, $optParams = array()) { + $params = array('callsetId' => $callsetId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a callset by ID. (callsets.get) + * + * @param string $callsetId + * The ID of the callset. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Callset + */ + public function get($callsetId, $optParams = array()) { + $params = array('callsetId' => $callsetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Callset"); + } + + /** + * Updates a callset. This method supports patch semantics. (callsets.patch) + * + * @param string $callsetId + * The ID of the callset to be updated. + * @param Google_Callset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Callset + */ + public function patch($callsetId, Google_Service_Genomics_Callset $postBody, $optParams = array()) { + $params = array('callsetId' => $callsetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_Callset"); + } + + /** + * Gets a list of callsets matching the criteria. (callsets.search) + * + * @param Google_SearchCallsetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchCallsetsResponse + */ + public function search(Google_Service_Genomics_SearchCallsetsRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchCallsetsResponse"); + } + + /** + * Updates a callset. (callsets.update) + * + * @param string $callsetId + * The ID of the callset to be updated. + * @param Google_Callset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Callset + */ + public function update($callsetId, Google_Service_Genomics_Callset $postBody, $optParams = array()) { + $params = array('callsetId' => $callsetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Genomics_Callset"); + } } /** @@ -621,116 +615,114 @@ class Google_Service_Genomics_Callsets_Resource extends Google_Service_Resource * $datasets = $genomicsService->datasets; * */ -class Google_Service_Genomics_Datasets_Resource extends Google_Service_Resource -{ +class Google_Service_Genomics_Datasets_Resource extends Google_Service_Resource { - /** - * Creates a new dataset. (datasets.create) - * - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function create(Google_Service_Genomics_Dataset $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Dataset"); - } - /** - * Deletes a dataset. (datasets.delete) - * - * @param string $datasetId - * The ID of the dataset to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a dataset by ID. (datasets.get) - * - * @param string $datasetId - * The ID of the dataset. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function get($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Dataset"); - } - /** - * Lists all datasets. (datasets.listDatasets) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of results returned by this request. - * @opt_param string projectId - * Only return datasets which belong to this Google Developers Console project. Only accepts - * project numbers. - * @return Google_Service_Genomics_ListDatasetsResponse - */ - public function listDatasets($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListDatasetsResponse"); - } - /** - * Updates a dataset. This method supports patch semantics. (datasets.patch) - * - * @param string $datasetId - * The ID of the dataset to be updated. - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Dataset"); - } - /** - * Undeletes a dataset by restoring a dataset which was deleted via this API. - * This operation is only possible for a week after the deletion occurred. - * (datasets.undelete) - * - * @param string $datasetId - * The ID of the dataset to be undeleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function undelete($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('undelete', array($params), "Google_Service_Genomics_Dataset"); - } - /** - * Updates a dataset. (datasets.update) - * - * @param string $datasetId - * The ID of the dataset to be updated. - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function update($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_Dataset"); - } + /** + * Creates a new dataset. (datasets.create) + * + * @param Google_Dataset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Dataset + */ + public function create(Google_Service_Genomics_Dataset $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Genomics_Dataset"); + } + + /** + * Deletes a dataset. (datasets.delete) + * + * @param string $datasetId + * The ID of the dataset to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($datasetId, $optParams = array()) { + $params = array('datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a dataset by ID. (datasets.get) + * + * @param string $datasetId + * The ID of the dataset. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Dataset + */ + public function get($datasetId, $optParams = array()) { + $params = array('datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Dataset"); + } + + /** + * Lists all datasets. (datasets.listDatasets) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults + * The maximum number of results returned by this request. + * @opt_param string projectId + * Only return datasets which belong to this Google Developers Console project. Only accepts + * project numbers. + * @return Google_Service_Genomics_ListDatasetsResponse + */ + public function listDatasets($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Genomics_ListDatasetsResponse"); + } + + /** + * Updates a dataset. This method supports patch semantics. (datasets.patch) + * + * @param string $datasetId + * The ID of the dataset to be updated. + * @param Google_Dataset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Dataset + */ + public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) { + $params = array('datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_Dataset"); + } + + /** + * Undeletes a dataset by restoring a dataset which was deleted via this API. + * This operation is only possible for a week after the deletion occurred. + * (datasets.undelete) + * + * @param string $datasetId + * The ID of the dataset to be undeleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Dataset + */ + public function undelete($datasetId, $optParams = array()) { + $params = array('datasetId' => $datasetId); + $params = array_merge($params, $optParams); + return $this->call('undelete', array($params), "Google_Service_Genomics_Dataset"); + } + + /** + * Updates a dataset. (datasets.update) + * + * @param string $datasetId + * The ID of the dataset to be updated. + * @param Google_Dataset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Dataset + */ + public function update($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) { + $params = array('datasetId' => $datasetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Genomics_Dataset"); + } } /** @@ -741,8 +733,7 @@ class Google_Service_Genomics_Datasets_Resource extends Google_Service_Resource * $experimental = $genomicsService->experimental; * */ -class Google_Service_Genomics_Experimental_Resource extends Google_Service_Resource -{ +class Google_Service_Genomics_Experimental_Resource extends Google_Service_Resource { } @@ -754,23 +745,21 @@ class Google_Service_Genomics_Experimental_Resource extends Google_Service_Resou * $jobs = $genomicsService->jobs; * */ -class Google_Service_Genomics_ExperimentalJobs_Resource extends Google_Service_Resource -{ +class Google_Service_Genomics_ExperimentalJobs_Resource extends Google_Service_Resource { - /** - * Creates and asynchronously runs an ad-hoc job. This is an experimental call - * and may be removed or changed at any time. (jobs.create) - * - * @param Google_ExperimentalCreateJobRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ExperimentalCreateJobResponse - */ - public function create(Google_Service_Genomics_ExperimentalCreateJobRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_ExperimentalCreateJobResponse"); - } + /** + * Creates and asynchronously runs an ad-hoc job. This is an experimental call + * and may be removed or changed at any time. (jobs.create) + * + * @param Google_ExperimentalCreateJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_ExperimentalCreateJobResponse + */ + public function create(Google_Service_Genomics_ExperimentalCreateJobRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Genomics_ExperimentalCreateJobResponse"); + } } /** @@ -781,50 +770,48 @@ class Google_Service_Genomics_ExperimentalJobs_Resource extends Google_Service_R * $jobs = $genomicsService->jobs; * */ -class Google_Service_Genomics_Jobs_Resource extends Google_Service_Resource -{ +class Google_Service_Genomics_Jobs_Resource extends Google_Service_Resource { - /** - * Cancels a job by ID. Note that it is possible for partial results to be - * generated and stored for cancelled jobs. (jobs.cancel) - * - * @param string $jobId - * Required. The ID of the job. - * @param array $optParams Optional parameters. - */ - public function cancel($jobId, $optParams = array()) - { - $params = array('jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params)); - } - /** - * Gets a job by ID. (jobs.get) - * - * @param string $jobId - * Required. The ID of the job. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Job - */ - public function get($jobId, $optParams = array()) - { - $params = array('jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Job"); - } - /** - * Gets a list of jobs matching the criteria. (jobs.search) - * - * @param Google_SearchJobsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchJobsResponse - */ - public function search(Google_Service_Genomics_SearchJobsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchJobsResponse"); - } + /** + * Cancels a job by ID. Note that it is possible for partial results to be + * generated and stored for cancelled jobs. (jobs.cancel) + * + * @param string $jobId + * Required. The ID of the job. + * @param array $optParams Optional parameters. + */ + public function cancel($jobId, $optParams = array()) { + $params = array('jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params)); + } + + /** + * Gets a job by ID. (jobs.get) + * + * @param string $jobId + * Required. The ID of the job. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Job + */ + public function get($jobId, $optParams = array()) { + $params = array('jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Job"); + } + + /** + * Gets a list of jobs matching the criteria. (jobs.search) + * + * @param Google_SearchJobsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchJobsResponse + */ + public function search(Google_Service_Genomics_SearchJobsRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchJobsResponse"); + } } /** @@ -835,30 +822,28 @@ class Google_Service_Genomics_Jobs_Resource extends Google_Service_Resource * $reads = $genomicsService->reads; * */ -class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource -{ +class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource { - /** - * Gets a list of reads for one or more readsets. Reads search operates over a - * genomic coordinate space of reference sequence & position defined over the - * reference sequences to which the requested readsets are aligned. If a target - * positional range is specified, search returns all reads whose alignment to - * the reference genome overlap the range. A query which specifies only readset - * IDs yields all reads in those readsets, including unmapped reads. All reads - * returned (including reads on subsequent pages) are ordered by genomic - * coordinate (reference sequence & position). Reads with equivalent genomic - * coordinates are returned in a deterministic order. (reads.search) - * - * @param Google_SearchReadsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReadsResponse - */ - public function search(Google_Service_Genomics_SearchReadsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsResponse"); - } + /** + * Gets a list of reads for one or more readsets. Reads search operates over a + * genomic coordinate space of reference sequence & position defined over the + * reference sequences to which the requested readsets are aligned. If a target + * positional range is specified, search returns all reads whose alignment to + * the reference genome overlap the range. A query which specifies only readset + * IDs yields all reads in those readsets, including unmapped reads. All reads + * returned (including reads on subsequent pages) are ordered by genomic + * coordinate (reference sequence & position). Reads with equivalent genomic + * coordinates are returned in a deterministic order. (reads.search) + * + * @param Google_SearchReadsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchReadsResponse + */ + public function search(Google_Service_Genomics_SearchReadsRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsResponse"); + } } /** @@ -869,115 +854,113 @@ class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource * $readsets = $genomicsService->readsets; * */ -class Google_Service_Genomics_Readsets_Resource extends Google_Service_Resource -{ +class Google_Service_Genomics_Readsets_Resource extends Google_Service_Resource { - /** - * Deletes a readset. (readsets.delete) - * - * @param string $readsetId - * The ID of the readset to be deleted. The caller must have WRITE permissions to the dataset - * associated with this readset. - * @param array $optParams Optional parameters. - */ - public function delete($readsetId, $optParams = array()) - { - $params = array('readsetId' => $readsetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Exports readsets to a BAM file in Google Cloud Storage. Note that currently - * there may be some differences between exported BAM files and the original BAM - * file at the time of import. In particular, comments in the input file header - * will not be preserved, and some custom tags will be converted to strings. - * (readsets.export) - * - * @param Google_ExportReadsetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ExportReadsetsResponse - */ - public function export(Google_Service_Genomics_ExportReadsetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_Genomics_ExportReadsetsResponse"); - } - /** - * Gets a readset by ID. (readsets.get) - * - * @param string $readsetId - * The ID of the readset. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Readset - */ - public function get($readsetId, $optParams = array()) - { - $params = array('readsetId' => $readsetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Readset"); - } - /** - * Creates readsets by asynchronously importing the provided information. Note - * that currently comments in the input file header are not imported and some - * custom tags will be converted to strings, rather than preserving tag types. - * The caller must have WRITE permissions to the dataset. (readsets.import) - * - * @param Google_ImportReadsetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ImportReadsetsResponse - */ - public function import(Google_Service_Genomics_ImportReadsetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Genomics_ImportReadsetsResponse"); - } - /** - * Updates a readset. This method supports patch semantics. (readsets.patch) - * - * @param string $readsetId - * The ID of the readset to be updated. The caller must have WRITE permissions to the dataset - * associated with this readset. - * @param Google_Readset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Readset - */ - public function patch($readsetId, Google_Service_Genomics_Readset $postBody, $optParams = array()) - { - $params = array('readsetId' => $readsetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Readset"); - } - /** - * Gets a list of readsets matching the criteria. (readsets.search) - * - * @param Google_SearchReadsetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReadsetsResponse - */ - public function search(Google_Service_Genomics_SearchReadsetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsetsResponse"); - } - /** - * Updates a readset. (readsets.update) - * - * @param string $readsetId - * The ID of the readset to be updated. The caller must have WRITE permissions to the dataset - * associated with this readset. - * @param Google_Readset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Readset - */ - public function update($readsetId, Google_Service_Genomics_Readset $postBody, $optParams = array()) - { - $params = array('readsetId' => $readsetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_Readset"); - } + /** + * Deletes a readset. (readsets.delete) + * + * @param string $readsetId + * The ID of the readset to be deleted. The caller must have WRITE permissions to the dataset + * associated with this readset. + * @param array $optParams Optional parameters. + */ + public function delete($readsetId, $optParams = array()) { + $params = array('readsetId' => $readsetId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Exports readsets to a BAM file in Google Cloud Storage. Note that currently + * there may be some differences between exported BAM files and the original BAM + * file at the time of import. In particular, comments in the input file header + * will not be preserved, and some custom tags will be converted to strings. + * (readsets.export) + * + * @param Google_ExportReadsetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_ExportReadsetsResponse + */ + public function export(Google_Service_Genomics_ExportReadsetsRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('export', array($params), "Google_Service_Genomics_ExportReadsetsResponse"); + } + + /** + * Gets a readset by ID. (readsets.get) + * + * @param string $readsetId + * The ID of the readset. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Readset + */ + public function get($readsetId, $optParams = array()) { + $params = array('readsetId' => $readsetId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Readset"); + } + + /** + * Creates readsets by asynchronously importing the provided information. Note + * that currently comments in the input file header are not imported and some + * custom tags will be converted to strings, rather than preserving tag types. + * The caller must have WRITE permissions to the dataset. (readsets.import) + * + * @param Google_ImportReadsetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_ImportReadsetsResponse + */ + public function import(Google_Service_Genomics_ImportReadsetsRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('import', array($params), "Google_Service_Genomics_ImportReadsetsResponse"); + } + + /** + * Updates a readset. This method supports patch semantics. (readsets.patch) + * + * @param string $readsetId + * The ID of the readset to be updated. The caller must have WRITE permissions to the dataset + * associated with this readset. + * @param Google_Readset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Readset + */ + public function patch($readsetId, Google_Service_Genomics_Readset $postBody, $optParams = array()) { + $params = array('readsetId' => $readsetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_Readset"); + } + + /** + * Gets a list of readsets matching the criteria. (readsets.search) + * + * @param Google_SearchReadsetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchReadsetsResponse + */ + public function search(Google_Service_Genomics_SearchReadsetsRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsetsResponse"); + } + + /** + * Updates a readset. (readsets.update) + * + * @param string $readsetId + * The ID of the readset to be updated. The caller must have WRITE permissions to the dataset + * associated with this readset. + * @param Google_Readset $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Readset + */ + public function update($readsetId, Google_Service_Genomics_Readset $postBody, $optParams = array()) { + $params = array('readsetId' => $readsetId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Genomics_Readset"); + } } /** @@ -988,50 +971,48 @@ class Google_Service_Genomics_Readsets_Resource extends Google_Service_Resource * $coveragebuckets = $genomicsService->coveragebuckets; * */ -class Google_Service_Genomics_ReadsetsCoveragebuckets_Resource extends Google_Service_Resource -{ +class Google_Service_Genomics_ReadsetsCoveragebuckets_Resource extends Google_Service_Resource { - /** - * Lists fixed width coverage buckets for a readset, each of which correspond to - * a range of a reference sequence. Each bucket summarizes coverage information - * across its corresponding genomic range. Coverage is defined as the number of - * reads which are aligned to a given base in the reference sequence. Coverage - * buckets are available at various bucket widths, enabling various coverage - * "zoom levels". The caller must have READ permissions for the target readset. - * (coveragebuckets.listReadsetsCoveragebuckets) - * - * @param string $readsetId - * Required. The ID of the readset over which coverage is requested. - * @param array $optParams Optional parameters. - * - * @opt_param string range.sequenceStart - * The start position of the range on the reference, 1-based inclusive. If specified, sequenceName - * must also be specified. - * @opt_param string maxResults - * The maximum number of results to return in a single page. If unspecified, defaults to 1024. The - * maximum value is 2048. - * @opt_param string range.sequenceName - * The reference sequence name, for example "chr1", "1", or "chrX". - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string targetBucketWidth - * The desired width of each reported coverage bucket in base pairs. This will be rounded down to - * the nearest precomputed bucket width; the value of which is returned as bucket_width in the - * response. Defaults to infinity (each bucket spans an entire reference sequence) or the length of - * the target range, if specified. The smallest precomputed bucket_width is currently 2048 base - * pairs; this is subject to change. - * @opt_param string range.sequenceEnd - * The end position of the range on the reference, 1-based exclusive. If specified, sequenceName - * must also be specified. - * @return Google_Service_Genomics_ListCoverageBucketsResponse - */ - public function listReadsetsCoveragebuckets($readsetId, $optParams = array()) - { - $params = array('readsetId' => $readsetId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListCoverageBucketsResponse"); - } + /** + * Lists fixed width coverage buckets for a readset, each of which correspond to + * a range of a reference sequence. Each bucket summarizes coverage information + * across its corresponding genomic range. Coverage is defined as the number of + * reads which are aligned to a given base in the reference sequence. Coverage + * buckets are available at various bucket widths, enabling various coverage + * "zoom levels". The caller must have READ permissions for the target readset. + * (coveragebuckets.listReadsetsCoveragebuckets) + * + * @param string $readsetId + * Required. The ID of the readset over which coverage is requested. + * @param array $optParams Optional parameters. + * + * @opt_param string range.sequenceStart + * The start position of the range on the reference, 1-based inclusive. If specified, sequenceName + * must also be specified. + * @opt_param string maxResults + * The maximum number of results to return in a single page. If unspecified, defaults to 1024. The + * maximum value is 2048. + * @opt_param string range.sequenceName + * The reference sequence name, for example "chr1", "1", or "chrX". + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string targetBucketWidth + * The desired width of each reported coverage bucket in base pairs. This will be rounded down to + * the nearest precomputed bucket width; the value of which is returned as bucket_width in the + * response. Defaults to infinity (each bucket spans an entire reference sequence) or the length of + * the target range, if specified. The smallest precomputed bucket_width is currently 2048 base + * pairs; this is subject to change. + * @opt_param string range.sequenceEnd + * The end position of the range on the reference, 1-based exclusive. If specified, sequenceName + * must also be specified. + * @return Google_Service_Genomics_ListCoverageBucketsResponse + */ + public function listReadsetsCoveragebuckets($readsetId, $optParams = array()) { + $params = array('readsetId' => $readsetId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Genomics_ListCoverageBucketsResponse"); + } } /** @@ -1042,2206 +1023,1817 @@ class Google_Service_Genomics_ReadsetsCoveragebuckets_Resource extends Google_Se * $variants = $genomicsService->variants; * */ -class Google_Service_Genomics_Variants_Resource extends Google_Service_Resource -{ +class Google_Service_Genomics_Variants_Resource extends Google_Service_Resource { - /** - * Creates a new variant. (variants.create) - * - * @param Google_Variant $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function create(Google_Service_Genomics_Variant $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Variant"); - } - /** - * Deletes a variant. (variants.delete) - * - * @param string $variantId - * The ID of the variant to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($variantId, $optParams = array()) - { - $params = array('variantId' => $variantId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Exports variant data to an external destination. (variants.export) - * - * @param Google_ExportVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ExportVariantsResponse - */ - public function export(Google_Service_Genomics_ExportVariantsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_Genomics_ExportVariantsResponse"); - } - /** - * Gets a variant by ID. (variants.get) - * - * @param string $variantId - * The ID of the variant. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function get($variantId, $optParams = array()) - { - $params = array('variantId' => $variantId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Variant"); - } - /** - * Gets a summary of all the variant data in a dataset. (variants.getSummary) - * - * @param array $optParams Optional parameters. - * - * @opt_param string datasetId - * Required. The ID of the dataset to get variant summary information for. - * @return Google_Service_Genomics_GetVariantsSummaryResponse - */ - public function getSummary($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getSummary', array($params), "Google_Service_Genomics_GetVariantsSummaryResponse"); - } - /** - * Creates variant data by asynchronously importing the provided information. - * (variants.import) - * - * @param Google_ImportVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ImportVariantsResponse - */ - public function import(Google_Service_Genomics_ImportVariantsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Genomics_ImportVariantsResponse"); - } - /** - * Updates a variant. This method supports patch semantics. (variants.patch) - * - * @param string $variantId - * The ID of the variant to be updated.. - * @param Google_Variant $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function patch($variantId, Google_Service_Genomics_Variant $postBody, $optParams = array()) - { - $params = array('variantId' => $variantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Variant"); - } - /** - * Gets a list of variants matching the criteria. (variants.search) - * - * @param Google_SearchVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchVariantsResponse - */ - public function search(Google_Service_Genomics_SearchVariantsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantsResponse"); - } - /** - * Updates a variant. (variants.update) - * - * @param string $variantId - * The ID of the variant to be updated.. - * @param Google_Variant $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function update($variantId, Google_Service_Genomics_Variant $postBody, $optParams = array()) - { - $params = array('variantId' => $variantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_Variant"); - } + /** + * Creates a new variant. (variants.create) + * + * @param Google_Variant $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Variant + */ + public function create(Google_Service_Genomics_Variant $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Genomics_Variant"); + } + + /** + * Deletes a variant. (variants.delete) + * + * @param string $variantId + * The ID of the variant to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($variantId, $optParams = array()) { + $params = array('variantId' => $variantId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Exports variant data to an external destination. (variants.export) + * + * @param Google_ExportVariantsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_ExportVariantsResponse + */ + public function export(Google_Service_Genomics_ExportVariantsRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('export', array($params), "Google_Service_Genomics_ExportVariantsResponse"); + } + + /** + * Gets a variant by ID. (variants.get) + * + * @param string $variantId + * The ID of the variant. + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Variant + */ + public function get($variantId, $optParams = array()) { + $params = array('variantId' => $variantId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Genomics_Variant"); + } + + /** + * Gets a summary of all the variant data in a dataset. (variants.getSummary) + * + * @param array $optParams Optional parameters. + * + * @opt_param string datasetId + * Required. The ID of the dataset to get variant summary information for. + * @return Google_Service_Genomics_GetVariantsSummaryResponse + */ + public function getSummary($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getSummary', array($params), "Google_Service_Genomics_GetVariantsSummaryResponse"); + } + + /** + * Creates variant data by asynchronously importing the provided information. + * (variants.import) + * + * @param Google_ImportVariantsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_ImportVariantsResponse + */ + public function import(Google_Service_Genomics_ImportVariantsRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('import', array($params), "Google_Service_Genomics_ImportVariantsResponse"); + } + + /** + * Updates a variant. This method supports patch semantics. (variants.patch) + * + * @param string $variantId + * The ID of the variant to be updated.. + * @param Google_Variant $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Variant + */ + public function patch($variantId, Google_Service_Genomics_Variant $postBody, $optParams = array()) { + $params = array('variantId' => $variantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Genomics_Variant"); + } + + /** + * Gets a list of variants matching the criteria. (variants.search) + * + * @param Google_SearchVariantsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_SearchVariantsResponse + */ + public function search(Google_Service_Genomics_SearchVariantsRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantsResponse"); + } + + /** + * Updates a variant. (variants.update) + * + * @param string $variantId + * The ID of the variant to be updated.. + * @param Google_Variant $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Genomics_Variant + */ + public function update($variantId, Google_Service_Genomics_Variant $postBody, $optParams = array()) { + $params = array('variantId' => $variantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Genomics_Variant"); + } } +class Google_Service_Genomics_Beacon extends Google_Model { + public $exists; + public function setExists($exists) { + $this->exists = $exists; + } -class Google_Service_Genomics_Beacon extends Google_Model -{ - public $exists; - - public function setExists($exists) - { - $this->exists = $exists; - } - - public function getExists() - { - return $this->exists; - } + public function getExists() { + return $this->exists; + } } -class Google_Service_Genomics_Call extends Google_Collection -{ - public $callsetId; - public $callsetName; - public $genotype; - public $genotypeLikelihood; - public $info; - public $phaseset; +class Google_Service_Genomics_Call extends Google_Collection { + public $callsetId; + public $callsetName; + public $genotype; + public $genotypeLikelihood; + public $info; + public $phaseset; - public function setCallsetId($callsetId) - { - $this->callsetId = $callsetId; - } + public function setCallsetId($callsetId) { + $this->callsetId = $callsetId; + } - public function getCallsetId() - { - return $this->callsetId; - } + public function getCallsetId() { + return $this->callsetId; + } - public function setCallsetName($callsetName) - { - $this->callsetName = $callsetName; - } + public function setCallsetName($callsetName) { + $this->callsetName = $callsetName; + } - public function getCallsetName() - { - return $this->callsetName; - } + public function getCallsetName() { + return $this->callsetName; + } - public function setGenotype($genotype) - { - $this->genotype = $genotype; - } + public function setGenotype($genotype) { + $this->genotype = $genotype; + } - public function getGenotype() - { - return $this->genotype; - } + public function getGenotype() { + return $this->genotype; + } - public function setGenotypeLikelihood($genotypeLikelihood) - { - $this->genotypeLikelihood = $genotypeLikelihood; - } + public function setGenotypeLikelihood($genotypeLikelihood) { + $this->genotypeLikelihood = $genotypeLikelihood; + } - public function getGenotypeLikelihood() - { - return $this->genotypeLikelihood; - } + public function getGenotypeLikelihood() { + return $this->genotypeLikelihood; + } - public function setInfo($info) - { - $this->info = $info; - } + public function setInfo($info) { + $this->info = $info; + } - public function getInfo() - { - return $this->info; - } + public function getInfo() { + return $this->info; + } - public function setPhaseset($phaseset) - { - $this->phaseset = $phaseset; - } + public function setPhaseset($phaseset) { + $this->phaseset = $phaseset; + } - public function getPhaseset() - { - return $this->phaseset; - } + public function getPhaseset() { + return $this->phaseset; + } } -class Google_Service_Genomics_CallInfo extends Google_Model -{ +class Google_Service_Genomics_CallInfo extends Google_Model { } -class Google_Service_Genomics_Callset extends Google_Model -{ - public $created; - public $datasetId; - public $id; - public $info; - public $name; +class Google_Service_Genomics_Callset extends Google_Model { + public $created; + public $datasetId; + public $id; + public $info; + public $name; - public function setCreated($created) - { - $this->created = $created; - } + public function setCreated($created) { + $this->created = $created; + } - public function getCreated() - { - return $this->created; - } + public function getCreated() { + return $this->created; + } - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } + public function setDatasetId($datasetId) { + $this->datasetId = $datasetId; + } - public function getDatasetId() - { - return $this->datasetId; - } + public function getDatasetId() { + return $this->datasetId; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setInfo($info) - { - $this->info = $info; - } + public function setInfo($info) { + $this->info = $info; + } - public function getInfo() - { - return $this->info; - } + public function getInfo() { + return $this->info; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Genomics_CallsetInfo extends Google_Model -{ +class Google_Service_Genomics_CallsetInfo extends Google_Model { } -class Google_Service_Genomics_ContigBound extends Google_Model -{ - public $contig; - public $upperBound; +class Google_Service_Genomics_ContigBound extends Google_Model { + public $contig; + public $upperBound; - public function setContig($contig) - { - $this->contig = $contig; - } + public function setContig($contig) { + $this->contig = $contig; + } - public function getContig() - { - return $this->contig; - } + public function getContig() { + return $this->contig; + } - public function setUpperBound($upperBound) - { - $this->upperBound = $upperBound; - } + public function setUpperBound($upperBound) { + $this->upperBound = $upperBound; + } - public function getUpperBound() - { - return $this->upperBound; - } + public function getUpperBound() { + return $this->upperBound; + } } -class Google_Service_Genomics_CoverageBucket extends Google_Model -{ - public $meanCoverage; - protected $rangeType = 'Google_Service_Genomics_GenomicRange'; - protected $rangeDataType = ''; +class Google_Service_Genomics_CoverageBucket extends Google_Model { + public $meanCoverage; + protected $rangeType = 'Google_Service_Genomics_GenomicRange'; + protected $rangeDataType = ''; - public function setMeanCoverage($meanCoverage) - { - $this->meanCoverage = $meanCoverage; - } + public function setMeanCoverage($meanCoverage) { + $this->meanCoverage = $meanCoverage; + } - public function getMeanCoverage() - { - return $this->meanCoverage; - } + public function getMeanCoverage() { + return $this->meanCoverage; + } - public function setRange(Google_Service_Genomics_GenomicRange $range) - { - $this->range = $range; - } + public function setRange(Google_Service_Genomics_GenomicRange $range) { + $this->range = $range; + } - public function getRange() - { - return $this->range; - } + public function getRange() { + return $this->range; + } } -class Google_Service_Genomics_Dataset extends Google_Model -{ - public $id; - public $isPublic; - public $name; - public $projectId; +class Google_Service_Genomics_Dataset extends Google_Model { + public $id; + public $isPublic; + public $name; + public $projectId; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setIsPublic($isPublic) - { - $this->isPublic = $isPublic; - } + public function setIsPublic($isPublic) { + $this->isPublic = $isPublic; + } - public function getIsPublic() - { - return $this->isPublic; - } + public function getIsPublic() { + return $this->isPublic; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } } -class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collection -{ - public $align; - public $callVariants; - public $gcsOutputPath; - public $pairedSourceUris; - public $projectId; - public $sourceUris; +class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collection { + public $align; + public $callVariants; + public $gcsOutputPath; + public $pairedSourceUris; + public $projectId; + public $sourceUris; - public function setAlign($align) - { - $this->align = $align; - } + public function setAlign($align) { + $this->align = $align; + } - public function getAlign() - { - return $this->align; - } + public function getAlign() { + return $this->align; + } - public function setCallVariants($callVariants) - { - $this->callVariants = $callVariants; - } + public function setCallVariants($callVariants) { + $this->callVariants = $callVariants; + } - public function getCallVariants() - { - return $this->callVariants; - } + public function getCallVariants() { + return $this->callVariants; + } - public function setGcsOutputPath($gcsOutputPath) - { - $this->gcsOutputPath = $gcsOutputPath; - } + public function setGcsOutputPath($gcsOutputPath) { + $this->gcsOutputPath = $gcsOutputPath; + } - public function getGcsOutputPath() - { - return $this->gcsOutputPath; - } + public function getGcsOutputPath() { + return $this->gcsOutputPath; + } - public function setPairedSourceUris($pairedSourceUris) - { - $this->pairedSourceUris = $pairedSourceUris; - } + public function setPairedSourceUris($pairedSourceUris) { + $this->pairedSourceUris = $pairedSourceUris; + } - public function getPairedSourceUris() - { - return $this->pairedSourceUris; - } + public function getPairedSourceUris() { + return $this->pairedSourceUris; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } + public function setSourceUris($sourceUris) { + $this->sourceUris = $sourceUris; + } - public function getSourceUris() - { - return $this->sourceUris; - } + public function getSourceUris() { + return $this->sourceUris; + } } -class Google_Service_Genomics_ExperimentalCreateJobResponse extends Google_Model -{ - public $jobId; +class Google_Service_Genomics_ExperimentalCreateJobResponse extends Google_Model { + public $jobId; - public function setJobId($jobId) - { - $this->jobId = $jobId; - } + public function setJobId($jobId) { + $this->jobId = $jobId; + } - public function getJobId() - { - return $this->jobId; - } + public function getJobId() { + return $this->jobId; + } } -class Google_Service_Genomics_ExportReadsetsRequest extends Google_Collection -{ - public $exportUri; - public $projectId; - public $readsetIds; +class Google_Service_Genomics_ExportReadsetsRequest extends Google_Collection { + public $exportUri; + public $projectId; + public $readsetIds; - public function setExportUri($exportUri) - { - $this->exportUri = $exportUri; - } + public function setExportUri($exportUri) { + $this->exportUri = $exportUri; + } - public function getExportUri() - { - return $this->exportUri; - } + public function getExportUri() { + return $this->exportUri; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setReadsetIds($readsetIds) - { - $this->readsetIds = $readsetIds; - } + public function setReadsetIds($readsetIds) { + $this->readsetIds = $readsetIds; + } - public function getReadsetIds() - { - return $this->readsetIds; - } + public function getReadsetIds() { + return $this->readsetIds; + } } -class Google_Service_Genomics_ExportReadsetsResponse extends Google_Model -{ - public $jobId; +class Google_Service_Genomics_ExportReadsetsResponse extends Google_Model { + public $jobId; - public function setJobId($jobId) - { - $this->jobId = $jobId; - } + public function setJobId($jobId) { + $this->jobId = $jobId; + } - public function getJobId() - { - return $this->jobId; - } + public function getJobId() { + return $this->jobId; + } } -class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection -{ - public $bigqueryDataset; - public $bigqueryTable; - public $callsetIds; - public $datasetId; - public $format; - public $projectId; +class Google_Service_Genomics_ExportVariantsRequest extends Google_Collection { + public $bigqueryDataset; + public $bigqueryTable; + public $callsetIds; + public $datasetId; + public $format; + public $projectId; - public function setBigqueryDataset($bigqueryDataset) - { - $this->bigqueryDataset = $bigqueryDataset; - } + public function setBigqueryDataset($bigqueryDataset) { + $this->bigqueryDataset = $bigqueryDataset; + } - public function getBigqueryDataset() - { - return $this->bigqueryDataset; - } + public function getBigqueryDataset() { + return $this->bigqueryDataset; + } - public function setBigqueryTable($bigqueryTable) - { - $this->bigqueryTable = $bigqueryTable; - } + public function setBigqueryTable($bigqueryTable) { + $this->bigqueryTable = $bigqueryTable; + } - public function getBigqueryTable() - { - return $this->bigqueryTable; - } + public function getBigqueryTable() { + return $this->bigqueryTable; + } - public function setCallsetIds($callsetIds) - { - $this->callsetIds = $callsetIds; - } + public function setCallsetIds($callsetIds) { + $this->callsetIds = $callsetIds; + } - public function getCallsetIds() - { - return $this->callsetIds; - } + public function getCallsetIds() { + return $this->callsetIds; + } - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } + public function setDatasetId($datasetId) { + $this->datasetId = $datasetId; + } - public function getDatasetId() - { - return $this->datasetId; - } + public function getDatasetId() { + return $this->datasetId; + } - public function setFormat($format) - { - $this->format = $format; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } } -class Google_Service_Genomics_ExportVariantsResponse extends Google_Model -{ - public $jobId; +class Google_Service_Genomics_ExportVariantsResponse extends Google_Model { + public $jobId; - public function setJobId($jobId) - { - $this->jobId = $jobId; - } + public function setJobId($jobId) { + $this->jobId = $jobId; + } - public function getJobId() - { - return $this->jobId; - } + public function getJobId() { + return $this->jobId; + } } -class Google_Service_Genomics_GenomicRange extends Google_Model -{ - public $sequenceEnd; - public $sequenceName; - public $sequenceStart; +class Google_Service_Genomics_GenomicRange extends Google_Model { + public $sequenceEnd; + public $sequenceName; + public $sequenceStart; - public function setSequenceEnd($sequenceEnd) - { - $this->sequenceEnd = $sequenceEnd; - } + public function setSequenceEnd($sequenceEnd) { + $this->sequenceEnd = $sequenceEnd; + } - public function getSequenceEnd() - { - return $this->sequenceEnd; - } + public function getSequenceEnd() { + return $this->sequenceEnd; + } - public function setSequenceName($sequenceName) - { - $this->sequenceName = $sequenceName; - } + public function setSequenceName($sequenceName) { + $this->sequenceName = $sequenceName; + } - public function getSequenceName() - { - return $this->sequenceName; - } + public function getSequenceName() { + return $this->sequenceName; + } - public function setSequenceStart($sequenceStart) - { - $this->sequenceStart = $sequenceStart; - } + public function setSequenceStart($sequenceStart) { + $this->sequenceStart = $sequenceStart; + } - public function getSequenceStart() - { - return $this->sequenceStart; - } + public function getSequenceStart() { + return $this->sequenceStart; + } } -class Google_Service_Genomics_GetVariantsSummaryResponse extends Google_Collection -{ - protected $contigBoundsType = 'Google_Service_Genomics_ContigBound'; - protected $contigBoundsDataType = 'array'; - protected $metadataType = 'Google_Service_Genomics_Metadata'; - protected $metadataDataType = 'array'; +class Google_Service_Genomics_GetVariantsSummaryResponse extends Google_Collection { + protected $contigBoundsType = 'Google_Service_Genomics_ContigBound'; + protected $contigBoundsDataType = 'array'; + protected $metadataType = 'Google_Service_Genomics_Metadata'; + protected $metadataDataType = 'array'; - public function setContigBounds($contigBounds) - { - $this->contigBounds = $contigBounds; - } + public function setContigBounds($contigBounds) { + $this->contigBounds = $contigBounds; + } - public function getContigBounds() - { - return $this->contigBounds; - } + public function getContigBounds() { + return $this->contigBounds; + } - public function setMetadata($metadata) - { - $this->metadata = $metadata; - } + public function setMetadata($metadata) { + $this->metadata = $metadata; + } - public function getMetadata() - { - return $this->metadata; - } + public function getMetadata() { + return $this->metadata; + } } -class Google_Service_Genomics_Header extends Google_Model -{ - public $sortingOrder; - public $version; +class Google_Service_Genomics_Header extends Google_Model { + public $sortingOrder; + public $version; - public function setSortingOrder($sortingOrder) - { - $this->sortingOrder = $sortingOrder; - } + public function setSortingOrder($sortingOrder) { + $this->sortingOrder = $sortingOrder; + } - public function getSortingOrder() - { - return $this->sortingOrder; - } + public function getSortingOrder() { + return $this->sortingOrder; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Genomics_HeaderSection extends Google_Collection -{ - public $comments; - public $fileUri; - public $filename; - protected $headersType = 'Google_Service_Genomics_Header'; - protected $headersDataType = 'array'; - protected $programsType = 'Google_Service_Genomics_Program'; - protected $programsDataType = 'array'; - protected $readGroupsType = 'Google_Service_Genomics_ReadGroup'; - protected $readGroupsDataType = 'array'; - protected $refSequencesType = 'Google_Service_Genomics_ReferenceSequence'; - protected $refSequencesDataType = 'array'; +class Google_Service_Genomics_HeaderSection extends Google_Collection { + public $comments; + public $fileUri; + public $filename; + protected $headersType = 'Google_Service_Genomics_Header'; + protected $headersDataType = 'array'; + protected $programsType = 'Google_Service_Genomics_Program'; + protected $programsDataType = 'array'; + protected $readGroupsType = 'Google_Service_Genomics_ReadGroup'; + protected $readGroupsDataType = 'array'; + protected $refSequencesType = 'Google_Service_Genomics_ReferenceSequence'; + protected $refSequencesDataType = 'array'; - public function setComments($comments) - { - $this->comments = $comments; - } + public function setComments($comments) { + $this->comments = $comments; + } - public function getComments() - { - return $this->comments; - } + public function getComments() { + return $this->comments; + } - public function setFileUri($fileUri) - { - $this->fileUri = $fileUri; - } + public function setFileUri($fileUri) { + $this->fileUri = $fileUri; + } - public function getFileUri() - { - return $this->fileUri; - } + public function getFileUri() { + return $this->fileUri; + } - public function setFilename($filename) - { - $this->filename = $filename; - } + public function setFilename($filename) { + $this->filename = $filename; + } - public function getFilename() - { - return $this->filename; - } + public function getFilename() { + return $this->filename; + } - public function setHeaders($headers) - { - $this->headers = $headers; - } + public function setHeaders($headers) { + $this->headers = $headers; + } - public function getHeaders() - { - return $this->headers; - } + public function getHeaders() { + return $this->headers; + } - public function setPrograms($programs) - { - $this->programs = $programs; - } + public function setPrograms($programs) { + $this->programs = $programs; + } - public function getPrograms() - { - return $this->programs; - } + public function getPrograms() { + return $this->programs; + } - public function setReadGroups($readGroups) - { - $this->readGroups = $readGroups; - } + public function setReadGroups($readGroups) { + $this->readGroups = $readGroups; + } - public function getReadGroups() - { - return $this->readGroups; - } + public function getReadGroups() { + return $this->readGroups; + } - public function setRefSequences($refSequences) - { - $this->refSequences = $refSequences; - } + public function setRefSequences($refSequences) { + $this->refSequences = $refSequences; + } - public function getRefSequences() - { - return $this->refSequences; - } + public function getRefSequences() { + return $this->refSequences; + } } -class Google_Service_Genomics_ImportReadsetsRequest extends Google_Collection -{ - public $datasetId; - public $sourceUris; +class Google_Service_Genomics_ImportReadsetsRequest extends Google_Collection { + public $datasetId; + public $sourceUris; - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } + public function setDatasetId($datasetId) { + $this->datasetId = $datasetId; + } - public function getDatasetId() - { - return $this->datasetId; - } + public function getDatasetId() { + return $this->datasetId; + } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } + public function setSourceUris($sourceUris) { + $this->sourceUris = $sourceUris; + } - public function getSourceUris() - { - return $this->sourceUris; - } + public function getSourceUris() { + return $this->sourceUris; + } } -class Google_Service_Genomics_ImportReadsetsResponse extends Google_Model -{ - public $jobId; +class Google_Service_Genomics_ImportReadsetsResponse extends Google_Model { + public $jobId; - public function setJobId($jobId) - { - $this->jobId = $jobId; - } + public function setJobId($jobId) { + $this->jobId = $jobId; + } - public function getJobId() - { - return $this->jobId; - } + public function getJobId() { + return $this->jobId; + } } -class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection -{ - public $datasetId; - public $sourceUris; +class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection { + public $datasetId; + public $sourceUris; - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } + public function setDatasetId($datasetId) { + $this->datasetId = $datasetId; + } - public function getDatasetId() - { - return $this->datasetId; - } + public function getDatasetId() { + return $this->datasetId; + } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } + public function setSourceUris($sourceUris) { + $this->sourceUris = $sourceUris; + } - public function getSourceUris() - { - return $this->sourceUris; - } + public function getSourceUris() { + return $this->sourceUris; + } } -class Google_Service_Genomics_ImportVariantsResponse extends Google_Model -{ - public $jobId; +class Google_Service_Genomics_ImportVariantsResponse extends Google_Model { + public $jobId; - public function setJobId($jobId) - { - $this->jobId = $jobId; - } + public function setJobId($jobId) { + $this->jobId = $jobId; + } - public function getJobId() - { - return $this->jobId; - } + public function getJobId() { + return $this->jobId; + } } -class Google_Service_Genomics_Job extends Google_Collection -{ - public $created; - public $description; - public $errors; - public $id; - public $importedIds; - public $projectId; - public $status; - public $warnings; +class Google_Service_Genomics_Job extends Google_Collection { + public $created; + public $description; + public $errors; + public $id; + public $importedIds; + public $projectId; + public $status; + public $warnings; - public function setCreated($created) - { - $this->created = $created; - } + public function setCreated($created) { + $this->created = $created; + } - public function getCreated() - { - return $this->created; - } + public function getCreated() { + return $this->created; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setErrors($errors) - { - $this->errors = $errors; - } + public function setErrors($errors) { + $this->errors = $errors; + } - public function getErrors() - { - return $this->errors; - } + public function getErrors() { + return $this->errors; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImportedIds($importedIds) - { - $this->importedIds = $importedIds; - } + public function setImportedIds($importedIds) { + $this->importedIds = $importedIds; + } - public function getImportedIds() - { - return $this->importedIds; - } + public function getImportedIds() { + return $this->importedIds; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } + public function setWarnings($warnings) { + $this->warnings = $warnings; + } - public function getWarnings() - { - return $this->warnings; - } + public function getWarnings() { + return $this->warnings; + } } -class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection -{ - public $bucketWidth; - protected $coverageBucketsType = 'Google_Service_Genomics_CoverageBucket'; - protected $coverageBucketsDataType = 'array'; - public $nextPageToken; +class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection { + public $bucketWidth; + protected $coverageBucketsType = 'Google_Service_Genomics_CoverageBucket'; + protected $coverageBucketsDataType = 'array'; + public $nextPageToken; - public function setBucketWidth($bucketWidth) - { - $this->bucketWidth = $bucketWidth; - } + public function setBucketWidth($bucketWidth) { + $this->bucketWidth = $bucketWidth; + } - public function getBucketWidth() - { - return $this->bucketWidth; - } + public function getBucketWidth() { + return $this->bucketWidth; + } - public function setCoverageBuckets($coverageBuckets) - { - $this->coverageBuckets = $coverageBuckets; - } + public function setCoverageBuckets($coverageBuckets) { + $this->coverageBuckets = $coverageBuckets; + } - public function getCoverageBuckets() - { - return $this->coverageBuckets; - } + public function getCoverageBuckets() { + return $this->coverageBuckets; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection -{ - protected $datasetsType = 'Google_Service_Genomics_Dataset'; - protected $datasetsDataType = 'array'; - public $nextPageToken; +class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection { + protected $datasetsType = 'Google_Service_Genomics_Dataset'; + protected $datasetsDataType = 'array'; + public $nextPageToken; - public function setDatasets($datasets) - { - $this->datasets = $datasets; - } + public function setDatasets($datasets) { + $this->datasets = $datasets; + } - public function getDatasets() - { - return $this->datasets; - } + public function getDatasets() { + return $this->datasets; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Genomics_Metadata extends Google_Model -{ - public $description; - public $id; - public $info; - public $key; - public $number; - public $type; - public $value; +class Google_Service_Genomics_Metadata extends Google_Model { + public $description; + public $id; + public $info; + public $key; + public $number; + public $type; + public $value; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setInfo($info) - { - $this->info = $info; - } + public function setInfo($info) { + $this->info = $info; + } - public function getInfo() - { - return $this->info; - } + public function getInfo() { + return $this->info; + } - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setNumber($number) - { - $this->number = $number; - } + public function setNumber($number) { + $this->number = $number; + } - public function getNumber() - { - return $this->number; - } + public function getNumber() { + return $this->number; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Genomics_MetadataInfo extends Google_Model -{ +class Google_Service_Genomics_MetadataInfo extends Google_Model { } -class Google_Service_Genomics_Program extends Google_Model -{ - public $commandLine; - public $id; - public $name; - public $prevProgramId; - public $version; +class Google_Service_Genomics_Program extends Google_Model { + public $commandLine; + public $id; + public $name; + public $prevProgramId; + public $version; - public function setCommandLine($commandLine) - { - $this->commandLine = $commandLine; - } + public function setCommandLine($commandLine) { + $this->commandLine = $commandLine; + } - public function getCommandLine() - { - return $this->commandLine; - } + public function getCommandLine() { + return $this->commandLine; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPrevProgramId($prevProgramId) - { - $this->prevProgramId = $prevProgramId; - } + public function setPrevProgramId($prevProgramId) { + $this->prevProgramId = $prevProgramId; + } - public function getPrevProgramId() - { - return $this->prevProgramId; - } + public function getPrevProgramId() { + return $this->prevProgramId; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Genomics_Read extends Google_Model -{ - public $alignedBases; - public $baseQuality; - public $cigar; - public $flags; - public $id; - public $mappingQuality; - public $matePosition; - public $mateReferenceSequenceName; - public $name; - public $originalBases; - public $position; - public $readsetId; - public $referenceSequenceName; - public $tags; - public $templateLength; +class Google_Service_Genomics_Read extends Google_Model { + public $alignedBases; + public $baseQuality; + public $cigar; + public $flags; + public $id; + public $mappingQuality; + public $matePosition; + public $mateReferenceSequenceName; + public $name; + public $originalBases; + public $position; + public $readsetId; + public $referenceSequenceName; + public $tags; + public $templateLength; - public function setAlignedBases($alignedBases) - { - $this->alignedBases = $alignedBases; - } + public function setAlignedBases($alignedBases) { + $this->alignedBases = $alignedBases; + } - public function getAlignedBases() - { - return $this->alignedBases; - } + public function getAlignedBases() { + return $this->alignedBases; + } - public function setBaseQuality($baseQuality) - { - $this->baseQuality = $baseQuality; - } + public function setBaseQuality($baseQuality) { + $this->baseQuality = $baseQuality; + } - public function getBaseQuality() - { - return $this->baseQuality; - } + public function getBaseQuality() { + return $this->baseQuality; + } - public function setCigar($cigar) - { - $this->cigar = $cigar; - } + public function setCigar($cigar) { + $this->cigar = $cigar; + } - public function getCigar() - { - return $this->cigar; - } + public function getCigar() { + return $this->cigar; + } - public function setFlags($flags) - { - $this->flags = $flags; - } + public function setFlags($flags) { + $this->flags = $flags; + } - public function getFlags() - { - return $this->flags; - } + public function getFlags() { + return $this->flags; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setMappingQuality($mappingQuality) - { - $this->mappingQuality = $mappingQuality; - } + public function setMappingQuality($mappingQuality) { + $this->mappingQuality = $mappingQuality; + } - public function getMappingQuality() - { - return $this->mappingQuality; - } + public function getMappingQuality() { + return $this->mappingQuality; + } - public function setMatePosition($matePosition) - { - $this->matePosition = $matePosition; - } + public function setMatePosition($matePosition) { + $this->matePosition = $matePosition; + } - public function getMatePosition() - { - return $this->matePosition; - } + public function getMatePosition() { + return $this->matePosition; + } - public function setMateReferenceSequenceName($mateReferenceSequenceName) - { - $this->mateReferenceSequenceName = $mateReferenceSequenceName; - } + public function setMateReferenceSequenceName($mateReferenceSequenceName) { + $this->mateReferenceSequenceName = $mateReferenceSequenceName; + } - public function getMateReferenceSequenceName() - { - return $this->mateReferenceSequenceName; - } + public function getMateReferenceSequenceName() { + return $this->mateReferenceSequenceName; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOriginalBases($originalBases) - { - $this->originalBases = $originalBases; - } + public function setOriginalBases($originalBases) { + $this->originalBases = $originalBases; + } - public function getOriginalBases() - { - return $this->originalBases; - } + public function getOriginalBases() { + return $this->originalBases; + } - public function setPosition($position) - { - $this->position = $position; - } + public function setPosition($position) { + $this->position = $position; + } - public function getPosition() - { - return $this->position; - } + public function getPosition() { + return $this->position; + } - public function setReadsetId($readsetId) - { - $this->readsetId = $readsetId; - } + public function setReadsetId($readsetId) { + $this->readsetId = $readsetId; + } - public function getReadsetId() - { - return $this->readsetId; - } + public function getReadsetId() { + return $this->readsetId; + } - public function setReferenceSequenceName($referenceSequenceName) - { - $this->referenceSequenceName = $referenceSequenceName; - } + public function setReferenceSequenceName($referenceSequenceName) { + $this->referenceSequenceName = $referenceSequenceName; + } - public function getReferenceSequenceName() - { - return $this->referenceSequenceName; - } + public function getReferenceSequenceName() { + return $this->referenceSequenceName; + } - public function setTags($tags) - { - $this->tags = $tags; - } + public function setTags($tags) { + $this->tags = $tags; + } - public function getTags() - { - return $this->tags; - } + public function getTags() { + return $this->tags; + } - public function setTemplateLength($templateLength) - { - $this->templateLength = $templateLength; - } + public function setTemplateLength($templateLength) { + $this->templateLength = $templateLength; + } - public function getTemplateLength() - { - return $this->templateLength; - } + public function getTemplateLength() { + return $this->templateLength; + } } -class Google_Service_Genomics_ReadGroup extends Google_Model -{ - public $date; - public $description; - public $flowOrder; - public $id; - public $keySequence; - public $library; - public $platformUnit; - public $predictedInsertSize; - public $processingProgram; - public $sample; - public $sequencingCenterName; - public $sequencingTechnology; +class Google_Service_Genomics_ReadGroup extends Google_Model { + public $date; + public $description; + public $flowOrder; + public $id; + public $keySequence; + public $library; + public $platformUnit; + public $predictedInsertSize; + public $processingProgram; + public $sample; + public $sequencingCenterName; + public $sequencingTechnology; - public function setDate($date) - { - $this->date = $date; - } + public function setDate($date) { + $this->date = $date; + } - public function getDate() - { - return $this->date; - } + public function getDate() { + return $this->date; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setFlowOrder($flowOrder) - { - $this->flowOrder = $flowOrder; - } + public function setFlowOrder($flowOrder) { + $this->flowOrder = $flowOrder; + } - public function getFlowOrder() - { - return $this->flowOrder; - } + public function getFlowOrder() { + return $this->flowOrder; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKeySequence($keySequence) - { - $this->keySequence = $keySequence; - } + public function setKeySequence($keySequence) { + $this->keySequence = $keySequence; + } - public function getKeySequence() - { - return $this->keySequence; - } + public function getKeySequence() { + return $this->keySequence; + } - public function setLibrary($library) - { - $this->library = $library; - } + public function setLibrary($library) { + $this->library = $library; + } - public function getLibrary() - { - return $this->library; - } + public function getLibrary() { + return $this->library; + } - public function setPlatformUnit($platformUnit) - { - $this->platformUnit = $platformUnit; - } + public function setPlatformUnit($platformUnit) { + $this->platformUnit = $platformUnit; + } - public function getPlatformUnit() - { - return $this->platformUnit; - } + public function getPlatformUnit() { + return $this->platformUnit; + } - public function setPredictedInsertSize($predictedInsertSize) - { - $this->predictedInsertSize = $predictedInsertSize; - } + public function setPredictedInsertSize($predictedInsertSize) { + $this->predictedInsertSize = $predictedInsertSize; + } - public function getPredictedInsertSize() - { - return $this->predictedInsertSize; - } + public function getPredictedInsertSize() { + return $this->predictedInsertSize; + } - public function setProcessingProgram($processingProgram) - { - $this->processingProgram = $processingProgram; - } + public function setProcessingProgram($processingProgram) { + $this->processingProgram = $processingProgram; + } - public function getProcessingProgram() - { - return $this->processingProgram; - } + public function getProcessingProgram() { + return $this->processingProgram; + } - public function setSample($sample) - { - $this->sample = $sample; - } + public function setSample($sample) { + $this->sample = $sample; + } - public function getSample() - { - return $this->sample; - } + public function getSample() { + return $this->sample; + } - public function setSequencingCenterName($sequencingCenterName) - { - $this->sequencingCenterName = $sequencingCenterName; - } + public function setSequencingCenterName($sequencingCenterName) { + $this->sequencingCenterName = $sequencingCenterName; + } - public function getSequencingCenterName() - { - return $this->sequencingCenterName; - } + public function getSequencingCenterName() { + return $this->sequencingCenterName; + } - public function setSequencingTechnology($sequencingTechnology) - { - $this->sequencingTechnology = $sequencingTechnology; - } + public function setSequencingTechnology($sequencingTechnology) { + $this->sequencingTechnology = $sequencingTechnology; + } - public function getSequencingTechnology() - { - return $this->sequencingTechnology; - } + public function getSequencingTechnology() { + return $this->sequencingTechnology; + } } -class Google_Service_Genomics_ReadTags extends Google_Model -{ +class Google_Service_Genomics_ReadTags extends Google_Model { } -class Google_Service_Genomics_Readset extends Google_Collection -{ - public $datasetId; - protected $fileDataType = 'Google_Service_Genomics_HeaderSection'; - protected $fileDataDataType = 'array'; - public $id; - public $name; +class Google_Service_Genomics_Readset extends Google_Collection { + public $datasetId; + protected $fileDataType = 'Google_Service_Genomics_HeaderSection'; + protected $fileDataDataType = 'array'; + public $id; + public $name; - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } + public function setDatasetId($datasetId) { + $this->datasetId = $datasetId; + } - public function getDatasetId() - { - return $this->datasetId; - } + public function getDatasetId() { + return $this->datasetId; + } - public function setFileData($fileData) - { - $this->fileData = $fileData; - } + public function setFileData($fileData) { + $this->fileData = $fileData; + } - public function getFileData() - { - return $this->fileData; - } + public function getFileData() { + return $this->fileData; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Genomics_ReferenceSequence extends Google_Model -{ - public $assemblyId; - public $length; - public $md5Checksum; - public $name; - public $species; - public $uri; +class Google_Service_Genomics_ReferenceSequence extends Google_Model { + public $assemblyId; + public $length; + public $md5Checksum; + public $name; + public $species; + public $uri; - public function setAssemblyId($assemblyId) - { - $this->assemblyId = $assemblyId; - } + public function setAssemblyId($assemblyId) { + $this->assemblyId = $assemblyId; + } - public function getAssemblyId() - { - return $this->assemblyId; - } + public function getAssemblyId() { + return $this->assemblyId; + } - public function setLength($length) - { - $this->length = $length; - } + public function setLength($length) { + $this->length = $length; + } - public function getLength() - { - return $this->length; - } + public function getLength() { + return $this->length; + } - public function setMd5Checksum($md5Checksum) - { - $this->md5Checksum = $md5Checksum; - } + public function setMd5Checksum($md5Checksum) { + $this->md5Checksum = $md5Checksum; + } - public function getMd5Checksum() - { - return $this->md5Checksum; - } + public function getMd5Checksum() { + return $this->md5Checksum; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setSpecies($species) - { - $this->species = $species; - } + public function setSpecies($species) { + $this->species = $species; + } - public function getSpecies() - { - return $this->species; - } + public function getSpecies() { + return $this->species; + } - public function setUri($uri) - { - $this->uri = $uri; - } + public function setUri($uri) { + $this->uri = $uri; + } - public function getUri() - { - return $this->uri; - } + public function getUri() { + return $this->uri; + } } -class Google_Service_Genomics_SearchCallsetsRequest extends Google_Collection -{ - public $datasetIds; - public $maxResults; - public $name; - public $pageToken; +class Google_Service_Genomics_SearchCallsetsRequest extends Google_Collection { + public $datasetIds; + public $maxResults; + public $name; + public $pageToken; - public function setDatasetIds($datasetIds) - { - $this->datasetIds = $datasetIds; - } + public function setDatasetIds($datasetIds) { + $this->datasetIds = $datasetIds; + } - public function getDatasetIds() - { - return $this->datasetIds; - } + public function getDatasetIds() { + return $this->datasetIds; + } - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } + public function setMaxResults($maxResults) { + $this->maxResults = $maxResults; + } - public function getMaxResults() - { - return $this->maxResults; - } + public function getMaxResults() { + return $this->maxResults; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } + public function setPageToken($pageToken) { + $this->pageToken = $pageToken; + } - public function getPageToken() - { - return $this->pageToken; - } + public function getPageToken() { + return $this->pageToken; + } } -class Google_Service_Genomics_SearchCallsetsResponse extends Google_Collection -{ - protected $callsetsType = 'Google_Service_Genomics_Callset'; - protected $callsetsDataType = 'array'; - public $nextPageToken; +class Google_Service_Genomics_SearchCallsetsResponse extends Google_Collection { + protected $callsetsType = 'Google_Service_Genomics_Callset'; + protected $callsetsDataType = 'array'; + public $nextPageToken; - public function setCallsets($callsets) - { - $this->callsets = $callsets; - } + public function setCallsets($callsets) { + $this->callsets = $callsets; + } - public function getCallsets() - { - return $this->callsets; - } + public function getCallsets() { + return $this->callsets; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Genomics_SearchJobsRequest extends Google_Collection -{ - public $createdAfter; - public $createdBefore; - public $maxResults; - public $pageToken; - public $projectId; - public $status; +class Google_Service_Genomics_SearchJobsRequest extends Google_Collection { + public $createdAfter; + public $createdBefore; + public $maxResults; + public $pageToken; + public $projectId; + public $status; - public function setCreatedAfter($createdAfter) - { - $this->createdAfter = $createdAfter; - } + public function setCreatedAfter($createdAfter) { + $this->createdAfter = $createdAfter; + } - public function getCreatedAfter() - { - return $this->createdAfter; - } + public function getCreatedAfter() { + return $this->createdAfter; + } - public function setCreatedBefore($createdBefore) - { - $this->createdBefore = $createdBefore; - } + public function setCreatedBefore($createdBefore) { + $this->createdBefore = $createdBefore; + } - public function getCreatedBefore() - { - return $this->createdBefore; - } + public function getCreatedBefore() { + return $this->createdBefore; + } - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } + public function setMaxResults($maxResults) { + $this->maxResults = $maxResults; + } - public function getMaxResults() - { - return $this->maxResults; - } + public function getMaxResults() { + return $this->maxResults; + } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } + public function setPageToken($pageToken) { + $this->pageToken = $pageToken; + } - public function getPageToken() - { - return $this->pageToken; - } + public function getPageToken() { + return $this->pageToken; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_Genomics_SearchJobsResponse extends Google_Collection -{ - protected $jobsType = 'Google_Service_Genomics_Job'; - protected $jobsDataType = 'array'; - public $nextPageToken; +class Google_Service_Genomics_SearchJobsResponse extends Google_Collection { + protected $jobsType = 'Google_Service_Genomics_Job'; + protected $jobsDataType = 'array'; + public $nextPageToken; - public function setJobs($jobs) - { - $this->jobs = $jobs; - } + public function setJobs($jobs) { + $this->jobs = $jobs; + } - public function getJobs() - { - return $this->jobs; - } + public function getJobs() { + return $this->jobs; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Genomics_SearchReadsRequest extends Google_Collection -{ - public $maxResults; - public $pageToken; - public $readsetIds; - public $sequenceEnd; - public $sequenceName; - public $sequenceStart; +class Google_Service_Genomics_SearchReadsRequest extends Google_Collection { + public $maxResults; + public $pageToken; + public $readsetIds; + public $sequenceEnd; + public $sequenceName; + public $sequenceStart; - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } + public function setMaxResults($maxResults) { + $this->maxResults = $maxResults; + } - public function getMaxResults() - { - return $this->maxResults; - } + public function getMaxResults() { + return $this->maxResults; + } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } + public function setPageToken($pageToken) { + $this->pageToken = $pageToken; + } - public function getPageToken() - { - return $this->pageToken; - } + public function getPageToken() { + return $this->pageToken; + } - public function setReadsetIds($readsetIds) - { - $this->readsetIds = $readsetIds; - } + public function setReadsetIds($readsetIds) { + $this->readsetIds = $readsetIds; + } - public function getReadsetIds() - { - return $this->readsetIds; - } + public function getReadsetIds() { + return $this->readsetIds; + } - public function setSequenceEnd($sequenceEnd) - { - $this->sequenceEnd = $sequenceEnd; - } + public function setSequenceEnd($sequenceEnd) { + $this->sequenceEnd = $sequenceEnd; + } - public function getSequenceEnd() - { - return $this->sequenceEnd; - } + public function getSequenceEnd() { + return $this->sequenceEnd; + } - public function setSequenceName($sequenceName) - { - $this->sequenceName = $sequenceName; - } + public function setSequenceName($sequenceName) { + $this->sequenceName = $sequenceName; + } - public function getSequenceName() - { - return $this->sequenceName; - } + public function getSequenceName() { + return $this->sequenceName; + } - public function setSequenceStart($sequenceStart) - { - $this->sequenceStart = $sequenceStart; - } + public function setSequenceStart($sequenceStart) { + $this->sequenceStart = $sequenceStart; + } - public function getSequenceStart() - { - return $this->sequenceStart; - } + public function getSequenceStart() { + return $this->sequenceStart; + } } -class Google_Service_Genomics_SearchReadsResponse extends Google_Collection -{ - public $nextPageToken; - protected $readsType = 'Google_Service_Genomics_Read'; - protected $readsDataType = 'array'; +class Google_Service_Genomics_SearchReadsResponse extends Google_Collection { + public $nextPageToken; + protected $readsType = 'Google_Service_Genomics_Read'; + protected $readsDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setReads($reads) - { - $this->reads = $reads; - } + public function setReads($reads) { + $this->reads = $reads; + } - public function getReads() - { - return $this->reads; - } + public function getReads() { + return $this->reads; + } } -class Google_Service_Genomics_SearchReadsetsRequest extends Google_Collection -{ - public $datasetIds; - public $maxResults; - public $name; - public $pageToken; +class Google_Service_Genomics_SearchReadsetsRequest extends Google_Collection { + public $datasetIds; + public $maxResults; + public $name; + public $pageToken; - public function setDatasetIds($datasetIds) - { - $this->datasetIds = $datasetIds; - } + public function setDatasetIds($datasetIds) { + $this->datasetIds = $datasetIds; + } - public function getDatasetIds() - { - return $this->datasetIds; - } + public function getDatasetIds() { + return $this->datasetIds; + } - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } + public function setMaxResults($maxResults) { + $this->maxResults = $maxResults; + } - public function getMaxResults() - { - return $this->maxResults; - } + public function getMaxResults() { + return $this->maxResults; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } + public function setPageToken($pageToken) { + $this->pageToken = $pageToken; + } - public function getPageToken() - { - return $this->pageToken; - } + public function getPageToken() { + return $this->pageToken; + } } -class Google_Service_Genomics_SearchReadsetsResponse extends Google_Collection -{ - public $nextPageToken; - protected $readsetsType = 'Google_Service_Genomics_Readset'; - protected $readsetsDataType = 'array'; +class Google_Service_Genomics_SearchReadsetsResponse extends Google_Collection { + public $nextPageToken; + protected $readsetsType = 'Google_Service_Genomics_Readset'; + protected $readsetsDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setReadsets($readsets) - { - $this->readsets = $readsets; - } + public function setReadsets($readsets) { + $this->readsets = $readsets; + } - public function getReadsets() - { - return $this->readsets; - } + public function getReadsets() { + return $this->readsets; + } } -class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection -{ - public $callsetIds; - public $callsetNames; - public $contig; - public $datasetId; - public $endPosition; - public $maxResults; - public $pageToken; - public $startPosition; - public $variantName; +class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection { + public $callsetIds; + public $callsetNames; + public $contig; + public $datasetId; + public $endPosition; + public $maxResults; + public $pageToken; + public $startPosition; + public $variantName; - public function setCallsetIds($callsetIds) - { - $this->callsetIds = $callsetIds; - } + public function setCallsetIds($callsetIds) { + $this->callsetIds = $callsetIds; + } - public function getCallsetIds() - { - return $this->callsetIds; - } + public function getCallsetIds() { + return $this->callsetIds; + } - public function setCallsetNames($callsetNames) - { - $this->callsetNames = $callsetNames; - } + public function setCallsetNames($callsetNames) { + $this->callsetNames = $callsetNames; + } - public function getCallsetNames() - { - return $this->callsetNames; - } + public function getCallsetNames() { + return $this->callsetNames; + } - public function setContig($contig) - { - $this->contig = $contig; - } + public function setContig($contig) { + $this->contig = $contig; + } - public function getContig() - { - return $this->contig; - } + public function getContig() { + return $this->contig; + } - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } + public function setDatasetId($datasetId) { + $this->datasetId = $datasetId; + } - public function getDatasetId() - { - return $this->datasetId; - } + public function getDatasetId() { + return $this->datasetId; + } - public function setEndPosition($endPosition) - { - $this->endPosition = $endPosition; - } + public function setEndPosition($endPosition) { + $this->endPosition = $endPosition; + } - public function getEndPosition() - { - return $this->endPosition; - } + public function getEndPosition() { + return $this->endPosition; + } - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } + public function setMaxResults($maxResults) { + $this->maxResults = $maxResults; + } - public function getMaxResults() - { - return $this->maxResults; - } + public function getMaxResults() { + return $this->maxResults; + } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } + public function setPageToken($pageToken) { + $this->pageToken = $pageToken; + } - public function getPageToken() - { - return $this->pageToken; - } + public function getPageToken() { + return $this->pageToken; + } - public function setStartPosition($startPosition) - { - $this->startPosition = $startPosition; - } + public function setStartPosition($startPosition) { + $this->startPosition = $startPosition; + } - public function getStartPosition() - { - return $this->startPosition; - } + public function getStartPosition() { + return $this->startPosition; + } - public function setVariantName($variantName) - { - $this->variantName = $variantName; - } + public function setVariantName($variantName) { + $this->variantName = $variantName; + } - public function getVariantName() - { - return $this->variantName; - } + public function getVariantName() { + return $this->variantName; + } } -class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection -{ - public $nextPageToken; - protected $variantsType = 'Google_Service_Genomics_Variant'; - protected $variantsDataType = 'array'; +class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection { + public $nextPageToken; + protected $variantsType = 'Google_Service_Genomics_Variant'; + protected $variantsDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setVariants($variants) - { - $this->variants = $variants; - } + public function setVariants($variants) { + $this->variants = $variants; + } - public function getVariants() - { - return $this->variants; - } + public function getVariants() { + return $this->variants; + } } -class Google_Service_Genomics_Variant extends Google_Collection -{ - public $alternateBases; - protected $callsType = 'Google_Service_Genomics_Call'; - protected $callsDataType = 'array'; - public $contig; - public $created; - public $datasetId; - public $end; - public $id; - public $info; - public $names; - public $position; - public $referenceBases; +class Google_Service_Genomics_Variant extends Google_Collection { + public $alternateBases; + protected $callsType = 'Google_Service_Genomics_Call'; + protected $callsDataType = 'array'; + public $contig; + public $created; + public $datasetId; + public $end; + public $id; + public $info; + public $names; + public $position; + public $referenceBases; - public function setAlternateBases($alternateBases) - { - $this->alternateBases = $alternateBases; - } + public function setAlternateBases($alternateBases) { + $this->alternateBases = $alternateBases; + } - public function getAlternateBases() - { - return $this->alternateBases; - } + public function getAlternateBases() { + return $this->alternateBases; + } - public function setCalls($calls) - { - $this->calls = $calls; - } + public function setCalls($calls) { + $this->calls = $calls; + } - public function getCalls() - { - return $this->calls; - } + public function getCalls() { + return $this->calls; + } - public function setContig($contig) - { - $this->contig = $contig; - } + public function setContig($contig) { + $this->contig = $contig; + } - public function getContig() - { - return $this->contig; - } + public function getContig() { + return $this->contig; + } - public function setCreated($created) - { - $this->created = $created; - } + public function setCreated($created) { + $this->created = $created; + } - public function getCreated() - { - return $this->created; - } + public function getCreated() { + return $this->created; + } - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } + public function setDatasetId($datasetId) { + $this->datasetId = $datasetId; + } - public function getDatasetId() - { - return $this->datasetId; - } + public function getDatasetId() { + return $this->datasetId; + } - public function setEnd($end) - { - $this->end = $end; - } + public function setEnd($end) { + $this->end = $end; + } - public function getEnd() - { - return $this->end; - } + public function getEnd() { + return $this->end; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setInfo($info) - { - $this->info = $info; - } + public function setInfo($info) { + $this->info = $info; + } - public function getInfo() - { - return $this->info; - } + public function getInfo() { + return $this->info; + } - public function setNames($names) - { - $this->names = $names; - } + public function setNames($names) { + $this->names = $names; + } - public function getNames() - { - return $this->names; - } + public function getNames() { + return $this->names; + } - public function setPosition($position) - { - $this->position = $position; - } + public function setPosition($position) { + $this->position = $position; + } - public function getPosition() - { - return $this->position; - } + public function getPosition() { + return $this->position; + } - public function setReferenceBases($referenceBases) - { - $this->referenceBases = $referenceBases; - } + public function setReferenceBases($referenceBases) { + $this->referenceBases = $referenceBases; + } - public function getReferenceBases() - { - return $this->referenceBases; - } + public function getReferenceBases() { + return $this->referenceBases; + } } -class Google_Service_Genomics_VariantInfo extends Google_Model -{ +class Google_Service_Genomics_VariantInfo extends Google_Model { } diff --git a/oauth/Google/Service/Gmail.php b/oauth/Google/Service/Gmail.php index aec364d..3e40477 100644 --- a/oauth/Google/Service/Gmail.php +++ b/oauth/Google/Service/Gmail.php @@ -29,557 +29,555 @@ * * @author Google, Inc. */ -class Google_Service_Gmail extends Google_Service -{ - /** View and manage your mail. */ - const MAIL_GOOGLE_COM = "https://mail.google.com"; - /** Manage drafts and send emails. */ - const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; - /** View and modify but not delete your email. */ - const GMAIL_MODIFY = "https://www.googleapis.com/auth/gmail.modify"; - /** View your emails messages and settings. */ - const GMAIL_READONLY = "https://www.googleapis.com/auth/gmail.readonly"; +class Google_Service_Gmail extends Google_Service { + /** View and manage your mail. */ + const MAIL_GOOGLE_COM = "https://mail.google.com"; + /** Manage drafts and send emails. */ + const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; + /** View and modify but not delete your email. */ + const GMAIL_MODIFY = "https://www.googleapis.com/auth/gmail.modify"; + /** View your emails messages and settings. */ + const GMAIL_READONLY = "https://www.googleapis.com/auth/gmail.readonly"; - public $users_drafts; - public $users_history; - public $users_labels; - public $users_messages; - public $users_messages_attachments; - public $users_threads; - + public $users_drafts; + public $users_history; + public $users_labels; + public $users_messages; + public $users_messages_attachments; + public $users_threads; - /** - * Constructs the internal representation of the Gmail service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'gmail/v1/users/'; - $this->version = 'v1'; - $this->serviceName = 'gmail'; - $this->users_drafts = new Google_Service_Gmail_UsersDrafts_Resource( - $this, - $this->serviceName, - 'drafts', - array( - 'methods' => array( - 'create' => array( - 'path' => '{userId}/drafts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{userId}/drafts/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{userId}/drafts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => '{userId}/drafts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'send' => array( - 'path' => '{userId}/drafts/send', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{userId}/drafts/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_history = new Google_Service_Gmail_UsersHistory_Resource( - $this, - $this->serviceName, - 'history', - array( - 'methods' => array( - 'list' => array( - 'path' => '{userId}/history', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'labelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'startHistoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->users_labels = new Google_Service_Gmail_UsersLabels_Resource( - $this, - $this->serviceName, - 'labels', - array( - 'methods' => array( - 'create' => array( - 'path' => '{userId}/labels', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{userId}/labels/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{userId}/labels/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{userId}/labels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{userId}/labels/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{userId}/labels/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_messages = new Google_Service_Gmail_UsersMessages_Resource( - $this, - $this->serviceName, - 'messages', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{userId}/messages/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{userId}/messages/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'import' => array( - 'path' => '{userId}/messages/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{userId}/messages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{userId}/messages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeSpamTrash' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'labelIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'modify' => array( - 'path' => '{userId}/messages/{id}/modify', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'send' => array( - 'path' => '{userId}/messages/send', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'trash' => array( - 'path' => '{userId}/messages/{id}/trash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'untrash' => array( - 'path' => '{userId}/messages/{id}/untrash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_messages_attachments = new Google_Service_Gmail_UsersMessagesAttachments_Resource( - $this, - $this->serviceName, - 'attachments', - array( - 'methods' => array( - 'get' => array( - 'path' => '{userId}/messages/{messageId}/attachments/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'messageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_threads = new Google_Service_Gmail_UsersThreads_Resource( - $this, - $this->serviceName, - 'threads', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{userId}/threads/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{userId}/threads/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{userId}/threads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeSpamTrash' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'labelIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'modify' => array( - 'path' => '{userId}/threads/{id}/modify', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'trash' => array( - 'path' => '{userId}/threads/{id}/trash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'untrash' => array( - 'path' => '{userId}/threads/{id}/untrash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Gmail service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'gmail/v1/users/'; + $this->version = 'v1'; + $this->serviceName = 'gmail'; + + $this->users_drafts = new Google_Service_Gmail_UsersDrafts_Resource( + $this, + $this->serviceName, + 'drafts', + array( + 'methods' => array( + 'create' => array( + 'path' => '{userId}/drafts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => '{userId}/drafts/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{userId}/drafts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'format' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => '{userId}/drafts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'send' => array( + 'path' => '{userId}/drafts/send', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{userId}/drafts/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users_history = new Google_Service_Gmail_UsersHistory_Resource( + $this, + $this->serviceName, + 'history', + array( + 'methods' => array( + 'list' => array( + 'path' => '{userId}/history', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'labelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startHistoryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->users_labels = new Google_Service_Gmail_UsersLabels_Resource( + $this, + $this->serviceName, + 'labels', + array( + 'methods' => array( + 'create' => array( + 'path' => '{userId}/labels', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => '{userId}/labels/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{userId}/labels/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{userId}/labels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => '{userId}/labels/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{userId}/labels/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users_messages = new Google_Service_Gmail_UsersMessages_Resource( + $this, + $this->serviceName, + 'messages', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{userId}/messages/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{userId}/messages/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'format' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'import' => array( + 'path' => '{userId}/messages/import', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{userId}/messages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{userId}/messages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeSpamTrash' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'labelIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), 'modify' => array( + 'path' => '{userId}/messages/{id}/modify', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'send' => array( + 'path' => '{userId}/messages/send', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'trash' => array( + 'path' => '{userId}/messages/{id}/trash', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'untrash' => array( + 'path' => '{userId}/messages/{id}/untrash', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users_messages_attachments = new Google_Service_Gmail_UsersMessagesAttachments_Resource( + $this, + $this->serviceName, + 'attachments', + array( + 'methods' => array( + 'get' => array( + 'path' => '{userId}/messages/{messageId}/attachments/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'messageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users_threads = new Google_Service_Gmail_UsersThreads_Resource( + $this, + $this->serviceName, + 'threads', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{userId}/threads/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{userId}/threads/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{userId}/threads', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeSpamTrash' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'labelIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), 'modify' => array( + 'path' => '{userId}/threads/{id}/modify', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'trash' => array( + 'path' => '{userId}/threads/{id}/trash', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'untrash' => array( + 'path' => '{userId}/threads/{id}/untrash', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -591,8 +589,7 @@ class Google_Service_Gmail extends Google_Service * $users = $gmailService->users; * */ -class Google_Service_Gmail_Users_Resource extends Google_Service_Resource -{ +class Google_Service_Gmail_Users_Resource extends Google_Service_Resource { } @@ -604,112 +601,111 @@ class Google_Service_Gmail_Users_Resource extends Google_Service_Resource * $drafts = $gmailService->drafts; * */ -class Google_Service_Gmail_UsersDrafts_Resource extends Google_Service_Resource -{ +class Google_Service_Gmail_UsersDrafts_Resource extends Google_Service_Resource { - /** - * Creates a new draft with the DRAFT label. (drafts.create) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param Google_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Draft - */ - public function create($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Draft"); - } - /** - * Immediately and permanently deletes the specified draft. Does not simply - * trash it. (drafts.delete) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the draft to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified draft. (drafts.get) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the draft to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string format - * The format to return the draft in. - * @return Google_Service_Gmail_Draft - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Draft"); - } - /** - * Lists the drafts in the user's mailbox. (drafts.listUsersDrafts) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Page token to retrieve a specific page of results in the list. - * @opt_param string maxResults - * Maximum number of drafts to return. - * @return Google_Service_Gmail_ListDraftsResponse - */ - public function listUsersDrafts($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListDraftsResponse"); - } - /** - * Sends the specified, existing draft to the recipients in the To, Cc, and Bcc - * headers. (drafts.send) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param Google_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function send($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('send', array($params), "Google_Service_Gmail_Message"); - } - /** - * Replaces a draft's content. (drafts.update) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the draft to update. - * @param Google_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Draft - */ - public function update($userId, $id, Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Gmail_Draft"); - } + /** + * Creates a new draft with the DRAFT label. (drafts.create) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Draft $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Draft + */ + public function create($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Gmail_Draft"); + } + + /** + * Immediately and permanently deletes the specified draft. Does not simply + * trash it. (drafts.delete) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the draft to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets the specified draft. (drafts.get) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the draft to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string format + * The format to return the draft in. + * @return Google_Service_Gmail_Draft + */ + public function get($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Draft"); + } + + /** + * Lists the drafts in the user's mailbox. (drafts.listUsersDrafts) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Page token to retrieve a specific page of results in the list. + * @opt_param string maxResults + * Maximum number of drafts to return. + * @return Google_Service_Gmail_ListDraftsResponse + */ + public function listUsersDrafts($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListDraftsResponse"); + } + + /** + * Sends the specified, existing draft to the recipients in the To, Cc, and Bcc + * headers. (drafts.send) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Draft $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function send($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('send', array($params), "Google_Service_Gmail_Message"); + } + + /** + * Replaces a draft's content. (drafts.update) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the draft to update. + * @param Google_Draft $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Draft + */ + public function update($userId, $id, Google_Service_Gmail_Draft $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Gmail_Draft"); + } } + /** * The "history" collection of methods. * Typical usage is: @@ -718,42 +714,41 @@ class Google_Service_Gmail_UsersDrafts_Resource extends Google_Service_Resource * $history = $gmailService->history; * */ -class Google_Service_Gmail_UsersHistory_Resource extends Google_Service_Resource -{ +class Google_Service_Gmail_UsersHistory_Resource extends Google_Service_Resource { - /** - * Lists the history of all changes to the given mailbox. History results are - * returned in chronological order (increasing historyId). - * (history.listUsersHistory) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Page token to retrieve a specific page of results in the list. - * @opt_param string maxResults - * The maximum number of history records to return. - * @opt_param string labelId - * Only return messages with a label matching the ID. - * @opt_param string startHistoryId - * Required. Returns history records after the specified startHistoryId. The supplied - * startHistoryId should be obtained from the historyId of a message, thread, or previous list - * response. History IDs increase chronologically but are not contiguous with random gaps in - * between valid IDs. Supplying an invalid or out of date startHistoryId typically returns an HTTP - * 404 error code. A historyId is typically valid for at least a week, but in some circumstances - * may be valid for only a few hours. If you receive an HTTP 404 error response, your application - * should perform a full sync. If you receive no nextPageToken in the response, there are no - * updates to retrieve and you can store the returned historyId for a future request. - * @return Google_Service_Gmail_ListHistoryResponse - */ - public function listUsersHistory($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListHistoryResponse"); - } + /** + * Lists the history of all changes to the given mailbox. History results are + * returned in chronological order (increasing historyId). + * (history.listUsersHistory) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Page token to retrieve a specific page of results in the list. + * @opt_param string maxResults + * The maximum number of history records to return. + * @opt_param string labelId + * Only return messages with a label matching the ID. + * @opt_param string startHistoryId + * Required. Returns history records after the specified startHistoryId. The supplied + * startHistoryId should be obtained from the historyId of a message, thread, or previous list + * response. History IDs increase chronologically but are not contiguous with random gaps in + * between valid IDs. Supplying an invalid or out of date startHistoryId typically returns an HTTP + * 404 error code. A historyId is typically valid for at least a week, but in some circumstances + * may be valid for only a few hours. If you receive an HTTP 404 error response, your application + * should perform a full sync. If you receive no nextPageToken in the response, there are no + * updates to retrieve and you can store the returned historyId for a future request. + * @return Google_Service_Gmail_ListHistoryResponse + */ + public function listUsersHistory($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListHistoryResponse"); + } } + /** * The "labels" collection of methods. * Typical usage is: @@ -762,106 +757,105 @@ class Google_Service_Gmail_UsersHistory_Resource extends Google_Service_Resource * $labels = $gmailService->labels; * */ -class Google_Service_Gmail_UsersLabels_Resource extends Google_Service_Resource -{ +class Google_Service_Gmail_UsersLabels_Resource extends Google_Service_Resource { - /** - * Creates a new label. (labels.create) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param Google_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function create($userId, Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Label"); - } - /** - * Immediately and permanently deletes the specified label and removes it from - * any messages and threads that it is applied to. (labels.delete) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the label to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified label. (labels.get) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the label to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Label"); - } - /** - * Lists all labels in the user's mailbox. (labels.listUsersLabels) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListLabelsResponse - */ - public function listUsersLabels($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse"); - } - /** - * Updates the specified label. This method supports patch semantics. - * (labels.patch) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the label to update. - * @param Google_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function patch($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Gmail_Label"); - } - /** - * Updates the specified label. (labels.update) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the label to update. - * @param Google_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function update($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Gmail_Label"); - } + /** + * Creates a new label. (labels.create) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Label $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function create($userId, Google_Service_Gmail_Label $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Gmail_Label"); + } + + /** + * Immediately and permanently deletes the specified label and removes it from + * any messages and threads that it is applied to. (labels.delete) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the label to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets the specified label. (labels.get) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the label to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function get($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Label"); + } + + /** + * Lists all labels in the user's mailbox. (labels.listUsersLabels) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ListLabelsResponse + */ + public function listUsersLabels($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse"); + } + + /** + * Updates the specified label. This method supports patch semantics. + * (labels.patch) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the label to update. + * @param Google_Label $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function patch($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Gmail_Label"); + } + + /** + * Updates the specified label. (labels.update) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the label to update. + * @param Google_Label $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function update($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Gmail_Label"); + } } + /** * The "messages" collection of methods. * Typical usage is: @@ -870,167 +864,165 @@ class Google_Service_Gmail_UsersLabels_Resource extends Google_Service_Resource * $messages = $gmailService->messages; * */ -class Google_Service_Gmail_UsersMessages_Resource extends Google_Service_Resource -{ +class Google_Service_Gmail_UsersMessages_Resource extends Google_Service_Resource { - /** - * Immediately and permanently deletes the specified message. This operation - * cannot be undone. Prefer messages.trash instead. (messages.delete) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the message to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified message. (messages.get) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the message to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string format - * The format to return the message in. - * @return Google_Service_Gmail_Message - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Message"); - } - /** - * Directly imports a message into only this user's mailbox, similar to - * receiving via SMTP. Does not send a message. (messages.import) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param Google_Message $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Gmail_Message"); - } - /** - * Directly inserts a message into only this user's mailbox. Does not send a - * message. (messages.insert) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param Google_Message $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function insert($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Gmail_Message"); - } - /** - * Lists the messages in the user's mailbox. (messages.listUsersMessages) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults - * Maximum number of messages to return. - * @opt_param string q - * Only return messages matching the specified query. Supports the same query format as the Gmail - * search box. For example, "from:someuser@example.com rfc822msgid: is:unread". - * @opt_param string pageToken - * Page token to retrieve a specific page of results in the list. - * @opt_param bool includeSpamTrash - * Include messages from SPAM and TRASH in the results. - * @opt_param string labelIds - * Only return messages with labels that match all of the specified label IDs. - * @return Google_Service_Gmail_ListMessagesResponse - */ - public function listUsersMessages($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListMessagesResponse"); - } - /** - * Modifies the labels on the specified message. (messages.modify) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the message to modify. - * @param Google_ModifyMessageRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function modify($userId, $id, Google_Service_Gmail_ModifyMessageRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('modify', array($params), "Google_Service_Gmail_Message"); - } - /** - * Sends the specified message to the recipients in the To, Cc, and Bcc headers. - * (messages.send) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param Google_Message $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function send($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('send', array($params), "Google_Service_Gmail_Message"); - } - /** - * Moves the specified message to the trash. (messages.trash) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the message to Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function trash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('trash', array($params), "Google_Service_Gmail_Message"); - } - /** - * Removes the specified message from the trash. (messages.untrash) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the message to remove from Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function untrash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('untrash', array($params), "Google_Service_Gmail_Message"); - } + /** + * Immediately and permanently deletes the specified message. This operation + * cannot be undone. Prefer messages.trash instead. (messages.delete) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the message to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets the specified message. (messages.get) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the message to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string format + * The format to return the message in. + * @return Google_Service_Gmail_Message + */ + public function get($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Message"); + } + + /** + * Directly imports a message into only this user's mailbox, similar to + * receiving via SMTP. Does not send a message. (messages.import) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Message $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('import', array($params), "Google_Service_Gmail_Message"); + } + + /** + * Directly inserts a message into only this user's mailbox. Does not send a + * message. (messages.insert) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Message $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function insert($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Gmail_Message"); + } + + /** + * Lists the messages in the user's mailbox. (messages.listUsersMessages) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults + * Maximum number of messages to return. + * @opt_param string q + * Only return messages matching the specified query. Supports the same query format as the Gmail + * search box. For example, "from:someuser@example.com rfc822msgid: is:unread". + * @opt_param string pageToken + * Page token to retrieve a specific page of results in the list. + * @opt_param bool includeSpamTrash + * Include messages from SPAM and TRASH in the results. + * @opt_param string labelIds + * Only return messages with labels that match all of the specified label IDs. + * @return Google_Service_Gmail_ListMessagesResponse + */ + public function listUsersMessages($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListMessagesResponse"); + } + + /** + * Modifies the labels on the specified message. (messages.modify) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the message to modify. + * @param Google_ModifyMessageRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function modify($userId, $id, Google_Service_Gmail_ModifyMessageRequest $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('modify', array($params), "Google_Service_Gmail_Message"); + } + + /** + * Sends the specified message to the recipients in the To, Cc, and Bcc headers. + * (messages.send) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param Google_Message $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function send($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('send', array($params), "Google_Service_Gmail_Message"); + } + + /** + * Moves the specified message to the trash. (messages.trash) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the message to Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function trash($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('trash', array($params), "Google_Service_Gmail_Message"); + } + + /** + * Removes the specified message from the trash. (messages.untrash) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the message to remove from Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function untrash($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('untrash', array($params), "Google_Service_Gmail_Message"); + } } /** @@ -1041,28 +1033,27 @@ class Google_Service_Gmail_UsersMessages_Resource extends Google_Service_Resourc * $attachments = $gmailService->attachments; * */ -class Google_Service_Gmail_UsersMessagesAttachments_Resource extends Google_Service_Resource -{ +class Google_Service_Gmail_UsersMessagesAttachments_Resource extends Google_Service_Resource { - /** - * Gets the specified message attachment. (attachments.get) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $messageId - * The ID of the message containing the attachment. - * @param string $id - * The ID of the attachment. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_MessagePartBody - */ - public function get($userId, $messageId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_MessagePartBody"); - } + /** + * Gets the specified message attachment. (attachments.get) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $messageId + * The ID of the message containing the attachment. + * @param string $id + * The ID of the attachment. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_MessagePartBody + */ + public function get($userId, $messageId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_MessagePartBody"); + } } + /** * The "threads" collection of methods. * Typical usage is: @@ -1071,729 +1062,612 @@ class Google_Service_Gmail_UsersMessagesAttachments_Resource extends Google_Serv * $threads = $gmailService->threads; * */ -class Google_Service_Gmail_UsersThreads_Resource extends Google_Service_Resource -{ +class Google_Service_Gmail_UsersThreads_Resource extends Google_Service_Resource { - /** - * Immediately and permanently deletes the specified thread. This operation - * cannot be undone. Prefer threads.trash instead. (threads.delete) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * ID of the Thread to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified thread. (threads.get) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the thread to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Thread"); - } - /** - * Lists the threads in the user's mailbox. (threads.listUsersThreads) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults - * Maximum number of threads to return. - * @opt_param string q - * Only return threads matching the specified query. Supports the same query format as the Gmail - * search box. For example, "from:someuser@example.com rfc822msgid: is:unread". - * @opt_param string pageToken - * Page token to retrieve a specific page of results in the list. - * @opt_param bool includeSpamTrash - * Include threads from SPAM and TRASH in the results. - * @opt_param string labelIds - * Only return threads with labels that match all of the specified label IDs. - * @return Google_Service_Gmail_ListThreadsResponse - */ - public function listUsersThreads($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListThreadsResponse"); - } - /** - * Modifies the labels applied to the thread. This applies to all messages in - * the thread. (threads.modify) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the thread to modify. - * @param Google_ModifyThreadRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function modify($userId, $id, Google_Service_Gmail_ModifyThreadRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('modify', array($params), "Google_Service_Gmail_Thread"); - } - /** - * Moves the specified thread to the trash. (threads.trash) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the thread to Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function trash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('trash', array($params), "Google_Service_Gmail_Thread"); - } - /** - * Removes the specified thread from the trash. (threads.untrash) - * - * @param string $userId - * The user's email address. The special value me can be used to indicate the authenticated user. - * @param string $id - * The ID of the thread to remove from Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function untrash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('untrash', array($params), "Google_Service_Gmail_Thread"); - } + /** + * Immediately and permanently deletes the specified thread. This operation + * cannot be undone. Prefer threads.trash instead. (threads.delete) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * ID of the Thread to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets the specified thread. (threads.get) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the thread to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Thread + */ + public function get($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Thread"); + } + + /** + * Lists the threads in the user's mailbox. (threads.listUsersThreads) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults + * Maximum number of threads to return. + * @opt_param string q + * Only return threads matching the specified query. Supports the same query format as the Gmail + * search box. For example, "from:someuser@example.com rfc822msgid: is:unread". + * @opt_param string pageToken + * Page token to retrieve a specific page of results in the list. + * @opt_param bool includeSpamTrash + * Include threads from SPAM and TRASH in the results. + * @opt_param string labelIds + * Only return threads with labels that match all of the specified label IDs. + * @return Google_Service_Gmail_ListThreadsResponse + */ + public function listUsersThreads($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListThreadsResponse"); + } + + /** + * Modifies the labels applied to the thread. This applies to all messages in + * the thread. (threads.modify) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the thread to modify. + * @param Google_ModifyThreadRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Thread + */ + public function modify($userId, $id, Google_Service_Gmail_ModifyThreadRequest $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('modify', array($params), "Google_Service_Gmail_Thread"); + } + + /** + * Moves the specified thread to the trash. (threads.trash) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the thread to Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Thread + */ + public function trash($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('trash', array($params), "Google_Service_Gmail_Thread"); + } + + /** + * Removes the specified thread from the trash. (threads.untrash) + * + * @param string $userId + * The user's email address. The special value me can be used to indicate the authenticated user. + * @param string $id + * The ID of the thread to remove from Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Thread + */ + public function untrash($userId, $id, $optParams = array()) { + $params = array('userId' => $userId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('untrash', array($params), "Google_Service_Gmail_Thread"); + } } +class Google_Service_Gmail_Draft extends Google_Model { + public $id; + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + public function setId($id) { + $this->id = $id; + } -class Google_Service_Gmail_Draft extends Google_Model -{ - public $id; - protected $messageType = 'Google_Service_Gmail_Message'; - protected $messageDataType = ''; + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setMessage(Google_Service_Gmail_Message $message) { + $this->message = $message; + } - public function getId() - { - return $this->id; - } - - public function setMessage(Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } } -class Google_Service_Gmail_History extends Google_Collection -{ - public $id; - protected $messagesType = 'Google_Service_Gmail_Message'; - protected $messagesDataType = 'array'; +class Google_Service_Gmail_History extends Google_Collection { + public $id; + protected $messagesType = 'Google_Service_Gmail_Message'; + protected $messagesDataType = 'array'; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setMessages($messages) - { - $this->messages = $messages; - } + public function setMessages($messages) { + $this->messages = $messages; + } - public function getMessages() - { - return $this->messages; - } + public function getMessages() { + return $this->messages; + } } -class Google_Service_Gmail_Label extends Google_Model -{ - public $id; - public $labelListVisibility; - public $messageListVisibility; - public $name; - public $type; +class Google_Service_Gmail_Label extends Google_Model { + public $id; + public $labelListVisibility; + public $messageListVisibility; + public $name; + public $type; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLabelListVisibility($labelListVisibility) - { - $this->labelListVisibility = $labelListVisibility; - } + public function setLabelListVisibility($labelListVisibility) { + $this->labelListVisibility = $labelListVisibility; + } - public function getLabelListVisibility() - { - return $this->labelListVisibility; - } + public function getLabelListVisibility() { + return $this->labelListVisibility; + } - public function setMessageListVisibility($messageListVisibility) - { - $this->messageListVisibility = $messageListVisibility; - } + public function setMessageListVisibility($messageListVisibility) { + $this->messageListVisibility = $messageListVisibility; + } - public function getMessageListVisibility() - { - return $this->messageListVisibility; - } + public function getMessageListVisibility() { + return $this->messageListVisibility; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Gmail_ListDraftsResponse extends Google_Collection -{ - protected $draftsType = 'Google_Service_Gmail_Draft'; - protected $draftsDataType = 'array'; - public $nextPageToken; - public $resultSizeEstimate; +class Google_Service_Gmail_ListDraftsResponse extends Google_Collection { + protected $draftsType = 'Google_Service_Gmail_Draft'; + protected $draftsDataType = 'array'; + public $nextPageToken; + public $resultSizeEstimate; - public function setDrafts($drafts) - { - $this->drafts = $drafts; - } + public function setDrafts($drafts) { + $this->drafts = $drafts; + } - public function getDrafts() - { - return $this->drafts; - } + public function getDrafts() { + return $this->drafts; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } + public function setResultSizeEstimate($resultSizeEstimate) { + $this->resultSizeEstimate = $resultSizeEstimate; + } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } + public function getResultSizeEstimate() { + return $this->resultSizeEstimate; + } } -class Google_Service_Gmail_ListHistoryResponse extends Google_Collection -{ - protected $historyType = 'Google_Service_Gmail_History'; - protected $historyDataType = 'array'; - public $historyId; - public $nextPageToken; +class Google_Service_Gmail_ListHistoryResponse extends Google_Collection { + protected $historyType = 'Google_Service_Gmail_History'; + protected $historyDataType = 'array'; + public $historyId; + public $nextPageToken; - public function setHistory($history) - { - $this->history = $history; - } + public function setHistory($history) { + $this->history = $history; + } - public function getHistory() - { - return $this->history; - } + public function getHistory() { + return $this->history; + } - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } + public function setHistoryId($historyId) { + $this->historyId = $historyId; + } - public function getHistoryId() - { - return $this->historyId; - } + public function getHistoryId() { + return $this->historyId; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Gmail_ListLabelsResponse extends Google_Collection -{ - protected $labelsType = 'Google_Service_Gmail_Label'; - protected $labelsDataType = 'array'; +class Google_Service_Gmail_ListLabelsResponse extends Google_Collection { + protected $labelsType = 'Google_Service_Gmail_Label'; + protected $labelsDataType = 'array'; - public function setLabels($labels) - { - $this->labels = $labels; - } + public function setLabels($labels) { + $this->labels = $labels; + } - public function getLabels() - { - return $this->labels; - } + public function getLabels() { + return $this->labels; + } } -class Google_Service_Gmail_ListMessagesResponse extends Google_Collection -{ - protected $messagesType = 'Google_Service_Gmail_Message'; - protected $messagesDataType = 'array'; - public $nextPageToken; - public $resultSizeEstimate; +class Google_Service_Gmail_ListMessagesResponse extends Google_Collection { + protected $messagesType = 'Google_Service_Gmail_Message'; + protected $messagesDataType = 'array'; + public $nextPageToken; + public $resultSizeEstimate; - public function setMessages($messages) - { - $this->messages = $messages; - } + public function setMessages($messages) { + $this->messages = $messages; + } - public function getMessages() - { - return $this->messages; - } + public function getMessages() { + return $this->messages; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } + public function setResultSizeEstimate($resultSizeEstimate) { + $this->resultSizeEstimate = $resultSizeEstimate; + } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } + public function getResultSizeEstimate() { + return $this->resultSizeEstimate; + } } -class Google_Service_Gmail_ListThreadsResponse extends Google_Collection -{ - public $nextPageToken; - public $resultSizeEstimate; - protected $threadsType = 'Google_Service_Gmail_Thread'; - protected $threadsDataType = 'array'; +class Google_Service_Gmail_ListThreadsResponse extends Google_Collection { + public $nextPageToken; + public $resultSizeEstimate; + protected $threadsType = 'Google_Service_Gmail_Thread'; + protected $threadsDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } + public function setResultSizeEstimate($resultSizeEstimate) { + $this->resultSizeEstimate = $resultSizeEstimate; + } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } + public function getResultSizeEstimate() { + return $this->resultSizeEstimate; + } - public function setThreads($threads) - { - $this->threads = $threads; - } + public function setThreads($threads) { + $this->threads = $threads; + } - public function getThreads() - { - return $this->threads; - } + public function getThreads() { + return $this->threads; + } } -class Google_Service_Gmail_Message extends Google_Collection -{ - public $historyId; - public $id; - public $labelIds; - protected $payloadType = 'Google_Service_Gmail_MessagePart'; - protected $payloadDataType = ''; - public $raw; - public $sizeEstimate; - public $snippet; - public $threadId; +class Google_Service_Gmail_Message extends Google_Collection { + public $historyId; + public $id; + public $labelIds; + protected $payloadType = 'Google_Service_Gmail_MessagePart'; + protected $payloadDataType = ''; + public $raw; + public $sizeEstimate; + public $snippet; + public $threadId; - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } + public function setHistoryId($historyId) { + $this->historyId = $historyId; + } - public function getHistoryId() - { - return $this->historyId; - } + public function getHistoryId() { + return $this->historyId; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLabelIds($labelIds) - { - $this->labelIds = $labelIds; - } + public function setLabelIds($labelIds) { + $this->labelIds = $labelIds; + } - public function getLabelIds() - { - return $this->labelIds; - } + public function getLabelIds() { + return $this->labelIds; + } - public function setPayload(Google_Service_Gmail_MessagePart $payload) - { - $this->payload = $payload; - } + public function setPayload(Google_Service_Gmail_MessagePart $payload) { + $this->payload = $payload; + } - public function getPayload() - { - return $this->payload; - } + public function getPayload() { + return $this->payload; + } - public function setRaw($raw) - { - $this->raw = $raw; - } + public function setRaw($raw) { + $this->raw = $raw; + } - public function getRaw() - { - return $this->raw; - } + public function getRaw() { + return $this->raw; + } - public function setSizeEstimate($sizeEstimate) - { - $this->sizeEstimate = $sizeEstimate; - } + public function setSizeEstimate($sizeEstimate) { + $this->sizeEstimate = $sizeEstimate; + } - public function getSizeEstimate() - { - return $this->sizeEstimate; - } + public function getSizeEstimate() { + return $this->sizeEstimate; + } - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } + public function setSnippet($snippet) { + $this->snippet = $snippet; + } - public function getSnippet() - { - return $this->snippet; - } + public function getSnippet() { + return $this->snippet; + } - public function setThreadId($threadId) - { - $this->threadId = $threadId; - } + public function setThreadId($threadId) { + $this->threadId = $threadId; + } - public function getThreadId() - { - return $this->threadId; - } + public function getThreadId() { + return $this->threadId; + } } -class Google_Service_Gmail_MessagePart extends Google_Collection -{ - protected $bodyType = 'Google_Service_Gmail_MessagePartBody'; - protected $bodyDataType = ''; - public $filename; - protected $headersType = 'Google_Service_Gmail_MessagePartHeader'; - protected $headersDataType = 'array'; - public $mimeType; - public $partId; - protected $partsType = 'Google_Service_Gmail_MessagePart'; - protected $partsDataType = 'array'; +class Google_Service_Gmail_MessagePart extends Google_Collection { + protected $bodyType = 'Google_Service_Gmail_MessagePartBody'; + protected $bodyDataType = ''; + public $filename; + protected $headersType = 'Google_Service_Gmail_MessagePartHeader'; + protected $headersDataType = 'array'; + public $mimeType; + public $partId; + protected $partsType = 'Google_Service_Gmail_MessagePart'; + protected $partsDataType = 'array'; - public function setBody(Google_Service_Gmail_MessagePartBody $body) - { - $this->body = $body; - } + public function setBody(Google_Service_Gmail_MessagePartBody $body) { + $this->body = $body; + } - public function getBody() - { - return $this->body; - } + public function getBody() { + return $this->body; + } - public function setFilename($filename) - { - $this->filename = $filename; - } + public function setFilename($filename) { + $this->filename = $filename; + } - public function getFilename() - { - return $this->filename; - } + public function getFilename() { + return $this->filename; + } - public function setHeaders($headers) - { - $this->headers = $headers; - } + public function setHeaders($headers) { + $this->headers = $headers; + } - public function getHeaders() - { - return $this->headers; - } + public function getHeaders() { + return $this->headers; + } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } + public function setMimeType($mimeType) { + $this->mimeType = $mimeType; + } - public function getMimeType() - { - return $this->mimeType; - } + public function getMimeType() { + return $this->mimeType; + } - public function setPartId($partId) - { - $this->partId = $partId; - } + public function setPartId($partId) { + $this->partId = $partId; + } - public function getPartId() - { - return $this->partId; - } + public function getPartId() { + return $this->partId; + } - public function setParts($parts) - { - $this->parts = $parts; - } + public function setParts($parts) { + $this->parts = $parts; + } - public function getParts() - { - return $this->parts; - } + public function getParts() { + return $this->parts; + } } -class Google_Service_Gmail_MessagePartBody extends Google_Model -{ - public $attachmentId; - public $data; - public $size; +class Google_Service_Gmail_MessagePartBody extends Google_Model { + public $attachmentId; + public $data; + public $size; - public function setAttachmentId($attachmentId) - { - $this->attachmentId = $attachmentId; - } + public function setAttachmentId($attachmentId) { + $this->attachmentId = $attachmentId; + } - public function getAttachmentId() - { - return $this->attachmentId; - } + public function getAttachmentId() { + return $this->attachmentId; + } - public function setData($data) - { - $this->data = $data; - } + public function setData($data) { + $this->data = $data; + } - public function getData() - { - return $this->data; - } + public function getData() { + return $this->data; + } - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } } -class Google_Service_Gmail_MessagePartHeader extends Google_Model -{ - public $name; - public $value; +class Google_Service_Gmail_MessagePartHeader extends Google_Model { + public $name; + public $value; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Gmail_ModifyMessageRequest extends Google_Collection -{ - public $addLabelIds; - public $removeLabelIds; +class Google_Service_Gmail_ModifyMessageRequest extends Google_Collection { + public $addLabelIds; + public $removeLabelIds; - public function setAddLabelIds($addLabelIds) - { - $this->addLabelIds = $addLabelIds; - } + public function setAddLabelIds($addLabelIds) { + $this->addLabelIds = $addLabelIds; + } - public function getAddLabelIds() - { - return $this->addLabelIds; - } + public function getAddLabelIds() { + return $this->addLabelIds; + } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } + public function setRemoveLabelIds($removeLabelIds) { + $this->removeLabelIds = $removeLabelIds; + } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } + public function getRemoveLabelIds() { + return $this->removeLabelIds; + } } -class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection -{ - public $addLabelIds; - public $removeLabelIds; +class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection { + public $addLabelIds; + public $removeLabelIds; - public function setAddLabelIds($addLabelIds) - { - $this->addLabelIds = $addLabelIds; - } + public function setAddLabelIds($addLabelIds) { + $this->addLabelIds = $addLabelIds; + } - public function getAddLabelIds() - { - return $this->addLabelIds; - } + public function getAddLabelIds() { + return $this->addLabelIds; + } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } + public function setRemoveLabelIds($removeLabelIds) { + $this->removeLabelIds = $removeLabelIds; + } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } + public function getRemoveLabelIds() { + return $this->removeLabelIds; + } } -class Google_Service_Gmail_Thread extends Google_Collection -{ - public $historyId; - public $id; - protected $messagesType = 'Google_Service_Gmail_Message'; - protected $messagesDataType = 'array'; - public $snippet; +class Google_Service_Gmail_Thread extends Google_Collection { + public $historyId; + public $id; + protected $messagesType = 'Google_Service_Gmail_Message'; + protected $messagesDataType = 'array'; + public $snippet; - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } + public function setHistoryId($historyId) { + $this->historyId = $historyId; + } - public function getHistoryId() - { - return $this->historyId; - } + public function getHistoryId() { + return $this->historyId; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setMessages($messages) - { - $this->messages = $messages; - } + public function setMessages($messages) { + $this->messages = $messages; + } - public function getMessages() - { - return $this->messages; - } + public function getMessages() { + return $this->messages; + } - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } + public function setSnippet($snippet) { + $this->snippet = $snippet; + } - public function getSnippet() - { - return $this->snippet; - } + public function getSnippet() { + return $this->snippet; + } } diff --git a/oauth/Google/Service/GroupsMigration.php b/oauth/Google/Service/GroupsMigration.php index 71e860c..6dccd5c 100644 --- a/oauth/Google/Service/GroupsMigration.php +++ b/oauth/Google/Service/GroupsMigration.php @@ -29,46 +29,44 @@ * * @author Google, Inc. */ -class Google_Service_GroupsMigration extends Google_Service -{ +class Google_Service_GroupsMigration extends Google_Service { - public $archive; - + public $archive; - /** - * Constructs the internal representation of the GroupsMigration service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'groups/v1/groups/'; - $this->version = 'v1'; - $this->serviceName = 'groupsmigration'; - $this->archive = new Google_Service_GroupsMigration_Archive_Resource( - $this, - $this->serviceName, - 'archive', - array( - 'methods' => array( - 'insert' => array( - 'path' => '{groupId}/archive', - 'httpMethod' => 'POST', - 'parameters' => array( - 'groupId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the GroupsMigration service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'groups/v1/groups/'; + $this->version = 'v1'; + $this->serviceName = 'groupsmigration'; + + $this->archive = new Google_Service_GroupsMigration_Archive_Resource( + $this, + $this->serviceName, + 'archive', + array( + 'methods' => array( + 'insert' => array( + 'path' => '{groupId}/archive', + 'httpMethod' => 'POST', + 'parameters' => array( + 'groupId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -80,50 +78,41 @@ class Google_Service_GroupsMigration extends Google_Service * $archive = $groupsmigrationService->archive; * */ -class Google_Service_GroupsMigration_Archive_Resource extends Google_Service_Resource -{ +class Google_Service_GroupsMigration_Archive_Resource extends Google_Service_Resource { - /** - * Inserts a new mail into the archive of the Google group. (archive.insert) - * - * @param string $groupId - * The group ID - * @param array $optParams Optional parameters. - * @return Google_Service_GroupsMigration_Groups - */ - public function insert($groupId, $optParams = array()) - { - $params = array('groupId' => $groupId); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_GroupsMigration_Groups"); - } + /** + * Inserts a new mail into the archive of the Google group. (archive.insert) + * + * @param string $groupId + * The group ID + * @param array $optParams Optional parameters. + * @return Google_Service_GroupsMigration_Groups + */ + public function insert($groupId, $optParams = array()) { + $params = array('groupId' => $groupId); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_GroupsMigration_Groups"); + } } +class Google_Service_GroupsMigration_Groups extends Google_Model { + public $kind; + public $responseCode; + public function setKind($kind) { + $this->kind = $kind; + } -class Google_Service_GroupsMigration_Groups extends Google_Model -{ - public $kind; - public $responseCode; + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setResponseCode($responseCode) { + $this->responseCode = $responseCode; + } - public function getKind() - { - return $this->kind; - } - - public function setResponseCode($responseCode) - { - $this->responseCode = $responseCode; - } - - public function getResponseCode() - { - return $this->responseCode; - } + public function getResponseCode() { + return $this->responseCode; + } } diff --git a/oauth/Google/Service/Groupssettings.php b/oauth/Google/Service/Groupssettings.php index b14b87c..dfd8a6e 100644 --- a/oauth/Google/Service/Groupssettings.php +++ b/oauth/Google/Service/Groupssettings.php @@ -29,67 +29,65 @@ * * @author Google, Inc. */ -class Google_Service_Groupssettings extends Google_Service -{ - /** View and manage the settings of a Google Apps Group. */ - const APPS_GROUPS_SETTINGS = "https://www.googleapis.com/auth/apps.groups.settings"; +class Google_Service_Groupssettings extends Google_Service { + /** View and manage the settings of a Google Apps Group. */ + const APPS_GROUPS_SETTINGS = "https://www.googleapis.com/auth/apps.groups.settings"; - public $groups; - + public $groups; - /** - * Constructs the internal representation of the Groupssettings service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'groups/v1/groups/'; - $this->version = 'v1'; - $this->serviceName = 'groupssettings'; - $this->groups = new Google_Service_Groupssettings_Groups_Resource( - $this, - $this->serviceName, - 'groups', - array( - 'methods' => array( - 'get' => array( - 'path' => '{groupUniqueId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'groupUniqueId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{groupUniqueId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'groupUniqueId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{groupUniqueId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'groupUniqueId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Groupssettings service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'groups/v1/groups/'; + $this->version = 'v1'; + $this->serviceName = 'groupssettings'; + + $this->groups = new Google_Service_Groupssettings_Groups_Resource( + $this, + $this->serviceName, + 'groups', + array( + 'methods' => array( + 'get' => array( + 'path' => '{groupUniqueId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'groupUniqueId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => '{groupUniqueId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'groupUniqueId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{groupUniqueId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'groupUniqueId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -101,367 +99,306 @@ class Google_Service_Groupssettings extends Google_Service * $groups = $groupssettingsService->groups; * */ -class Google_Service_Groupssettings_Groups_Resource extends Google_Service_Resource -{ +class Google_Service_Groupssettings_Groups_Resource extends Google_Service_Resource { - /** - * Gets one resource by id. (groups.get) - * - * @param string $groupUniqueId - * The resource ID - * @param array $optParams Optional parameters. - * @return Google_Service_Groupssettings_Groups - */ - public function get($groupUniqueId, $optParams = array()) - { - $params = array('groupUniqueId' => $groupUniqueId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Groupssettings_Groups"); - } - /** - * Updates an existing resource. This method supports patch semantics. - * (groups.patch) - * - * @param string $groupUniqueId - * The resource ID - * @param Google_Groups $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Groupssettings_Groups - */ - public function patch($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array()) - { - $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Groupssettings_Groups"); - } - /** - * Updates an existing resource. (groups.update) - * - * @param string $groupUniqueId - * The resource ID - * @param Google_Groups $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Groupssettings_Groups - */ - public function update($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array()) - { - $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Groupssettings_Groups"); - } + /** + * Gets one resource by id. (groups.get) + * + * @param string $groupUniqueId + * The resource ID + * @param array $optParams Optional parameters. + * @return Google_Service_Groupssettings_Groups + */ + public function get($groupUniqueId, $optParams = array()) { + $params = array('groupUniqueId' => $groupUniqueId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Groupssettings_Groups"); + } + + /** + * Updates an existing resource. This method supports patch semantics. + * (groups.patch) + * + * @param string $groupUniqueId + * The resource ID + * @param Google_Groups $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Groupssettings_Groups + */ + public function patch($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array()) { + $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Groupssettings_Groups"); + } + + /** + * Updates an existing resource. (groups.update) + * + * @param string $groupUniqueId + * The resource ID + * @param Google_Groups $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Groupssettings_Groups + */ + public function update($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array()) { + $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Groupssettings_Groups"); + } } +class Google_Service_Groupssettings_Groups extends Google_Model { + public $allowExternalMembers; + public $allowGoogleCommunication; + public $allowWebPosting; + public $archiveOnly; + public $customReplyTo; + public $defaultMessageDenyNotificationText; + public $description; + public $email; + public $includeInGlobalAddressList; + public $isArchived; + public $kind; + public $maxMessageBytes; + public $membersCanPostAsTheGroup; + public $messageDisplayFont; + public $messageModerationLevel; + public $name; + public $primaryLanguage; + public $replyTo; + public $sendMessageDenyNotification; + public $showInGroupDirectory; + public $spamModerationLevel; + public $whoCanContactOwner; + public $whoCanInvite; + public $whoCanJoin; + public $whoCanLeaveGroup; + public $whoCanPostMessage; + public $whoCanViewGroup; + public $whoCanViewMembership; + public function setAllowExternalMembers($allowExternalMembers) { + $this->allowExternalMembers = $allowExternalMembers; + } -class Google_Service_Groupssettings_Groups extends Google_Model -{ - public $allowExternalMembers; - public $allowGoogleCommunication; - public $allowWebPosting; - public $archiveOnly; - public $customReplyTo; - public $defaultMessageDenyNotificationText; - public $description; - public $email; - public $includeInGlobalAddressList; - public $isArchived; - public $kind; - public $maxMessageBytes; - public $membersCanPostAsTheGroup; - public $messageDisplayFont; - public $messageModerationLevel; - public $name; - public $primaryLanguage; - public $replyTo; - public $sendMessageDenyNotification; - public $showInGroupDirectory; - public $spamModerationLevel; - public $whoCanContactOwner; - public $whoCanInvite; - public $whoCanJoin; - public $whoCanLeaveGroup; - public $whoCanPostMessage; - public $whoCanViewGroup; - public $whoCanViewMembership; + public function getAllowExternalMembers() { + return $this->allowExternalMembers; + } - public function setAllowExternalMembers($allowExternalMembers) - { - $this->allowExternalMembers = $allowExternalMembers; - } + public function setAllowGoogleCommunication($allowGoogleCommunication) { + $this->allowGoogleCommunication = $allowGoogleCommunication; + } - public function getAllowExternalMembers() - { - return $this->allowExternalMembers; - } + public function getAllowGoogleCommunication() { + return $this->allowGoogleCommunication; + } - public function setAllowGoogleCommunication($allowGoogleCommunication) - { - $this->allowGoogleCommunication = $allowGoogleCommunication; - } + public function setAllowWebPosting($allowWebPosting) { + $this->allowWebPosting = $allowWebPosting; + } - public function getAllowGoogleCommunication() - { - return $this->allowGoogleCommunication; - } + public function getAllowWebPosting() { + return $this->allowWebPosting; + } - public function setAllowWebPosting($allowWebPosting) - { - $this->allowWebPosting = $allowWebPosting; - } + public function setArchiveOnly($archiveOnly) { + $this->archiveOnly = $archiveOnly; + } - public function getAllowWebPosting() - { - return $this->allowWebPosting; - } + public function getArchiveOnly() { + return $this->archiveOnly; + } - public function setArchiveOnly($archiveOnly) - { - $this->archiveOnly = $archiveOnly; - } + public function setCustomReplyTo($customReplyTo) { + $this->customReplyTo = $customReplyTo; + } - public function getArchiveOnly() - { - return $this->archiveOnly; - } + public function getCustomReplyTo() { + return $this->customReplyTo; + } - public function setCustomReplyTo($customReplyTo) - { - $this->customReplyTo = $customReplyTo; - } + public function setDefaultMessageDenyNotificationText($defaultMessageDenyNotificationText) { + $this->defaultMessageDenyNotificationText = $defaultMessageDenyNotificationText; + } - public function getCustomReplyTo() - { - return $this->customReplyTo; - } + public function getDefaultMessageDenyNotificationText() { + return $this->defaultMessageDenyNotificationText; + } - public function setDefaultMessageDenyNotificationText($defaultMessageDenyNotificationText) - { - $this->defaultMessageDenyNotificationText = $defaultMessageDenyNotificationText; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDefaultMessageDenyNotificationText() - { - return $this->defaultMessageDenyNotificationText; - } + public function getDescription() { + return $this->description; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setEmail($email) { + $this->email = $email; + } - public function getDescription() - { - return $this->description; - } + public function getEmail() { + return $this->email; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setIncludeInGlobalAddressList($includeInGlobalAddressList) { + $this->includeInGlobalAddressList = $includeInGlobalAddressList; + } - public function getEmail() - { - return $this->email; - } + public function getIncludeInGlobalAddressList() { + return $this->includeInGlobalAddressList; + } - public function setIncludeInGlobalAddressList($includeInGlobalAddressList) - { - $this->includeInGlobalAddressList = $includeInGlobalAddressList; - } + public function setIsArchived($isArchived) { + $this->isArchived = $isArchived; + } - public function getIncludeInGlobalAddressList() - { - return $this->includeInGlobalAddressList; - } + public function getIsArchived() { + return $this->isArchived; + } - public function setIsArchived($isArchived) - { - $this->isArchived = $isArchived; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getIsArchived() - { - return $this->isArchived; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setMaxMessageBytes($maxMessageBytes) { + $this->maxMessageBytes = $maxMessageBytes; + } - public function getKind() - { - return $this->kind; - } + public function getMaxMessageBytes() { + return $this->maxMessageBytes; + } - public function setMaxMessageBytes($maxMessageBytes) - { - $this->maxMessageBytes = $maxMessageBytes; - } + public function setMembersCanPostAsTheGroup($membersCanPostAsTheGroup) { + $this->membersCanPostAsTheGroup = $membersCanPostAsTheGroup; + } - public function getMaxMessageBytes() - { - return $this->maxMessageBytes; - } + public function getMembersCanPostAsTheGroup() { + return $this->membersCanPostAsTheGroup; + } - public function setMembersCanPostAsTheGroup($membersCanPostAsTheGroup) - { - $this->membersCanPostAsTheGroup = $membersCanPostAsTheGroup; - } + public function setMessageDisplayFont($messageDisplayFont) { + $this->messageDisplayFont = $messageDisplayFont; + } - public function getMembersCanPostAsTheGroup() - { - return $this->membersCanPostAsTheGroup; - } + public function getMessageDisplayFont() { + return $this->messageDisplayFont; + } - public function setMessageDisplayFont($messageDisplayFont) - { - $this->messageDisplayFont = $messageDisplayFont; - } + public function setMessageModerationLevel($messageModerationLevel) { + $this->messageModerationLevel = $messageModerationLevel; + } - public function getMessageDisplayFont() - { - return $this->messageDisplayFont; - } + public function getMessageModerationLevel() { + return $this->messageModerationLevel; + } - public function setMessageModerationLevel($messageModerationLevel) - { - $this->messageModerationLevel = $messageModerationLevel; - } + public function setName($name) { + $this->name = $name; + } - public function getMessageModerationLevel() - { - return $this->messageModerationLevel; - } + public function getName() { + return $this->name; + } - public function setName($name) - { - $this->name = $name; - } + public function setPrimaryLanguage($primaryLanguage) { + $this->primaryLanguage = $primaryLanguage; + } - public function getName() - { - return $this->name; - } + public function getPrimaryLanguage() { + return $this->primaryLanguage; + } - public function setPrimaryLanguage($primaryLanguage) - { - $this->primaryLanguage = $primaryLanguage; - } + public function setReplyTo($replyTo) { + $this->replyTo = $replyTo; + } - public function getPrimaryLanguage() - { - return $this->primaryLanguage; - } + public function getReplyTo() { + return $this->replyTo; + } - public function setReplyTo($replyTo) - { - $this->replyTo = $replyTo; - } + public function setSendMessageDenyNotification($sendMessageDenyNotification) { + $this->sendMessageDenyNotification = $sendMessageDenyNotification; + } - public function getReplyTo() - { - return $this->replyTo; - } + public function getSendMessageDenyNotification() { + return $this->sendMessageDenyNotification; + } - public function setSendMessageDenyNotification($sendMessageDenyNotification) - { - $this->sendMessageDenyNotification = $sendMessageDenyNotification; - } + public function setShowInGroupDirectory($showInGroupDirectory) { + $this->showInGroupDirectory = $showInGroupDirectory; + } - public function getSendMessageDenyNotification() - { - return $this->sendMessageDenyNotification; - } + public function getShowInGroupDirectory() { + return $this->showInGroupDirectory; + } - public function setShowInGroupDirectory($showInGroupDirectory) - { - $this->showInGroupDirectory = $showInGroupDirectory; - } + public function setSpamModerationLevel($spamModerationLevel) { + $this->spamModerationLevel = $spamModerationLevel; + } - public function getShowInGroupDirectory() - { - return $this->showInGroupDirectory; - } + public function getSpamModerationLevel() { + return $this->spamModerationLevel; + } - public function setSpamModerationLevel($spamModerationLevel) - { - $this->spamModerationLevel = $spamModerationLevel; - } + public function setWhoCanContactOwner($whoCanContactOwner) { + $this->whoCanContactOwner = $whoCanContactOwner; + } - public function getSpamModerationLevel() - { - return $this->spamModerationLevel; - } + public function getWhoCanContactOwner() { + return $this->whoCanContactOwner; + } - public function setWhoCanContactOwner($whoCanContactOwner) - { - $this->whoCanContactOwner = $whoCanContactOwner; - } + public function setWhoCanInvite($whoCanInvite) { + $this->whoCanInvite = $whoCanInvite; + } - public function getWhoCanContactOwner() - { - return $this->whoCanContactOwner; - } + public function getWhoCanInvite() { + return $this->whoCanInvite; + } - public function setWhoCanInvite($whoCanInvite) - { - $this->whoCanInvite = $whoCanInvite; - } + public function setWhoCanJoin($whoCanJoin) { + $this->whoCanJoin = $whoCanJoin; + } - public function getWhoCanInvite() - { - return $this->whoCanInvite; - } + public function getWhoCanJoin() { + return $this->whoCanJoin; + } - public function setWhoCanJoin($whoCanJoin) - { - $this->whoCanJoin = $whoCanJoin; - } + public function setWhoCanLeaveGroup($whoCanLeaveGroup) { + $this->whoCanLeaveGroup = $whoCanLeaveGroup; + } - public function getWhoCanJoin() - { - return $this->whoCanJoin; - } + public function getWhoCanLeaveGroup() { + return $this->whoCanLeaveGroup; + } - public function setWhoCanLeaveGroup($whoCanLeaveGroup) - { - $this->whoCanLeaveGroup = $whoCanLeaveGroup; - } + public function setWhoCanPostMessage($whoCanPostMessage) { + $this->whoCanPostMessage = $whoCanPostMessage; + } - public function getWhoCanLeaveGroup() - { - return $this->whoCanLeaveGroup; - } + public function getWhoCanPostMessage() { + return $this->whoCanPostMessage; + } - public function setWhoCanPostMessage($whoCanPostMessage) - { - $this->whoCanPostMessage = $whoCanPostMessage; - } + public function setWhoCanViewGroup($whoCanViewGroup) { + $this->whoCanViewGroup = $whoCanViewGroup; + } - public function getWhoCanPostMessage() - { - return $this->whoCanPostMessage; - } + public function getWhoCanViewGroup() { + return $this->whoCanViewGroup; + } - public function setWhoCanViewGroup($whoCanViewGroup) - { - $this->whoCanViewGroup = $whoCanViewGroup; - } + public function setWhoCanViewMembership($whoCanViewMembership) { + $this->whoCanViewMembership = $whoCanViewMembership; + } - public function getWhoCanViewGroup() - { - return $this->whoCanViewGroup; - } - - public function setWhoCanViewMembership($whoCanViewMembership) - { - $this->whoCanViewMembership = $whoCanViewMembership; - } - - public function getWhoCanViewMembership() - { - return $this->whoCanViewMembership; - } + public function getWhoCanViewMembership() { + return $this->whoCanViewMembership; + } } diff --git a/oauth/Google/Service/IdentityToolkit.php b/oauth/Google/Service/IdentityToolkit.php index eba918b..9ed64b4 100644 --- a/oauth/Google/Service/IdentityToolkit.php +++ b/oauth/Google/Service/IdentityToolkit.php @@ -29,80 +29,78 @@ * * @author Google, Inc. */ -class Google_Service_IdentityToolkit extends Google_Service -{ +class Google_Service_IdentityToolkit extends Google_Service { - public $relyingparty; - + public $relyingparty; - /** - * Constructs the internal representation of the IdentityToolkit service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'identitytoolkit/v3/relyingparty/'; - $this->version = 'v3'; - $this->serviceName = 'identitytoolkit'; - $this->relyingparty = new Google_Service_IdentityToolkit_Relyingparty_Resource( - $this, - $this->serviceName, - 'relyingparty', - array( - 'methods' => array( - 'createAuthUri' => array( - 'path' => 'createAuthUri', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'deleteAccount' => array( - 'path' => 'deleteAccount', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'downloadAccount' => array( - 'path' => 'downloadAccount', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'getAccountInfo' => array( - 'path' => 'getAccountInfo', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'getOobConfirmationCode' => array( - 'path' => 'getOobConfirmationCode', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'getPublicKeys' => array( - 'path' => 'publicKeys', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'resetPassword' => array( - 'path' => 'resetPassword', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'setAccountInfo' => array( - 'path' => 'setAccountInfo', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'uploadAccount' => array( - 'path' => 'uploadAccount', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'verifyAssertion' => array( - 'path' => 'verifyAssertion', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'verifyPassword' => array( - 'path' => 'verifyPassword', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the IdentityToolkit service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'identitytoolkit/v3/relyingparty/'; + $this->version = 'v3'; + $this->serviceName = 'identitytoolkit'; + + $this->relyingparty = new Google_Service_IdentityToolkit_Relyingparty_Resource( + $this, + $this->serviceName, + 'relyingparty', + array( + 'methods' => array( + 'createAuthUri' => array( + 'path' => 'createAuthUri', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'deleteAccount' => array( + 'path' => 'deleteAccount', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'downloadAccount' => array( + 'path' => 'downloadAccount', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'getAccountInfo' => array( + 'path' => 'getAccountInfo', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'getOobConfirmationCode' => array( + 'path' => 'getOobConfirmationCode', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'getPublicKeys' => array( + 'path' => 'publicKeys', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), 'resetPassword' => array( + 'path' => 'resetPassword', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'setAccountInfo' => array( + 'path' => 'setAccountInfo', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'uploadAccount' => array( + 'path' => 'uploadAccount', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'verifyAssertion' => array( + 'path' => 'verifyAssertion', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'verifyPassword' => array( + 'path' => 'verifyPassword', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } } @@ -114,1647 +112,1366 @@ class Google_Service_IdentityToolkit extends Google_Service * $relyingparty = $identitytoolkitService->relyingparty; * */ -class Google_Service_IdentityToolkit_Relyingparty_Resource extends Google_Service_Resource -{ +class Google_Service_IdentityToolkit_Relyingparty_Resource extends Google_Service_Resource { - /** - * Creates the URI used by the IdP to authenticate the user. - * (relyingparty.createAuthUri) - * - * @param Google_IdentitytoolkitRelyingpartyCreateAuthUriRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_CreateAuthUriResponse - */ - public function createAuthUri(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('createAuthUri', array($params), "Google_Service_IdentityToolkit_CreateAuthUriResponse"); - } - /** - * Delete user account. (relyingparty.deleteAccount) - * - * @param Google_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_DeleteAccountResponse - */ - public function deleteAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('deleteAccount', array($params), "Google_Service_IdentityToolkit_DeleteAccountResponse"); - } - /** - * Batch download user accounts. (relyingparty.downloadAccount) - * - * @param Google_IdentitytoolkitRelyingpartyDownloadAccountRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_DownloadAccountResponse - */ - public function downloadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('downloadAccount', array($params), "Google_Service_IdentityToolkit_DownloadAccountResponse"); - } - /** - * Returns the account info. (relyingparty.getAccountInfo) - * - * @param Google_IdentitytoolkitRelyingpartyGetAccountInfoRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_GetAccountInfoResponse - */ - public function getAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getAccountInfo', array($params), "Google_Service_IdentityToolkit_GetAccountInfoResponse"); - } - /** - * Get a code for user action confirmation. - * (relyingparty.getOobConfirmationCode) - * - * @param Google_Relyingparty $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse - */ - public function getOobConfirmationCode(Google_Service_IdentityToolkit_Relyingparty $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getOobConfirmationCode', array($params), "Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse"); - } - /** - * Get token signing public key. (relyingparty.getPublicKeys) - * - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse - */ - public function getPublicKeys($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('getPublicKeys', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse"); - } - /** - * Set account info for a user. (relyingparty.resetPassword) - * - * @param Google_IdentitytoolkitRelyingpartyResetPasswordRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_ResetPasswordResponse - */ - public function resetPassword(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('resetPassword', array($params), "Google_Service_IdentityToolkit_ResetPasswordResponse"); - } - /** - * Set account info for a user. (relyingparty.setAccountInfo) - * - * @param Google_IdentitytoolkitRelyingpartySetAccountInfoRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_SetAccountInfoResponse - */ - public function setAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setAccountInfo', array($params), "Google_Service_IdentityToolkit_SetAccountInfoResponse"); - } - /** - * Batch upload existing user accounts. (relyingparty.uploadAccount) - * - * @param Google_IdentitytoolkitRelyingpartyUploadAccountRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_UploadAccountResponse - */ - public function uploadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('uploadAccount', array($params), "Google_Service_IdentityToolkit_UploadAccountResponse"); - } - /** - * Verifies the assertion returned by the IdP. (relyingparty.verifyAssertion) - * - * @param Google_IdentitytoolkitRelyingpartyVerifyAssertionRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_VerifyAssertionResponse - */ - public function verifyAssertion(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('verifyAssertion', array($params), "Google_Service_IdentityToolkit_VerifyAssertionResponse"); - } - /** - * Verifies the user entered password. (relyingparty.verifyPassword) - * - * @param Google_IdentitytoolkitRelyingpartyVerifyPasswordRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_IdentityToolkit_VerifyPasswordResponse - */ - public function verifyPassword(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('verifyPassword', array($params), "Google_Service_IdentityToolkit_VerifyPasswordResponse"); - } + /** + * Creates the URI used by the IdP to authenticate the user. + * (relyingparty.createAuthUri) + * + * @param Google_IdentitytoolkitRelyingpartyCreateAuthUriRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_CreateAuthUriResponse + */ + public function createAuthUri(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createAuthUri', array($params), "Google_Service_IdentityToolkit_CreateAuthUriResponse"); + } + + /** + * Delete user account. (relyingparty.deleteAccount) + * + * @param Google_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_DeleteAccountResponse + */ + public function deleteAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('deleteAccount', array($params), "Google_Service_IdentityToolkit_DeleteAccountResponse"); + } + + /** + * Batch download user accounts. (relyingparty.downloadAccount) + * + * @param Google_IdentitytoolkitRelyingpartyDownloadAccountRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_DownloadAccountResponse + */ + public function downloadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('downloadAccount', array($params), "Google_Service_IdentityToolkit_DownloadAccountResponse"); + } + + /** + * Returns the account info. (relyingparty.getAccountInfo) + * + * @param Google_IdentitytoolkitRelyingpartyGetAccountInfoRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_GetAccountInfoResponse + */ + public function getAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getAccountInfo', array($params), "Google_Service_IdentityToolkit_GetAccountInfoResponse"); + } + + /** + * Get a code for user action confirmation. + * (relyingparty.getOobConfirmationCode) + * + * @param Google_Relyingparty $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse + */ + public function getOobConfirmationCode(Google_Service_IdentityToolkit_Relyingparty $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getOobConfirmationCode', array($params), "Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse"); + } + + /** + * Get token signing public key. (relyingparty.getPublicKeys) + * + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse + */ + public function getPublicKeys($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getPublicKeys', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse"); + } + + /** + * Set account info for a user. (relyingparty.resetPassword) + * + * @param Google_IdentitytoolkitRelyingpartyResetPasswordRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_ResetPasswordResponse + */ + public function resetPassword(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('resetPassword', array($params), "Google_Service_IdentityToolkit_ResetPasswordResponse"); + } + + /** + * Set account info for a user. (relyingparty.setAccountInfo) + * + * @param Google_IdentitytoolkitRelyingpartySetAccountInfoRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_SetAccountInfoResponse + */ + public function setAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setAccountInfo', array($params), "Google_Service_IdentityToolkit_SetAccountInfoResponse"); + } + + /** + * Batch upload existing user accounts. (relyingparty.uploadAccount) + * + * @param Google_IdentitytoolkitRelyingpartyUploadAccountRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_UploadAccountResponse + */ + public function uploadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('uploadAccount', array($params), "Google_Service_IdentityToolkit_UploadAccountResponse"); + } + + /** + * Verifies the assertion returned by the IdP. (relyingparty.verifyAssertion) + * + * @param Google_IdentitytoolkitRelyingpartyVerifyAssertionRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_VerifyAssertionResponse + */ + public function verifyAssertion(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('verifyAssertion', array($params), "Google_Service_IdentityToolkit_VerifyAssertionResponse"); + } + + /** + * Verifies the user entered password. (relyingparty.verifyPassword) + * + * @param Google_IdentitytoolkitRelyingpartyVerifyPasswordRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_VerifyPasswordResponse + */ + public function verifyPassword(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('verifyPassword', array($params), "Google_Service_IdentityToolkit_VerifyPasswordResponse"); + } } +class Google_Service_IdentityToolkit_CreateAuthUriResponse extends Google_Model { + public $authUri; + public $forExistingProvider; + public $kind; + public $providerId; + public $registered; + public function setAuthUri($authUri) { + $this->authUri = $authUri; + } -class Google_Service_IdentityToolkit_CreateAuthUriResponse extends Google_Model -{ - public $authUri; - public $forExistingProvider; - public $kind; - public $providerId; - public $registered; + public function getAuthUri() { + return $this->authUri; + } - public function setAuthUri($authUri) - { - $this->authUri = $authUri; - } + public function setForExistingProvider($forExistingProvider) { + $this->forExistingProvider = $forExistingProvider; + } - public function getAuthUri() - { - return $this->authUri; - } + public function getForExistingProvider() { + return $this->forExistingProvider; + } - public function setForExistingProvider($forExistingProvider) - { - $this->forExistingProvider = $forExistingProvider; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getForExistingProvider() - { - return $this->forExistingProvider; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setProviderId($providerId) { + $this->providerId = $providerId; + } - public function getKind() - { - return $this->kind; - } + public function getProviderId() { + return $this->providerId; + } - public function setProviderId($providerId) - { - $this->providerId = $providerId; - } + public function setRegistered($registered) { + $this->registered = $registered; + } - public function getProviderId() - { - return $this->providerId; - } - - public function setRegistered($registered) - { - $this->registered = $registered; - } - - public function getRegistered() - { - return $this->registered; - } + public function getRegistered() { + return $this->registered; + } } -class Google_Service_IdentityToolkit_DeleteAccountResponse extends Google_Model -{ - public $kind; +class Google_Service_IdentityToolkit_DeleteAccountResponse extends Google_Model { + public $kind; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_IdentityToolkit_DownloadAccountResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; - protected $usersDataType = 'array'; +class Google_Service_IdentityToolkit_DownloadAccountResponse extends Google_Collection { + public $kind; + public $nextPageToken; + protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; + protected $usersDataType = 'array'; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setUsers($users) - { - $this->users = $users; - } + public function setUsers($users) { + $this->users = $users; + } - public function getUsers() - { - return $this->users; - } + public function getUsers() { + return $this->users; + } } -class Google_Service_IdentityToolkit_GetAccountInfoResponse extends Google_Collection -{ - public $kind; - protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; - protected $usersDataType = 'array'; +class Google_Service_IdentityToolkit_GetAccountInfoResponse extends Google_Collection { + public $kind; + protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; + protected $usersDataType = 'array'; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setUsers($users) - { - $this->users = $users; - } + public function setUsers($users) { + $this->users = $users; + } - public function getUsers() - { - return $this->users; - } + public function getUsers() { + return $this->users; + } } -class Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse extends Google_Model -{ - public $kind; - public $oobCode; +class Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse extends Google_Model { + public $kind; + public $oobCode; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOobCode($oobCode) - { - $this->oobCode = $oobCode; - } + public function setOobCode($oobCode) { + $this->oobCode = $oobCode; + } - public function getOobCode() - { - return $this->oobCode; - } + public function getOobCode() { + return $this->oobCode; + } } -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest extends Google_Model -{ - public $appId; - public $clientId; - public $context; - public $continueUri; - public $identifier; - public $openidRealm; - public $otaApp; - public $providerId; +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest extends Google_Model { + public $appId; + public $clientId; + public $context; + public $continueUri; + public $identifier; + public $openidRealm; + public $otaApp; + public $providerId; - public function setAppId($appId) - { - $this->appId = $appId; - } + public function setAppId($appId) { + $this->appId = $appId; + } - public function getAppId() - { - return $this->appId; - } + public function getAppId() { + return $this->appId; + } - public function setClientId($clientId) - { - $this->clientId = $clientId; - } + public function setClientId($clientId) { + $this->clientId = $clientId; + } - public function getClientId() - { - return $this->clientId; - } + public function getClientId() { + return $this->clientId; + } - public function setContext($context) - { - $this->context = $context; - } + public function setContext($context) { + $this->context = $context; + } - public function getContext() - { - return $this->context; - } + public function getContext() { + return $this->context; + } - public function setContinueUri($continueUri) - { - $this->continueUri = $continueUri; - } + public function setContinueUri($continueUri) { + $this->continueUri = $continueUri; + } - public function getContinueUri() - { - return $this->continueUri; - } + public function getContinueUri() { + return $this->continueUri; + } - public function setIdentifier($identifier) - { - $this->identifier = $identifier; - } + public function setIdentifier($identifier) { + $this->identifier = $identifier; + } - public function getIdentifier() - { - return $this->identifier; - } + public function getIdentifier() { + return $this->identifier; + } - public function setOpenidRealm($openidRealm) - { - $this->openidRealm = $openidRealm; - } + public function setOpenidRealm($openidRealm) { + $this->openidRealm = $openidRealm; + } - public function getOpenidRealm() - { - return $this->openidRealm; - } + public function getOpenidRealm() { + return $this->openidRealm; + } - public function setOtaApp($otaApp) - { - $this->otaApp = $otaApp; - } + public function setOtaApp($otaApp) { + $this->otaApp = $otaApp; + } - public function getOtaApp() - { - return $this->otaApp; - } + public function getOtaApp() { + return $this->otaApp; + } - public function setProviderId($providerId) - { - $this->providerId = $providerId; - } + public function setProviderId($providerId) { + $this->providerId = $providerId; + } - public function getProviderId() - { - return $this->providerId; - } + public function getProviderId() { + return $this->providerId; + } } -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest extends Google_Model -{ - public $localId; +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest extends Google_Model { + public $localId; - public function setLocalId($localId) - { - $this->localId = $localId; - } + public function setLocalId($localId) { + $this->localId = $localId; + } - public function getLocalId() - { - return $this->localId; - } + public function getLocalId() { + return $this->localId; + } } -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest extends Google_Model -{ - public $maxResults; - public $nextPageToken; +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest extends Google_Model { + public $maxResults; + public $nextPageToken; - public function setMaxResults($maxResults) - { - $this->maxResults = $maxResults; - } + public function setMaxResults($maxResults) { + $this->maxResults = $maxResults; + } - public function getMaxResults() - { - return $this->maxResults; - } + public function getMaxResults() { + return $this->maxResults; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest extends Google_Collection -{ - public $email; - public $idToken; - public $localId; +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest extends Google_Collection { + public $email; + public $idToken; + public $localId; - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } + public function setIdToken($idToken) { + $this->idToken = $idToken; + } - public function getIdToken() - { - return $this->idToken; - } + public function getIdToken() { + return $this->idToken; + } - public function setLocalId($localId) - { - $this->localId = $localId; - } + public function setLocalId($localId) { + $this->localId = $localId; + } - public function getLocalId() - { - return $this->localId; - } + public function getLocalId() { + return $this->localId; + } } -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse extends Google_Model -{ +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse extends Google_Model { } -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest extends Google_Model -{ - public $email; - public $newPassword; - public $oldPassword; - public $oobCode; +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest extends Google_Model { + public $email; + public $newPassword; + public $oldPassword; + public $oobCode; - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setNewPassword($newPassword) - { - $this->newPassword = $newPassword; - } + public function setNewPassword($newPassword) { + $this->newPassword = $newPassword; + } - public function getNewPassword() - { - return $this->newPassword; - } + public function getNewPassword() { + return $this->newPassword; + } - public function setOldPassword($oldPassword) - { - $this->oldPassword = $oldPassword; - } + public function setOldPassword($oldPassword) { + $this->oldPassword = $oldPassword; + } - public function getOldPassword() - { - return $this->oldPassword; - } + public function getOldPassword() { + return $this->oldPassword; + } - public function setOobCode($oobCode) - { - $this->oobCode = $oobCode; - } + public function setOobCode($oobCode) { + $this->oobCode = $oobCode; + } - public function getOobCode() - { - return $this->oobCode; - } + public function getOobCode() { + return $this->oobCode; + } } -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest extends Google_Collection -{ - public $captchaChallenge; - public $captchaResponse; - public $displayName; - public $email; - public $emailVerified; - public $idToken; - public $localId; - public $oobCode; - public $password; - public $provider; - public $upgradeToFederatedLogin; +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest extends Google_Collection { + public $captchaChallenge; + public $captchaResponse; + public $displayName; + public $email; + public $emailVerified; + public $idToken; + public $localId; + public $oobCode; + public $password; + public $provider; + public $upgradeToFederatedLogin; - public function setCaptchaChallenge($captchaChallenge) - { - $this->captchaChallenge = $captchaChallenge; - } + public function setCaptchaChallenge($captchaChallenge) { + $this->captchaChallenge = $captchaChallenge; + } - public function getCaptchaChallenge() - { - return $this->captchaChallenge; - } + public function getCaptchaChallenge() { + return $this->captchaChallenge; + } - public function setCaptchaResponse($captchaResponse) - { - $this->captchaResponse = $captchaResponse; - } + public function setCaptchaResponse($captchaResponse) { + $this->captchaResponse = $captchaResponse; + } - public function getCaptchaResponse() - { - return $this->captchaResponse; - } + public function getCaptchaResponse() { + return $this->captchaResponse; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setEmailVerified($emailVerified) - { - $this->emailVerified = $emailVerified; - } + public function setEmailVerified($emailVerified) { + $this->emailVerified = $emailVerified; + } - public function getEmailVerified() - { - return $this->emailVerified; - } + public function getEmailVerified() { + return $this->emailVerified; + } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } + public function setIdToken($idToken) { + $this->idToken = $idToken; + } - public function getIdToken() - { - return $this->idToken; - } + public function getIdToken() { + return $this->idToken; + } - public function setLocalId($localId) - { - $this->localId = $localId; - } + public function setLocalId($localId) { + $this->localId = $localId; + } - public function getLocalId() - { - return $this->localId; - } + public function getLocalId() { + return $this->localId; + } - public function setOobCode($oobCode) - { - $this->oobCode = $oobCode; - } + public function setOobCode($oobCode) { + $this->oobCode = $oobCode; + } - public function getOobCode() - { - return $this->oobCode; - } + public function getOobCode() { + return $this->oobCode; + } - public function setPassword($password) - { - $this->password = $password; - } + public function setPassword($password) { + $this->password = $password; + } - public function getPassword() - { - return $this->password; - } + public function getPassword() { + return $this->password; + } - public function setProvider($provider) - { - $this->provider = $provider; - } + public function setProvider($provider) { + $this->provider = $provider; + } - public function getProvider() - { - return $this->provider; - } + public function getProvider() { + return $this->provider; + } - public function setUpgradeToFederatedLogin($upgradeToFederatedLogin) - { - $this->upgradeToFederatedLogin = $upgradeToFederatedLogin; - } + public function setUpgradeToFederatedLogin($upgradeToFederatedLogin) { + $this->upgradeToFederatedLogin = $upgradeToFederatedLogin; + } - public function getUpgradeToFederatedLogin() - { - return $this->upgradeToFederatedLogin; - } + public function getUpgradeToFederatedLogin() { + return $this->upgradeToFederatedLogin; + } } -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection -{ - public $hashAlgorithm; - public $memoryCost; - public $rounds; - public $saltSeparator; - public $signerKey; - protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; - protected $usersDataType = 'array'; +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection { + public $hashAlgorithm; + public $memoryCost; + public $rounds; + public $saltSeparator; + public $signerKey; + protected $usersType = 'Google_Service_IdentityToolkit_UserInfo'; + protected $usersDataType = 'array'; - public function setHashAlgorithm($hashAlgorithm) - { - $this->hashAlgorithm = $hashAlgorithm; - } + public function setHashAlgorithm($hashAlgorithm) { + $this->hashAlgorithm = $hashAlgorithm; + } - public function getHashAlgorithm() - { - return $this->hashAlgorithm; - } + public function getHashAlgorithm() { + return $this->hashAlgorithm; + } - public function setMemoryCost($memoryCost) - { - $this->memoryCost = $memoryCost; - } + public function setMemoryCost($memoryCost) { + $this->memoryCost = $memoryCost; + } - public function getMemoryCost() - { - return $this->memoryCost; - } + public function getMemoryCost() { + return $this->memoryCost; + } - public function setRounds($rounds) - { - $this->rounds = $rounds; - } + public function setRounds($rounds) { + $this->rounds = $rounds; + } - public function getRounds() - { - return $this->rounds; - } + public function getRounds() { + return $this->rounds; + } - public function setSaltSeparator($saltSeparator) - { - $this->saltSeparator = $saltSeparator; - } + public function setSaltSeparator($saltSeparator) { + $this->saltSeparator = $saltSeparator; + } - public function getSaltSeparator() - { - return $this->saltSeparator; - } + public function getSaltSeparator() { + return $this->saltSeparator; + } - public function setSignerKey($signerKey) - { - $this->signerKey = $signerKey; - } + public function setSignerKey($signerKey) { + $this->signerKey = $signerKey; + } - public function getSignerKey() - { - return $this->signerKey; - } + public function getSignerKey() { + return $this->signerKey; + } - public function setUsers($users) - { - $this->users = $users; - } + public function setUsers($users) { + $this->users = $users; + } - public function getUsers() - { - return $this->users; - } + public function getUsers() { + return $this->users; + } } -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest extends Google_Model -{ - public $pendingIdToken; - public $postBody; - public $requestUri; +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest extends Google_Model { + public $pendingIdToken; + public $postBody; + public $requestUri; - public function setPendingIdToken($pendingIdToken) - { - $this->pendingIdToken = $pendingIdToken; - } + public function setPendingIdToken($pendingIdToken) { + $this->pendingIdToken = $pendingIdToken; + } - public function getPendingIdToken() - { - return $this->pendingIdToken; - } + public function getPendingIdToken() { + return $this->pendingIdToken; + } - public function setPostBody($postBody) - { - $this->postBody = $postBody; - } + public function setPostBody($postBody) { + $this->postBody = $postBody; + } - public function getPostBody() - { - return $this->postBody; - } + public function getPostBody() { + return $this->postBody; + } - public function setRequestUri($requestUri) - { - $this->requestUri = $requestUri; - } + public function setRequestUri($requestUri) { + $this->requestUri = $requestUri; + } - public function getRequestUri() - { - return $this->requestUri; - } + public function getRequestUri() { + return $this->requestUri; + } } -class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest extends Google_Model -{ - public $captchaChallenge; - public $captchaResponse; - public $email; - public $password; - public $pendingIdToken; +class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest extends Google_Model { + public $captchaChallenge; + public $captchaResponse; + public $email; + public $password; + public $pendingIdToken; - public function setCaptchaChallenge($captchaChallenge) - { - $this->captchaChallenge = $captchaChallenge; - } + public function setCaptchaChallenge($captchaChallenge) { + $this->captchaChallenge = $captchaChallenge; + } - public function getCaptchaChallenge() - { - return $this->captchaChallenge; - } + public function getCaptchaChallenge() { + return $this->captchaChallenge; + } - public function setCaptchaResponse($captchaResponse) - { - $this->captchaResponse = $captchaResponse; - } + public function setCaptchaResponse($captchaResponse) { + $this->captchaResponse = $captchaResponse; + } - public function getCaptchaResponse() - { - return $this->captchaResponse; - } + public function getCaptchaResponse() { + return $this->captchaResponse; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setPassword($password) - { - $this->password = $password; - } + public function setPassword($password) { + $this->password = $password; + } - public function getPassword() - { - return $this->password; - } + public function getPassword() { + return $this->password; + } - public function setPendingIdToken($pendingIdToken) - { - $this->pendingIdToken = $pendingIdToken; - } + public function setPendingIdToken($pendingIdToken) { + $this->pendingIdToken = $pendingIdToken; + } - public function getPendingIdToken() - { - return $this->pendingIdToken; - } + public function getPendingIdToken() { + return $this->pendingIdToken; + } } -class Google_Service_IdentityToolkit_Relyingparty extends Google_Model -{ - public $captchaResp; - public $challenge; - public $email; - public $idToken; - public $kind; - public $newEmail; - public $requestType; - public $userIp; +class Google_Service_IdentityToolkit_Relyingparty extends Google_Model { + public $captchaResp; + public $challenge; + public $email; + public $idToken; + public $kind; + public $newEmail; + public $requestType; + public $userIp; - public function setCaptchaResp($captchaResp) - { - $this->captchaResp = $captchaResp; - } + public function setCaptchaResp($captchaResp) { + $this->captchaResp = $captchaResp; + } - public function getCaptchaResp() - { - return $this->captchaResp; - } + public function getCaptchaResp() { + return $this->captchaResp; + } - public function setChallenge($challenge) - { - $this->challenge = $challenge; - } + public function setChallenge($challenge) { + $this->challenge = $challenge; + } - public function getChallenge() - { - return $this->challenge; - } + public function getChallenge() { + return $this->challenge; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } + public function setIdToken($idToken) { + $this->idToken = $idToken; + } - public function getIdToken() - { - return $this->idToken; - } + public function getIdToken() { + return $this->idToken; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNewEmail($newEmail) - { - $this->newEmail = $newEmail; - } + public function setNewEmail($newEmail) { + $this->newEmail = $newEmail; + } - public function getNewEmail() - { - return $this->newEmail; - } + public function getNewEmail() { + return $this->newEmail; + } - public function setRequestType($requestType) - { - $this->requestType = $requestType; - } + public function setRequestType($requestType) { + $this->requestType = $requestType; + } - public function getRequestType() - { - return $this->requestType; - } + public function getRequestType() { + return $this->requestType; + } - public function setUserIp($userIp) - { - $this->userIp = $userIp; - } + public function setUserIp($userIp) { + $this->userIp = $userIp; + } - public function getUserIp() - { - return $this->userIp; - } + public function getUserIp() { + return $this->userIp; + } } -class Google_Service_IdentityToolkit_ResetPasswordResponse extends Google_Model -{ - public $email; - public $kind; +class Google_Service_IdentityToolkit_ResetPasswordResponse extends Google_Model { + public $email; + public $kind; - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_IdentityToolkit_SetAccountInfoResponse extends Google_Collection -{ - public $displayName; - public $email; - public $idToken; - public $kind; - protected $providerUserInfoType = 'Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo'; - protected $providerUserInfoDataType = 'array'; +class Google_Service_IdentityToolkit_SetAccountInfoResponse extends Google_Collection { + public $displayName; + public $email; + public $idToken; + public $kind; + protected $providerUserInfoType = 'Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo'; + protected $providerUserInfoDataType = 'array'; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } + public function setIdToken($idToken) { + $this->idToken = $idToken; + } - public function getIdToken() - { - return $this->idToken; - } + public function getIdToken() { + return $this->idToken; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setProviderUserInfo($providerUserInfo) - { - $this->providerUserInfo = $providerUserInfo; - } + public function setProviderUserInfo($providerUserInfo) { + $this->providerUserInfo = $providerUserInfo; + } - public function getProviderUserInfo() - { - return $this->providerUserInfo; - } + public function getProviderUserInfo() { + return $this->providerUserInfo; + } } -class Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo extends Google_Model -{ - public $displayName; - public $photoUrl; - public $providerId; +class Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo extends Google_Model { + public $displayName; + public $photoUrl; + public $providerId; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } + public function setPhotoUrl($photoUrl) { + $this->photoUrl = $photoUrl; + } - public function getPhotoUrl() - { - return $this->photoUrl; - } + public function getPhotoUrl() { + return $this->photoUrl; + } - public function setProviderId($providerId) - { - $this->providerId = $providerId; - } + public function setProviderId($providerId) { + $this->providerId = $providerId; + } - public function getProviderId() - { - return $this->providerId; - } + public function getProviderId() { + return $this->providerId; + } } -class Google_Service_IdentityToolkit_UploadAccountResponse extends Google_Collection -{ - protected $errorType = 'Google_Service_IdentityToolkit_UploadAccountResponseError'; - protected $errorDataType = 'array'; - public $kind; +class Google_Service_IdentityToolkit_UploadAccountResponse extends Google_Collection { + protected $errorType = 'Google_Service_IdentityToolkit_UploadAccountResponseError'; + protected $errorDataType = 'array'; + public $kind; - public function setError($error) - { - $this->error = $error; - } + public function setError($error) { + $this->error = $error; + } - public function getError() - { - return $this->error; - } + public function getError() { + return $this->error; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_IdentityToolkit_UploadAccountResponseError extends Google_Model -{ - public $index; - public $message; +class Google_Service_IdentityToolkit_UploadAccountResponseError extends Google_Model { + public $index; + public $message; - public function setIndex($index) - { - $this->index = $index; - } + public function setIndex($index) { + $this->index = $index; + } - public function getIndex() - { - return $this->index; - } + public function getIndex() { + return $this->index; + } - public function setMessage($message) - { - $this->message = $message; - } + public function setMessage($message) { + $this->message = $message; + } - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } } -class Google_Service_IdentityToolkit_UserInfo extends Google_Collection -{ - public $displayName; - public $email; - public $emailVerified; - public $localId; - public $passwordHash; - public $passwordUpdatedAt; - public $photoUrl; - protected $providerUserInfoType = 'Google_Service_IdentityToolkit_UserInfoProviderUserInfo'; - protected $providerUserInfoDataType = 'array'; - public $salt; - public $version; +class Google_Service_IdentityToolkit_UserInfo extends Google_Collection { + public $displayName; + public $email; + public $emailVerified; + public $localId; + public $passwordHash; + public $passwordUpdatedAt; + public $photoUrl; + protected $providerUserInfoType = 'Google_Service_IdentityToolkit_UserInfoProviderUserInfo'; + protected $providerUserInfoDataType = 'array'; + public $salt; + public $version; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setEmailVerified($emailVerified) - { - $this->emailVerified = $emailVerified; - } + public function setEmailVerified($emailVerified) { + $this->emailVerified = $emailVerified; + } - public function getEmailVerified() - { - return $this->emailVerified; - } + public function getEmailVerified() { + return $this->emailVerified; + } - public function setLocalId($localId) - { - $this->localId = $localId; - } + public function setLocalId($localId) { + $this->localId = $localId; + } - public function getLocalId() - { - return $this->localId; - } + public function getLocalId() { + return $this->localId; + } - public function setPasswordHash($passwordHash) - { - $this->passwordHash = $passwordHash; - } + public function setPasswordHash($passwordHash) { + $this->passwordHash = $passwordHash; + } - public function getPasswordHash() - { - return $this->passwordHash; - } + public function getPasswordHash() { + return $this->passwordHash; + } - public function setPasswordUpdatedAt($passwordUpdatedAt) - { - $this->passwordUpdatedAt = $passwordUpdatedAt; - } + public function setPasswordUpdatedAt($passwordUpdatedAt) { + $this->passwordUpdatedAt = $passwordUpdatedAt; + } - public function getPasswordUpdatedAt() - { - return $this->passwordUpdatedAt; - } + public function getPasswordUpdatedAt() { + return $this->passwordUpdatedAt; + } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } + public function setPhotoUrl($photoUrl) { + $this->photoUrl = $photoUrl; + } - public function getPhotoUrl() - { - return $this->photoUrl; - } + public function getPhotoUrl() { + return $this->photoUrl; + } - public function setProviderUserInfo($providerUserInfo) - { - $this->providerUserInfo = $providerUserInfo; - } + public function setProviderUserInfo($providerUserInfo) { + $this->providerUserInfo = $providerUserInfo; + } - public function getProviderUserInfo() - { - return $this->providerUserInfo; - } + public function getProviderUserInfo() { + return $this->providerUserInfo; + } - public function setSalt($salt) - { - $this->salt = $salt; - } + public function setSalt($salt) { + $this->salt = $salt; + } - public function getSalt() - { - return $this->salt; - } + public function getSalt() { + return $this->salt; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_IdentityToolkit_UserInfoProviderUserInfo extends Google_Model -{ - public $displayName; - public $federatedId; - public $photoUrl; - public $providerId; +class Google_Service_IdentityToolkit_UserInfoProviderUserInfo extends Google_Model { + public $displayName; + public $federatedId; + public $photoUrl; + public $providerId; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setFederatedId($federatedId) - { - $this->federatedId = $federatedId; - } + public function setFederatedId($federatedId) { + $this->federatedId = $federatedId; + } - public function getFederatedId() - { - return $this->federatedId; - } + public function getFederatedId() { + return $this->federatedId; + } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } + public function setPhotoUrl($photoUrl) { + $this->photoUrl = $photoUrl; + } - public function getPhotoUrl() - { - return $this->photoUrl; - } + public function getPhotoUrl() { + return $this->photoUrl; + } - public function setProviderId($providerId) - { - $this->providerId = $providerId; - } + public function setProviderId($providerId) { + $this->providerId = $providerId; + } - public function getProviderId() - { - return $this->providerId; - } + public function getProviderId() { + return $this->providerId; + } } -class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Collection -{ - public $action; - public $appInstallationUrl; - public $appScheme; - public $context; - public $dateOfBirth; - public $displayName; - public $email; - public $emailRecycled; - public $emailVerified; - public $federatedId; - public $firstName; - public $fullName; - public $idToken; - public $inputEmail; - public $kind; - public $language; - public $lastName; - public $localId; - public $needConfirmation; - public $nickName; - public $oauthRequestToken; - public $oauthScope; - public $originalEmail; - public $photoUrl; - public $providerId; - public $timeZone; - public $verifiedProvider; +class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Collection { + public $action; + public $appInstallationUrl; + public $appScheme; + public $context; + public $dateOfBirth; + public $displayName; + public $email; + public $emailRecycled; + public $emailVerified; + public $federatedId; + public $firstName; + public $fullName; + public $idToken; + public $inputEmail; + public $kind; + public $language; + public $lastName; + public $localId; + public $needConfirmation; + public $nickName; + public $oauthRequestToken; + public $oauthScope; + public $originalEmail; + public $photoUrl; + public $providerId; + public $timeZone; + public $verifiedProvider; - public function setAction($action) - { - $this->action = $action; - } + public function setAction($action) { + $this->action = $action; + } - public function getAction() - { - return $this->action; - } + public function getAction() { + return $this->action; + } - public function setAppInstallationUrl($appInstallationUrl) - { - $this->appInstallationUrl = $appInstallationUrl; - } + public function setAppInstallationUrl($appInstallationUrl) { + $this->appInstallationUrl = $appInstallationUrl; + } - public function getAppInstallationUrl() - { - return $this->appInstallationUrl; - } + public function getAppInstallationUrl() { + return $this->appInstallationUrl; + } - public function setAppScheme($appScheme) - { - $this->appScheme = $appScheme; - } + public function setAppScheme($appScheme) { + $this->appScheme = $appScheme; + } - public function getAppScheme() - { - return $this->appScheme; - } + public function getAppScheme() { + return $this->appScheme; + } - public function setContext($context) - { - $this->context = $context; - } + public function setContext($context) { + $this->context = $context; + } - public function getContext() - { - return $this->context; - } + public function getContext() { + return $this->context; + } - public function setDateOfBirth($dateOfBirth) - { - $this->dateOfBirth = $dateOfBirth; - } + public function setDateOfBirth($dateOfBirth) { + $this->dateOfBirth = $dateOfBirth; + } - public function getDateOfBirth() - { - return $this->dateOfBirth; - } + public function getDateOfBirth() { + return $this->dateOfBirth; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setEmailRecycled($emailRecycled) - { - $this->emailRecycled = $emailRecycled; - } + public function setEmailRecycled($emailRecycled) { + $this->emailRecycled = $emailRecycled; + } - public function getEmailRecycled() - { - return $this->emailRecycled; - } + public function getEmailRecycled() { + return $this->emailRecycled; + } - public function setEmailVerified($emailVerified) - { - $this->emailVerified = $emailVerified; - } + public function setEmailVerified($emailVerified) { + $this->emailVerified = $emailVerified; + } - public function getEmailVerified() - { - return $this->emailVerified; - } + public function getEmailVerified() { + return $this->emailVerified; + } - public function setFederatedId($federatedId) - { - $this->federatedId = $federatedId; - } + public function setFederatedId($federatedId) { + $this->federatedId = $federatedId; + } - public function getFederatedId() - { - return $this->federatedId; - } + public function getFederatedId() { + return $this->federatedId; + } - public function setFirstName($firstName) - { - $this->firstName = $firstName; - } + public function setFirstName($firstName) { + $this->firstName = $firstName; + } - public function getFirstName() - { - return $this->firstName; - } + public function getFirstName() { + return $this->firstName; + } - public function setFullName($fullName) - { - $this->fullName = $fullName; - } + public function setFullName($fullName) { + $this->fullName = $fullName; + } - public function getFullName() - { - return $this->fullName; - } + public function getFullName() { + return $this->fullName; + } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } + public function setIdToken($idToken) { + $this->idToken = $idToken; + } - public function getIdToken() - { - return $this->idToken; - } + public function getIdToken() { + return $this->idToken; + } - public function setInputEmail($inputEmail) - { - $this->inputEmail = $inputEmail; - } + public function setInputEmail($inputEmail) { + $this->inputEmail = $inputEmail; + } - public function getInputEmail() - { - return $this->inputEmail; - } + public function getInputEmail() { + return $this->inputEmail; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLanguage($language) - { - $this->language = $language; - } + public function setLanguage($language) { + $this->language = $language; + } - public function getLanguage() - { - return $this->language; - } + public function getLanguage() { + return $this->language; + } - public function setLastName($lastName) - { - $this->lastName = $lastName; - } + public function setLastName($lastName) { + $this->lastName = $lastName; + } - public function getLastName() - { - return $this->lastName; - } + public function getLastName() { + return $this->lastName; + } - public function setLocalId($localId) - { - $this->localId = $localId; - } + public function setLocalId($localId) { + $this->localId = $localId; + } - public function getLocalId() - { - return $this->localId; - } + public function getLocalId() { + return $this->localId; + } - public function setNeedConfirmation($needConfirmation) - { - $this->needConfirmation = $needConfirmation; - } + public function setNeedConfirmation($needConfirmation) { + $this->needConfirmation = $needConfirmation; + } - public function getNeedConfirmation() - { - return $this->needConfirmation; - } + public function getNeedConfirmation() { + return $this->needConfirmation; + } - public function setNickName($nickName) - { - $this->nickName = $nickName; - } + public function setNickName($nickName) { + $this->nickName = $nickName; + } - public function getNickName() - { - return $this->nickName; - } + public function getNickName() { + return $this->nickName; + } - public function setOauthRequestToken($oauthRequestToken) - { - $this->oauthRequestToken = $oauthRequestToken; - } + public function setOauthRequestToken($oauthRequestToken) { + $this->oauthRequestToken = $oauthRequestToken; + } - public function getOauthRequestToken() - { - return $this->oauthRequestToken; - } + public function getOauthRequestToken() { + return $this->oauthRequestToken; + } - public function setOauthScope($oauthScope) - { - $this->oauthScope = $oauthScope; - } + public function setOauthScope($oauthScope) { + $this->oauthScope = $oauthScope; + } - public function getOauthScope() - { - return $this->oauthScope; - } + public function getOauthScope() { + return $this->oauthScope; + } - public function setOriginalEmail($originalEmail) - { - $this->originalEmail = $originalEmail; - } + public function setOriginalEmail($originalEmail) { + $this->originalEmail = $originalEmail; + } - public function getOriginalEmail() - { - return $this->originalEmail; - } + public function getOriginalEmail() { + return $this->originalEmail; + } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } + public function setPhotoUrl($photoUrl) { + $this->photoUrl = $photoUrl; + } - public function getPhotoUrl() - { - return $this->photoUrl; - } + public function getPhotoUrl() { + return $this->photoUrl; + } - public function setProviderId($providerId) - { - $this->providerId = $providerId; - } + public function setProviderId($providerId) { + $this->providerId = $providerId; + } - public function getProviderId() - { - return $this->providerId; - } + public function getProviderId() { + return $this->providerId; + } - public function setTimeZone($timeZone) - { - $this->timeZone = $timeZone; - } + public function setTimeZone($timeZone) { + $this->timeZone = $timeZone; + } - public function getTimeZone() - { - return $this->timeZone; - } + public function getTimeZone() { + return $this->timeZone; + } - public function setVerifiedProvider($verifiedProvider) - { - $this->verifiedProvider = $verifiedProvider; - } + public function setVerifiedProvider($verifiedProvider) { + $this->verifiedProvider = $verifiedProvider; + } - public function getVerifiedProvider() - { - return $this->verifiedProvider; - } + public function getVerifiedProvider() { + return $this->verifiedProvider; + } } -class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model -{ - public $displayName; - public $email; - public $idToken; - public $kind; - public $localId; - public $photoUrl; - public $registered; +class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model { + public $displayName; + public $email; + public $idToken; + public $kind; + public $localId; + public $photoUrl; + public $registered; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setIdToken($idToken) - { - $this->idToken = $idToken; - } + public function setIdToken($idToken) { + $this->idToken = $idToken; + } - public function getIdToken() - { - return $this->idToken; - } + public function getIdToken() { + return $this->idToken; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLocalId($localId) - { - $this->localId = $localId; - } + public function setLocalId($localId) { + $this->localId = $localId; + } - public function getLocalId() - { - return $this->localId; - } + public function getLocalId() { + return $this->localId; + } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } + public function setPhotoUrl($photoUrl) { + $this->photoUrl = $photoUrl; + } - public function getPhotoUrl() - { - return $this->photoUrl; - } + public function getPhotoUrl() { + return $this->photoUrl; + } - public function setRegistered($registered) - { - $this->registered = $registered; - } + public function setRegistered($registered) { + $this->registered = $registered; + } - public function getRegistered() - { - return $this->registered; - } + public function getRegistered() { + return $this->registered; + } } diff --git a/oauth/Google/Service/Licensing.php b/oauth/Google/Service/Licensing.php index 81b13ba..5c050a1 100644 --- a/oauth/Google/Service/Licensing.php +++ b/oauth/Google/Service/Licensing.php @@ -29,182 +29,180 @@ * * @author Google, Inc. */ -class Google_Service_Licensing extends Google_Service -{ +class Google_Service_Licensing extends Google_Service { - public $licenseAssignments; - + public $licenseAssignments; - /** - * Constructs the internal representation of the Licensing service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'apps/licensing/v1/product/'; - $this->version = 'v1'; - $this->serviceName = 'licensing'; - $this->licenseAssignments = new Google_Service_Licensing_LicenseAssignments_Resource( - $this, - $this->serviceName, - 'licenseAssignments', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{productId}/sku/{skuId}/user/{userId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{productId}/sku/{skuId}/user/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{productId}/sku/{skuId}/user', - 'httpMethod' => 'POST', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'listForProduct' => array( - 'path' => '{productId}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'listForProductAndSku' => array( - 'path' => '{productId}/sku/{skuId}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{productId}/sku/{skuId}/user/{userId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{productId}/sku/{skuId}/user/{userId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'skuId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Licensing service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'apps/licensing/v1/product/'; + $this->version = 'v1'; + $this->serviceName = 'licensing'; + + $this->licenseAssignments = new Google_Service_Licensing_LicenseAssignments_Resource( + $this, + $this->serviceName, + 'licenseAssignments', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{productId}/sku/{skuId}/user/{userId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'skuId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{productId}/sku/{skuId}/user/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'skuId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{productId}/sku/{skuId}/user', + 'httpMethod' => 'POST', + 'parameters' => array( + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'skuId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'listForProduct' => array( + 'path' => '{productId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customerId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'listForProductAndSku' => array( + 'path' => '{productId}/sku/{skuId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'skuId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customerId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => '{productId}/sku/{skuId}/user/{userId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'skuId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{productId}/sku/{skuId}/user/{userId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'skuId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -216,284 +214,255 @@ class Google_Service_Licensing extends Google_Service * $licenseAssignments = $licensingService->licenseAssignments; * */ -class Google_Service_Licensing_LicenseAssignments_Resource extends Google_Service_Resource -{ +class Google_Service_Licensing_LicenseAssignments_Resource extends Google_Service_Resource { - /** - * Revoke License. (licenseAssignments.delete) - * - * @param string $productId - * Name for product - * @param string $skuId - * Name for sku - * @param string $userId - * email id or unique Id of the user - * @param array $optParams Optional parameters. - */ - public function delete($productId, $skuId, $userId, $optParams = array()) - { - $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Get license assignment of a particular product and sku for a user - * (licenseAssignments.get) - * - * @param string $productId - * Name for product - * @param string $skuId - * Name for sku - * @param string $userId - * email id or unique Id of the user - * @param array $optParams Optional parameters. - * @return Google_Service_Licensing_LicenseAssignment - */ - public function get($productId, $skuId, $userId, $optParams = array()) - { - $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Licensing_LicenseAssignment"); - } - /** - * Assign License. (licenseAssignments.insert) - * - * @param string $productId - * Name for product - * @param string $skuId - * Name for sku - * @param Google_LicenseAssignmentInsert $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Licensing_LicenseAssignment - */ - public function insert($productId, $skuId, Google_Service_Licensing_LicenseAssignmentInsert $postBody, $optParams = array()) - { - $params = array('productId' => $productId, 'skuId' => $skuId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Licensing_LicenseAssignment"); - } - /** - * List license assignments for given product of the customer. - * (licenseAssignments.listForProduct) - * - * @param string $productId - * Name for product - * @param string $customerId - * CustomerId represents the customer for whom licenseassignments are queried - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Token to fetch the next page.Optional. By default server will return first page - * @opt_param string maxResults - * Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is - * 100. - * @return Google_Service_Licensing_LicenseAssignmentList - */ - public function listForProduct($productId, $customerId, $optParams = array()) - { - $params = array('productId' => $productId, 'customerId' => $customerId); - $params = array_merge($params, $optParams); - return $this->call('listForProduct', array($params), "Google_Service_Licensing_LicenseAssignmentList"); - } - /** - * List license assignments for given product and sku of the customer. - * (licenseAssignments.listForProductAndSku) - * - * @param string $productId - * Name for product - * @param string $skuId - * Name for sku - * @param string $customerId - * CustomerId represents the customer for whom licenseassignments are queried - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Token to fetch the next page.Optional. By default server will return first page - * @opt_param string maxResults - * Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is - * 100. - * @return Google_Service_Licensing_LicenseAssignmentList - */ - public function listForProductAndSku($productId, $skuId, $customerId, $optParams = array()) - { - $params = array('productId' => $productId, 'skuId' => $skuId, 'customerId' => $customerId); - $params = array_merge($params, $optParams); - return $this->call('listForProductAndSku', array($params), "Google_Service_Licensing_LicenseAssignmentList"); - } - /** - * Assign License. This method supports patch semantics. - * (licenseAssignments.patch) - * - * @param string $productId - * Name for product - * @param string $skuId - * Name for sku for which license would be revoked - * @param string $userId - * email id or unique Id of the user - * @param Google_LicenseAssignment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Licensing_LicenseAssignment - */ - public function patch($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array()) - { - $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Licensing_LicenseAssignment"); - } - /** - * Assign License. (licenseAssignments.update) - * - * @param string $productId - * Name for product - * @param string $skuId - * Name for sku for which license would be revoked - * @param string $userId - * email id or unique Id of the user - * @param Google_LicenseAssignment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Licensing_LicenseAssignment - */ - public function update($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array()) - { - $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Licensing_LicenseAssignment"); - } + /** + * Revoke License. (licenseAssignments.delete) + * + * @param string $productId + * Name for product + * @param string $skuId + * Name for sku + * @param string $userId + * email id or unique Id of the user + * @param array $optParams Optional parameters. + */ + public function delete($productId, $skuId, $userId, $optParams = array()) { + $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Get license assignment of a particular product and sku for a user + * (licenseAssignments.get) + * + * @param string $productId + * Name for product + * @param string $skuId + * Name for sku + * @param string $userId + * email id or unique Id of the user + * @param array $optParams Optional parameters. + * @return Google_Service_Licensing_LicenseAssignment + */ + public function get($productId, $skuId, $userId, $optParams = array()) { + $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Licensing_LicenseAssignment"); + } + + /** + * Assign License. (licenseAssignments.insert) + * + * @param string $productId + * Name for product + * @param string $skuId + * Name for sku + * @param Google_LicenseAssignmentInsert $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Licensing_LicenseAssignment + */ + public function insert($productId, $skuId, Google_Service_Licensing_LicenseAssignmentInsert $postBody, $optParams = array()) { + $params = array('productId' => $productId, 'skuId' => $skuId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Licensing_LicenseAssignment"); + } + + /** + * List license assignments for given product of the customer. + * (licenseAssignments.listForProduct) + * + * @param string $productId + * Name for product + * @param string $customerId + * CustomerId represents the customer for whom licenseassignments are queried + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Token to fetch the next page.Optional. By default server will return first page + * @opt_param string maxResults + * Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is + * 100. + * @return Google_Service_Licensing_LicenseAssignmentList + */ + public function listForProduct($productId, $customerId, $optParams = array()) { + $params = array('productId' => $productId, 'customerId' => $customerId); + $params = array_merge($params, $optParams); + return $this->call('listForProduct', array($params), "Google_Service_Licensing_LicenseAssignmentList"); + } + + /** + * List license assignments for given product and sku of the customer. + * (licenseAssignments.listForProductAndSku) + * + * @param string $productId + * Name for product + * @param string $skuId + * Name for sku + * @param string $customerId + * CustomerId represents the customer for whom licenseassignments are queried + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Token to fetch the next page.Optional. By default server will return first page + * @opt_param string maxResults + * Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is + * 100. + * @return Google_Service_Licensing_LicenseAssignmentList + */ + public function listForProductAndSku($productId, $skuId, $customerId, $optParams = array()) { + $params = array('productId' => $productId, 'skuId' => $skuId, 'customerId' => $customerId); + $params = array_merge($params, $optParams); + return $this->call('listForProductAndSku', array($params), "Google_Service_Licensing_LicenseAssignmentList"); + } + + /** + * Assign License. This method supports patch semantics. + * (licenseAssignments.patch) + * + * @param string $productId + * Name for product + * @param string $skuId + * Name for sku for which license would be revoked + * @param string $userId + * email id or unique Id of the user + * @param Google_LicenseAssignment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Licensing_LicenseAssignment + */ + public function patch($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array()) { + $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Licensing_LicenseAssignment"); + } + + /** + * Assign License. (licenseAssignments.update) + * + * @param string $productId + * Name for product + * @param string $skuId + * Name for sku for which license would be revoked + * @param string $userId + * email id or unique Id of the user + * @param Google_LicenseAssignment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Licensing_LicenseAssignment + */ + public function update($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array()) { + $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Licensing_LicenseAssignment"); + } } +class Google_Service_Licensing_LicenseAssignment extends Google_Model { + public $etags; + public $kind; + public $productId; + public $selfLink; + public $skuId; + public $userId; + public function setEtags($etags) { + $this->etags = $etags; + } -class Google_Service_Licensing_LicenseAssignment extends Google_Model -{ - public $etags; - public $kind; - public $productId; - public $selfLink; - public $skuId; - public $userId; + public function getEtags() { + return $this->etags; + } - public function setEtags($etags) - { - $this->etags = $etags; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getEtags() - { - return $this->etags; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setProductId($productId) { + $this->productId = $productId; + } - public function getKind() - { - return $this->kind; - } + public function getProductId() { + return $this->productId; + } - public function setProductId($productId) - { - $this->productId = $productId; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getProductId() - { - return $this->productId; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSkuId($skuId) { + $this->skuId = $skuId; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSkuId() { + return $this->skuId; + } - public function setSkuId($skuId) - { - $this->skuId = $skuId; - } + public function setUserId($userId) { + $this->userId = $userId; + } - public function getSkuId() - { - return $this->skuId; - } - - public function setUserId($userId) - { - $this->userId = $userId; - } - - public function getUserId() - { - return $this->userId; - } + public function getUserId() { + return $this->userId; + } } -class Google_Service_Licensing_LicenseAssignmentInsert extends Google_Model -{ - public $userId; +class Google_Service_Licensing_LicenseAssignmentInsert extends Google_Model { + public $userId; - public function setUserId($userId) - { - $this->userId = $userId; - } + public function setUserId($userId) { + $this->userId = $userId; + } - public function getUserId() - { - return $this->userId; - } + public function getUserId() { + return $this->userId; + } } -class Google_Service_Licensing_LicenseAssignmentList extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Licensing_LicenseAssignment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Licensing_LicenseAssignmentList extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Licensing_LicenseAssignment'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } diff --git a/oauth/Google/Service/Manager.php b/oauth/Google/Service/Manager.php index e997188..0157795 100644 --- a/oauth/Google/Service/Manager.php +++ b/oauth/Google/Service/Manager.php @@ -29,194 +29,192 @@ * * @author Google, Inc. */ -class Google_Service_Manager extends Google_Service -{ - /** View and manage your applications deployed on Google App Engine. */ - const APPENGINE_ADMIN = "https://www.googleapis.com/auth/appengine.admin"; - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - /** View and manage your Google Compute Engine resources. */ - const COMPUTE = "https://www.googleapis.com/auth/compute"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; - /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; - /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly"; +class Google_Service_Manager extends Google_Service { + /** View and manage your applications deployed on Google App Engine. */ + const APPENGINE_ADMIN = "https://www.googleapis.com/auth/appengine.admin"; + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage your Google Compute Engine resources. */ + const COMPUTE = "https://www.googleapis.com/auth/compute"; + /** Manage your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; + /** View and manage your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; + /** View your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly"; - public $deployments; - public $templates; - + public $deployments; + public $templates; - /** - * Constructs the internal representation of the Manager service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'manager/v1beta2/projects/'; - $this->version = 'v1beta2'; - $this->serviceName = 'manager'; - $this->deployments = new Google_Service_Manager_Deployments_Resource( - $this, - $this->serviceName, - 'deployments', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{projectId}/regions/{region}/deployments/{deploymentName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deploymentName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{projectId}/regions/{region}/deployments/{deploymentName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deploymentName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{projectId}/regions/{region}/deployments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{projectId}/regions/{region}/deployments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->templates = new Google_Service_Manager_Templates_Resource( - $this, - $this->serviceName, - 'templates', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{projectId}/templates/{templateName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{projectId}/templates/{templateName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'templateName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{projectId}/templates', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{projectId}/templates', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Manager service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'manager/v1beta2/projects/'; + $this->version = 'v1beta2'; + $this->serviceName = 'manager'; + + $this->deployments = new Google_Service_Manager_Deployments_Resource( + $this, + $this->serviceName, + 'deployments', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{projectId}/regions/{region}/deployments/{deploymentName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deploymentName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{projectId}/regions/{region}/deployments/{deploymentName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deploymentName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{projectId}/regions/{region}/deployments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{projectId}/regions/{region}/deployments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->templates = new Google_Service_Manager_Templates_Resource( + $this, + $this->serviceName, + 'templates', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{projectId}/templates/{templateName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'templateName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{projectId}/templates/{templateName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'templateName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{projectId}/templates', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{projectId}/templates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } } @@ -228,84 +226,82 @@ class Google_Service_Manager extends Google_Service * $deployments = $managerService->deployments; * */ -class Google_Service_Manager_Deployments_Resource extends Google_Service_Resource -{ +class Google_Service_Manager_Deployments_Resource extends Google_Service_Resource { - /** - * (deployments.delete) - * - * @param string $projectId - * - * @param string $region - * - * @param string $deploymentName - * - * @param array $optParams Optional parameters. - */ - public function delete($projectId, $region, $deploymentName, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * (deployments.get) - * - * @param string $projectId - * - * @param string $region - * - * @param string $deploymentName - * - * @param array $optParams Optional parameters. - * @return Google_Service_Manager_Deployment - */ - public function get($projectId, $region, $deploymentName, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Manager_Deployment"); - } - /** - * (deployments.insert) - * - * @param string $projectId - * - * @param string $region - * - * @param Google_Deployment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Manager_Deployment - */ - public function insert($projectId, $region, Google_Service_Manager_Deployment $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Manager_Deployment"); - } - /** - * (deployments.listDeployments) - * - * @param string $projectId - * - * @param string $region - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: - * 50) - * @return Google_Service_Manager_DeploymentsListResponse - */ - public function listDeployments($projectId, $region, $optParams = array()) - { - $params = array('projectId' => $projectId, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Manager_DeploymentsListResponse"); - } + /** + * (deployments.delete) + * + * @param string $projectId + * + * @param string $region + * + * @param string $deploymentName + * + * @param array $optParams Optional parameters. + */ + public function delete($projectId, $region, $deploymentName, $optParams = array()) { + $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * (deployments.get) + * + * @param string $projectId + * + * @param string $region + * + * @param string $deploymentName + * + * @param array $optParams Optional parameters. + * @return Google_Service_Manager_Deployment + */ + public function get($projectId, $region, $deploymentName, $optParams = array()) { + $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Manager_Deployment"); + } + + /** + * (deployments.insert) + * + * @param string $projectId + * + * @param string $region + * + * @param Google_Deployment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Manager_Deployment + */ + public function insert($projectId, $region, Google_Service_Manager_Deployment $postBody, $optParams = array()) { + $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Manager_Deployment"); + } + + /** + * (deployments.listDeployments) + * + * @param string $projectId + * + * @param string $region + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Specifies a nextPageToken returned by a previous list request. This token can be used to request + * the next page of results from a previous list request. + * @opt_param int maxResults + * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: + * 50) + * @return Google_Service_Manager_DeploymentsListResponse + */ + public function listDeployments($projectId, $region, $optParams = array()) { + $params = array('projectId' => $projectId, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Manager_DeploymentsListResponse"); + } } /** @@ -316,1625 +312,1336 @@ class Google_Service_Manager_Deployments_Resource extends Google_Service_Resourc * $templates = $managerService->templates; * */ -class Google_Service_Manager_Templates_Resource extends Google_Service_Resource -{ +class Google_Service_Manager_Templates_Resource extends Google_Service_Resource { - /** - * (templates.delete) - * - * @param string $projectId - * - * @param string $templateName - * - * @param array $optParams Optional parameters. - */ - public function delete($projectId, $templateName, $optParams = array()) - { - $params = array('projectId' => $projectId, 'templateName' => $templateName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * (templates.get) - * - * @param string $projectId - * - * @param string $templateName - * - * @param array $optParams Optional parameters. - * @return Google_Service_Manager_Template - */ - public function get($projectId, $templateName, $optParams = array()) - { - $params = array('projectId' => $projectId, 'templateName' => $templateName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Manager_Template"); - } - /** - * (templates.insert) - * - * @param string $projectId - * - * @param Google_Template $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Manager_Template - */ - public function insert($projectId, Google_Service_Manager_Template $postBody, $optParams = array()) - { - $params = array('projectId' => $projectId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Manager_Template"); - } - /** - * (templates.listTemplates) - * - * @param string $projectId - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: - * 50) - * @return Google_Service_Manager_TemplatesListResponse - */ - public function listTemplates($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Manager_TemplatesListResponse"); - } + /** + * (templates.delete) + * + * @param string $projectId + * + * @param string $templateName + * + * @param array $optParams Optional parameters. + */ + public function delete($projectId, $templateName, $optParams = array()) { + $params = array('projectId' => $projectId, 'templateName' => $templateName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * (templates.get) + * + * @param string $projectId + * + * @param string $templateName + * + * @param array $optParams Optional parameters. + * @return Google_Service_Manager_Template + */ + public function get($projectId, $templateName, $optParams = array()) { + $params = array('projectId' => $projectId, 'templateName' => $templateName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Manager_Template"); + } + + /** + * (templates.insert) + * + * @param string $projectId + * + * @param Google_Template $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Manager_Template + */ + public function insert($projectId, Google_Service_Manager_Template $postBody, $optParams = array()) { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Manager_Template"); + } + + /** + * (templates.listTemplates) + * + * @param string $projectId + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Specifies a nextPageToken returned by a previous list request. This token can be used to request + * the next page of results from a previous list request. + * @opt_param int maxResults + * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: + * 50) + * @return Google_Service_Manager_TemplatesListResponse + */ + public function listTemplates($projectId, $optParams = array()) { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Manager_TemplatesListResponse"); + } } +class Google_Service_Manager_AccessConfig extends Google_Model { + public $name; + public $natIp; + public $type; + public function setName($name) { + $this->name = $name; + } -class Google_Service_Manager_AccessConfig extends Google_Model -{ - public $name; - public $natIp; - public $type; + public function getName() { + return $this->name; + } - public function setName($name) - { - $this->name = $name; - } + public function setNatIp($natIp) { + $this->natIp = $natIp; + } - public function getName() - { - return $this->name; - } + public function getNatIp() { + return $this->natIp; + } - public function setNatIp($natIp) - { - $this->natIp = $natIp; - } + public function setType($type) { + $this->type = $type; + } - public function getNatIp() - { - return $this->natIp; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Manager_Action extends Google_Collection -{ - public $commands; - public $timeoutMs; +class Google_Service_Manager_Action extends Google_Collection { + public $commands; + public $timeoutMs; - public function setCommands($commands) - { - $this->commands = $commands; - } + public function setCommands($commands) { + $this->commands = $commands; + } - public function getCommands() - { - return $this->commands; - } + public function getCommands() { + return $this->commands; + } - public function setTimeoutMs($timeoutMs) - { - $this->timeoutMs = $timeoutMs; - } + public function setTimeoutMs($timeoutMs) { + $this->timeoutMs = $timeoutMs; + } - public function getTimeoutMs() - { - return $this->timeoutMs; - } + public function getTimeoutMs() { + return $this->timeoutMs; + } } -class Google_Service_Manager_AllowedRule extends Google_Collection -{ - public $iPProtocol; - public $ports; +class Google_Service_Manager_AllowedRule extends Google_Collection { + public $iPProtocol; + public $ports; - public function setIPProtocol($iPProtocol) - { - $this->iPProtocol = $iPProtocol; - } + public function setIPProtocol($iPProtocol) { + $this->iPProtocol = $iPProtocol; + } - public function getIPProtocol() - { - return $this->iPProtocol; - } + public function getIPProtocol() { + return $this->iPProtocol; + } - public function setPorts($ports) - { - $this->ports = $ports; - } + public function setPorts($ports) { + $this->ports = $ports; + } - public function getPorts() - { - return $this->ports; - } + public function getPorts() { + return $this->ports; + } } -class Google_Service_Manager_AutoscalingModule extends Google_Model -{ - public $coolDownPeriodSec; - public $description; - public $maxNumReplicas; - public $minNumReplicas; - public $signalType; - public $targetModule; - public $targetUtilization; +class Google_Service_Manager_AutoscalingModule extends Google_Model { + public $coolDownPeriodSec; + public $description; + public $maxNumReplicas; + public $minNumReplicas; + public $signalType; + public $targetModule; + public $targetUtilization; - public function setCoolDownPeriodSec($coolDownPeriodSec) - { - $this->coolDownPeriodSec = $coolDownPeriodSec; - } + public function setCoolDownPeriodSec($coolDownPeriodSec) { + $this->coolDownPeriodSec = $coolDownPeriodSec; + } - public function getCoolDownPeriodSec() - { - return $this->coolDownPeriodSec; - } + public function getCoolDownPeriodSec() { + return $this->coolDownPeriodSec; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setMaxNumReplicas($maxNumReplicas) - { - $this->maxNumReplicas = $maxNumReplicas; - } + public function setMaxNumReplicas($maxNumReplicas) { + $this->maxNumReplicas = $maxNumReplicas; + } - public function getMaxNumReplicas() - { - return $this->maxNumReplicas; - } + public function getMaxNumReplicas() { + return $this->maxNumReplicas; + } - public function setMinNumReplicas($minNumReplicas) - { - $this->minNumReplicas = $minNumReplicas; - } + public function setMinNumReplicas($minNumReplicas) { + $this->minNumReplicas = $minNumReplicas; + } - public function getMinNumReplicas() - { - return $this->minNumReplicas; - } + public function getMinNumReplicas() { + return $this->minNumReplicas; + } - public function setSignalType($signalType) - { - $this->signalType = $signalType; - } + public function setSignalType($signalType) { + $this->signalType = $signalType; + } - public function getSignalType() - { - return $this->signalType; - } + public function getSignalType() { + return $this->signalType; + } - public function setTargetModule($targetModule) - { - $this->targetModule = $targetModule; - } + public function setTargetModule($targetModule) { + $this->targetModule = $targetModule; + } - public function getTargetModule() - { - return $this->targetModule; - } + public function getTargetModule() { + return $this->targetModule; + } - public function setTargetUtilization($targetUtilization) - { - $this->targetUtilization = $targetUtilization; - } + public function setTargetUtilization($targetUtilization) { + $this->targetUtilization = $targetUtilization; + } - public function getTargetUtilization() - { - return $this->targetUtilization; - } + public function getTargetUtilization() { + return $this->targetUtilization; + } } -class Google_Service_Manager_AutoscalingModuleStatus extends Google_Model -{ - public $autoscalingConfigUrl; +class Google_Service_Manager_AutoscalingModuleStatus extends Google_Model { + public $autoscalingConfigUrl; - public function setAutoscalingConfigUrl($autoscalingConfigUrl) - { - $this->autoscalingConfigUrl = $autoscalingConfigUrl; - } + public function setAutoscalingConfigUrl($autoscalingConfigUrl) { + $this->autoscalingConfigUrl = $autoscalingConfigUrl; + } - public function getAutoscalingConfigUrl() - { - return $this->autoscalingConfigUrl; - } + public function getAutoscalingConfigUrl() { + return $this->autoscalingConfigUrl; + } } -class Google_Service_Manager_DeployState extends Google_Model -{ - public $details; - public $status; +class Google_Service_Manager_DeployState extends Google_Model { + public $details; + public $status; - public function setDetails($details) - { - $this->details = $details; - } + public function setDetails($details) { + $this->details = $details; + } - public function getDetails() - { - return $this->details; - } + public function getDetails() { + return $this->details; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_Manager_Deployment extends Google_Collection -{ - public $creationDate; - public $description; - protected $modulesType = 'Google_Service_Manager_ModuleStatus'; - protected $modulesDataType = 'map'; - public $name; - protected $overridesType = 'Google_Service_Manager_ParamOverride'; - protected $overridesDataType = 'array'; - protected $stateType = 'Google_Service_Manager_DeployState'; - protected $stateDataType = ''; - public $templateName; +class Google_Service_Manager_Deployment extends Google_Collection { + public $creationDate; + public $description; + protected $modulesType = 'Google_Service_Manager_ModuleStatus'; + protected $modulesDataType = 'map'; + public $name; + protected $overridesType = 'Google_Service_Manager_ParamOverride'; + protected $overridesDataType = 'array'; + protected $stateType = 'Google_Service_Manager_DeployState'; + protected $stateDataType = ''; + public $templateName; - public function setCreationDate($creationDate) - { - $this->creationDate = $creationDate; - } + public function setCreationDate($creationDate) { + $this->creationDate = $creationDate; + } - public function getCreationDate() - { - return $this->creationDate; - } + public function getCreationDate() { + return $this->creationDate; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setModules($modules) - { - $this->modules = $modules; - } + public function setModules($modules) { + $this->modules = $modules; + } - public function getModules() - { - return $this->modules; - } + public function getModules() { + return $this->modules; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOverrides($overrides) - { - $this->overrides = $overrides; - } + public function setOverrides($overrides) { + $this->overrides = $overrides; + } - public function getOverrides() - { - return $this->overrides; - } + public function getOverrides() { + return $this->overrides; + } - public function setState(Google_Service_Manager_DeployState $state) - { - $this->state = $state; - } + public function setState(Google_Service_Manager_DeployState $state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } - public function setTemplateName($templateName) - { - $this->templateName = $templateName; - } + public function setTemplateName($templateName) { + $this->templateName = $templateName; + } - public function getTemplateName() - { - return $this->templateName; - } + public function getTemplateName() { + return $this->templateName; + } } -class Google_Service_Manager_DeploymentModules extends Google_Model -{ +class Google_Service_Manager_DeploymentModules extends Google_Model { } -class Google_Service_Manager_DeploymentsListResponse extends Google_Collection -{ - public $nextPageToken; - protected $resourcesType = 'Google_Service_Manager_Deployment'; - protected $resourcesDataType = 'array'; +class Google_Service_Manager_DeploymentsListResponse extends Google_Collection { + public $nextPageToken; + protected $resourcesType = 'Google_Service_Manager_Deployment'; + protected $resourcesDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setResources($resources) - { - $this->resources = $resources; - } + public function setResources($resources) { + $this->resources = $resources; + } - public function getResources() - { - return $this->resources; - } + public function getResources() { + return $this->resources; + } } -class Google_Service_Manager_DiskAttachment extends Google_Model -{ - public $deviceName; - public $index; +class Google_Service_Manager_DiskAttachment extends Google_Model { + public $deviceName; + public $index; - public function setDeviceName($deviceName) - { - $this->deviceName = $deviceName; - } + public function setDeviceName($deviceName) { + $this->deviceName = $deviceName; + } - public function getDeviceName() - { - return $this->deviceName; - } + public function getDeviceName() { + return $this->deviceName; + } - public function setIndex($index) - { - $this->index = $index; - } + public function setIndex($index) { + $this->index = $index; + } - public function getIndex() - { - return $this->index; - } + public function getIndex() { + return $this->index; + } } -class Google_Service_Manager_EnvVariable extends Google_Model -{ - public $hidden; - public $value; +class Google_Service_Manager_EnvVariable extends Google_Model { + public $hidden; + public $value; - public function setHidden($hidden) - { - $this->hidden = $hidden; - } + public function setHidden($hidden) { + $this->hidden = $hidden; + } - public function getHidden() - { - return $this->hidden; - } + public function getHidden() { + return $this->hidden; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Manager_ExistingDisk extends Google_Model -{ - protected $attachmentType = 'Google_Service_Manager_DiskAttachment'; - protected $attachmentDataType = ''; - public $source; +class Google_Service_Manager_ExistingDisk extends Google_Model { + protected $attachmentType = 'Google_Service_Manager_DiskAttachment'; + protected $attachmentDataType = ''; + public $source; - public function setAttachment(Google_Service_Manager_DiskAttachment $attachment) - { - $this->attachment = $attachment; - } + public function setAttachment(Google_Service_Manager_DiskAttachment $attachment) { + $this->attachment = $attachment; + } - public function getAttachment() - { - return $this->attachment; - } + public function getAttachment() { + return $this->attachment; + } - public function setSource($source) - { - $this->source = $source; - } + public function setSource($source) { + $this->source = $source; + } - public function getSource() - { - return $this->source; - } + public function getSource() { + return $this->source; + } } -class Google_Service_Manager_FirewallModule extends Google_Collection -{ - protected $allowedType = 'Google_Service_Manager_AllowedRule'; - protected $allowedDataType = 'array'; - public $description; - public $network; - public $sourceRanges; - public $sourceTags; - public $targetTags; +class Google_Service_Manager_FirewallModule extends Google_Collection { + protected $allowedType = 'Google_Service_Manager_AllowedRule'; + protected $allowedDataType = 'array'; + public $description; + public $network; + public $sourceRanges; + public $sourceTags; + public $targetTags; - public function setAllowed($allowed) - { - $this->allowed = $allowed; - } + public function setAllowed($allowed) { + $this->allowed = $allowed; + } - public function getAllowed() - { - return $this->allowed; - } + public function getAllowed() { + return $this->allowed; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setNetwork($network) - { - $this->network = $network; - } + public function setNetwork($network) { + $this->network = $network; + } - public function getNetwork() - { - return $this->network; - } + public function getNetwork() { + return $this->network; + } - public function setSourceRanges($sourceRanges) - { - $this->sourceRanges = $sourceRanges; - } + public function setSourceRanges($sourceRanges) { + $this->sourceRanges = $sourceRanges; + } - public function getSourceRanges() - { - return $this->sourceRanges; - } + public function getSourceRanges() { + return $this->sourceRanges; + } - public function setSourceTags($sourceTags) - { - $this->sourceTags = $sourceTags; - } + public function setSourceTags($sourceTags) { + $this->sourceTags = $sourceTags; + } - public function getSourceTags() - { - return $this->sourceTags; - } + public function getSourceTags() { + return $this->sourceTags; + } - public function setTargetTags($targetTags) - { - $this->targetTags = $targetTags; - } + public function setTargetTags($targetTags) { + $this->targetTags = $targetTags; + } - public function getTargetTags() - { - return $this->targetTags; - } + public function getTargetTags() { + return $this->targetTags; + } } -class Google_Service_Manager_FirewallModuleStatus extends Google_Model -{ - public $firewallUrl; +class Google_Service_Manager_FirewallModuleStatus extends Google_Model { + public $firewallUrl; - public function setFirewallUrl($firewallUrl) - { - $this->firewallUrl = $firewallUrl; - } + public function setFirewallUrl($firewallUrl) { + $this->firewallUrl = $firewallUrl; + } - public function getFirewallUrl() - { - return $this->firewallUrl; - } + public function getFirewallUrl() { + return $this->firewallUrl; + } } -class Google_Service_Manager_HealthCheckModule extends Google_Model -{ - public $checkIntervalSec; - public $description; - public $healthyThreshold; - public $host; - public $path; - public $port; - public $timeoutSec; - public $unhealthyThreshold; +class Google_Service_Manager_HealthCheckModule extends Google_Model { + public $checkIntervalSec; + public $description; + public $healthyThreshold; + public $host; + public $path; + public $port; + public $timeoutSec; + public $unhealthyThreshold; - public function setCheckIntervalSec($checkIntervalSec) - { - $this->checkIntervalSec = $checkIntervalSec; - } + public function setCheckIntervalSec($checkIntervalSec) { + $this->checkIntervalSec = $checkIntervalSec; + } - public function getCheckIntervalSec() - { - return $this->checkIntervalSec; - } + public function getCheckIntervalSec() { + return $this->checkIntervalSec; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setHealthyThreshold($healthyThreshold) - { - $this->healthyThreshold = $healthyThreshold; - } + public function setHealthyThreshold($healthyThreshold) { + $this->healthyThreshold = $healthyThreshold; + } - public function getHealthyThreshold() - { - return $this->healthyThreshold; - } + public function getHealthyThreshold() { + return $this->healthyThreshold; + } - public function setHost($host) - { - $this->host = $host; - } + public function setHost($host) { + $this->host = $host; + } - public function getHost() - { - return $this->host; - } + public function getHost() { + return $this->host; + } - public function setPath($path) - { - $this->path = $path; - } + public function setPath($path) { + $this->path = $path; + } - public function getPath() - { - return $this->path; - } + public function getPath() { + return $this->path; + } - public function setPort($port) - { - $this->port = $port; - } + public function setPort($port) { + $this->port = $port; + } - public function getPort() - { - return $this->port; - } + public function getPort() { + return $this->port; + } - public function setTimeoutSec($timeoutSec) - { - $this->timeoutSec = $timeoutSec; - } + public function setTimeoutSec($timeoutSec) { + $this->timeoutSec = $timeoutSec; + } - public function getTimeoutSec() - { - return $this->timeoutSec; - } + public function getTimeoutSec() { + return $this->timeoutSec; + } - public function setUnhealthyThreshold($unhealthyThreshold) - { - $this->unhealthyThreshold = $unhealthyThreshold; - } + public function setUnhealthyThreshold($unhealthyThreshold) { + $this->unhealthyThreshold = $unhealthyThreshold; + } - public function getUnhealthyThreshold() - { - return $this->unhealthyThreshold; - } + public function getUnhealthyThreshold() { + return $this->unhealthyThreshold; + } } -class Google_Service_Manager_HealthCheckModuleStatus extends Google_Model -{ - public $healthCheckUrl; +class Google_Service_Manager_HealthCheckModuleStatus extends Google_Model { + public $healthCheckUrl; - public function setHealthCheckUrl($healthCheckUrl) - { - $this->healthCheckUrl = $healthCheckUrl; - } + public function setHealthCheckUrl($healthCheckUrl) { + $this->healthCheckUrl = $healthCheckUrl; + } - public function getHealthCheckUrl() - { - return $this->healthCheckUrl; - } + public function getHealthCheckUrl() { + return $this->healthCheckUrl; + } } -class Google_Service_Manager_LbModule extends Google_Collection -{ - public $description; - public $healthChecks; - public $ipAddress; - public $ipProtocol; - public $portRange; - public $targetModules; +class Google_Service_Manager_LbModule extends Google_Collection { + public $description; + public $healthChecks; + public $ipAddress; + public $ipProtocol; + public $portRange; + public $targetModules; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } + public function setHealthChecks($healthChecks) { + $this->healthChecks = $healthChecks; + } - public function getHealthChecks() - { - return $this->healthChecks; - } + public function getHealthChecks() { + return $this->healthChecks; + } - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } + public function setIpAddress($ipAddress) { + $this->ipAddress = $ipAddress; + } - public function getIpAddress() - { - return $this->ipAddress; - } + public function getIpAddress() { + return $this->ipAddress; + } - public function setIpProtocol($ipProtocol) - { - $this->ipProtocol = $ipProtocol; - } + public function setIpProtocol($ipProtocol) { + $this->ipProtocol = $ipProtocol; + } - public function getIpProtocol() - { - return $this->ipProtocol; - } + public function getIpProtocol() { + return $this->ipProtocol; + } - public function setPortRange($portRange) - { - $this->portRange = $portRange; - } + public function setPortRange($portRange) { + $this->portRange = $portRange; + } - public function getPortRange() - { - return $this->portRange; - } + public function getPortRange() { + return $this->portRange; + } - public function setTargetModules($targetModules) - { - $this->targetModules = $targetModules; - } + public function setTargetModules($targetModules) { + $this->targetModules = $targetModules; + } - public function getTargetModules() - { - return $this->targetModules; - } + public function getTargetModules() { + return $this->targetModules; + } } -class Google_Service_Manager_LbModuleStatus extends Google_Model -{ - public $forwardingRuleUrl; - public $targetPoolUrl; +class Google_Service_Manager_LbModuleStatus extends Google_Model { + public $forwardingRuleUrl; + public $targetPoolUrl; - public function setForwardingRuleUrl($forwardingRuleUrl) - { - $this->forwardingRuleUrl = $forwardingRuleUrl; - } + public function setForwardingRuleUrl($forwardingRuleUrl) { + $this->forwardingRuleUrl = $forwardingRuleUrl; + } - public function getForwardingRuleUrl() - { - return $this->forwardingRuleUrl; - } + public function getForwardingRuleUrl() { + return $this->forwardingRuleUrl; + } - public function setTargetPoolUrl($targetPoolUrl) - { - $this->targetPoolUrl = $targetPoolUrl; - } + public function setTargetPoolUrl($targetPoolUrl) { + $this->targetPoolUrl = $targetPoolUrl; + } - public function getTargetPoolUrl() - { - return $this->targetPoolUrl; - } + public function getTargetPoolUrl() { + return $this->targetPoolUrl; + } } -class Google_Service_Manager_Metadata extends Google_Collection -{ - public $fingerPrint; - protected $itemsType = 'Google_Service_Manager_MetadataItem'; - protected $itemsDataType = 'array'; +class Google_Service_Manager_Metadata extends Google_Collection { + public $fingerPrint; + protected $itemsType = 'Google_Service_Manager_MetadataItem'; + protected $itemsDataType = 'array'; - public function setFingerPrint($fingerPrint) - { - $this->fingerPrint = $fingerPrint; - } + public function setFingerPrint($fingerPrint) { + $this->fingerPrint = $fingerPrint; + } - public function getFingerPrint() - { - return $this->fingerPrint; - } + public function getFingerPrint() { + return $this->fingerPrint; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } } -class Google_Service_Manager_MetadataItem extends Google_Model -{ - public $key; - public $value; +class Google_Service_Manager_MetadataItem extends Google_Model { + public $key; + public $value; - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Manager_Module extends Google_Model -{ - protected $autoscalingModuleType = 'Google_Service_Manager_AutoscalingModule'; - protected $autoscalingModuleDataType = ''; - protected $firewallModuleType = 'Google_Service_Manager_FirewallModule'; - protected $firewallModuleDataType = ''; - protected $healthCheckModuleType = 'Google_Service_Manager_HealthCheckModule'; - protected $healthCheckModuleDataType = ''; - protected $lbModuleType = 'Google_Service_Manager_LbModule'; - protected $lbModuleDataType = ''; - protected $networkModuleType = 'Google_Service_Manager_NetworkModule'; - protected $networkModuleDataType = ''; - protected $replicaPoolModuleType = 'Google_Service_Manager_ReplicaPoolModule'; - protected $replicaPoolModuleDataType = ''; - public $type; +class Google_Service_Manager_Module extends Google_Model { + protected $autoscalingModuleType = 'Google_Service_Manager_AutoscalingModule'; + protected $autoscalingModuleDataType = ''; + protected $firewallModuleType = 'Google_Service_Manager_FirewallModule'; + protected $firewallModuleDataType = ''; + protected $healthCheckModuleType = 'Google_Service_Manager_HealthCheckModule'; + protected $healthCheckModuleDataType = ''; + protected $lbModuleType = 'Google_Service_Manager_LbModule'; + protected $lbModuleDataType = ''; + protected $networkModuleType = 'Google_Service_Manager_NetworkModule'; + protected $networkModuleDataType = ''; + protected $replicaPoolModuleType = 'Google_Service_Manager_ReplicaPoolModule'; + protected $replicaPoolModuleDataType = ''; + public $type; - public function setAutoscalingModule(Google_Service_Manager_AutoscalingModule $autoscalingModule) - { - $this->autoscalingModule = $autoscalingModule; - } + public function setAutoscalingModule(Google_Service_Manager_AutoscalingModule $autoscalingModule) { + $this->autoscalingModule = $autoscalingModule; + } - public function getAutoscalingModule() - { - return $this->autoscalingModule; - } + public function getAutoscalingModule() { + return $this->autoscalingModule; + } - public function setFirewallModule(Google_Service_Manager_FirewallModule $firewallModule) - { - $this->firewallModule = $firewallModule; - } + public function setFirewallModule(Google_Service_Manager_FirewallModule $firewallModule) { + $this->firewallModule = $firewallModule; + } - public function getFirewallModule() - { - return $this->firewallModule; - } + public function getFirewallModule() { + return $this->firewallModule; + } - public function setHealthCheckModule(Google_Service_Manager_HealthCheckModule $healthCheckModule) - { - $this->healthCheckModule = $healthCheckModule; - } + public function setHealthCheckModule(Google_Service_Manager_HealthCheckModule $healthCheckModule) { + $this->healthCheckModule = $healthCheckModule; + } - public function getHealthCheckModule() - { - return $this->healthCheckModule; - } + public function getHealthCheckModule() { + return $this->healthCheckModule; + } - public function setLbModule(Google_Service_Manager_LbModule $lbModule) - { - $this->lbModule = $lbModule; - } + public function setLbModule(Google_Service_Manager_LbModule $lbModule) { + $this->lbModule = $lbModule; + } - public function getLbModule() - { - return $this->lbModule; - } + public function getLbModule() { + return $this->lbModule; + } - public function setNetworkModule(Google_Service_Manager_NetworkModule $networkModule) - { - $this->networkModule = $networkModule; - } + public function setNetworkModule(Google_Service_Manager_NetworkModule $networkModule) { + $this->networkModule = $networkModule; + } - public function getNetworkModule() - { - return $this->networkModule; - } + public function getNetworkModule() { + return $this->networkModule; + } - public function setReplicaPoolModule(Google_Service_Manager_ReplicaPoolModule $replicaPoolModule) - { - $this->replicaPoolModule = $replicaPoolModule; - } + public function setReplicaPoolModule(Google_Service_Manager_ReplicaPoolModule $replicaPoolModule) { + $this->replicaPoolModule = $replicaPoolModule; + } - public function getReplicaPoolModule() - { - return $this->replicaPoolModule; - } + public function getReplicaPoolModule() { + return $this->replicaPoolModule; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Manager_ModuleStatus extends Google_Model -{ - protected $autoscalingModuleStatusType = 'Google_Service_Manager_AutoscalingModuleStatus'; - protected $autoscalingModuleStatusDataType = ''; - protected $firewallModuleStatusType = 'Google_Service_Manager_FirewallModuleStatus'; - protected $firewallModuleStatusDataType = ''; - protected $healthCheckModuleStatusType = 'Google_Service_Manager_HealthCheckModuleStatus'; - protected $healthCheckModuleStatusDataType = ''; - protected $lbModuleStatusType = 'Google_Service_Manager_LbModuleStatus'; - protected $lbModuleStatusDataType = ''; - protected $networkModuleStatusType = 'Google_Service_Manager_NetworkModuleStatus'; - protected $networkModuleStatusDataType = ''; - protected $replicaPoolModuleStatusType = 'Google_Service_Manager_ReplicaPoolModuleStatus'; - protected $replicaPoolModuleStatusDataType = ''; - protected $stateType = 'Google_Service_Manager_DeployState'; - protected $stateDataType = ''; - public $type; +class Google_Service_Manager_ModuleStatus extends Google_Model { + protected $autoscalingModuleStatusType = 'Google_Service_Manager_AutoscalingModuleStatus'; + protected $autoscalingModuleStatusDataType = ''; + protected $firewallModuleStatusType = 'Google_Service_Manager_FirewallModuleStatus'; + protected $firewallModuleStatusDataType = ''; + protected $healthCheckModuleStatusType = 'Google_Service_Manager_HealthCheckModuleStatus'; + protected $healthCheckModuleStatusDataType = ''; + protected $lbModuleStatusType = 'Google_Service_Manager_LbModuleStatus'; + protected $lbModuleStatusDataType = ''; + protected $networkModuleStatusType = 'Google_Service_Manager_NetworkModuleStatus'; + protected $networkModuleStatusDataType = ''; + protected $replicaPoolModuleStatusType = 'Google_Service_Manager_ReplicaPoolModuleStatus'; + protected $replicaPoolModuleStatusDataType = ''; + protected $stateType = 'Google_Service_Manager_DeployState'; + protected $stateDataType = ''; + public $type; - public function setAutoscalingModuleStatus(Google_Service_Manager_AutoscalingModuleStatus $autoscalingModuleStatus) - { - $this->autoscalingModuleStatus = $autoscalingModuleStatus; - } + public function setAutoscalingModuleStatus(Google_Service_Manager_AutoscalingModuleStatus $autoscalingModuleStatus) { + $this->autoscalingModuleStatus = $autoscalingModuleStatus; + } - public function getAutoscalingModuleStatus() - { - return $this->autoscalingModuleStatus; - } + public function getAutoscalingModuleStatus() { + return $this->autoscalingModuleStatus; + } - public function setFirewallModuleStatus(Google_Service_Manager_FirewallModuleStatus $firewallModuleStatus) - { - $this->firewallModuleStatus = $firewallModuleStatus; - } + public function setFirewallModuleStatus(Google_Service_Manager_FirewallModuleStatus $firewallModuleStatus) { + $this->firewallModuleStatus = $firewallModuleStatus; + } - public function getFirewallModuleStatus() - { - return $this->firewallModuleStatus; - } + public function getFirewallModuleStatus() { + return $this->firewallModuleStatus; + } - public function setHealthCheckModuleStatus(Google_Service_Manager_HealthCheckModuleStatus $healthCheckModuleStatus) - { - $this->healthCheckModuleStatus = $healthCheckModuleStatus; - } + public function setHealthCheckModuleStatus(Google_Service_Manager_HealthCheckModuleStatus $healthCheckModuleStatus) { + $this->healthCheckModuleStatus = $healthCheckModuleStatus; + } - public function getHealthCheckModuleStatus() - { - return $this->healthCheckModuleStatus; - } + public function getHealthCheckModuleStatus() { + return $this->healthCheckModuleStatus; + } - public function setLbModuleStatus(Google_Service_Manager_LbModuleStatus $lbModuleStatus) - { - $this->lbModuleStatus = $lbModuleStatus; - } + public function setLbModuleStatus(Google_Service_Manager_LbModuleStatus $lbModuleStatus) { + $this->lbModuleStatus = $lbModuleStatus; + } - public function getLbModuleStatus() - { - return $this->lbModuleStatus; - } + public function getLbModuleStatus() { + return $this->lbModuleStatus; + } - public function setNetworkModuleStatus(Google_Service_Manager_NetworkModuleStatus $networkModuleStatus) - { - $this->networkModuleStatus = $networkModuleStatus; - } + public function setNetworkModuleStatus(Google_Service_Manager_NetworkModuleStatus $networkModuleStatus) { + $this->networkModuleStatus = $networkModuleStatus; + } - public function getNetworkModuleStatus() - { - return $this->networkModuleStatus; - } + public function getNetworkModuleStatus() { + return $this->networkModuleStatus; + } - public function setReplicaPoolModuleStatus(Google_Service_Manager_ReplicaPoolModuleStatus $replicaPoolModuleStatus) - { - $this->replicaPoolModuleStatus = $replicaPoolModuleStatus; - } + public function setReplicaPoolModuleStatus(Google_Service_Manager_ReplicaPoolModuleStatus $replicaPoolModuleStatus) { + $this->replicaPoolModuleStatus = $replicaPoolModuleStatus; + } - public function getReplicaPoolModuleStatus() - { - return $this->replicaPoolModuleStatus; - } + public function getReplicaPoolModuleStatus() { + return $this->replicaPoolModuleStatus; + } - public function setState(Google_Service_Manager_DeployState $state) - { - $this->state = $state; - } + public function setState(Google_Service_Manager_DeployState $state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Manager_NetworkInterface extends Google_Collection -{ - protected $accessConfigsType = 'Google_Service_Manager_AccessConfig'; - protected $accessConfigsDataType = 'array'; - public $name; - public $network; - public $networkIp; +class Google_Service_Manager_NetworkInterface extends Google_Collection { + protected $accessConfigsType = 'Google_Service_Manager_AccessConfig'; + protected $accessConfigsDataType = 'array'; + public $name; + public $network; + public $networkIp; - public function setAccessConfigs($accessConfigs) - { - $this->accessConfigs = $accessConfigs; - } + public function setAccessConfigs($accessConfigs) { + $this->accessConfigs = $accessConfigs; + } - public function getAccessConfigs() - { - return $this->accessConfigs; - } + public function getAccessConfigs() { + return $this->accessConfigs; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setNetwork($network) - { - $this->network = $network; - } + public function setNetwork($network) { + $this->network = $network; + } - public function getNetwork() - { - return $this->network; - } + public function getNetwork() { + return $this->network; + } - public function setNetworkIp($networkIp) - { - $this->networkIp = $networkIp; - } + public function setNetworkIp($networkIp) { + $this->networkIp = $networkIp; + } - public function getNetworkIp() - { - return $this->networkIp; - } + public function getNetworkIp() { + return $this->networkIp; + } } -class Google_Service_Manager_NetworkModule extends Google_Model -{ - public $iPv4Range; - public $description; - public $gatewayIPv4; +class Google_Service_Manager_NetworkModule extends Google_Model { + public $iPv4Range; + public $description; + public $gatewayIPv4; - public function setIPv4Range($iPv4Range) - { - $this->iPv4Range = $iPv4Range; - } + public function setIPv4Range($iPv4Range) { + $this->iPv4Range = $iPv4Range; + } - public function getIPv4Range() - { - return $this->iPv4Range; - } + public function getIPv4Range() { + return $this->iPv4Range; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setGatewayIPv4($gatewayIPv4) - { - $this->gatewayIPv4 = $gatewayIPv4; - } + public function setGatewayIPv4($gatewayIPv4) { + $this->gatewayIPv4 = $gatewayIPv4; + } - public function getGatewayIPv4() - { - return $this->gatewayIPv4; - } + public function getGatewayIPv4() { + return $this->gatewayIPv4; + } } -class Google_Service_Manager_NetworkModuleStatus extends Google_Model -{ - public $networkUrl; +class Google_Service_Manager_NetworkModuleStatus extends Google_Model { + public $networkUrl; - public function setNetworkUrl($networkUrl) - { - $this->networkUrl = $networkUrl; - } + public function setNetworkUrl($networkUrl) { + $this->networkUrl = $networkUrl; + } - public function getNetworkUrl() - { - return $this->networkUrl; - } + public function getNetworkUrl() { + return $this->networkUrl; + } } -class Google_Service_Manager_NewDisk extends Google_Model -{ - protected $attachmentType = 'Google_Service_Manager_DiskAttachment'; - protected $attachmentDataType = ''; - public $autoDelete; - public $boot; - protected $initializeParamsType = 'Google_Service_Manager_NewDiskInitializeParams'; - protected $initializeParamsDataType = ''; +class Google_Service_Manager_NewDisk extends Google_Model { + protected $attachmentType = 'Google_Service_Manager_DiskAttachment'; + protected $attachmentDataType = ''; + public $autoDelete; + public $boot; + protected $initializeParamsType = 'Google_Service_Manager_NewDiskInitializeParams'; + protected $initializeParamsDataType = ''; - public function setAttachment(Google_Service_Manager_DiskAttachment $attachment) - { - $this->attachment = $attachment; - } + public function setAttachment(Google_Service_Manager_DiskAttachment $attachment) { + $this->attachment = $attachment; + } - public function getAttachment() - { - return $this->attachment; - } + public function getAttachment() { + return $this->attachment; + } - public function setAutoDelete($autoDelete) - { - $this->autoDelete = $autoDelete; - } + public function setAutoDelete($autoDelete) { + $this->autoDelete = $autoDelete; + } - public function getAutoDelete() - { - return $this->autoDelete; - } + public function getAutoDelete() { + return $this->autoDelete; + } - public function setBoot($boot) - { - $this->boot = $boot; - } + public function setBoot($boot) { + $this->boot = $boot; + } - public function getBoot() - { - return $this->boot; - } + public function getBoot() { + return $this->boot; + } - public function setInitializeParams(Google_Service_Manager_NewDiskInitializeParams $initializeParams) - { - $this->initializeParams = $initializeParams; - } + public function setInitializeParams(Google_Service_Manager_NewDiskInitializeParams $initializeParams) { + $this->initializeParams = $initializeParams; + } - public function getInitializeParams() - { - return $this->initializeParams; - } + public function getInitializeParams() { + return $this->initializeParams; + } } -class Google_Service_Manager_NewDiskInitializeParams extends Google_Model -{ - public $diskSizeGb; - public $sourceImage; +class Google_Service_Manager_NewDiskInitializeParams extends Google_Model { + public $diskSizeGb; + public $sourceImage; - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } + public function setDiskSizeGb($diskSizeGb) { + $this->diskSizeGb = $diskSizeGb; + } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } + public function getDiskSizeGb() { + return $this->diskSizeGb; + } - public function setSourceImage($sourceImage) - { - $this->sourceImage = $sourceImage; - } + public function setSourceImage($sourceImage) { + $this->sourceImage = $sourceImage; + } - public function getSourceImage() - { - return $this->sourceImage; - } + public function getSourceImage() { + return $this->sourceImage; + } } -class Google_Service_Manager_ParamOverride extends Google_Model -{ - public $path; - public $value; +class Google_Service_Manager_ParamOverride extends Google_Model { + public $path; + public $value; - public function setPath($path) - { - $this->path = $path; - } + public function setPath($path) { + $this->path = $path; + } - public function getPath() - { - return $this->path; - } + public function getPath() { + return $this->path; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Manager_ReplicaPoolModule extends Google_Collection -{ - protected $envVariablesType = 'Google_Service_Manager_EnvVariable'; - protected $envVariablesDataType = 'map'; - public $healthChecks; - public $numReplicas; - protected $replicaPoolParamsType = 'Google_Service_Manager_ReplicaPoolParams'; - protected $replicaPoolParamsDataType = ''; - public $resourceView; +class Google_Service_Manager_ReplicaPoolModule extends Google_Collection { + protected $envVariablesType = 'Google_Service_Manager_EnvVariable'; + protected $envVariablesDataType = 'map'; + public $healthChecks; + public $numReplicas; + protected $replicaPoolParamsType = 'Google_Service_Manager_ReplicaPoolParams'; + protected $replicaPoolParamsDataType = ''; + public $resourceView; - public function setEnvVariables($envVariables) - { - $this->envVariables = $envVariables; - } + public function setEnvVariables($envVariables) { + $this->envVariables = $envVariables; + } - public function getEnvVariables() - { - return $this->envVariables; - } + public function getEnvVariables() { + return $this->envVariables; + } - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } + public function setHealthChecks($healthChecks) { + $this->healthChecks = $healthChecks; + } - public function getHealthChecks() - { - return $this->healthChecks; - } + public function getHealthChecks() { + return $this->healthChecks; + } - public function setNumReplicas($numReplicas) - { - $this->numReplicas = $numReplicas; - } + public function setNumReplicas($numReplicas) { + $this->numReplicas = $numReplicas; + } - public function getNumReplicas() - { - return $this->numReplicas; - } + public function getNumReplicas() { + return $this->numReplicas; + } - public function setReplicaPoolParams(Google_Service_Manager_ReplicaPoolParams $replicaPoolParams) - { - $this->replicaPoolParams = $replicaPoolParams; - } + public function setReplicaPoolParams(Google_Service_Manager_ReplicaPoolParams $replicaPoolParams) { + $this->replicaPoolParams = $replicaPoolParams; + } - public function getReplicaPoolParams() - { - return $this->replicaPoolParams; - } + public function getReplicaPoolParams() { + return $this->replicaPoolParams; + } - public function setResourceView($resourceView) - { - $this->resourceView = $resourceView; - } + public function setResourceView($resourceView) { + $this->resourceView = $resourceView; + } - public function getResourceView() - { - return $this->resourceView; - } + public function getResourceView() { + return $this->resourceView; + } } -class Google_Service_Manager_ReplicaPoolModuleEnvVariables extends Google_Model -{ +class Google_Service_Manager_ReplicaPoolModuleEnvVariables extends Google_Model { } -class Google_Service_Manager_ReplicaPoolModuleStatus extends Google_Model -{ - public $replicaPoolUrl; - public $resourceViewUrl; +class Google_Service_Manager_ReplicaPoolModuleStatus extends Google_Model { + public $replicaPoolUrl; + public $resourceViewUrl; - public function setReplicaPoolUrl($replicaPoolUrl) - { - $this->replicaPoolUrl = $replicaPoolUrl; - } + public function setReplicaPoolUrl($replicaPoolUrl) { + $this->replicaPoolUrl = $replicaPoolUrl; + } - public function getReplicaPoolUrl() - { - return $this->replicaPoolUrl; - } + public function getReplicaPoolUrl() { + return $this->replicaPoolUrl; + } - public function setResourceViewUrl($resourceViewUrl) - { - $this->resourceViewUrl = $resourceViewUrl; - } + public function setResourceViewUrl($resourceViewUrl) { + $this->resourceViewUrl = $resourceViewUrl; + } - public function getResourceViewUrl() - { - return $this->resourceViewUrl; - } + public function getResourceViewUrl() { + return $this->resourceViewUrl; + } } -class Google_Service_Manager_ReplicaPoolParams extends Google_Model -{ - protected $v1beta1Type = 'Google_Service_Manager_ReplicaPoolParamsV1Beta1'; - protected $v1beta1DataType = ''; +class Google_Service_Manager_ReplicaPoolParams extends Google_Model { + protected $v1beta1Type = 'Google_Service_Manager_ReplicaPoolParamsV1Beta1'; + protected $v1beta1DataType = ''; - public function setV1beta1(Google_Service_Manager_ReplicaPoolParamsV1Beta1 $v1beta1) - { - $this->v1beta1 = $v1beta1; - } + public function setV1beta1(Google_Service_Manager_ReplicaPoolParamsV1Beta1 $v1beta1) { + $this->v1beta1 = $v1beta1; + } - public function getV1beta1() - { - return $this->v1beta1; - } + public function getV1beta1() { + return $this->v1beta1; + } } -class Google_Service_Manager_ReplicaPoolParamsV1Beta1 extends Google_Collection -{ - public $autoRestart; - public $baseInstanceName; - public $canIpForward; - public $description; - protected $disksToAttachType = 'Google_Service_Manager_ExistingDisk'; - protected $disksToAttachDataType = 'array'; - protected $disksToCreateType = 'Google_Service_Manager_NewDisk'; - protected $disksToCreateDataType = 'array'; - public $initAction; - public $machineType; - protected $metadataType = 'Google_Service_Manager_Metadata'; - protected $metadataDataType = ''; - protected $networkInterfacesType = 'Google_Service_Manager_NetworkInterface'; - protected $networkInterfacesDataType = 'array'; - public $onHostMaintenance; - protected $serviceAccountsType = 'Google_Service_Manager_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - protected $tagsType = 'Google_Service_Manager_Tag'; - protected $tagsDataType = ''; - public $zone; +class Google_Service_Manager_ReplicaPoolParamsV1Beta1 extends Google_Collection { + public $autoRestart; + public $baseInstanceName; + public $canIpForward; + public $description; + protected $disksToAttachType = 'Google_Service_Manager_ExistingDisk'; + protected $disksToAttachDataType = 'array'; + protected $disksToCreateType = 'Google_Service_Manager_NewDisk'; + protected $disksToCreateDataType = 'array'; + public $initAction; + public $machineType; + protected $metadataType = 'Google_Service_Manager_Metadata'; + protected $metadataDataType = ''; + protected $networkInterfacesType = 'Google_Service_Manager_NetworkInterface'; + protected $networkInterfacesDataType = 'array'; + public $onHostMaintenance; + protected $serviceAccountsType = 'Google_Service_Manager_ServiceAccount'; + protected $serviceAccountsDataType = 'array'; + protected $tagsType = 'Google_Service_Manager_Tag'; + protected $tagsDataType = ''; + public $zone; - public function setAutoRestart($autoRestart) - { - $this->autoRestart = $autoRestart; - } + public function setAutoRestart($autoRestart) { + $this->autoRestart = $autoRestart; + } - public function getAutoRestart() - { - return $this->autoRestart; - } + public function getAutoRestart() { + return $this->autoRestart; + } - public function setBaseInstanceName($baseInstanceName) - { - $this->baseInstanceName = $baseInstanceName; - } + public function setBaseInstanceName($baseInstanceName) { + $this->baseInstanceName = $baseInstanceName; + } - public function getBaseInstanceName() - { - return $this->baseInstanceName; - } + public function getBaseInstanceName() { + return $this->baseInstanceName; + } - public function setCanIpForward($canIpForward) - { - $this->canIpForward = $canIpForward; - } + public function setCanIpForward($canIpForward) { + $this->canIpForward = $canIpForward; + } - public function getCanIpForward() - { - return $this->canIpForward; - } + public function getCanIpForward() { + return $this->canIpForward; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setDisksToAttach($disksToAttach) - { - $this->disksToAttach = $disksToAttach; - } + public function setDisksToAttach($disksToAttach) { + $this->disksToAttach = $disksToAttach; + } - public function getDisksToAttach() - { - return $this->disksToAttach; - } + public function getDisksToAttach() { + return $this->disksToAttach; + } - public function setDisksToCreate($disksToCreate) - { - $this->disksToCreate = $disksToCreate; - } + public function setDisksToCreate($disksToCreate) { + $this->disksToCreate = $disksToCreate; + } - public function getDisksToCreate() - { - return $this->disksToCreate; - } + public function getDisksToCreate() { + return $this->disksToCreate; + } - public function setInitAction($initAction) - { - $this->initAction = $initAction; - } + public function setInitAction($initAction) { + $this->initAction = $initAction; + } - public function getInitAction() - { - return $this->initAction; - } + public function getInitAction() { + return $this->initAction; + } - public function setMachineType($machineType) - { - $this->machineType = $machineType; - } + public function setMachineType($machineType) { + $this->machineType = $machineType; + } - public function getMachineType() - { - return $this->machineType; - } + public function getMachineType() { + return $this->machineType; + } - public function setMetadata(Google_Service_Manager_Metadata $metadata) - { - $this->metadata = $metadata; - } + public function setMetadata(Google_Service_Manager_Metadata $metadata) { + $this->metadata = $metadata; + } - public function getMetadata() - { - return $this->metadata; - } + public function getMetadata() { + return $this->metadata; + } - public function setNetworkInterfaces($networkInterfaces) - { - $this->networkInterfaces = $networkInterfaces; - } + public function setNetworkInterfaces($networkInterfaces) { + $this->networkInterfaces = $networkInterfaces; + } - public function getNetworkInterfaces() - { - return $this->networkInterfaces; - } + public function getNetworkInterfaces() { + return $this->networkInterfaces; + } - public function setOnHostMaintenance($onHostMaintenance) - { - $this->onHostMaintenance = $onHostMaintenance; - } + public function setOnHostMaintenance($onHostMaintenance) { + $this->onHostMaintenance = $onHostMaintenance; + } - public function getOnHostMaintenance() - { - return $this->onHostMaintenance; - } + public function getOnHostMaintenance() { + return $this->onHostMaintenance; + } - public function setServiceAccounts($serviceAccounts) - { - $this->serviceAccounts = $serviceAccounts; - } + public function setServiceAccounts($serviceAccounts) { + $this->serviceAccounts = $serviceAccounts; + } - public function getServiceAccounts() - { - return $this->serviceAccounts; - } + public function getServiceAccounts() { + return $this->serviceAccounts; + } - public function setTags(Google_Service_Manager_Tag $tags) - { - $this->tags = $tags; - } + public function setTags(Google_Service_Manager_Tag $tags) { + $this->tags = $tags; + } - public function getTags() - { - return $this->tags; - } + public function getTags() { + return $this->tags; + } - public function setZone($zone) - { - $this->zone = $zone; - } + public function setZone($zone) { + $this->zone = $zone; + } - public function getZone() - { - return $this->zone; - } + public function getZone() { + return $this->zone; + } } -class Google_Service_Manager_ServiceAccount extends Google_Collection -{ - public $email; - public $scopes; +class Google_Service_Manager_ServiceAccount extends Google_Collection { + public $email; + public $scopes; - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setScopes($scopes) - { - $this->scopes = $scopes; - } + public function setScopes($scopes) { + $this->scopes = $scopes; + } - public function getScopes() - { - return $this->scopes; - } + public function getScopes() { + return $this->scopes; + } } -class Google_Service_Manager_Tag extends Google_Collection -{ - public $fingerPrint; - public $items; +class Google_Service_Manager_Tag extends Google_Collection { + public $fingerPrint; + public $items; - public function setFingerPrint($fingerPrint) - { - $this->fingerPrint = $fingerPrint; - } + public function setFingerPrint($fingerPrint) { + $this->fingerPrint = $fingerPrint; + } - public function getFingerPrint() - { - return $this->fingerPrint; - } + public function getFingerPrint() { + return $this->fingerPrint; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } } -class Google_Service_Manager_Template extends Google_Model -{ - protected $actionsType = 'Google_Service_Manager_Action'; - protected $actionsDataType = 'map'; - public $description; - protected $modulesType = 'Google_Service_Manager_Module'; - protected $modulesDataType = 'map'; - public $name; +class Google_Service_Manager_Template extends Google_Model { + protected $actionsType = 'Google_Service_Manager_Action'; + protected $actionsDataType = 'map'; + public $description; + protected $modulesType = 'Google_Service_Manager_Module'; + protected $modulesDataType = 'map'; + public $name; - public function setActions($actions) - { - $this->actions = $actions; - } + public function setActions($actions) { + $this->actions = $actions; + } - public function getActions() - { - return $this->actions; - } + public function getActions() { + return $this->actions; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setModules($modules) - { - $this->modules = $modules; - } + public function setModules($modules) { + $this->modules = $modules; + } - public function getModules() - { - return $this->modules; - } + public function getModules() { + return $this->modules; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Manager_TemplateActions extends Google_Model -{ +class Google_Service_Manager_TemplateActions extends Google_Model { } -class Google_Service_Manager_TemplateModules extends Google_Model -{ +class Google_Service_Manager_TemplateModules extends Google_Model { } -class Google_Service_Manager_TemplatesListResponse extends Google_Collection -{ - public $nextPageToken; - protected $resourcesType = 'Google_Service_Manager_Template'; - protected $resourcesDataType = 'array'; +class Google_Service_Manager_TemplatesListResponse extends Google_Collection { + public $nextPageToken; + protected $resourcesType = 'Google_Service_Manager_Template'; + protected $resourcesDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setResources($resources) - { - $this->resources = $resources; - } + public function setResources($resources) { + $this->resources = $resources; + } - public function getResources() - { - return $this->resources; - } + public function getResources() { + return $this->resources; + } } diff --git a/oauth/Google/Service/MapsEngine.php b/oauth/Google/Service/MapsEngine.php index 3e57bb4..4733c05 100644 --- a/oauth/Google/Service/MapsEngine.php +++ b/oauth/Google/Service/MapsEngine.php @@ -29,1003 +29,1001 @@ * * @author Google, Inc. */ -class Google_Service_MapsEngine extends Google_Service -{ - /** View and manage your Google Maps Engine data. */ - const MAPSENGINE = "https://www.googleapis.com/auth/mapsengine"; - /** View your Google Maps Engine data. */ - const MAPSENGINE_READONLY = "https://www.googleapis.com/auth/mapsengine.readonly"; +class Google_Service_MapsEngine extends Google_Service { + /** View and manage your Google Maps Engine data. */ + const MAPSENGINE = "https://www.googleapis.com/auth/mapsengine"; + /** View your Google Maps Engine data. */ + const MAPSENGINE_READONLY = "https://www.googleapis.com/auth/mapsengine.readonly"; - public $assets; - public $assets_parents; - public $layers; - public $layers_parents; - public $maps; - public $projects; - public $rasterCollections; - public $rasterCollections_parents; - public $rasterCollections_rasters; - public $rasters; - public $rasters_files; - public $rasters_parents; - public $tables; - public $tables_features; - public $tables_files; - public $tables_parents; - + public $assets; + public $assets_parents; + public $layers; + public $layers_parents; + public $maps; + public $projects; + public $rasterCollections; + public $rasterCollections_parents; + public $rasterCollections_rasters; + public $rasters; + public $rasters_files; + public $rasters_parents; + public $tables; + public $tables_features; + public $tables_files; + public $tables_parents; - /** - * Constructs the internal representation of the MapsEngine service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'mapsengine/v1/'; - $this->version = 'v1'; - $this->serviceName = 'mapsengine'; - $this->assets = new Google_Service_MapsEngine_Assets_Resource( - $this, - $this->serviceName, - 'assets', - array( - 'methods' => array( - 'get' => array( - 'path' => 'assets/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'assets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->assets_parents = new Google_Service_MapsEngine_AssetsParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'assets/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->layers = new Google_Service_MapsEngine_Layers_Resource( - $this, - $this->serviceName, - 'layers', - array( - 'methods' => array( - 'cancelProcessing' => array( - 'path' => 'layers/{id}/cancelProcessing', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'layers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'process' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => 'layers/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'layers/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'layers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'layers/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'process' => array( - 'path' => 'layers/{id}/process', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'publish' => array( - 'path' => 'layers/{id}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'unpublish' => array( - 'path' => 'layers/{id}/unpublish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->layers_parents = new Google_Service_MapsEngine_LayersParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'layers/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->maps = new Google_Service_MapsEngine_Maps_Resource( - $this, - $this->serviceName, - 'maps', - array( - 'methods' => array( - 'create' => array( - 'path' => 'maps', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'maps/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'maps/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'maps', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'maps/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'publish' => array( - 'path' => 'maps/{id}/publish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'unpublish' => array( - 'path' => 'maps/{id}/unpublish', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects = new Google_Service_MapsEngine_Projects_Resource( - $this, - $this->serviceName, - 'projects', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->rasterCollections = new Google_Service_MapsEngine_RasterCollections_Resource( - $this, - $this->serviceName, - 'rasterCollections', - array( - 'methods' => array( - 'cancelProcessing' => array( - 'path' => 'rasterCollections/{id}/cancelProcessing', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'rasterCollections', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'rasterCollections/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'rasterCollections/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'rasterCollections', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'rasterCollections/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'process' => array( - 'path' => 'rasterCollections/{id}/process', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->rasterCollections_parents = new Google_Service_MapsEngine_RasterCollectionsParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'rasterCollections/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->rasterCollections_rasters = new Google_Service_MapsEngine_RasterCollectionsRasters_Resource( - $this, - $this->serviceName, - 'rasters', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'rasterCollections/{id}/rasters/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchInsert' => array( - 'path' => 'rasterCollections/{id}/rasters/batchInsert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'rasterCollections/{id}/rasters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->rasters = new Google_Service_MapsEngine_Rasters_Resource( - $this, - $this->serviceName, - 'rasters', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'rasters/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'rasters/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'rasters/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => 'rasters/upload', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->rasters_files = new Google_Service_MapsEngine_RastersFiles_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'rasters/{id}/files', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filename' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->rasters_parents = new Google_Service_MapsEngine_RastersParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'rasters/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->tables = new Google_Service_MapsEngine_Tables_Resource( - $this, - $this->serviceName, - 'tables', - array( - 'methods' => array( - 'create' => array( - 'path' => 'tables', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'tables/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'tables', - 'httpMethod' => 'GET', - 'parameters' => array( - 'modifiedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'tags' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'creatorEmail' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'bbox' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'modifiedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'createdBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'tables/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'upload' => array( - 'path' => 'tables/upload', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->tables_features = new Google_Service_MapsEngine_TablesFeatures_Resource( - $this, - $this->serviceName, - 'features', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'tables/{id}/features/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchInsert' => array( - 'path' => 'tables/{id}/features/batchInsert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchPatch' => array( - 'path' => 'tables/{id}/features/batchPatch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'tables/{tableId}/features/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tableId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'select' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'tables/{id}/features', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'intersects' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'version' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'limit' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'include' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'where' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'select' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->tables_files = new Google_Service_MapsEngine_TablesFiles_Resource( - $this, - $this->serviceName, - 'files', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'tables/{id}/files', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'filename' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tables_parents = new Google_Service_MapsEngine_TablesParents_Resource( - $this, - $this->serviceName, - 'parents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'tables/{id}/parents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the MapsEngine service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'mapsengine/v1/'; + $this->version = 'v1'; + $this->serviceName = 'mapsengine'; + + $this->assets = new Google_Service_MapsEngine_Assets_Resource( + $this, + $this->serviceName, + 'assets', + array( + 'methods' => array( + 'get' => array( + 'path' => 'assets/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'assets', + 'httpMethod' => 'GET', + 'parameters' => array( + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->assets_parents = new Google_Service_MapsEngine_AssetsParents_Resource( + $this, + $this->serviceName, + 'parents', + array( + 'methods' => array( + 'list' => array( + 'path' => 'assets/{id}/parents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->layers = new Google_Service_MapsEngine_Layers_Resource( + $this, + $this->serviceName, + 'layers', + array( + 'methods' => array( + 'cancelProcessing' => array( + 'path' => 'layers/{id}/cancelProcessing', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'create' => array( + 'path' => 'layers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'process' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'delete' => array( + 'path' => 'layers/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'layers/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'layers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'layers/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'process' => array( + 'path' => 'layers/{id}/process', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'publish' => array( + 'path' => 'layers/{id}/publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'unpublish' => array( + 'path' => 'layers/{id}/unpublish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->layers_parents = new Google_Service_MapsEngine_LayersParents_Resource( + $this, + $this->serviceName, + 'parents', + array( + 'methods' => array( + 'list' => array( + 'path' => 'layers/{id}/parents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->maps = new Google_Service_MapsEngine_Maps_Resource( + $this, + $this->serviceName, + 'maps', + array( + 'methods' => array( + 'create' => array( + 'path' => 'maps', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'delete' => array( + 'path' => 'maps/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'maps/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'maps', + 'httpMethod' => 'GET', + 'parameters' => array( + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'maps/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'publish' => array( + 'path' => 'maps/{id}/publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'unpublish' => array( + 'path' => 'maps/{id}/unpublish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects = new Google_Service_MapsEngine_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'list' => array( + 'path' => 'projects', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->rasterCollections = new Google_Service_MapsEngine_RasterCollections_Resource( + $this, + $this->serviceName, + 'rasterCollections', + array( + 'methods' => array( + 'cancelProcessing' => array( + 'path' => 'rasterCollections/{id}/cancelProcessing', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'create' => array( + 'path' => 'rasterCollections', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'delete' => array( + 'path' => 'rasterCollections/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'rasterCollections/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'rasterCollections', + 'httpMethod' => 'GET', + 'parameters' => array( + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'rasterCollections/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'process' => array( + 'path' => 'rasterCollections/{id}/process', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->rasterCollections_parents = new Google_Service_MapsEngine_RasterCollectionsParents_Resource( + $this, + $this->serviceName, + 'parents', + array( + 'methods' => array( + 'list' => array( + 'path' => 'rasterCollections/{id}/parents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->rasterCollections_rasters = new Google_Service_MapsEngine_RasterCollectionsRasters_Resource( + $this, + $this->serviceName, + 'rasters', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'rasterCollections/{id}/rasters/batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'batchInsert' => array( + 'path' => 'rasterCollections/{id}/rasters/batchInsert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'rasterCollections/{id}/rasters', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->rasters = new Google_Service_MapsEngine_Rasters_Resource( + $this, + $this->serviceName, + 'rasters', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'rasters/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'rasters/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => 'rasters/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'upload' => array( + 'path' => 'rasters/upload', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->rasters_files = new Google_Service_MapsEngine_RastersFiles_Resource( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'rasters/{id}/files', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filename' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->rasters_parents = new Google_Service_MapsEngine_RastersParents_Resource( + $this, + $this->serviceName, + 'parents', + array( + 'methods' => array( + 'list' => array( + 'path' => 'rasters/{id}/parents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->tables = new Google_Service_MapsEngine_Tables_Resource( + $this, + $this->serviceName, + 'tables', + array( + 'methods' => array( + 'create' => array( + 'path' => 'tables', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'delete' => array( + 'path' => 'tables/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'tables/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'tables', + 'httpMethod' => 'GET', + 'parameters' => array( + 'modifiedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tags' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'creatorEmail' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'bbox' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'modifiedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'tables/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'upload' => array( + 'path' => 'tables/upload', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->tables_features = new Google_Service_MapsEngine_TablesFeatures_Resource( + $this, + $this->serviceName, + 'features', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'tables/{id}/features/batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'batchInsert' => array( + 'path' => 'tables/{id}/features/batchInsert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'batchPatch' => array( + 'path' => 'tables/{id}/features/batchPatch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'tables/{tableId}/features/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tableId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'select' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'tables/{id}/features', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'intersects' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'limit' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'include' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'where' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'select' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->tables_files = new Google_Service_MapsEngine_TablesFiles_Resource( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'tables/{id}/files', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filename' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->tables_parents = new Google_Service_MapsEngine_TablesParents_Resource( + $this, + $this->serviceName, + 'parents', + array( + 'methods' => array( + 'list' => array( + 'path' => 'tables/{id}/parents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } } @@ -1037,68 +1035,66 @@ class Google_Service_MapsEngine extends Google_Service * $assets = $mapsengineService->assets; * */ -class Google_Service_MapsEngine_Assets_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_Assets_Resource extends Google_Service_Resource { - /** - * Return metadata for a particular asset. (assets.get) - * - * @param string $id - * The ID of the asset. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Asset - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Asset"); - } - /** - * Return all assets readable by the current user. (assets.listAssets) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @opt_param string type - * An asset type restriction. If set, only resources of this type will be returned. - * @return Google_Service_MapsEngine_AssetsListResponse - */ - public function listAssets($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_AssetsListResponse"); - } + /** + * Return metadata for a particular asset. (assets.get) + * + * @param string $id + * The ID of the asset. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Asset + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Asset"); + } + + /** + * Return all assets readable by the current user. (assets.listAssets) + * + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @opt_param string type + * An asset type restriction. If set, only resources of this type will be returned. + * @return Google_Service_MapsEngine_AssetsListResponse + */ + public function listAssets($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_AssetsListResponse"); + } } /** @@ -1109,30 +1105,28 @@ class Google_Service_MapsEngine_Assets_Resource extends Google_Service_Resource * $parents = $mapsengineService->parents; * */ -class Google_Service_MapsEngine_AssetsParents_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_AssetsParents_Resource extends Google_Service_Resource { - /** - * Return all parent ids of the specified asset. (parents.listAssetsParents) - * - * @param string $id - * The ID of the asset whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listAssetsParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } + /** + * Return all parent ids of the specified asset. (parents.listAssetsParents) + * + * @param string $id + * The ID of the asset whose parents will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 50. + * @return Google_Service_MapsEngine_ParentsListResponse + */ + public function listAssetsParents($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); + } } /** @@ -1143,170 +1137,168 @@ class Google_Service_MapsEngine_AssetsParents_Resource extends Google_Service_Re * $layers = $mapsengineService->layers; * */ -class Google_Service_MapsEngine_Layers_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_Layers_Resource extends Google_Service_Resource { - /** - * Cancel processing on a layer asset. (layers.cancelProcessing) - * - * @param string $id - * The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function cancelProcessing($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } - /** - * Create a layer asset. (layers.create) - * - * @param Google_Layer $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool process - * Whether to queue the created layer for processing. - * @return Google_Service_MapsEngine_Layer - */ - public function create(Google_Service_MapsEngine_Layer $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_Layer"); - } - /** - * Delete a layer. (layers.delete) - * - * @param string $id - * The ID of the layer. Only the layer creator or project owner are permitted to delete. If the - * layer is published, or included in a map, the request will fail. Unpublish the layer, and remove - * it from all maps prior to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Return metadata for a particular layer. (layers.get) - * - * @param string $id - * The ID of the layer. - * @param array $optParams Optional parameters. - * - * @opt_param string version - * - * @return Google_Service_MapsEngine_Layer - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Layer"); - } - /** - * Return all layers readable by the current user. (layers.listLayers) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @return Google_Service_MapsEngine_LayersListResponse - */ - public function listLayers($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_LayersListResponse"); - } - /** - * Mutate a layer asset. (layers.patch) - * - * @param string $id - * The ID of the layer. - * @param Google_Layer $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Layer $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - /** - * Process a layer asset. (layers.process) - * - * @param string $id - * The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function process($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } - /** - * Publish a layer asset. (layers.publish) - * - * @param string $id - * The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function publish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } - /** - * Unpublish a layer asset. (layers.unpublish) - * - * @param string $id - * The ID of the layer. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function unpublish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } + /** + * Cancel processing on a layer asset. (layers.cancelProcessing) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function cancelProcessing($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } + + /** + * Create a layer asset. (layers.create) + * + * @param Google_Layer $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool process + * Whether to queue the created layer for processing. + * @return Google_Service_MapsEngine_Layer + */ + public function create(Google_Service_MapsEngine_Layer $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_MapsEngine_Layer"); + } + + /** + * Delete a layer. (layers.delete) + * + * @param string $id + * The ID of the layer. Only the layer creator or project owner are permitted to delete. If the + * layer is published, or included in a map, the request will fail. Unpublish the layer, and remove + * it from all maps prior to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Return metadata for a particular layer. (layers.get) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * + * @opt_param string version + * + * @return Google_Service_MapsEngine_Layer + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Layer"); + } + + /** + * Return all layers readable by the current user. (layers.listLayers) + * + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @return Google_Service_MapsEngine_LayersListResponse + */ + public function listLayers($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_LayersListResponse"); + } + + /** + * Mutate a layer asset. (layers.patch) + * + * @param string $id + * The ID of the layer. + * @param Google_Layer $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_Layer $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } + + /** + * Process a layer asset. (layers.process) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function process($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } + + /** + * Publish a layer asset. (layers.publish) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishResponse + */ + public function publish($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); + } + + /** + * Unpublish a layer asset. (layers.unpublish) + * + * @param string $id + * The ID of the layer. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishResponse + */ + public function unpublish($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); + } } /** @@ -1317,30 +1309,28 @@ class Google_Service_MapsEngine_Layers_Resource extends Google_Service_Resource * $parents = $mapsengineService->parents; * */ -class Google_Service_MapsEngine_LayersParents_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_LayersParents_Resource extends Google_Service_Resource { - /** - * Return all parent ids of the specified layer. (parents.listLayersParents) - * - * @param string $id - * The ID of the layer whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listLayersParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } + /** + * Return all parent ids of the specified layer. (parents.listLayersParents) + * + * @param string $id + * The ID of the layer whose parents will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 50. + * @return Google_Service_MapsEngine_ParentsListResponse + */ + public function listLayersParents($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); + } } /** @@ -1351,138 +1341,136 @@ class Google_Service_MapsEngine_LayersParents_Resource extends Google_Service_Re * $maps = $mapsengineService->maps; * */ -class Google_Service_MapsEngine_Maps_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_Maps_Resource extends Google_Service_Resource { - /** - * Create a map asset. (maps.create) - * - * @param Google_Map $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Map - */ - public function create(Google_Service_MapsEngine_Map $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_Map"); - } - /** - * Delete a map. (maps.delete) - * - * @param string $id - * The ID of the map. Only the map creator or project owner are permitted to delete. If the map is - * published the request will fail. Unpublish the map prior to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Return metadata for a particular map. (maps.get) - * - * @param string $id - * The ID of the map. - * @param array $optParams Optional parameters. - * - * @opt_param string version - * - * @return Google_Service_MapsEngine_Map - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Map"); - } - /** - * Return all maps readable by the current user. (maps.listMaps) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @return Google_Service_MapsEngine_MapsListResponse - */ - public function listMaps($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_MapsListResponse"); - } - /** - * Mutate a map asset. (maps.patch) - * - * @param string $id - * The ID of the map. - * @param Google_Map $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Map $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - /** - * Publish a map asset. (maps.publish) - * - * @param string $id - * The ID of the map. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function publish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } - /** - * Unpublish a map asset. (maps.unpublish) - * - * @param string $id - * The ID of the map. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_PublishResponse - */ - public function unpublish($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); - } + /** + * Create a map asset. (maps.create) + * + * @param Google_Map $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Map + */ + public function create(Google_Service_MapsEngine_Map $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_MapsEngine_Map"); + } + + /** + * Delete a map. (maps.delete) + * + * @param string $id + * The ID of the map. Only the map creator or project owner are permitted to delete. If the map is + * published the request will fail. Unpublish the map prior to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Return metadata for a particular map. (maps.get) + * + * @param string $id + * The ID of the map. + * @param array $optParams Optional parameters. + * + * @opt_param string version + * + * @return Google_Service_MapsEngine_Map + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Map"); + } + + /** + * Return all maps readable by the current user. (maps.listMaps) + * + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @return Google_Service_MapsEngine_MapsListResponse + */ + public function listMaps($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_MapsListResponse"); + } + + /** + * Mutate a map asset. (maps.patch) + * + * @param string $id + * The ID of the map. + * @param Google_Map $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_Map $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } + + /** + * Publish a map asset. (maps.publish) + * + * @param string $id + * The ID of the map. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishResponse + */ + public function publish($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_MapsEngine_PublishResponse"); + } + + /** + * Unpublish a map asset. (maps.unpublish) + * + * @param string $id + * The ID of the map. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_PublishResponse + */ + public function unpublish($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('unpublish', array($params), "Google_Service_MapsEngine_PublishResponse"); + } } /** @@ -1493,21 +1481,19 @@ class Google_Service_MapsEngine_Maps_Resource extends Google_Service_Resource * $projects = $mapsengineService->projects; * */ -class Google_Service_MapsEngine_Projects_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_Projects_Resource extends Google_Service_Resource { - /** - * Return all projects readable by the current user. (projects.listProjects) - * - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProjectsListResponse - */ - public function listProjects($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ProjectsListResponse"); - } + /** + * Return all projects readable by the current user. (projects.listProjects) + * + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProjectsListResponse + */ + public function listProjects($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ProjectsListResponse"); + } } /** @@ -1518,138 +1504,136 @@ class Google_Service_MapsEngine_Projects_Resource extends Google_Service_Resourc * $rasterCollections = $mapsengineService->rasterCollections; * */ -class Google_Service_MapsEngine_RasterCollections_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_RasterCollections_Resource extends Google_Service_Resource { - /** - * Cancel processing on a raster collection asset. - * (rasterCollections.cancelProcessing) - * - * @param string $id - * The ID of the raster collection. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function cancelProcessing($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } - /** - * Create a raster collection asset. (rasterCollections.create) - * - * @param Google_RasterCollection $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollection - */ - public function create(Google_Service_MapsEngine_RasterCollection $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_RasterCollection"); - } - /** - * Delete a raster collection. (rasterCollections.delete) - * - * @param string $id - * The ID of the raster collection. Only the raster collection creator or project owner are - * permitted to delete. If the rastor collection is included in a layer, the request will fail. - * Remove the raster collection from all layers prior to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Return metadata for a particular raster collection. (rasterCollections.get) - * - * @param string $id - * The ID of the raster collection. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollection - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_RasterCollection"); - } - /** - * Return all raster collections readable by the current user. - * (rasterCollections.listRasterCollections) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @return Google_Service_MapsEngine_RasterCollectionsListResponse - */ - public function listRasterCollections($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsListResponse"); - } - /** - * Mutate a raster collection asset. (rasterCollections.patch) - * - * @param string $id - * The ID of the raster collection. - * @param Google_RasterCollection $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_RasterCollection $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - /** - * Process a raster collection asset. (rasterCollections.process) - * - * @param string $id - * The ID of the raster collection. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_ProcessResponse - */ - public function process($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); - } + /** + * Cancel processing on a raster collection asset. + * (rasterCollections.cancelProcessing) + * + * @param string $id + * The ID of the raster collection. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function cancelProcessing($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('cancelProcessing', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } + + /** + * Create a raster collection asset. (rasterCollections.create) + * + * @param Google_RasterCollection $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_RasterCollection + */ + public function create(Google_Service_MapsEngine_RasterCollection $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_MapsEngine_RasterCollection"); + } + + /** + * Delete a raster collection. (rasterCollections.delete) + * + * @param string $id + * The ID of the raster collection. Only the raster collection creator or project owner are + * permitted to delete. If the rastor collection is included in a layer, the request will fail. + * Remove the raster collection from all layers prior to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Return metadata for a particular raster collection. (rasterCollections.get) + * + * @param string $id + * The ID of the raster collection. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_RasterCollection + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_RasterCollection"); + } + + /** + * Return all raster collections readable by the current user. + * (rasterCollections.listRasterCollections) + * + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @return Google_Service_MapsEngine_RasterCollectionsListResponse + */ + public function listRasterCollections($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsListResponse"); + } + + /** + * Mutate a raster collection asset. (rasterCollections.patch) + * + * @param string $id + * The ID of the raster collection. + * @param Google_RasterCollection $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_RasterCollection $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } + + /** + * Process a raster collection asset. (rasterCollections.process) + * + * @param string $id + * The ID of the raster collection. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_ProcessResponse + */ + public function process($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('process', array($params), "Google_Service_MapsEngine_ProcessResponse"); + } } /** @@ -1660,122 +1644,29 @@ class Google_Service_MapsEngine_RasterCollections_Resource extends Google_Servic * $parents = $mapsengineService->parents; * */ -class Google_Service_MapsEngine_RasterCollectionsParents_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_RasterCollectionsParents_Resource extends Google_Service_Resource { - /** - * Return all parent ids of the specified raster collection. - * (parents.listRasterCollectionsParents) - * - * @param string $id - * The ID of the raster collection whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listRasterCollectionsParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } -} -/** - * The "rasters" collection of methods. - * Typical usage is: - * - * $mapsengineService = new Google_Service_MapsEngine(...); - * $rasters = $mapsengineService->rasters; - * - */ -class Google_Service_MapsEngine_RasterCollectionsRasters_Resource extends Google_Service_Resource -{ - - /** - * Remove rasters from an existing raster collection. - * - * Up to 50 rasters can be included in a single batchDelete request. Each - * batchDelete request is atomic. (rasters.batchDelete) - * - * @param string $id - * The ID of the raster collection to which these rasters belong. - * @param Google_RasterCollectionsRasterBatchDeleteRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse - */ - public function batchDelete($id, Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse"); - } - /** - * Add rasters to an existing raster collection. Rasters must be successfully - * processed in order to be added to a raster collection. - * - * Up to 50 rasters can be included in a single batchInsert request. Each - * batchInsert request is atomic. (rasters.batchInsert) - * - * @param string $id - * The ID of the raster collection to which these rasters belong. - * @param Google_RasterCollectionsRastersBatchInsertRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse - */ - public function batchInsert($id, Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchInsert', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse"); - } - /** - * Return all rasters within a raster collection. - * (rasters.listRasterCollectionsRasters) - * - * @param string $id - * The ID of the raster collection to which these rasters belong. - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @return Google_Service_MapsEngine_RasterCollectionsRastersListResponse - */ - public function listRasterCollectionsRasters($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersListResponse"); - } + /** + * Return all parent ids of the specified raster collection. + * (parents.listRasterCollectionsParents) + * + * @param string $id + * The ID of the raster collection whose parents will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 50. + * @return Google_Service_MapsEngine_ParentsListResponse + */ + public function listRasterCollectionsParents($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); + } } /** @@ -1786,65 +1677,153 @@ class Google_Service_MapsEngine_RasterCollectionsRasters_Resource extends Google * $rasters = $mapsengineService->rasters; * */ -class Google_Service_MapsEngine_Rasters_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_RasterCollectionsRasters_Resource extends Google_Service_Resource { - /** - * Delete a raster. (rasters.delete) - * - * @param string $id - * The ID of the raster. Only the raster creator or project owner are permitted to delete. If the - * raster is included in a layer or mosaic, the request will fail. Remove it from all parents prior - * to deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Return metadata for a single raster. (rasters.get) - * - * @param string $id - * The ID of the raster. - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Raster - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Raster"); - } - /** - * Mutate a raster asset. (rasters.patch) - * - * @param string $id - * The ID of the raster. - * @param Google_Raster $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Raster $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - /** - * Create a skeleton raster asset for upload. (rasters.upload) - * - * @param Google_Raster $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Raster - */ - public function upload(Google_Service_MapsEngine_Raster $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_MapsEngine_Raster"); - } + /** + * Remove rasters from an existing raster collection. + * + * Up to 50 rasters can be included in a single batchDelete request. Each + * batchDelete request is atomic. (rasters.batchDelete) + * + * @param string $id + * The ID of the raster collection to which these rasters belong. + * @param Google_RasterCollectionsRasterBatchDeleteRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse + */ + public function batchDelete($id, Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse"); + } + + /** + * Add rasters to an existing raster collection. Rasters must be successfully + * processed in order to be added to a raster collection. + * + * Up to 50 rasters can be included in a single batchInsert request. Each + * batchInsert request is atomic. (rasters.batchInsert) + * + * @param string $id + * The ID of the raster collection to which these rasters belong. + * @param Google_RasterCollectionsRastersBatchInsertRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse + */ + public function batchInsert($id, Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchInsert', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse"); + } + + /** + * Return all rasters within a raster collection. + * (rasters.listRasterCollectionsRasters) + * + * @param string $id + * The ID of the raster collection to which these rasters belong. + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @return Google_Service_MapsEngine_RasterCollectionsRastersListResponse + */ + public function listRasterCollectionsRasters($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_RasterCollectionsRastersListResponse"); + } +} + +/** + * The "rasters" collection of methods. + * Typical usage is: + * + * $mapsengineService = new Google_Service_MapsEngine(...); + * $rasters = $mapsengineService->rasters; + * + */ +class Google_Service_MapsEngine_Rasters_Resource extends Google_Service_Resource { + + /** + * Delete a raster. (rasters.delete) + * + * @param string $id + * The ID of the raster. Only the raster creator or project owner are permitted to delete. If the + * raster is included in a layer or mosaic, the request will fail. Remove it from all parents prior + * to deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Return metadata for a single raster. (rasters.get) + * + * @param string $id + * The ID of the raster. + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Raster + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Raster"); + } + + /** + * Mutate a raster asset. (rasters.patch) + * + * @param string $id + * The ID of the raster. + * @param Google_Raster $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_Raster $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } + + /** + * Create a skeleton raster asset for upload. (rasters.upload) + * + * @param Google_Raster $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Raster + */ + public function upload(Google_Service_MapsEngine_Raster $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_MapsEngine_Raster"); + } } /** @@ -1855,25 +1834,24 @@ class Google_Service_MapsEngine_Rasters_Resource extends Google_Service_Resource * $files = $mapsengineService->files; * */ -class Google_Service_MapsEngine_RastersFiles_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_RastersFiles_Resource extends Google_Service_Resource { - /** - * Upload a file to a raster asset. (files.insert) - * - * @param string $id - * The ID of the raster asset. - * @param string $filename - * The file name of this uploaded file. - * @param array $optParams Optional parameters. - */ - public function insert($id, $filename, $optParams = array()) - { - $params = array('id' => $id, 'filename' => $filename); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params)); - } + /** + * Upload a file to a raster asset. (files.insert) + * + * @param string $id + * The ID of the raster asset. + * @param string $filename + * The file name of this uploaded file. + * @param array $optParams Optional parameters. + */ + public function insert($id, $filename, $optParams = array()) { + $params = array('id' => $id, 'filename' => $filename); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params)); + } } + /** * The "parents" collection of methods. * Typical usage is: @@ -1882,30 +1860,28 @@ class Google_Service_MapsEngine_RastersFiles_Resource extends Google_Service_Res * $parents = $mapsengineService->parents; * */ -class Google_Service_MapsEngine_RastersParents_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_RastersParents_Resource extends Google_Service_Resource { - /** - * Return all parent ids of the specified rasters. (parents.listRastersParents) - * - * @param string $id - * The ID of the rasters whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listRastersParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } + /** + * Return all parent ids of the specified rasters. (parents.listRastersParents) + * + * @param string $id + * The ID of the rasters whose parents will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 50. + * @return Google_Service_MapsEngine_ParentsListResponse + */ + public function listRastersParents($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); + } } /** @@ -1916,128 +1892,126 @@ class Google_Service_MapsEngine_RastersParents_Resource extends Google_Service_R * $tables = $mapsengineService->tables; * */ -class Google_Service_MapsEngine_Tables_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_Tables_Resource extends Google_Service_Resource { - /** - * Create a table asset. (tables.create) - * - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Table - */ - public function create(Google_Service_MapsEngine_Table $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_MapsEngine_Table"); - } - /** - * Delete a table. (tables.delete) - * - * @param string $id - * The ID of the table. Only the table creator or project owner are permitted to delete. If the - * table is included in a layer, the request will fail. Remove it from all layers prior to - * deleting. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Return metadata for a particular table, including the schema. (tables.get) - * - * @param string $id - * The ID of the table. - * @param array $optParams Optional parameters. - * - * @opt_param string version - * - * @return Google_Service_MapsEngine_Table - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Table"); - } - /** - * Return all tables readable by the current user. (tables.listTables) - * - * @param array $optParams Optional parameters. - * - * @opt_param string modifiedAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or after this time. - * @opt_param string createdAfter - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or after this time. - * @opt_param string tags - * A comma separated list of tags. Returned assets will contain all the tags from the list. - * @opt_param string projectId - * The ID of a Maps Engine project, used to filter the response. To list all available projects - * with their IDs, send a Projects: list request. You can also find your project ID as the value of - * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 100. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string creatorEmail - * An email address representing a user. Returned assets that have been created by the user - * associated with the provided email address. - * @opt_param string bbox - * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this - * bounding box will be returned. - * @opt_param string modifiedBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been modified at or before this time. - * @opt_param string createdBefore - * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have - * been created at or before this time. - * @return Google_Service_MapsEngine_TablesListResponse - */ - public function listTables($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_TablesListResponse"); - } - /** - * Mutate a table asset. (tables.patch) - * - * @param string $id - * The ID of the table. - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - */ - public function patch($id, Google_Service_MapsEngine_Table $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params)); - } - /** - * Create a placeholder table asset to which table files can be uploaded. Once - * the placeholder has been created, files are uploaded to the - * https://www.googleapis.com/upload/mapsengine/v1/tables/table_id/files - * endpoint. See Table Upload in the Developer's Guide or Table.files: insert in - * the reference documentation for more information. (tables.upload) - * - * @param Google_Table $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_MapsEngine_Table - */ - public function upload(Google_Service_MapsEngine_Table $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_MapsEngine_Table"); - } + /** + * Create a table asset. (tables.create) + * + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Table + */ + public function create(Google_Service_MapsEngine_Table $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_MapsEngine_Table"); + } + + /** + * Delete a table. (tables.delete) + * + * @param string $id + * The ID of the table. Only the table creator or project owner are permitted to delete. If the + * table is included in a layer, the request will fail. Remove it from all layers prior to + * deleting. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Return metadata for a particular table, including the schema. (tables.get) + * + * @param string $id + * The ID of the table. + * @param array $optParams Optional parameters. + * + * @opt_param string version + * + * @return Google_Service_MapsEngine_Table + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Table"); + } + + /** + * Return all tables readable by the current user. (tables.listTables) + * + * @param array $optParams Optional parameters. + * + * @opt_param string modifiedAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or after this time. + * @opt_param string createdAfter + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or after this time. + * @opt_param string tags + * A comma separated list of tags. Returned assets will contain all the tags from the list. + * @opt_param string projectId + * The ID of a Maps Engine project, used to filter the response. To list all available projects + * with their IDs, send a Projects: list request. You can also find your project ID as the value of + * the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 100. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string creatorEmail + * An email address representing a user. Returned assets that have been created by the user + * associated with the provided email address. + * @opt_param string bbox + * A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this + * bounding box will be returned. + * @opt_param string modifiedBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been modified at or before this time. + * @opt_param string createdBefore + * An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have + * been created at or before this time. + * @return Google_Service_MapsEngine_TablesListResponse + */ + public function listTables($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_TablesListResponse"); + } + + /** + * Mutate a table asset. (tables.patch) + * + * @param string $id + * The ID of the table. + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + */ + public function patch($id, Google_Service_MapsEngine_Table $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params)); + } + + /** + * Create a placeholder table asset to which table files can be uploaded. Once + * the placeholder has been created, files are uploaded to the + * https://www.googleapis.com/upload/mapsengine/v1/tables/table_id/files + * endpoint. See Table Upload in the Developer's Guide or Table.files: insert in + * the reference documentation for more information. (tables.upload) + * + * @param Google_Table $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MapsEngine_Table + */ + public function upload(Google_Service_MapsEngine_Table $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_MapsEngine_Table"); + } } /** @@ -2048,139 +2022,138 @@ class Google_Service_MapsEngine_Tables_Resource extends Google_Service_Resource * $features = $mapsengineService->features; * */ -class Google_Service_MapsEngine_TablesFeatures_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_TablesFeatures_Resource extends Google_Service_Resource { - /** - * Delete all features matching the given IDs. (features.batchDelete) - * - * @param string $id - * The ID of the table that contains the features to be deleted. - * @param Google_FeaturesBatchDeleteRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchDelete($id, Google_Service_MapsEngine_FeaturesBatchDeleteRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params)); - } - /** - * Append features to an existing table. - * - * A single batchInsert request can create: - * - * - Up to 50 features. - A combined total of 10 000 vertices. Feature limits - * are documented in the Supported data formats and limits article of the Google - * Maps Engine help center. Note that free and paid accounts have different - * limits. - * - * For more information about inserting features, read Creating features in the - * Google Maps Engine developer's guide. (features.batchInsert) - * - * @param string $id - * The ID of the table to append the features to. - * @param Google_FeaturesBatchInsertRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchInsert($id, Google_Service_MapsEngine_FeaturesBatchInsertRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchInsert', array($params)); - } - /** - * Update the supplied features. - * - * A single batchPatch request can update: - * - * - Up to 50 features. - A combined total of 10 000 vertices. Feature limits - * are documented in the Supported data formats and limits article of the Google - * Maps Engine help center. Note that free and paid accounts have different - * limits. - * - * Feature updates use HTTP PATCH semantics: - * - * - A supplied value replaces an existing value (if any) in that field. - - * Omitted fields remain unchanged. - Complex values in geometries and - * properties must be replaced as atomic units. For example, providing just the - * coordinates of a geometry is not allowed; the complete geometry, including - * type, must be supplied. - Setting a property's value to null deletes that - * property. For more information about updating features, read Updating - * features in the Google Maps Engine developer's guide. (features.batchPatch) - * - * @param string $id - * The ID of the table containing the features to be patched. - * @param Google_FeaturesBatchPatchRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchPatch($id, Google_Service_MapsEngine_FeaturesBatchPatchRequest $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchPatch', array($params)); - } - /** - * Return a single feature, given its ID. (features.get) - * - * @param string $tableId - * The ID of the table. - * @param string $id - * The ID of the feature to get. - * @param array $optParams Optional parameters. - * - * @opt_param string version - * The table version to access. See Accessing Public Data for information. - * @opt_param string select - * A SQL-like projection clause used to specify returned properties. If this parameter is not - * included, all properties are returned. - * @return Google_Service_MapsEngine_Feature - */ - public function get($tableId, $id, $optParams = array()) - { - $params = array('tableId' => $tableId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_MapsEngine_Feature"); - } - /** - * Return all features readable by the current user. - * (features.listTablesFeatures) - * - * @param string $id - * The ID of the table to which these features belong. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * An SQL-like order by clause used to sort results. If this parameter is not included, the order - * of features is undefined. - * @opt_param string intersects - * A geometry literal that specifies the spatial restriction of the query. - * @opt_param string maxResults - * The maximum number of items to include in the response, used for paging. The maximum supported - * value is 1000. - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string version - * The table version to access. See Accessing Public Data for information. - * @opt_param string limit - * The total number of features to return from the query, irrespective of the number of pages. - * @opt_param string include - * A comma separated list of optional data to include. Optional data available: schema. - * @opt_param string where - * An SQL-like predicate used to filter results. - * @opt_param string select - * A SQL-like projection clause used to specify returned properties. If this parameter is not - * included, all properties are returned. - * @return Google_Service_MapsEngine_FeaturesListResponse - */ - public function listTablesFeatures($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_FeaturesListResponse"); - } + /** + * Delete all features matching the given IDs. (features.batchDelete) + * + * @param string $id + * The ID of the table that contains the features to be deleted. + * @param Google_FeaturesBatchDeleteRequest $postBody + * @param array $optParams Optional parameters. + */ + public function batchDelete($id, Google_Service_MapsEngine_FeaturesBatchDeleteRequest $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params)); + } + + /** + * Append features to an existing table. + * + * A single batchInsert request can create: + * + * - Up to 50 features. - A combined total of 10 000 vertices. Feature limits + * are documented in the Supported data formats and limits article of the Google + * Maps Engine help center. Note that free and paid accounts have different + * limits. + * + * For more information about inserting features, read Creating features in the + * Google Maps Engine developer's guide. (features.batchInsert) + * + * @param string $id + * The ID of the table to append the features to. + * @param Google_FeaturesBatchInsertRequest $postBody + * @param array $optParams Optional parameters. + */ + public function batchInsert($id, Google_Service_MapsEngine_FeaturesBatchInsertRequest $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchInsert', array($params)); + } + + /** + * Update the supplied features. + * + * A single batchPatch request can update: + * + * - Up to 50 features. - A combined total of 10 000 vertices. Feature limits + * are documented in the Supported data formats and limits article of the Google + * Maps Engine help center. Note that free and paid accounts have different + * limits. + * + * Feature updates use HTTP PATCH semantics: + * + * - A supplied value replaces an existing value (if any) in that field. - + * Omitted fields remain unchanged. - Complex values in geometries and + * properties must be replaced as atomic units. For example, providing just the + * coordinates of a geometry is not allowed; the complete geometry, including + * type, must be supplied. - Setting a property's value to null deletes that + * property. For more information about updating features, read Updating + * features in the Google Maps Engine developer's guide. (features.batchPatch) + * + * @param string $id + * The ID of the table containing the features to be patched. + * @param Google_FeaturesBatchPatchRequest $postBody + * @param array $optParams Optional parameters. + */ + public function batchPatch($id, Google_Service_MapsEngine_FeaturesBatchPatchRequest $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchPatch', array($params)); + } + + /** + * Return a single feature, given its ID. (features.get) + * + * @param string $tableId + * The ID of the table. + * @param string $id + * The ID of the feature to get. + * @param array $optParams Optional parameters. + * + * @opt_param string version + * The table version to access. See Accessing Public Data for information. + * @opt_param string select + * A SQL-like projection clause used to specify returned properties. If this parameter is not + * included, all properties are returned. + * @return Google_Service_MapsEngine_Feature + */ + public function get($tableId, $id, $optParams = array()) { + $params = array('tableId' => $tableId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_MapsEngine_Feature"); + } + + /** + * Return all features readable by the current user. + * (features.listTablesFeatures) + * + * @param string $id + * The ID of the table to which these features belong. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * An SQL-like order by clause used to sort results. If this parameter is not included, the order + * of features is undefined. + * @opt_param string intersects + * A geometry literal that specifies the spatial restriction of the query. + * @opt_param string maxResults + * The maximum number of items to include in the response, used for paging. The maximum supported + * value is 1000. + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string version + * The table version to access. See Accessing Public Data for information. + * @opt_param string limit + * The total number of features to return from the query, irrespective of the number of pages. + * @opt_param string include + * A comma separated list of optional data to include. Optional data available: schema. + * @opt_param string where + * An SQL-like predicate used to filter results. + * @opt_param string select + * A SQL-like projection clause used to specify returned properties. If this parameter is not + * included, all properties are returned. + * @return Google_Service_MapsEngine_FeaturesListResponse + */ + public function listTablesFeatures($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_FeaturesListResponse"); + } } + /** * The "files" collection of methods. * Typical usage is: @@ -2189,28 +2162,27 @@ class Google_Service_MapsEngine_TablesFeatures_Resource extends Google_Service_R * $files = $mapsengineService->files; * */ -class Google_Service_MapsEngine_TablesFiles_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_TablesFiles_Resource extends Google_Service_Resource { - /** - * Upload a file to a placeholder table asset. See Table Upload in the - * Developer's Guide for more information. Supported file types are listed in - * the Supported data formats and limits article of the Google Maps Engine help - * center. (files.insert) - * - * @param string $id - * The ID of the table asset. - * @param string $filename - * The file name of this uploaded file. - * @param array $optParams Optional parameters. - */ - public function insert($id, $filename, $optParams = array()) - { - $params = array('id' => $id, 'filename' => $filename); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params)); - } + /** + * Upload a file to a placeholder table asset. See Table Upload in the + * Developer's Guide for more information. Supported file types are listed in + * the Supported data formats and limits article of the Google Maps Engine help + * center. (files.insert) + * + * @param string $id + * The ID of the table asset. + * @param string $filename + * The file name of this uploaded file. + * @param array $optParams Optional parameters. + */ + public function insert($id, $filename, $optParams = array()) { + $params = array('id' => $id, 'filename' => $filename); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params)); + } } + /** * The "parents" collection of methods. * Typical usage is: @@ -2219,2554 +2191,2083 @@ class Google_Service_MapsEngine_TablesFiles_Resource extends Google_Service_Reso * $parents = $mapsengineService->parents; * */ -class Google_Service_MapsEngine_TablesParents_Resource extends Google_Service_Resource -{ +class Google_Service_MapsEngine_TablesParents_Resource extends Google_Service_Resource { - /** - * Return all parent ids of the specified table. (parents.listTablesParents) - * - * @param string $id - * The ID of the table whose parents will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, used to page through large result sets. To get the next page of results, - * set this parameter to the value of nextPageToken from the previous response. - * @opt_param string maxResults - * The maximum number of items to include in a single response page. The maximum supported value is - * 50. - * @return Google_Service_MapsEngine_ParentsListResponse - */ - public function listTablesParents($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); - } + /** + * Return all parent ids of the specified table. (parents.listTablesParents) + * + * @param string $id + * The ID of the table whose parents will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, used to page through large result sets. To get the next page of results, + * set this parameter to the value of nextPageToken from the previous response. + * @opt_param string maxResults + * The maximum number of items to include in a single response page. The maximum supported value is + * 50. + * @return Google_Service_MapsEngine_ParentsListResponse + */ + public function listTablesParents($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_MapsEngine_ParentsListResponse"); + } } +class Google_Service_MapsEngine_AcquisitionTime extends Google_Model { + public $end; + public $precision; + public $start; + public function setEnd($end) { + $this->end = $end; + } -class Google_Service_MapsEngine_AcquisitionTime extends Google_Model -{ - public $end; - public $precision; - public $start; + public function getEnd() { + return $this->end; + } - public function setEnd($end) - { - $this->end = $end; - } + public function setPrecision($precision) { + $this->precision = $precision; + } - public function getEnd() - { - return $this->end; - } + public function getPrecision() { + return $this->precision; + } - public function setPrecision($precision) - { - $this->precision = $precision; - } + public function setStart($start) { + $this->start = $start; + } - public function getPrecision() - { - return $this->precision; - } - - public function setStart($start) - { - $this->start = $start; - } - - public function getStart() - { - return $this->start; - } + public function getStart() { + return $this->start; + } } -class Google_Service_MapsEngine_Asset extends Google_Collection -{ - public $bbox; - public $creationTime; - public $description; - public $etag; - public $id; - public $lastModifiedTime; - public $name; - public $projectId; - public $resource; - public $tags; - public $type; +class Google_Service_MapsEngine_Asset extends Google_Collection { + public $bbox; + public $creationTime; + public $description; + public $etag; + public $id; + public $lastModifiedTime; + public $name; + public $projectId; + public $resource; + public $tags; + public $type; - public function setBbox($bbox) - { - $this->bbox = $bbox; - } + public function setBbox($bbox) { + $this->bbox = $bbox; + } - public function getBbox() - { - return $this->bbox; - } + public function getBbox() { + return $this->bbox; + } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } + public function setLastModifiedTime($lastModifiedTime) { + $this->lastModifiedTime = $lastModifiedTime; + } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } + public function getLastModifiedTime() { + return $this->lastModifiedTime; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setResource($resource) - { - $this->resource = $resource; - } + public function setResource($resource) { + $this->resource = $resource; + } - public function getResource() - { - return $this->resource; - } + public function getResource() { + return $this->resource; + } - public function setTags($tags) - { - $this->tags = $tags; - } + public function setTags($tags) { + $this->tags = $tags; + } - public function getTags() - { - return $this->tags; - } + public function getTags() { + return $this->tags; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_MapsEngine_AssetsListResponse extends Google_Collection -{ - protected $assetsType = 'Google_Service_MapsEngine_Asset'; - protected $assetsDataType = 'array'; - public $nextPageToken; +class Google_Service_MapsEngine_AssetsListResponse extends Google_Collection { + protected $assetsType = 'Google_Service_MapsEngine_Asset'; + protected $assetsDataType = 'array'; + public $nextPageToken; - public function setAssets($assets) - { - $this->assets = $assets; - } + public function setAssets($assets) { + $this->assets = $assets; + } - public function getAssets() - { - return $this->assets; - } + public function getAssets() { + return $this->assets; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_MapsEngine_Border extends Google_Model -{ - public $color; - public $opacity; - public $width; +class Google_Service_MapsEngine_Border extends Google_Model { + public $color; + public $opacity; + public $width; - public function setColor($color) - { - $this->color = $color; - } + public function setColor($color) { + $this->color = $color; + } - public function getColor() - { - return $this->color; - } + public function getColor() { + return $this->color; + } - public function setOpacity($opacity) - { - $this->opacity = $opacity; - } + public function setOpacity($opacity) { + $this->opacity = $opacity; + } - public function getOpacity() - { - return $this->opacity; - } + public function getOpacity() { + return $this->opacity; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_MapsEngine_Color extends Google_Model -{ - public $color; - public $opacity; +class Google_Service_MapsEngine_Color extends Google_Model { + public $color; + public $opacity; - public function setColor($color) - { - $this->color = $color; - } + public function setColor($color) { + $this->color = $color; + } - public function getColor() - { - return $this->color; - } + public function getColor() { + return $this->color; + } - public function setOpacity($opacity) - { - $this->opacity = $opacity; - } + public function setOpacity($opacity) { + $this->opacity = $opacity; + } - public function getOpacity() - { - return $this->opacity; - } + public function getOpacity() { + return $this->opacity; + } } -class Google_Service_MapsEngine_Datasource extends Google_Model -{ - public $id; +class Google_Service_MapsEngine_Datasource extends Google_Model { + public $id; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } } -class Google_Service_MapsEngine_DisplayRule extends Google_Collection -{ - protected $filtersType = 'Google_Service_MapsEngine_Filter'; - protected $filtersDataType = 'array'; - protected $lineOptionsType = 'Google_Service_MapsEngine_LineStyle'; - protected $lineOptionsDataType = ''; - public $name; - protected $pointOptionsType = 'Google_Service_MapsEngine_PointStyle'; - protected $pointOptionsDataType = ''; - protected $polygonOptionsType = 'Google_Service_MapsEngine_PolygonStyle'; - protected $polygonOptionsDataType = ''; - protected $zoomLevelsType = 'Google_Service_MapsEngine_ZoomLevels'; - protected $zoomLevelsDataType = ''; +class Google_Service_MapsEngine_DisplayRule extends Google_Collection { + protected $filtersType = 'Google_Service_MapsEngine_Filter'; + protected $filtersDataType = 'array'; + protected $lineOptionsType = 'Google_Service_MapsEngine_LineStyle'; + protected $lineOptionsDataType = ''; + public $name; + protected $pointOptionsType = 'Google_Service_MapsEngine_PointStyle'; + protected $pointOptionsDataType = ''; + protected $polygonOptionsType = 'Google_Service_MapsEngine_PolygonStyle'; + protected $polygonOptionsDataType = ''; + protected $zoomLevelsType = 'Google_Service_MapsEngine_ZoomLevels'; + protected $zoomLevelsDataType = ''; - public function setFilters($filters) - { - $this->filters = $filters; - } + public function setFilters($filters) { + $this->filters = $filters; + } - public function getFilters() - { - return $this->filters; - } + public function getFilters() { + return $this->filters; + } - public function setLineOptions(Google_Service_MapsEngine_LineStyle $lineOptions) - { - $this->lineOptions = $lineOptions; - } + public function setLineOptions(Google_Service_MapsEngine_LineStyle $lineOptions) { + $this->lineOptions = $lineOptions; + } - public function getLineOptions() - { - return $this->lineOptions; - } + public function getLineOptions() { + return $this->lineOptions; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPointOptions(Google_Service_MapsEngine_PointStyle $pointOptions) - { - $this->pointOptions = $pointOptions; - } + public function setPointOptions(Google_Service_MapsEngine_PointStyle $pointOptions) { + $this->pointOptions = $pointOptions; + } - public function getPointOptions() - { - return $this->pointOptions; - } + public function getPointOptions() { + return $this->pointOptions; + } - public function setPolygonOptions(Google_Service_MapsEngine_PolygonStyle $polygonOptions) - { - $this->polygonOptions = $polygonOptions; - } + public function setPolygonOptions(Google_Service_MapsEngine_PolygonStyle $polygonOptions) { + $this->polygonOptions = $polygonOptions; + } - public function getPolygonOptions() - { - return $this->polygonOptions; - } + public function getPolygonOptions() { + return $this->polygonOptions; + } - public function setZoomLevels(Google_Service_MapsEngine_ZoomLevels $zoomLevels) - { - $this->zoomLevels = $zoomLevels; - } + public function setZoomLevels(Google_Service_MapsEngine_ZoomLevels $zoomLevels) { + $this->zoomLevels = $zoomLevels; + } - public function getZoomLevels() - { - return $this->zoomLevels; - } + public function getZoomLevels() { + return $this->zoomLevels; + } } -class Google_Service_MapsEngine_Feature extends Google_Model -{ - protected $geometryType = 'Google_Service_MapsEngine_GeoJsonGeometry'; - protected $geometryDataType = ''; - public $properties; - public $type; +class Google_Service_MapsEngine_Feature extends Google_Model { + protected $geometryType = 'Google_Service_MapsEngine_GeoJsonGeometry'; + protected $geometryDataType = ''; + public $properties; + public $type; - public function setGeometry(Google_Service_MapsEngine_GeoJsonGeometry $geometry) - { - $this->geometry = $geometry; - } + public function setGeometry(Google_Service_MapsEngine_GeoJsonGeometry $geometry) { + $this->geometry = $geometry; + } - public function getGeometry() - { - return $this->geometry; - } + public function getGeometry() { + return $this->geometry; + } - public function setProperties($properties) - { - $this->properties = $properties; - } + public function setProperties($properties) { + $this->properties = $properties; + } - public function getProperties() - { - return $this->properties; - } + public function getProperties() { + return $this->properties; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_MapsEngine_FeatureInfo extends Google_Model -{ - public $content; +class Google_Service_MapsEngine_FeatureInfo extends Google_Model { + public $content; - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } } -class Google_Service_MapsEngine_FeaturesBatchDeleteRequest extends Google_Collection -{ - public $gxIds; - public $primaryKeys; +class Google_Service_MapsEngine_FeaturesBatchDeleteRequest extends Google_Collection { + public $gxIds; + public $primaryKeys; - public function setGxIds($gxIds) - { - $this->gxIds = $gxIds; - } + public function setGxIds($gxIds) { + $this->gxIds = $gxIds; + } - public function getGxIds() - { - return $this->gxIds; - } + public function getGxIds() { + return $this->gxIds; + } - public function setPrimaryKeys($primaryKeys) - { - $this->primaryKeys = $primaryKeys; - } + public function setPrimaryKeys($primaryKeys) { + $this->primaryKeys = $primaryKeys; + } - public function getPrimaryKeys() - { - return $this->primaryKeys; - } + public function getPrimaryKeys() { + return $this->primaryKeys; + } } -class Google_Service_MapsEngine_FeaturesBatchInsertRequest extends Google_Collection -{ - protected $featuresType = 'Google_Service_MapsEngine_Feature'; - protected $featuresDataType = 'array'; +class Google_Service_MapsEngine_FeaturesBatchInsertRequest extends Google_Collection { + protected $featuresType = 'Google_Service_MapsEngine_Feature'; + protected $featuresDataType = 'array'; - public function setFeatures($features) - { - $this->features = $features; - } + public function setFeatures($features) { + $this->features = $features; + } - public function getFeatures() - { - return $this->features; - } + public function getFeatures() { + return $this->features; + } } -class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collection -{ - protected $featuresType = 'Google_Service_MapsEngine_Feature'; - protected $featuresDataType = 'array'; +class Google_Service_MapsEngine_FeaturesBatchPatchRequest extends Google_Collection { + protected $featuresType = 'Google_Service_MapsEngine_Feature'; + protected $featuresDataType = 'array'; - public function setFeatures($features) - { - $this->features = $features; - } + public function setFeatures($features) { + $this->features = $features; + } - public function getFeatures() - { - return $this->features; - } + public function getFeatures() { + return $this->features; + } } -class Google_Service_MapsEngine_FeaturesListResponse extends Google_Collection -{ - public $allowedQueriesPerSecond; - protected $featuresType = 'Google_Service_MapsEngine_Feature'; - protected $featuresDataType = 'array'; - public $nextPageToken; - protected $schemaType = 'Google_Service_MapsEngine_Schema'; - protected $schemaDataType = ''; - public $type; +class Google_Service_MapsEngine_FeaturesListResponse extends Google_Collection { + public $allowedQueriesPerSecond; + protected $featuresType = 'Google_Service_MapsEngine_Feature'; + protected $featuresDataType = 'array'; + public $nextPageToken; + protected $schemaType = 'Google_Service_MapsEngine_Schema'; + protected $schemaDataType = ''; + public $type; - public function setAllowedQueriesPerSecond($allowedQueriesPerSecond) - { - $this->allowedQueriesPerSecond = $allowedQueriesPerSecond; - } + public function setAllowedQueriesPerSecond($allowedQueriesPerSecond) { + $this->allowedQueriesPerSecond = $allowedQueriesPerSecond; + } - public function getAllowedQueriesPerSecond() - { - return $this->allowedQueriesPerSecond; - } + public function getAllowedQueriesPerSecond() { + return $this->allowedQueriesPerSecond; + } - public function setFeatures($features) - { - $this->features = $features; - } + public function setFeatures($features) { + $this->features = $features; + } - public function getFeatures() - { - return $this->features; - } + public function getFeatures() { + return $this->features; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSchema(Google_Service_MapsEngine_Schema $schema) - { - $this->schema = $schema; - } + public function setSchema(Google_Service_MapsEngine_Schema $schema) { + $this->schema = $schema; + } - public function getSchema() - { - return $this->schema; - } + public function getSchema() { + return $this->schema; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_MapsEngine_Filter extends Google_Model -{ - public $column; - public $operator; - public $value; +class Google_Service_MapsEngine_Filter extends Google_Model { + public $column; + public $operator; + public $value; - public function setColumn($column) - { - $this->column = $column; - } + public function setColumn($column) { + $this->column = $column; + } - public function getColumn() - { - return $this->column; - } + public function getColumn() { + return $this->column; + } - public function setOperator($operator) - { - $this->operator = $operator; - } + public function setOperator($operator) { + $this->operator = $operator; + } - public function getOperator() - { - return $this->operator; - } + public function getOperator() { + return $this->operator; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_MapsEngine_GeoJsonGeometry extends Google_Model -{ - public $type; +class Google_Service_MapsEngine_GeoJsonGeometry extends Google_Model { + public $type; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_MapsEngine_GeoJsonGeometryCollection extends Google_Collection -{ - protected $geometriesType = 'Google_Service_MapsEngine_GeoJsonGeometry'; - protected $geometriesDataType = 'array'; +class Google_Service_MapsEngine_GeoJsonGeometryCollection extends Google_Collection { + protected $geometriesType = 'Google_Service_MapsEngine_GeoJsonGeometry'; + protected $geometriesDataType = 'array'; - public function setGeometries($geometries) - { - $this->geometries = $geometries; - } + public function setGeometries($geometries) { + $this->geometries = $geometries; + } - public function getGeometries() - { - return $this->geometries; - } + public function getGeometries() { + return $this->geometries; + } } -class Google_Service_MapsEngine_GeoJsonLineString extends Google_Collection -{ - public $coordinates; +class Google_Service_MapsEngine_GeoJsonLineString extends Google_Collection { + public $coordinates; - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } + public function setCoordinates($coordinates) { + $this->coordinates = $coordinates; + } - public function getCoordinates() - { - return $this->coordinates; - } + public function getCoordinates() { + return $this->coordinates; + } } -class Google_Service_MapsEngine_GeoJsonMultiLineString extends Google_Collection -{ - public $coordinates; +class Google_Service_MapsEngine_GeoJsonMultiLineString extends Google_Collection { + public $coordinates; - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } + public function setCoordinates($coordinates) { + $this->coordinates = $coordinates; + } - public function getCoordinates() - { - return $this->coordinates; - } + public function getCoordinates() { + return $this->coordinates; + } } -class Google_Service_MapsEngine_GeoJsonMultiPoint extends Google_Collection -{ - public $coordinates; +class Google_Service_MapsEngine_GeoJsonMultiPoint extends Google_Collection { + public $coordinates; - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } + public function setCoordinates($coordinates) { + $this->coordinates = $coordinates; + } - public function getCoordinates() - { - return $this->coordinates; - } + public function getCoordinates() { + return $this->coordinates; + } } -class Google_Service_MapsEngine_GeoJsonMultiPolygon extends Google_Collection -{ - public $coordinates; +class Google_Service_MapsEngine_GeoJsonMultiPolygon extends Google_Collection { + public $coordinates; - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } + public function setCoordinates($coordinates) { + $this->coordinates = $coordinates; + } - public function getCoordinates() - { - return $this->coordinates; - } + public function getCoordinates() { + return $this->coordinates; + } } -class Google_Service_MapsEngine_GeoJsonPoint extends Google_Collection -{ - public $coordinates; +class Google_Service_MapsEngine_GeoJsonPoint extends Google_Collection { + public $coordinates; - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } + public function setCoordinates($coordinates) { + $this->coordinates = $coordinates; + } - public function getCoordinates() - { - return $this->coordinates; - } + public function getCoordinates() { + return $this->coordinates; + } } -class Google_Service_MapsEngine_GeoJsonPolygon extends Google_Collection -{ - public $coordinates; +class Google_Service_MapsEngine_GeoJsonPolygon extends Google_Collection { + public $coordinates; - public function setCoordinates($coordinates) - { - $this->coordinates = $coordinates; - } + public function setCoordinates($coordinates) { + $this->coordinates = $coordinates; + } - public function getCoordinates() - { - return $this->coordinates; - } + public function getCoordinates() { + return $this->coordinates; + } } -class Google_Service_MapsEngine_GeoJsonProperties extends Google_Model -{ +class Google_Service_MapsEngine_GeoJsonProperties extends Google_Model { } -class Google_Service_MapsEngine_IconStyle extends Google_Model -{ - public $id; - public $name; +class Google_Service_MapsEngine_IconStyle extends Google_Model { + public $id; + public $name; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_MapsEngine_LabelStyle extends Google_Model -{ - public $color; - public $column; - public $fontStyle; - public $fontWeight; - public $opacity; - protected $outlineType = 'Google_Service_MapsEngine_Color'; - protected $outlineDataType = ''; - public $size; +class Google_Service_MapsEngine_LabelStyle extends Google_Model { + public $color; + public $column; + public $fontStyle; + public $fontWeight; + public $opacity; + protected $outlineType = 'Google_Service_MapsEngine_Color'; + protected $outlineDataType = ''; + public $size; - public function setColor($color) - { - $this->color = $color; - } + public function setColor($color) { + $this->color = $color; + } - public function getColor() - { - return $this->color; - } + public function getColor() { + return $this->color; + } - public function setColumn($column) - { - $this->column = $column; - } + public function setColumn($column) { + $this->column = $column; + } - public function getColumn() - { - return $this->column; - } + public function getColumn() { + return $this->column; + } - public function setFontStyle($fontStyle) - { - $this->fontStyle = $fontStyle; - } + public function setFontStyle($fontStyle) { + $this->fontStyle = $fontStyle; + } - public function getFontStyle() - { - return $this->fontStyle; - } + public function getFontStyle() { + return $this->fontStyle; + } - public function setFontWeight($fontWeight) - { - $this->fontWeight = $fontWeight; - } + public function setFontWeight($fontWeight) { + $this->fontWeight = $fontWeight; + } - public function getFontWeight() - { - return $this->fontWeight; - } + public function getFontWeight() { + return $this->fontWeight; + } - public function setOpacity($opacity) - { - $this->opacity = $opacity; - } + public function setOpacity($opacity) { + $this->opacity = $opacity; + } - public function getOpacity() - { - return $this->opacity; - } + public function getOpacity() { + return $this->opacity; + } - public function setOutline(Google_Service_MapsEngine_Color $outline) - { - $this->outline = $outline; - } + public function setOutline(Google_Service_MapsEngine_Color $outline) { + $this->outline = $outline; + } - public function getOutline() - { - return $this->outline; - } + public function getOutline() { + return $this->outline; + } - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } } -class Google_Service_MapsEngine_Layer extends Google_Collection -{ - public $bbox; - public $creationTime; - public $datasourceType; - protected $datasourcesType = 'Google_Service_MapsEngine_Datasource'; - protected $datasourcesDataType = 'array'; - public $description; - public $draftAccessList; - public $etag; - public $id; - public $lastModifiedTime; - public $name; - public $processingStatus; - public $projectId; - public $publishedAccessList; - protected $styleType = 'Google_Service_MapsEngine_VectorStyle'; - protected $styleDataType = ''; - public $tags; +class Google_Service_MapsEngine_Layer extends Google_Collection { + public $bbox; + public $creationTime; + public $datasourceType; + protected $datasourcesType = 'Google_Service_MapsEngine_Datasource'; + protected $datasourcesDataType = 'array'; + public $description; + public $draftAccessList; + public $etag; + public $id; + public $lastModifiedTime; + public $name; + public $processingStatus; + public $projectId; + public $publishedAccessList; + protected $styleType = 'Google_Service_MapsEngine_VectorStyle'; + protected $styleDataType = ''; + public $tags; - public function setBbox($bbox) - { - $this->bbox = $bbox; - } + public function setBbox($bbox) { + $this->bbox = $bbox; + } - public function getBbox() - { - return $this->bbox; - } + public function getBbox() { + return $this->bbox; + } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setDatasourceType($datasourceType) - { - $this->datasourceType = $datasourceType; - } + public function setDatasourceType($datasourceType) { + $this->datasourceType = $datasourceType; + } - public function getDatasourceType() - { - return $this->datasourceType; - } + public function getDatasourceType() { + return $this->datasourceType; + } - public function setDatasources(Google_Service_MapsEngine_Datasource $datasources) - { - $this->datasources = $datasources; - } + public function setDatasources(Google_Service_MapsEngine_Datasource $datasources) { + $this->datasources = $datasources; + } - public function getDatasources() - { - return $this->datasources; - } + public function getDatasources() { + return $this->datasources; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } + public function setDraftAccessList($draftAccessList) { + $this->draftAccessList = $draftAccessList; + } - public function getDraftAccessList() - { - return $this->draftAccessList; - } + public function getDraftAccessList() { + return $this->draftAccessList; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } + public function setLastModifiedTime($lastModifiedTime) { + $this->lastModifiedTime = $lastModifiedTime; + } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } + public function getLastModifiedTime() { + return $this->lastModifiedTime; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } + public function setProcessingStatus($processingStatus) { + $this->processingStatus = $processingStatus; + } - public function getProcessingStatus() - { - return $this->processingStatus; - } + public function getProcessingStatus() { + return $this->processingStatus; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setPublishedAccessList($publishedAccessList) - { - $this->publishedAccessList = $publishedAccessList; - } + public function setPublishedAccessList($publishedAccessList) { + $this->publishedAccessList = $publishedAccessList; + } - public function getPublishedAccessList() - { - return $this->publishedAccessList; - } + public function getPublishedAccessList() { + return $this->publishedAccessList; + } - public function setStyle(Google_Service_MapsEngine_VectorStyle $style) - { - $this->style = $style; - } + public function setStyle(Google_Service_MapsEngine_VectorStyle $style) { + $this->style = $style; + } - public function getStyle() - { - return $this->style; - } + public function getStyle() { + return $this->style; + } - public function setTags($tags) - { - $this->tags = $tags; - } + public function setTags($tags) { + $this->tags = $tags; + } - public function getTags() - { - return $this->tags; - } + public function getTags() { + return $this->tags; + } } -class Google_Service_MapsEngine_LayersListResponse extends Google_Collection -{ - protected $layersType = 'Google_Service_MapsEngine_Layer'; - protected $layersDataType = 'array'; - public $nextPageToken; +class Google_Service_MapsEngine_LayersListResponse extends Google_Collection { + protected $layersType = 'Google_Service_MapsEngine_Layer'; + protected $layersDataType = 'array'; + public $nextPageToken; - public function setLayers($layers) - { - $this->layers = $layers; - } + public function setLayers($layers) { + $this->layers = $layers; + } - public function getLayers() - { - return $this->layers; - } + public function getLayers() { + return $this->layers; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_MapsEngine_LineStyle extends Google_Collection -{ - protected $borderType = 'Google_Service_MapsEngine_Border'; - protected $borderDataType = ''; - public $dash; - protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; - protected $labelDataType = ''; - protected $strokeType = 'Google_Service_MapsEngine_LineStyleStroke'; - protected $strokeDataType = ''; +class Google_Service_MapsEngine_LineStyle extends Google_Collection { + protected $borderType = 'Google_Service_MapsEngine_Border'; + protected $borderDataType = ''; + public $dash; + protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; + protected $labelDataType = ''; + protected $strokeType = 'Google_Service_MapsEngine_LineStyleStroke'; + protected $strokeDataType = ''; - public function setBorder(Google_Service_MapsEngine_Border $border) - { - $this->border = $border; - } + public function setBorder(Google_Service_MapsEngine_Border $border) { + $this->border = $border; + } - public function getBorder() - { - return $this->border; - } + public function getBorder() { + return $this->border; + } - public function setDash($dash) - { - $this->dash = $dash; - } + public function setDash($dash) { + $this->dash = $dash; + } - public function getDash() - { - return $this->dash; - } + public function getDash() { + return $this->dash; + } - public function setLabel(Google_Service_MapsEngine_LabelStyle $label) - { - $this->label = $label; - } + public function setLabel(Google_Service_MapsEngine_LabelStyle $label) { + $this->label = $label; + } - public function getLabel() - { - return $this->label; - } + public function getLabel() { + return $this->label; + } - public function setStroke(Google_Service_MapsEngine_LineStyleStroke $stroke) - { - $this->stroke = $stroke; - } + public function setStroke(Google_Service_MapsEngine_LineStyleStroke $stroke) { + $this->stroke = $stroke; + } - public function getStroke() - { - return $this->stroke; - } + public function getStroke() { + return $this->stroke; + } } -class Google_Service_MapsEngine_LineStyleStroke extends Google_Model -{ - public $color; - public $opacity; - public $width; +class Google_Service_MapsEngine_LineStyleStroke extends Google_Model { + public $color; + public $opacity; + public $width; - public function setColor($color) - { - $this->color = $color; - } + public function setColor($color) { + $this->color = $color; + } - public function getColor() - { - return $this->color; - } + public function getColor() { + return $this->color; + } - public function setOpacity($opacity) - { - $this->opacity = $opacity; - } + public function setOpacity($opacity) { + $this->opacity = $opacity; + } - public function getOpacity() - { - return $this->opacity; - } + public function getOpacity() { + return $this->opacity; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_MapsEngine_Map extends Google_Collection -{ - public $bbox; - protected $contentsType = 'Google_Service_MapsEngine_MapItem'; - protected $contentsDataType = ''; - public $creationTime; - public $defaultViewport; - public $description; - public $draftAccessList; - public $etag; - public $id; - public $lastModifiedTime; - public $name; - public $processingStatus; - public $projectId; - public $publishedAccessList; - public $publishingStatus; - public $tags; - public $versions; +class Google_Service_MapsEngine_Map extends Google_Collection { + public $bbox; + protected $contentsType = 'Google_Service_MapsEngine_MapItem'; + protected $contentsDataType = ''; + public $creationTime; + public $defaultViewport; + public $description; + public $draftAccessList; + public $etag; + public $id; + public $lastModifiedTime; + public $name; + public $processingStatus; + public $projectId; + public $publishedAccessList; + public $publishingStatus; + public $tags; + public $versions; - public function setBbox($bbox) - { - $this->bbox = $bbox; - } + public function setBbox($bbox) { + $this->bbox = $bbox; + } - public function getBbox() - { - return $this->bbox; - } + public function getBbox() { + return $this->bbox; + } - public function setContents(Google_Service_MapsEngine_MapItem $contents) - { - $this->contents = $contents; - } + public function setContents(Google_Service_MapsEngine_MapItem $contents) { + $this->contents = $contents; + } - public function getContents() - { - return $this->contents; - } + public function getContents() { + return $this->contents; + } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } + public function setDefaultViewport($defaultViewport) { + $this->defaultViewport = $defaultViewport; + } - public function getDefaultViewport() - { - return $this->defaultViewport; - } + public function getDefaultViewport() { + return $this->defaultViewport; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } + public function setDraftAccessList($draftAccessList) { + $this->draftAccessList = $draftAccessList; + } - public function getDraftAccessList() - { - return $this->draftAccessList; - } + public function getDraftAccessList() { + return $this->draftAccessList; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } + public function setLastModifiedTime($lastModifiedTime) { + $this->lastModifiedTime = $lastModifiedTime; + } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } + public function getLastModifiedTime() { + return $this->lastModifiedTime; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } + public function setProcessingStatus($processingStatus) { + $this->processingStatus = $processingStatus; + } - public function getProcessingStatus() - { - return $this->processingStatus; - } + public function getProcessingStatus() { + return $this->processingStatus; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setPublishedAccessList($publishedAccessList) - { - $this->publishedAccessList = $publishedAccessList; - } + public function setPublishedAccessList($publishedAccessList) { + $this->publishedAccessList = $publishedAccessList; + } - public function getPublishedAccessList() - { - return $this->publishedAccessList; - } + public function getPublishedAccessList() { + return $this->publishedAccessList; + } - public function setPublishingStatus($publishingStatus) - { - $this->publishingStatus = $publishingStatus; - } + public function setPublishingStatus($publishingStatus) { + $this->publishingStatus = $publishingStatus; + } - public function getPublishingStatus() - { - return $this->publishingStatus; - } + public function getPublishingStatus() { + return $this->publishingStatus; + } - public function setTags($tags) - { - $this->tags = $tags; - } + public function setTags($tags) { + $this->tags = $tags; + } - public function getTags() - { - return $this->tags; - } + public function getTags() { + return $this->tags; + } - public function setVersions($versions) - { - $this->versions = $versions; - } + public function setVersions($versions) { + $this->versions = $versions; + } - public function getVersions() - { - return $this->versions; - } + public function getVersions() { + return $this->versions; + } } -class Google_Service_MapsEngine_MapFolder extends Google_Collection -{ - protected $contentsType = 'Google_Service_MapsEngine_MapItem'; - protected $contentsDataType = 'array'; - public $defaultViewport; - public $expandable; - public $key; - public $name; - public $visibility; +class Google_Service_MapsEngine_MapFolder extends Google_Collection { + protected $contentsType = 'Google_Service_MapsEngine_MapItem'; + protected $contentsDataType = 'array'; + public $defaultViewport; + public $expandable; + public $key; + public $name; + public $visibility; - public function setContents($contents) - { - $this->contents = $contents; - } + public function setContents($contents) { + $this->contents = $contents; + } - public function getContents() - { - return $this->contents; - } + public function getContents() { + return $this->contents; + } - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } + public function setDefaultViewport($defaultViewport) { + $this->defaultViewport = $defaultViewport; + } - public function getDefaultViewport() - { - return $this->defaultViewport; - } + public function getDefaultViewport() { + return $this->defaultViewport; + } - public function setExpandable($expandable) - { - $this->expandable = $expandable; - } + public function setExpandable($expandable) { + $this->expandable = $expandable; + } - public function getExpandable() - { - return $this->expandable; - } + public function getExpandable() { + return $this->expandable; + } - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } + public function setVisibility($visibility) { + $this->visibility = $visibility; + } - public function getVisibility() - { - return $this->visibility; - } + public function getVisibility() { + return $this->visibility; + } } -class Google_Service_MapsEngine_MapItem extends Google_Model -{ - public $type; +class Google_Service_MapsEngine_MapItem extends Google_Model { + public $type; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_MapsEngine_MapKmlLink extends Google_Collection -{ - public $defaultViewport; - public $kmlUrl; - public $name; - public $visibility; +class Google_Service_MapsEngine_MapKmlLink extends Google_Collection { + public $defaultViewport; + public $kmlUrl; + public $name; + public $visibility; - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } + public function setDefaultViewport($defaultViewport) { + $this->defaultViewport = $defaultViewport; + } - public function getDefaultViewport() - { - return $this->defaultViewport; - } + public function getDefaultViewport() { + return $this->defaultViewport; + } - public function setKmlUrl($kmlUrl) - { - $this->kmlUrl = $kmlUrl; - } + public function setKmlUrl($kmlUrl) { + $this->kmlUrl = $kmlUrl; + } - public function getKmlUrl() - { - return $this->kmlUrl; - } + public function getKmlUrl() { + return $this->kmlUrl; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } + public function setVisibility($visibility) { + $this->visibility = $visibility; + } - public function getVisibility() - { - return $this->visibility; - } + public function getVisibility() { + return $this->visibility; + } } -class Google_Service_MapsEngine_MapLayer extends Google_Collection -{ - public $defaultViewport; - public $id; - public $key; - public $name; - public $visibility; +class Google_Service_MapsEngine_MapLayer extends Google_Collection { + public $defaultViewport; + public $id; + public $key; + public $name; + public $visibility; - public function setDefaultViewport($defaultViewport) - { - $this->defaultViewport = $defaultViewport; - } + public function setDefaultViewport($defaultViewport) { + $this->defaultViewport = $defaultViewport; + } - public function getDefaultViewport() - { - return $this->defaultViewport; - } + public function getDefaultViewport() { + return $this->defaultViewport; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } + public function setVisibility($visibility) { + $this->visibility = $visibility; + } - public function getVisibility() - { - return $this->visibility; - } + public function getVisibility() { + return $this->visibility; + } } -class Google_Service_MapsEngine_MapsListResponse extends Google_Collection -{ - protected $mapsType = 'Google_Service_MapsEngine_Map'; - protected $mapsDataType = 'array'; - public $nextPageToken; +class Google_Service_MapsEngine_MapsListResponse extends Google_Collection { + protected $mapsType = 'Google_Service_MapsEngine_Map'; + protected $mapsDataType = 'array'; + public $nextPageToken; - public function setMaps($maps) - { - $this->maps = $maps; - } + public function setMaps($maps) { + $this->maps = $maps; + } - public function getMaps() - { - return $this->maps; - } + public function getMaps() { + return $this->maps; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_MapsEngine_MapsengineFile extends Google_Model -{ - public $filename; - public $size; - public $uploadStatus; +class Google_Service_MapsEngine_MapsengineFile extends Google_Model { + public $filename; + public $size; + public $uploadStatus; - public function setFilename($filename) - { - $this->filename = $filename; - } + public function setFilename($filename) { + $this->filename = $filename; + } - public function getFilename() - { - return $this->filename; - } + public function getFilename() { + return $this->filename; + } - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } - public function setUploadStatus($uploadStatus) - { - $this->uploadStatus = $uploadStatus; - } + public function setUploadStatus($uploadStatus) { + $this->uploadStatus = $uploadStatus; + } - public function getUploadStatus() - { - return $this->uploadStatus; - } + public function getUploadStatus() { + return $this->uploadStatus; + } } -class Google_Service_MapsEngine_Parent extends Google_Model -{ - public $id; +class Google_Service_MapsEngine_Parent extends Google_Model { + public $id; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } } -class Google_Service_MapsEngine_ParentsListResponse extends Google_Collection -{ - public $nextPageToken; - protected $parentsType = 'Google_Service_MapsEngine_Parent'; - protected $parentsDataType = 'array'; +class Google_Service_MapsEngine_ParentsListResponse extends Google_Collection { + public $nextPageToken; + protected $parentsType = 'Google_Service_MapsEngine_Parent'; + protected $parentsDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setParents($parents) - { - $this->parents = $parents; - } + public function setParents($parents) { + $this->parents = $parents; + } - public function getParents() - { - return $this->parents; - } + public function getParents() { + return $this->parents; + } } -class Google_Service_MapsEngine_PointStyle extends Google_Model -{ - protected $iconType = 'Google_Service_MapsEngine_IconStyle'; - protected $iconDataType = ''; - protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; - protected $labelDataType = ''; +class Google_Service_MapsEngine_PointStyle extends Google_Model { + protected $iconType = 'Google_Service_MapsEngine_IconStyle'; + protected $iconDataType = ''; + protected $labelType = 'Google_Service_MapsEngine_LabelStyle'; + protected $labelDataType = ''; - public function setIcon(Google_Service_MapsEngine_IconStyle $icon) - { - $this->icon = $icon; - } + public function setIcon(Google_Service_MapsEngine_IconStyle $icon) { + $this->icon = $icon; + } - public function getIcon() - { - return $this->icon; - } + public function getIcon() { + return $this->icon; + } - public function setLabel(Google_Service_MapsEngine_LabelStyle $label) - { - $this->label = $label; - } + public function setLabel(Google_Service_MapsEngine_LabelStyle $label) { + $this->label = $label; + } - public function getLabel() - { - return $this->label; - } + public function getLabel() { + return $this->label; + } } -class Google_Service_MapsEngine_PolygonStyle extends Google_Model -{ - protected $fillType = 'Google_Service_MapsEngine_Color'; - protected $fillDataType = ''; - protected $strokeType = 'Google_Service_MapsEngine_Border'; - protected $strokeDataType = ''; +class Google_Service_MapsEngine_PolygonStyle extends Google_Model { + protected $fillType = 'Google_Service_MapsEngine_Color'; + protected $fillDataType = ''; + protected $strokeType = 'Google_Service_MapsEngine_Border'; + protected $strokeDataType = ''; - public function setFill(Google_Service_MapsEngine_Color $fill) - { - $this->fill = $fill; - } + public function setFill(Google_Service_MapsEngine_Color $fill) { + $this->fill = $fill; + } - public function getFill() - { - return $this->fill; - } + public function getFill() { + return $this->fill; + } - public function setStroke(Google_Service_MapsEngine_Border $stroke) - { - $this->stroke = $stroke; - } + public function setStroke(Google_Service_MapsEngine_Border $stroke) { + $this->stroke = $stroke; + } - public function getStroke() - { - return $this->stroke; - } + public function getStroke() { + return $this->stroke; + } } -class Google_Service_MapsEngine_ProcessResponse extends Google_Model -{ +class Google_Service_MapsEngine_ProcessResponse extends Google_Model { } -class Google_Service_MapsEngine_Project extends Google_Model -{ - public $id; - public $name; +class Google_Service_MapsEngine_Project extends Google_Model { + public $id; + public $name; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_MapsEngine_ProjectsListResponse extends Google_Collection -{ - protected $projectsType = 'Google_Service_MapsEngine_Project'; - protected $projectsDataType = 'array'; +class Google_Service_MapsEngine_ProjectsListResponse extends Google_Collection { + protected $projectsType = 'Google_Service_MapsEngine_Project'; + protected $projectsDataType = 'array'; - public function setProjects($projects) - { - $this->projects = $projects; - } + public function setProjects($projects) { + $this->projects = $projects; + } - public function getProjects() - { - return $this->projects; - } + public function getProjects() { + return $this->projects; + } } -class Google_Service_MapsEngine_PublishResponse extends Google_Model -{ +class Google_Service_MapsEngine_PublishResponse extends Google_Model { } -class Google_Service_MapsEngine_Raster extends Google_Collection -{ - protected $acquisitionTimeType = 'Google_Service_MapsEngine_AcquisitionTime'; - protected $acquisitionTimeDataType = ''; - public $attribution; - public $bbox; - public $creationTime; - public $description; - public $draftAccessList; - public $etag; - protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; - protected $filesDataType = 'array'; - public $id; - public $lastModifiedTime; - public $maskType; - public $name; - public $processingStatus; - public $projectId; - public $rasterType; - public $tags; +class Google_Service_MapsEngine_Raster extends Google_Collection { + protected $acquisitionTimeType = 'Google_Service_MapsEngine_AcquisitionTime'; + protected $acquisitionTimeDataType = ''; + public $attribution; + public $bbox; + public $creationTime; + public $description; + public $draftAccessList; + public $etag; + protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; + protected $filesDataType = 'array'; + public $id; + public $lastModifiedTime; + public $maskType; + public $name; + public $processingStatus; + public $projectId; + public $rasterType; + public $tags; - public function setAcquisitionTime(Google_Service_MapsEngine_AcquisitionTime $acquisitionTime) - { - $this->acquisitionTime = $acquisitionTime; - } + public function setAcquisitionTime(Google_Service_MapsEngine_AcquisitionTime $acquisitionTime) { + $this->acquisitionTime = $acquisitionTime; + } - public function getAcquisitionTime() - { - return $this->acquisitionTime; - } + public function getAcquisitionTime() { + return $this->acquisitionTime; + } - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } + public function setAttribution($attribution) { + $this->attribution = $attribution; + } - public function getAttribution() - { - return $this->attribution; - } + public function getAttribution() { + return $this->attribution; + } - public function setBbox($bbox) - { - $this->bbox = $bbox; - } + public function setBbox($bbox) { + $this->bbox = $bbox; + } - public function getBbox() - { - return $this->bbox; - } + public function getBbox() { + return $this->bbox; + } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } + public function setDraftAccessList($draftAccessList) { + $this->draftAccessList = $draftAccessList; + } - public function getDraftAccessList() - { - return $this->draftAccessList; - } + public function getDraftAccessList() { + return $this->draftAccessList; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setFiles($files) - { - $this->files = $files; - } + public function setFiles($files) { + $this->files = $files; + } - public function getFiles() - { - return $this->files; - } + public function getFiles() { + return $this->files; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } + public function setLastModifiedTime($lastModifiedTime) { + $this->lastModifiedTime = $lastModifiedTime; + } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } + public function getLastModifiedTime() { + return $this->lastModifiedTime; + } - public function setMaskType($maskType) - { - $this->maskType = $maskType; - } + public function setMaskType($maskType) { + $this->maskType = $maskType; + } - public function getMaskType() - { - return $this->maskType; - } + public function getMaskType() { + return $this->maskType; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } + public function setProcessingStatus($processingStatus) { + $this->processingStatus = $processingStatus; + } - public function getProcessingStatus() - { - return $this->processingStatus; - } + public function getProcessingStatus() { + return $this->processingStatus; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setRasterType($rasterType) - { - $this->rasterType = $rasterType; - } + public function setRasterType($rasterType) { + $this->rasterType = $rasterType; + } - public function getRasterType() - { - return $this->rasterType; - } + public function getRasterType() { + return $this->rasterType; + } - public function setTags($tags) - { - $this->tags = $tags; - } + public function setTags($tags) { + $this->tags = $tags; + } - public function getTags() - { - return $this->tags; - } + public function getTags() { + return $this->tags; + } } -class Google_Service_MapsEngine_RasterCollection extends Google_Collection -{ - public $attribution; - public $bbox; - public $creationTime; - public $description; - public $draftAccessList; - public $etag; - public $id; - public $lastModifiedTime; - public $mosaic; - public $name; - public $processingStatus; - public $projectId; - public $rasterType; - public $tags; +class Google_Service_MapsEngine_RasterCollection extends Google_Collection { + public $attribution; + public $bbox; + public $creationTime; + public $description; + public $draftAccessList; + public $etag; + public $id; + public $lastModifiedTime; + public $mosaic; + public $name; + public $processingStatus; + public $projectId; + public $rasterType; + public $tags; - public function setAttribution($attribution) - { - $this->attribution = $attribution; - } + public function setAttribution($attribution) { + $this->attribution = $attribution; + } - public function getAttribution() - { - return $this->attribution; - } + public function getAttribution() { + return $this->attribution; + } - public function setBbox($bbox) - { - $this->bbox = $bbox; - } + public function setBbox($bbox) { + $this->bbox = $bbox; + } - public function getBbox() - { - return $this->bbox; - } + public function getBbox() { + return $this->bbox; + } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } + public function setDraftAccessList($draftAccessList) { + $this->draftAccessList = $draftAccessList; + } - public function getDraftAccessList() - { - return $this->draftAccessList; - } + public function getDraftAccessList() { + return $this->draftAccessList; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } + public function setLastModifiedTime($lastModifiedTime) { + $this->lastModifiedTime = $lastModifiedTime; + } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } + public function getLastModifiedTime() { + return $this->lastModifiedTime; + } - public function setMosaic($mosaic) - { - $this->mosaic = $mosaic; - } + public function setMosaic($mosaic) { + $this->mosaic = $mosaic; + } - public function getMosaic() - { - return $this->mosaic; - } + public function getMosaic() { + return $this->mosaic; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } + public function setProcessingStatus($processingStatus) { + $this->processingStatus = $processingStatus; + } - public function getProcessingStatus() - { - return $this->processingStatus; - } + public function getProcessingStatus() { + return $this->processingStatus; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setRasterType($rasterType) - { - $this->rasterType = $rasterType; - } + public function setRasterType($rasterType) { + $this->rasterType = $rasterType; + } - public function getRasterType() - { - return $this->rasterType; - } + public function getRasterType() { + return $this->rasterType; + } - public function setTags($tags) - { - $this->tags = $tags; - } + public function setTags($tags) { + $this->tags = $tags; + } - public function getTags() - { - return $this->tags; - } + public function getTags() { + return $this->tags; + } } -class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Collection -{ - public $nextPageToken; - protected $rasterCollectionsType = 'Google_Service_MapsEngine_RasterCollection'; - protected $rasterCollectionsDataType = 'array'; +class Google_Service_MapsEngine_RasterCollectionsListResponse extends Google_Collection { + public $nextPageToken; + protected $rasterCollectionsType = 'Google_Service_MapsEngine_RasterCollection'; + protected $rasterCollectionsDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setRasterCollections($rasterCollections) - { - $this->rasterCollections = $rasterCollections; - } + public function setRasterCollections($rasterCollections) { + $this->rasterCollections = $rasterCollections; + } - public function getRasterCollections() - { - return $this->rasterCollections; - } + public function getRasterCollections() { + return $this->rasterCollections; + } } -class Google_Service_MapsEngine_RasterCollectionsRaster extends Google_Collection -{ - public $bbox; - public $creationTime; - public $description; - public $id; - public $lastModifiedTime; - public $name; - public $projectId; - public $rasterType; - public $tags; +class Google_Service_MapsEngine_RasterCollectionsRaster extends Google_Collection { + public $bbox; + public $creationTime; + public $description; + public $id; + public $lastModifiedTime; + public $name; + public $projectId; + public $rasterType; + public $tags; - public function setBbox($bbox) - { - $this->bbox = $bbox; - } + public function setBbox($bbox) { + $this->bbox = $bbox; + } - public function getBbox() - { - return $this->bbox; - } + public function getBbox() { + return $this->bbox; + } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } + public function setLastModifiedTime($lastModifiedTime) { + $this->lastModifiedTime = $lastModifiedTime; + } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } + public function getLastModifiedTime() { + return $this->lastModifiedTime; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setRasterType($rasterType) - { - $this->rasterType = $rasterType; - } + public function setRasterType($rasterType) { + $this->rasterType = $rasterType; + } - public function getRasterType() - { - return $this->rasterType; - } + public function getRasterType() { + return $this->rasterType; + } - public function setTags($tags) - { - $this->tags = $tags; - } + public function setTags($tags) { + $this->tags = $tags; + } - public function getTags() - { - return $this->tags; - } + public function getTags() { + return $this->tags; + } } -class Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extends Google_Collection -{ - public $ids; +class Google_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extends Google_Collection { + public $ids; - public function setIds($ids) - { - $this->ids = $ids; - } + public function setIds($ids) { + $this->ids = $ids; + } - public function getIds() - { - return $this->ids; - } + public function getIds() { + return $this->ids; + } } -class Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse extends Google_Model -{ +class Google_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse extends Google_Model { } -class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest extends Google_Collection -{ - public $ids; +class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest extends Google_Collection { + public $ids; - public function setIds($ids) - { - $this->ids = $ids; - } + public function setIds($ids) { + $this->ids = $ids; + } - public function getIds() - { - return $this->ids; - } + public function getIds() { + return $this->ids; + } } -class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse extends Google_Model -{ +class Google_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse extends Google_Model { } -class Google_Service_MapsEngine_RasterCollectionsRastersListResponse extends Google_Collection -{ - public $nextPageToken; - protected $rastersType = 'Google_Service_MapsEngine_RasterCollectionsRaster'; - protected $rastersDataType = 'array'; +class Google_Service_MapsEngine_RasterCollectionsRastersListResponse extends Google_Collection { + public $nextPageToken; + protected $rastersType = 'Google_Service_MapsEngine_RasterCollectionsRaster'; + protected $rastersDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setRasters($rasters) - { - $this->rasters = $rasters; - } + public function setRasters($rasters) { + $this->rasters = $rasters; + } - public function getRasters() - { - return $this->rasters; - } + public function getRasters() { + return $this->rasters; + } } -class Google_Service_MapsEngine_Schema extends Google_Collection -{ - protected $columnsType = 'Google_Service_MapsEngine_TableColumn'; - protected $columnsDataType = 'array'; - public $primaryGeometry; - public $primaryKey; +class Google_Service_MapsEngine_Schema extends Google_Collection { + protected $columnsType = 'Google_Service_MapsEngine_TableColumn'; + protected $columnsDataType = 'array'; + public $primaryGeometry; + public $primaryKey; - public function setColumns($columns) - { - $this->columns = $columns; - } + public function setColumns($columns) { + $this->columns = $columns; + } - public function getColumns() - { - return $this->columns; - } + public function getColumns() { + return $this->columns; + } - public function setPrimaryGeometry($primaryGeometry) - { - $this->primaryGeometry = $primaryGeometry; - } + public function setPrimaryGeometry($primaryGeometry) { + $this->primaryGeometry = $primaryGeometry; + } - public function getPrimaryGeometry() - { - return $this->primaryGeometry; - } + public function getPrimaryGeometry() { + return $this->primaryGeometry; + } - public function setPrimaryKey($primaryKey) - { - $this->primaryKey = $primaryKey; - } + public function setPrimaryKey($primaryKey) { + $this->primaryKey = $primaryKey; + } - public function getPrimaryKey() - { - return $this->primaryKey; - } + public function getPrimaryKey() { + return $this->primaryKey; + } } -class Google_Service_MapsEngine_Table extends Google_Collection -{ - public $bbox; - public $creationTime; - public $description; - public $draftAccessList; - public $etag; - protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; - protected $filesDataType = 'array'; - public $id; - public $lastModifiedTime; - public $name; - public $processingStatus; - public $projectId; - public $publishedAccessList; - protected $schemaType = 'Google_Service_MapsEngine_Schema'; - protected $schemaDataType = ''; - public $sourceEncoding; - public $tags; +class Google_Service_MapsEngine_Table extends Google_Collection { + public $bbox; + public $creationTime; + public $description; + public $draftAccessList; + public $etag; + protected $filesType = 'Google_Service_MapsEngine_MapsengineFile'; + protected $filesDataType = 'array'; + public $id; + public $lastModifiedTime; + public $name; + public $processingStatus; + public $projectId; + public $publishedAccessList; + protected $schemaType = 'Google_Service_MapsEngine_Schema'; + protected $schemaDataType = ''; + public $sourceEncoding; + public $tags; - public function setBbox($bbox) - { - $this->bbox = $bbox; - } + public function setBbox($bbox) { + $this->bbox = $bbox; + } - public function getBbox() - { - return $this->bbox; - } + public function getBbox() { + return $this->bbox; + } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setDraftAccessList($draftAccessList) - { - $this->draftAccessList = $draftAccessList; - } + public function setDraftAccessList($draftAccessList) { + $this->draftAccessList = $draftAccessList; + } - public function getDraftAccessList() - { - return $this->draftAccessList; - } + public function getDraftAccessList() { + return $this->draftAccessList; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setFiles($files) - { - $this->files = $files; - } + public function setFiles($files) { + $this->files = $files; + } - public function getFiles() - { - return $this->files; - } + public function getFiles() { + return $this->files; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLastModifiedTime($lastModifiedTime) - { - $this->lastModifiedTime = $lastModifiedTime; - } + public function setLastModifiedTime($lastModifiedTime) { + $this->lastModifiedTime = $lastModifiedTime; + } - public function getLastModifiedTime() - { - return $this->lastModifiedTime; - } + public function getLastModifiedTime() { + return $this->lastModifiedTime; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } + public function setProcessingStatus($processingStatus) { + $this->processingStatus = $processingStatus; + } - public function getProcessingStatus() - { - return $this->processingStatus; - } + public function getProcessingStatus() { + return $this->processingStatus; + } - public function setProjectId($projectId) - { - $this->projectId = $projectId; - } + public function setProjectId($projectId) { + $this->projectId = $projectId; + } - public function getProjectId() - { - return $this->projectId; - } + public function getProjectId() { + return $this->projectId; + } - public function setPublishedAccessList($publishedAccessList) - { - $this->publishedAccessList = $publishedAccessList; - } + public function setPublishedAccessList($publishedAccessList) { + $this->publishedAccessList = $publishedAccessList; + } - public function getPublishedAccessList() - { - return $this->publishedAccessList; - } + public function getPublishedAccessList() { + return $this->publishedAccessList; + } - public function setSchema(Google_Service_MapsEngine_Schema $schema) - { - $this->schema = $schema; - } + public function setSchema(Google_Service_MapsEngine_Schema $schema) { + $this->schema = $schema; + } - public function getSchema() - { - return $this->schema; - } + public function getSchema() { + return $this->schema; + } - public function setSourceEncoding($sourceEncoding) - { - $this->sourceEncoding = $sourceEncoding; - } + public function setSourceEncoding($sourceEncoding) { + $this->sourceEncoding = $sourceEncoding; + } - public function getSourceEncoding() - { - return $this->sourceEncoding; - } + public function getSourceEncoding() { + return $this->sourceEncoding; + } - public function setTags($tags) - { - $this->tags = $tags; - } + public function setTags($tags) { + $this->tags = $tags; + } - public function getTags() - { - return $this->tags; - } + public function getTags() { + return $this->tags; + } } -class Google_Service_MapsEngine_TableColumn extends Google_Model -{ - public $name; - public $type; +class Google_Service_MapsEngine_TableColumn extends Google_Model { + public $name; + public $type; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_MapsEngine_TablesListResponse extends Google_Collection -{ - public $nextPageToken; - protected $tablesType = 'Google_Service_MapsEngine_Table'; - protected $tablesDataType = 'array'; +class Google_Service_MapsEngine_TablesListResponse extends Google_Collection { + public $nextPageToken; + protected $tablesType = 'Google_Service_MapsEngine_Table'; + protected $tablesDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTables($tables) - { - $this->tables = $tables; - } + public function setTables($tables) { + $this->tables = $tables; + } - public function getTables() - { - return $this->tables; - } + public function getTables() { + return $this->tables; + } } -class Google_Service_MapsEngine_VectorStyle extends Google_Collection -{ - protected $displayRulesType = 'Google_Service_MapsEngine_DisplayRule'; - protected $displayRulesDataType = 'array'; - protected $featureInfoType = 'Google_Service_MapsEngine_FeatureInfo'; - protected $featureInfoDataType = ''; - public $type; +class Google_Service_MapsEngine_VectorStyle extends Google_Collection { + protected $displayRulesType = 'Google_Service_MapsEngine_DisplayRule'; + protected $displayRulesDataType = 'array'; + protected $featureInfoType = 'Google_Service_MapsEngine_FeatureInfo'; + protected $featureInfoDataType = ''; + public $type; - public function setDisplayRules($displayRules) - { - $this->displayRules = $displayRules; - } + public function setDisplayRules($displayRules) { + $this->displayRules = $displayRules; + } - public function getDisplayRules() - { - return $this->displayRules; - } + public function getDisplayRules() { + return $this->displayRules; + } - public function setFeatureInfo(Google_Service_MapsEngine_FeatureInfo $featureInfo) - { - $this->featureInfo = $featureInfo; - } + public function setFeatureInfo(Google_Service_MapsEngine_FeatureInfo $featureInfo) { + $this->featureInfo = $featureInfo; + } - public function getFeatureInfo() - { - return $this->featureInfo; - } + public function getFeatureInfo() { + return $this->featureInfo; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_MapsEngine_ZoomLevels extends Google_Model -{ - public $max; - public $min; +class Google_Service_MapsEngine_ZoomLevels extends Google_Model { + public $max; + public $min; - public function setMax($max) - { - $this->max = $max; - } + public function setMax($max) { + $this->max = $max; + } - public function getMax() - { - return $this->max; - } + public function getMax() { + return $this->max; + } - public function setMin($min) - { - $this->min = $min; - } + public function setMin($min) { + $this->min = $min; + } - public function getMin() - { - return $this->min; - } + public function getMin() { + return $this->min; + } } diff --git a/oauth/Google/Service/Mirror.php b/oauth/Google/Service/Mirror.php index a44efd0..b52fe34 100644 --- a/oauth/Google/Service/Mirror.php +++ b/oauth/Google/Service/Mirror.php @@ -29,352 +29,350 @@ * * @author Google, Inc. */ -class Google_Service_Mirror extends Google_Service -{ - /** View your location. */ - const GLASS_LOCATION = "https://www.googleapis.com/auth/glass.location"; - /** View and manage your Glass timeline. */ - const GLASS_TIMELINE = "https://www.googleapis.com/auth/glass.timeline"; +class Google_Service_Mirror extends Google_Service { + /** View your location. */ + const GLASS_LOCATION = "https://www.googleapis.com/auth/glass.location"; + /** View and manage your Glass timeline. */ + const GLASS_TIMELINE = "https://www.googleapis.com/auth/glass.timeline"; - public $accounts; - public $contacts; - public $locations; - public $settings; - public $subscriptions; - public $timeline; - public $timeline_attachments; - + public $accounts; + public $contacts; + public $locations; + public $settings; + public $subscriptions; + public $timeline; + public $timeline_attachments; - /** - * Constructs the internal representation of the Mirror service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'mirror/v1/'; - $this->version = 'v1'; - $this->serviceName = 'mirror'; - $this->accounts = new Google_Service_Mirror_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'accounts/{userToken}/{accountType}/{accountName}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userToken' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountType' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->contacts = new Google_Service_Mirror_Contacts_Resource( - $this, - $this->serviceName, - 'contacts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'contacts/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'contacts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'contacts', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'contacts', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'contacts/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'contacts/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->locations = new Google_Service_Mirror_Locations_Resource( - $this, - $this->serviceName, - 'locations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'locations/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'locations', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->settings = new Google_Service_Mirror_Settings_Resource( - $this, - $this->serviceName, - 'settings', - array( - 'methods' => array( - 'get' => array( - 'path' => 'settings/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->subscriptions = new Google_Service_Mirror_Subscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'subscriptions/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'update' => array( - 'path' => 'subscriptions/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->timeline = new Google_Service_Mirror_Timeline_Resource( - $this, - $this->serviceName, - 'timeline', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'timeline/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'timeline/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'timeline', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'timeline', - 'httpMethod' => 'GET', - 'parameters' => array( - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sourceItemId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pinnedOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'bundleId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'timeline/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'timeline/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->timeline_attachments = new Google_Service_Mirror_TimelineAttachments_Resource( - $this, - $this->serviceName, - 'attachments', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'timeline/{itemId}/attachments/{attachmentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'itemId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'attachmentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'timeline/{itemId}/attachments/{attachmentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'itemId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'attachmentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'timeline/{itemId}/attachments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'itemId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'timeline/{itemId}/attachments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'itemId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Mirror service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'mirror/v1/'; + $this->version = 'v1'; + $this->serviceName = 'mirror'; + + $this->accounts = new Google_Service_Mirror_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'accounts/{userToken}/{accountType}/{accountName}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userToken' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->contacts = new Google_Service_Mirror_Contacts_Resource( + $this, + $this->serviceName, + 'contacts', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'contacts/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'contacts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'contacts', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'list' => array( + 'path' => 'contacts', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), 'patch' => array( + 'path' => 'contacts/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'contacts/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->locations = new Google_Service_Mirror_Locations_Resource( + $this, + $this->serviceName, + 'locations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'locations/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'locations', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->settings = new Google_Service_Mirror_Settings_Resource( + $this, + $this->serviceName, + 'settings', + array( + 'methods' => array( + 'get' => array( + 'path' => 'settings/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->subscriptions = new Google_Service_Mirror_Subscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'subscriptions/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'list' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), 'update' => array( + 'path' => 'subscriptions/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->timeline = new Google_Service_Mirror_Timeline_Resource( + $this, + $this->serviceName, + 'timeline', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'timeline/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'timeline/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'timeline', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'list' => array( + 'path' => 'timeline', + 'httpMethod' => 'GET', + 'parameters' => array( + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sourceItemId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pinnedOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'bundleId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'timeline/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'timeline/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->timeline_attachments = new Google_Service_Mirror_TimelineAttachments_Resource( + $this, + $this->serviceName, + 'attachments', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'timeline/{itemId}/attachments/{attachmentId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'itemId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'attachmentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'timeline/{itemId}/attachments/{attachmentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'itemId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'attachmentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'timeline/{itemId}/attachments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'itemId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'timeline/{itemId}/attachments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'itemId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -386,28 +384,26 @@ class Google_Service_Mirror extends Google_Service * $accounts = $mirrorService->accounts; * */ -class Google_Service_Mirror_Accounts_Resource extends Google_Service_Resource -{ +class Google_Service_Mirror_Accounts_Resource extends Google_Service_Resource { - /** - * Inserts a new account for a user (accounts.insert) - * - * @param string $userToken - * The ID for the user. - * @param string $accountType - * Account type to be passed to Android Account Manager. - * @param string $accountName - * The name of the account to be passed to the Android Account Manager. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Account - */ - public function insert($userToken, $accountType, $accountName, Google_Service_Mirror_Account $postBody, $optParams = array()) - { - $params = array('userToken' => $userToken, 'accountType' => $accountType, 'accountName' => $accountName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Mirror_Account"); - } + /** + * Inserts a new account for a user (accounts.insert) + * + * @param string $userToken + * The ID for the user. + * @param string $accountType + * Account type to be passed to Android Account Manager. + * @param string $accountName + * The name of the account to be passed to the Android Account Manager. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_Account + */ + public function insert($userToken, $accountType, $accountName, Google_Service_Mirror_Account $postBody, $optParams = array()) { + $params = array('userToken' => $userToken, 'accountType' => $accountType, 'accountName' => $accountName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Mirror_Account"); + } } /** @@ -418,93 +414,91 @@ class Google_Service_Mirror_Accounts_Resource extends Google_Service_Resource * $contacts = $mirrorService->contacts; * */ -class Google_Service_Mirror_Contacts_Resource extends Google_Service_Resource -{ +class Google_Service_Mirror_Contacts_Resource extends Google_Service_Resource { - /** - * Deletes a contact. (contacts.delete) - * - * @param string $id - * The ID of the contact. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a single contact by ID. (contacts.get) - * - * @param string $id - * The ID of the contact. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Contact - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Mirror_Contact"); - } - /** - * Inserts a new contact. (contacts.insert) - * - * @param Google_Contact $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Contact - */ - public function insert(Google_Service_Mirror_Contact $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Mirror_Contact"); - } - /** - * Retrieves a list of contacts for the authenticated user. - * (contacts.listContacts) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_ContactsListResponse - */ - public function listContacts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Mirror_ContactsListResponse"); - } - /** - * Updates a contact in place. This method supports patch semantics. - * (contacts.patch) - * - * @param string $id - * The ID of the contact. - * @param Google_Contact $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Contact - */ - public function patch($id, Google_Service_Mirror_Contact $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Mirror_Contact"); - } - /** - * Updates a contact in place. (contacts.update) - * - * @param string $id - * The ID of the contact. - * @param Google_Contact $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Contact - */ - public function update($id, Google_Service_Mirror_Contact $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Mirror_Contact"); - } + /** + * Deletes a contact. (contacts.delete) + * + * @param string $id + * The ID of the contact. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a single contact by ID. (contacts.get) + * + * @param string $id + * The ID of the contact. + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_Contact + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Mirror_Contact"); + } + + /** + * Inserts a new contact. (contacts.insert) + * + * @param Google_Contact $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_Contact + */ + public function insert(Google_Service_Mirror_Contact $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Mirror_Contact"); + } + + /** + * Retrieves a list of contacts for the authenticated user. + * (contacts.listContacts) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_ContactsListResponse + */ + public function listContacts($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Mirror_ContactsListResponse"); + } + + /** + * Updates a contact in place. This method supports patch semantics. + * (contacts.patch) + * + * @param string $id + * The ID of the contact. + * @param Google_Contact $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_Contact + */ + public function patch($id, Google_Service_Mirror_Contact $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Mirror_Contact"); + } + + /** + * Updates a contact in place. (contacts.update) + * + * @param string $id + * The ID of the contact. + * @param Google_Contact $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_Contact + */ + public function update($id, Google_Service_Mirror_Contact $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Mirror_Contact"); + } } /** @@ -515,35 +509,33 @@ class Google_Service_Mirror_Contacts_Resource extends Google_Service_Resource * $locations = $mirrorService->locations; * */ -class Google_Service_Mirror_Locations_Resource extends Google_Service_Resource -{ +class Google_Service_Mirror_Locations_Resource extends Google_Service_Resource { - /** - * Gets a single location by ID. (locations.get) - * - * @param string $id - * The ID of the location or latest for the last known location. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Location - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Mirror_Location"); - } - /** - * Retrieves a list of locations for the user. (locations.listLocations) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_LocationsListResponse - */ - public function listLocations($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Mirror_LocationsListResponse"); - } + /** + * Gets a single location by ID. (locations.get) + * + * @param string $id + * The ID of the location or latest for the last known location. + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_Location + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Mirror_Location"); + } + + /** + * Retrieves a list of locations for the user. (locations.listLocations) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_LocationsListResponse + */ + public function listLocations($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Mirror_LocationsListResponse"); + } } /** @@ -554,28 +546,26 @@ class Google_Service_Mirror_Locations_Resource extends Google_Service_Resource * $settings = $mirrorService->settings; * */ -class Google_Service_Mirror_Settings_Resource extends Google_Service_Resource -{ +class Google_Service_Mirror_Settings_Resource extends Google_Service_Resource { - /** - * Gets a single setting by ID. (settings.get) - * - * @param string $id - * The ID of the setting. The following IDs are valid: - - locale - The key to the user’s - * language/locale (BCP 47 identifier) that Glassware should use to render localized content. - - - * timezone - The key to the user’s current time zone region as defined in the tz database. - * Example: America/Los_Angeles. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Setting - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Mirror_Setting"); - } + /** + * Gets a single setting by ID. (settings.get) + * + * @param string $id + * The ID of the setting. The following IDs are valid: + * - locale - The key to the user’s + * language/locale (BCP 47 identifier) that Glassware should use to render localized content. + * - + * timezone - The key to the user’s current time zone region as defined in the tz database. + * Example: America/Los_Angeles. + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_Setting + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Mirror_Setting"); + } } /** @@ -586,63 +576,61 @@ class Google_Service_Mirror_Settings_Resource extends Google_Service_Resource * $subscriptions = $mirrorService->subscriptions; * */ -class Google_Service_Mirror_Subscriptions_Resource extends Google_Service_Resource -{ +class Google_Service_Mirror_Subscriptions_Resource extends Google_Service_Resource { - /** - * Deletes a subscription. (subscriptions.delete) - * - * @param string $id - * The ID of the subscription. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Creates a new subscription. (subscriptions.insert) - * - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Subscription - */ - public function insert(Google_Service_Mirror_Subscription $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Mirror_Subscription"); - } - /** - * Retrieves a list of subscriptions for the authenticated user and service. - * (subscriptions.listSubscriptions) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_SubscriptionsListResponse - */ - public function listSubscriptions($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Mirror_SubscriptionsListResponse"); - } - /** - * Updates an existing subscription in place. (subscriptions.update) - * - * @param string $id - * The ID of the subscription. - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Subscription - */ - public function update($id, Google_Service_Mirror_Subscription $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Mirror_Subscription"); - } + /** + * Deletes a subscription. (subscriptions.delete) + * + * @param string $id + * The ID of the subscription. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a new subscription. (subscriptions.insert) + * + * @param Google_Subscription $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_Subscription + */ + public function insert(Google_Service_Mirror_Subscription $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Mirror_Subscription"); + } + + /** + * Retrieves a list of subscriptions for the authenticated user and service. + * (subscriptions.listSubscriptions) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_SubscriptionsListResponse + */ + public function listSubscriptions($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Mirror_SubscriptionsListResponse"); + } + + /** + * Updates an existing subscription in place. (subscriptions.update) + * + * @param string $id + * The ID of the subscription. + * @param Google_Subscription $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_Subscription + */ + public function update($id, Google_Service_Mirror_Subscription $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Mirror_Subscription"); + } } /** @@ -653,108 +641,106 @@ class Google_Service_Mirror_Subscriptions_Resource extends Google_Service_Resour * $timeline = $mirrorService->timeline; * */ -class Google_Service_Mirror_Timeline_Resource extends Google_Service_Resource -{ +class Google_Service_Mirror_Timeline_Resource extends Google_Service_Resource { - /** - * Deletes a timeline item. (timeline.delete) - * - * @param string $id - * The ID of the timeline item. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a single timeline item by ID. (timeline.get) - * - * @param string $id - * The ID of the timeline item. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_TimelineItem - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Mirror_TimelineItem"); - } - /** - * Inserts a new item into the timeline. (timeline.insert) - * - * @param Google_TimelineItem $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_TimelineItem - */ - public function insert(Google_Service_Mirror_TimelineItem $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Mirror_TimelineItem"); - } - /** - * Retrieves a list of timeline items for the authenticated user. - * (timeline.listTimeline) - * - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Controls the order in which timeline items are returned. - * @opt_param bool includeDeleted - * If true, tombstone records for deleted items will be returned. - * @opt_param string maxResults - * The maximum number of items to include in the response, used for paging. - * @opt_param string pageToken - * Token for the page of results to return. - * @opt_param string sourceItemId - * If provided, only items with the given sourceItemId will be returned. - * @opt_param bool pinnedOnly - * If true, only pinned items will be returned. - * @opt_param string bundleId - * If provided, only items with the given bundleId will be returned. - * @return Google_Service_Mirror_TimelineListResponse - */ - public function listTimeline($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Mirror_TimelineListResponse"); - } - /** - * Updates a timeline item in place. This method supports patch semantics. - * (timeline.patch) - * - * @param string $id - * The ID of the timeline item. - * @param Google_TimelineItem $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_TimelineItem - */ - public function patch($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Mirror_TimelineItem"); - } - /** - * Updates a timeline item in place. (timeline.update) - * - * @param string $id - * The ID of the timeline item. - * @param Google_TimelineItem $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_TimelineItem - */ - public function update($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Mirror_TimelineItem"); - } + /** + * Deletes a timeline item. (timeline.delete) + * + * @param string $id + * The ID of the timeline item. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a single timeline item by ID. (timeline.get) + * + * @param string $id + * The ID of the timeline item. + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_TimelineItem + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Mirror_TimelineItem"); + } + + /** + * Inserts a new item into the timeline. (timeline.insert) + * + * @param Google_TimelineItem $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_TimelineItem + */ + public function insert(Google_Service_Mirror_TimelineItem $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Mirror_TimelineItem"); + } + + /** + * Retrieves a list of timeline items for the authenticated user. + * (timeline.listTimeline) + * + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Controls the order in which timeline items are returned. + * @opt_param bool includeDeleted + * If true, tombstone records for deleted items will be returned. + * @opt_param string maxResults + * The maximum number of items to include in the response, used for paging. + * @opt_param string pageToken + * Token for the page of results to return. + * @opt_param string sourceItemId + * If provided, only items with the given sourceItemId will be returned. + * @opt_param bool pinnedOnly + * If true, only pinned items will be returned. + * @opt_param string bundleId + * If provided, only items with the given bundleId will be returned. + * @return Google_Service_Mirror_TimelineListResponse + */ + public function listTimeline($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Mirror_TimelineListResponse"); + } + + /** + * Updates a timeline item in place. This method supports patch semantics. + * (timeline.patch) + * + * @param string $id + * The ID of the timeline item. + * @param Google_TimelineItem $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_TimelineItem + */ + public function patch($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Mirror_TimelineItem"); + } + + /** + * Updates a timeline item in place. (timeline.update) + * + * @param string $id + * The ID of the timeline item. + * @param Google_TimelineItem $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_TimelineItem + */ + public function update($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Mirror_TimelineItem"); + } } /** @@ -765,1268 +751,1044 @@ class Google_Service_Mirror_Timeline_Resource extends Google_Service_Resource * $attachments = $mirrorService->attachments; * */ -class Google_Service_Mirror_TimelineAttachments_Resource extends Google_Service_Resource -{ +class Google_Service_Mirror_TimelineAttachments_Resource extends Google_Service_Resource { - /** - * Deletes an attachment from a timeline item. (attachments.delete) - * - * @param string $itemId - * The ID of the timeline item the attachment belongs to. - * @param string $attachmentId - * The ID of the attachment. - * @param array $optParams Optional parameters. - */ - public function delete($itemId, $attachmentId, $optParams = array()) - { - $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves an attachment on a timeline item by item ID and attachment ID. - * (attachments.get) - * - * @param string $itemId - * The ID of the timeline item the attachment belongs to. - * @param string $attachmentId - * The ID of the attachment. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Attachment - */ - public function get($itemId, $attachmentId, $optParams = array()) - { - $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Mirror_Attachment"); - } - /** - * Adds a new attachment to a timeline item. (attachments.insert) - * - * @param string $itemId - * The ID of the timeline item the attachment belongs to. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_Attachment - */ - public function insert($itemId, $optParams = array()) - { - $params = array('itemId' => $itemId); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Mirror_Attachment"); - } - /** - * Returns a list of attachments for a timeline item. - * (attachments.listTimelineAttachments) - * - * @param string $itemId - * The ID of the timeline item whose attachments should be listed. - * @param array $optParams Optional parameters. - * @return Google_Service_Mirror_AttachmentsListResponse - */ - public function listTimelineAttachments($itemId, $optParams = array()) - { - $params = array('itemId' => $itemId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Mirror_AttachmentsListResponse"); - } + /** + * Deletes an attachment from a timeline item. (attachments.delete) + * + * @param string $itemId + * The ID of the timeline item the attachment belongs to. + * @param string $attachmentId + * The ID of the attachment. + * @param array $optParams Optional parameters. + */ + public function delete($itemId, $attachmentId, $optParams = array()) { + $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves an attachment on a timeline item by item ID and attachment ID. + * (attachments.get) + * + * @param string $itemId + * The ID of the timeline item the attachment belongs to. + * @param string $attachmentId + * The ID of the attachment. + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_Attachment + */ + public function get($itemId, $attachmentId, $optParams = array()) { + $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Mirror_Attachment"); + } + + /** + * Adds a new attachment to a timeline item. (attachments.insert) + * + * @param string $itemId + * The ID of the timeline item the attachment belongs to. + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_Attachment + */ + public function insert($itemId, $optParams = array()) { + $params = array('itemId' => $itemId); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Mirror_Attachment"); + } + + /** + * Returns a list of attachments for a timeline item. + * (attachments.listTimelineAttachments) + * + * @param string $itemId + * The ID of the timeline item whose attachments should be listed. + * @param array $optParams Optional parameters. + * @return Google_Service_Mirror_AttachmentsListResponse + */ + public function listTimelineAttachments($itemId, $optParams = array()) { + $params = array('itemId' => $itemId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Mirror_AttachmentsListResponse"); + } } +class Google_Service_Mirror_Account extends Google_Collection { + protected $authTokensType = 'Google_Service_Mirror_AuthToken'; + protected $authTokensDataType = 'array'; + public $features; + public $password; + protected $userDataType = 'Google_Service_Mirror_UserData'; + protected $userDataDataType = 'array'; + public function setAuthTokens($authTokens) { + $this->authTokens = $authTokens; + } -class Google_Service_Mirror_Account extends Google_Collection -{ - protected $authTokensType = 'Google_Service_Mirror_AuthToken'; - protected $authTokensDataType = 'array'; - public $features; - public $password; - protected $userDataType = 'Google_Service_Mirror_UserData'; - protected $userDataDataType = 'array'; + public function getAuthTokens() { + return $this->authTokens; + } - public function setAuthTokens($authTokens) - { - $this->authTokens = $authTokens; - } + public function setFeatures($features) { + $this->features = $features; + } - public function getAuthTokens() - { - return $this->authTokens; - } + public function getFeatures() { + return $this->features; + } - public function setFeatures($features) - { - $this->features = $features; - } + public function setPassword($password) { + $this->password = $password; + } - public function getFeatures() - { - return $this->features; - } + public function getPassword() { + return $this->password; + } - public function setPassword($password) - { - $this->password = $password; - } + public function setUserData($userData) { + $this->userData = $userData; + } - public function getPassword() - { - return $this->password; - } - - public function setUserData($userData) - { - $this->userData = $userData; - } - - public function getUserData() - { - return $this->userData; - } + public function getUserData() { + return $this->userData; + } } -class Google_Service_Mirror_Attachment extends Google_Model -{ - public $contentType; - public $contentUrl; - public $id; - public $isProcessingContent; +class Google_Service_Mirror_Attachment extends Google_Model { + public $contentType; + public $contentUrl; + public $id; + public $isProcessingContent; - public function setContentType($contentType) - { - $this->contentType = $contentType; - } + public function setContentType($contentType) { + $this->contentType = $contentType; + } - public function getContentType() - { - return $this->contentType; - } + public function getContentType() { + return $this->contentType; + } - public function setContentUrl($contentUrl) - { - $this->contentUrl = $contentUrl; - } + public function setContentUrl($contentUrl) { + $this->contentUrl = $contentUrl; + } - public function getContentUrl() - { - return $this->contentUrl; - } + public function getContentUrl() { + return $this->contentUrl; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setIsProcessingContent($isProcessingContent) - { - $this->isProcessingContent = $isProcessingContent; - } + public function setIsProcessingContent($isProcessingContent) { + $this->isProcessingContent = $isProcessingContent; + } - public function getIsProcessingContent() - { - return $this->isProcessingContent; - } + public function getIsProcessingContent() { + return $this->isProcessingContent; + } } -class Google_Service_Mirror_AttachmentsListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Mirror_Attachment'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Mirror_AttachmentsListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Mirror_Attachment'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Mirror_AuthToken extends Google_Model -{ - public $authToken; - public $type; +class Google_Service_Mirror_AuthToken extends Google_Model { + public $authToken; + public $type; - public function setAuthToken($authToken) - { - $this->authToken = $authToken; - } + public function setAuthToken($authToken) { + $this->authToken = $authToken; + } - public function getAuthToken() - { - return $this->authToken; - } + public function getAuthToken() { + return $this->authToken; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Mirror_Command extends Google_Model -{ - public $type; +class Google_Service_Mirror_Command extends Google_Model { + public $type; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Mirror_Contact extends Google_Collection -{ - protected $acceptCommandsType = 'Google_Service_Mirror_Command'; - protected $acceptCommandsDataType = 'array'; - public $acceptTypes; - public $displayName; - public $id; - public $imageUrls; - public $kind; - public $phoneNumber; - public $priority; - public $sharingFeatures; - public $source; - public $speakableName; - public $type; +class Google_Service_Mirror_Contact extends Google_Collection { + protected $acceptCommandsType = 'Google_Service_Mirror_Command'; + protected $acceptCommandsDataType = 'array'; + public $acceptTypes; + public $displayName; + public $id; + public $imageUrls; + public $kind; + public $phoneNumber; + public $priority; + public $sharingFeatures; + public $source; + public $speakableName; + public $type; - public function setAcceptCommands($acceptCommands) - { - $this->acceptCommands = $acceptCommands; - } + public function setAcceptCommands($acceptCommands) { + $this->acceptCommands = $acceptCommands; + } - public function getAcceptCommands() - { - return $this->acceptCommands; - } + public function getAcceptCommands() { + return $this->acceptCommands; + } - public function setAcceptTypes($acceptTypes) - { - $this->acceptTypes = $acceptTypes; - } + public function setAcceptTypes($acceptTypes) { + $this->acceptTypes = $acceptTypes; + } - public function getAcceptTypes() - { - return $this->acceptTypes; - } + public function getAcceptTypes() { + return $this->acceptTypes; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImageUrls($imageUrls) - { - $this->imageUrls = $imageUrls; - } + public function setImageUrls($imageUrls) { + $this->imageUrls = $imageUrls; + } - public function getImageUrls() - { - return $this->imageUrls; - } + public function getImageUrls() { + return $this->imageUrls; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPhoneNumber($phoneNumber) - { - $this->phoneNumber = $phoneNumber; - } + public function setPhoneNumber($phoneNumber) { + $this->phoneNumber = $phoneNumber; + } - public function getPhoneNumber() - { - return $this->phoneNumber; - } + public function getPhoneNumber() { + return $this->phoneNumber; + } - public function setPriority($priority) - { - $this->priority = $priority; - } + public function setPriority($priority) { + $this->priority = $priority; + } - public function getPriority() - { - return $this->priority; - } + public function getPriority() { + return $this->priority; + } - public function setSharingFeatures($sharingFeatures) - { - $this->sharingFeatures = $sharingFeatures; - } + public function setSharingFeatures($sharingFeatures) { + $this->sharingFeatures = $sharingFeatures; + } - public function getSharingFeatures() - { - return $this->sharingFeatures; - } + public function getSharingFeatures() { + return $this->sharingFeatures; + } - public function setSource($source) - { - $this->source = $source; - } + public function setSource($source) { + $this->source = $source; + } - public function getSource() - { - return $this->source; - } + public function getSource() { + return $this->source; + } - public function setSpeakableName($speakableName) - { - $this->speakableName = $speakableName; - } + public function setSpeakableName($speakableName) { + $this->speakableName = $speakableName; + } - public function getSpeakableName() - { - return $this->speakableName; - } + public function getSpeakableName() { + return $this->speakableName; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Mirror_ContactsListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Mirror_Contact'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Mirror_ContactsListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Mirror_Contact'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Mirror_Location extends Google_Model -{ - public $accuracy; - public $address; - public $displayName; - public $id; - public $kind; - public $latitude; - public $longitude; - public $timestamp; +class Google_Service_Mirror_Location extends Google_Model { + public $accuracy; + public $address; + public $displayName; + public $id; + public $kind; + public $latitude; + public $longitude; + public $timestamp; - public function setAccuracy($accuracy) - { - $this->accuracy = $accuracy; - } + public function setAccuracy($accuracy) { + $this->accuracy = $accuracy; + } - public function getAccuracy() - { - return $this->accuracy; - } + public function getAccuracy() { + return $this->accuracy; + } - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } + public function setLatitude($latitude) { + $this->latitude = $latitude; + } - public function getLatitude() - { - return $this->latitude; - } + public function getLatitude() { + return $this->latitude; + } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } + public function setLongitude($longitude) { + $this->longitude = $longitude; + } - public function getLongitude() - { - return $this->longitude; - } + public function getLongitude() { + return $this->longitude; + } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } + public function setTimestamp($timestamp) { + $this->timestamp = $timestamp; + } - public function getTimestamp() - { - return $this->timestamp; - } + public function getTimestamp() { + return $this->timestamp; + } } -class Google_Service_Mirror_LocationsListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Mirror_Location'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Mirror_LocationsListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Mirror_Location'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Mirror_MenuItem extends Google_Collection -{ - public $action; - public $id; - public $payload; - public $removeWhenSelected; - protected $valuesType = 'Google_Service_Mirror_MenuValue'; - protected $valuesDataType = 'array'; +class Google_Service_Mirror_MenuItem extends Google_Collection { + public $action; + public $id; + public $payload; + public $removeWhenSelected; + protected $valuesType = 'Google_Service_Mirror_MenuValue'; + protected $valuesDataType = 'array'; - public function setAction($action) - { - $this->action = $action; - } + public function setAction($action) { + $this->action = $action; + } - public function getAction() - { - return $this->action; - } + public function getAction() { + return $this->action; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setPayload($payload) - { - $this->payload = $payload; - } + public function setPayload($payload) { + $this->payload = $payload; + } - public function getPayload() - { - return $this->payload; - } + public function getPayload() { + return $this->payload; + } - public function setRemoveWhenSelected($removeWhenSelected) - { - $this->removeWhenSelected = $removeWhenSelected; - } + public function setRemoveWhenSelected($removeWhenSelected) { + $this->removeWhenSelected = $removeWhenSelected; + } - public function getRemoveWhenSelected() - { - return $this->removeWhenSelected; - } + public function getRemoveWhenSelected() { + return $this->removeWhenSelected; + } - public function setValues($values) - { - $this->values = $values; - } + public function setValues($values) { + $this->values = $values; + } - public function getValues() - { - return $this->values; - } + public function getValues() { + return $this->values; + } } -class Google_Service_Mirror_MenuValue extends Google_Model -{ - public $displayName; - public $iconUrl; - public $state; +class Google_Service_Mirror_MenuValue extends Google_Model { + public $displayName; + public $iconUrl; + public $state; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setIconUrl($iconUrl) - { - $this->iconUrl = $iconUrl; - } + public function setIconUrl($iconUrl) { + $this->iconUrl = $iconUrl; + } - public function getIconUrl() - { - return $this->iconUrl; - } + public function getIconUrl() { + return $this->iconUrl; + } - public function setState($state) - { - $this->state = $state; - } + public function setState($state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } } -class Google_Service_Mirror_Notification extends Google_Collection -{ - public $collection; - public $itemId; - public $operation; - protected $userActionsType = 'Google_Service_Mirror_UserAction'; - protected $userActionsDataType = 'array'; - public $userToken; - public $verifyToken; +class Google_Service_Mirror_Notification extends Google_Collection { + public $collection; + public $itemId; + public $operation; + protected $userActionsType = 'Google_Service_Mirror_UserAction'; + protected $userActionsDataType = 'array'; + public $userToken; + public $verifyToken; - public function setCollection($collection) - { - $this->collection = $collection; - } + public function setCollection($collection) { + $this->collection = $collection; + } - public function getCollection() - { - return $this->collection; - } + public function getCollection() { + return $this->collection; + } - public function setItemId($itemId) - { - $this->itemId = $itemId; - } + public function setItemId($itemId) { + $this->itemId = $itemId; + } - public function getItemId() - { - return $this->itemId; - } + public function getItemId() { + return $this->itemId; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } - public function setUserActions($userActions) - { - $this->userActions = $userActions; - } + public function setUserActions($userActions) { + $this->userActions = $userActions; + } - public function getUserActions() - { - return $this->userActions; - } + public function getUserActions() { + return $this->userActions; + } - public function setUserToken($userToken) - { - $this->userToken = $userToken; - } + public function setUserToken($userToken) { + $this->userToken = $userToken; + } - public function getUserToken() - { - return $this->userToken; - } + public function getUserToken() { + return $this->userToken; + } - public function setVerifyToken($verifyToken) - { - $this->verifyToken = $verifyToken; - } + public function setVerifyToken($verifyToken) { + $this->verifyToken = $verifyToken; + } - public function getVerifyToken() - { - return $this->verifyToken; - } + public function getVerifyToken() { + return $this->verifyToken; + } } -class Google_Service_Mirror_NotificationConfig extends Google_Model -{ - public $deliveryTime; - public $level; +class Google_Service_Mirror_NotificationConfig extends Google_Model { + public $deliveryTime; + public $level; - public function setDeliveryTime($deliveryTime) - { - $this->deliveryTime = $deliveryTime; - } + public function setDeliveryTime($deliveryTime) { + $this->deliveryTime = $deliveryTime; + } - public function getDeliveryTime() - { - return $this->deliveryTime; - } + public function getDeliveryTime() { + return $this->deliveryTime; + } - public function setLevel($level) - { - $this->level = $level; - } + public function setLevel($level) { + $this->level = $level; + } - public function getLevel() - { - return $this->level; - } + public function getLevel() { + return $this->level; + } } -class Google_Service_Mirror_Setting extends Google_Model -{ - public $id; - public $kind; - public $value; +class Google_Service_Mirror_Setting extends Google_Model { + public $id; + public $kind; + public $value; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Mirror_Subscription extends Google_Collection -{ - public $callbackUrl; - public $collection; - public $id; - public $kind; - protected $notificationType = 'Google_Service_Mirror_Notification'; - protected $notificationDataType = ''; - public $operation; - public $updated; - public $userToken; - public $verifyToken; +class Google_Service_Mirror_Subscription extends Google_Collection { + public $callbackUrl; + public $collection; + public $id; + public $kind; + protected $notificationType = 'Google_Service_Mirror_Notification'; + protected $notificationDataType = ''; + public $operation; + public $updated; + public $userToken; + public $verifyToken; - public function setCallbackUrl($callbackUrl) - { - $this->callbackUrl = $callbackUrl; - } + public function setCallbackUrl($callbackUrl) { + $this->callbackUrl = $callbackUrl; + } - public function getCallbackUrl() - { - return $this->callbackUrl; - } + public function getCallbackUrl() { + return $this->callbackUrl; + } - public function setCollection($collection) - { - $this->collection = $collection; - } + public function setCollection($collection) { + $this->collection = $collection; + } - public function getCollection() - { - return $this->collection; - } + public function getCollection() { + return $this->collection; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNotification(Google_Service_Mirror_Notification $notification) - { - $this->notification = $notification; - } + public function setNotification(Google_Service_Mirror_Notification $notification) { + $this->notification = $notification; + } - public function getNotification() - { - return $this->notification; - } + public function getNotification() { + return $this->notification; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } - public function setUserToken($userToken) - { - $this->userToken = $userToken; - } + public function setUserToken($userToken) { + $this->userToken = $userToken; + } - public function getUserToken() - { - return $this->userToken; - } + public function getUserToken() { + return $this->userToken; + } - public function setVerifyToken($verifyToken) - { - $this->verifyToken = $verifyToken; - } + public function setVerifyToken($verifyToken) { + $this->verifyToken = $verifyToken; + } - public function getVerifyToken() - { - return $this->verifyToken; - } + public function getVerifyToken() { + return $this->verifyToken; + } } -class Google_Service_Mirror_SubscriptionsListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Mirror_Subscription'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Mirror_SubscriptionsListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Mirror_Subscription'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Mirror_TimelineItem extends Google_Collection -{ - protected $attachmentsType = 'Google_Service_Mirror_Attachment'; - protected $attachmentsDataType = 'array'; - public $bundleId; - public $canonicalUrl; - public $created; - protected $creatorType = 'Google_Service_Mirror_Contact'; - protected $creatorDataType = ''; - public $displayTime; - public $etag; - public $html; - public $id; - public $inReplyTo; - public $isBundleCover; - public $isDeleted; - public $isPinned; - public $kind; - protected $locationType = 'Google_Service_Mirror_Location'; - protected $locationDataType = ''; - protected $menuItemsType = 'Google_Service_Mirror_MenuItem'; - protected $menuItemsDataType = 'array'; - protected $notificationType = 'Google_Service_Mirror_NotificationConfig'; - protected $notificationDataType = ''; - public $pinScore; - protected $recipientsType = 'Google_Service_Mirror_Contact'; - protected $recipientsDataType = 'array'; - public $selfLink; - public $sourceItemId; - public $speakableText; - public $speakableType; - public $text; - public $title; - public $updated; +class Google_Service_Mirror_TimelineItem extends Google_Collection { + protected $attachmentsType = 'Google_Service_Mirror_Attachment'; + protected $attachmentsDataType = 'array'; + public $bundleId; + public $canonicalUrl; + public $created; + protected $creatorType = 'Google_Service_Mirror_Contact'; + protected $creatorDataType = ''; + public $displayTime; + public $etag; + public $html; + public $id; + public $inReplyTo; + public $isBundleCover; + public $isDeleted; + public $isPinned; + public $kind; + protected $locationType = 'Google_Service_Mirror_Location'; + protected $locationDataType = ''; + protected $menuItemsType = 'Google_Service_Mirror_MenuItem'; + protected $menuItemsDataType = 'array'; + protected $notificationType = 'Google_Service_Mirror_NotificationConfig'; + protected $notificationDataType = ''; + public $pinScore; + protected $recipientsType = 'Google_Service_Mirror_Contact'; + protected $recipientsDataType = 'array'; + public $selfLink; + public $sourceItemId; + public $speakableText; + public $speakableType; + public $text; + public $title; + public $updated; - public function setAttachments($attachments) - { - $this->attachments = $attachments; - } + public function setAttachments($attachments) { + $this->attachments = $attachments; + } - public function getAttachments() - { - return $this->attachments; - } + public function getAttachments() { + return $this->attachments; + } - public function setBundleId($bundleId) - { - $this->bundleId = $bundleId; - } + public function setBundleId($bundleId) { + $this->bundleId = $bundleId; + } - public function getBundleId() - { - return $this->bundleId; - } + public function getBundleId() { + return $this->bundleId; + } - public function setCanonicalUrl($canonicalUrl) - { - $this->canonicalUrl = $canonicalUrl; - } + public function setCanonicalUrl($canonicalUrl) { + $this->canonicalUrl = $canonicalUrl; + } - public function getCanonicalUrl() - { - return $this->canonicalUrl; - } + public function getCanonicalUrl() { + return $this->canonicalUrl; + } - public function setCreated($created) - { - $this->created = $created; - } + public function setCreated($created) { + $this->created = $created; + } - public function getCreated() - { - return $this->created; - } + public function getCreated() { + return $this->created; + } - public function setCreator(Google_Service_Mirror_Contact $creator) - { - $this->creator = $creator; - } + public function setCreator(Google_Service_Mirror_Contact $creator) { + $this->creator = $creator; + } - public function getCreator() - { - return $this->creator; - } + public function getCreator() { + return $this->creator; + } - public function setDisplayTime($displayTime) - { - $this->displayTime = $displayTime; - } + public function setDisplayTime($displayTime) { + $this->displayTime = $displayTime; + } - public function getDisplayTime() - { - return $this->displayTime; - } + public function getDisplayTime() { + return $this->displayTime; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setHtml($html) - { - $this->html = $html; - } + public function setHtml($html) { + $this->html = $html; + } - public function getHtml() - { - return $this->html; - } + public function getHtml() { + return $this->html; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setInReplyTo($inReplyTo) - { - $this->inReplyTo = $inReplyTo; - } + public function setInReplyTo($inReplyTo) { + $this->inReplyTo = $inReplyTo; + } - public function getInReplyTo() - { - return $this->inReplyTo; - } + public function getInReplyTo() { + return $this->inReplyTo; + } - public function setIsBundleCover($isBundleCover) - { - $this->isBundleCover = $isBundleCover; - } + public function setIsBundleCover($isBundleCover) { + $this->isBundleCover = $isBundleCover; + } - public function getIsBundleCover() - { - return $this->isBundleCover; - } + public function getIsBundleCover() { + return $this->isBundleCover; + } - public function setIsDeleted($isDeleted) - { - $this->isDeleted = $isDeleted; - } + public function setIsDeleted($isDeleted) { + $this->isDeleted = $isDeleted; + } - public function getIsDeleted() - { - return $this->isDeleted; - } + public function getIsDeleted() { + return $this->isDeleted; + } - public function setIsPinned($isPinned) - { - $this->isPinned = $isPinned; - } + public function setIsPinned($isPinned) { + $this->isPinned = $isPinned; + } - public function getIsPinned() - { - return $this->isPinned; - } + public function getIsPinned() { + return $this->isPinned; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLocation(Google_Service_Mirror_Location $location) - { - $this->location = $location; - } + public function setLocation(Google_Service_Mirror_Location $location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setMenuItems($menuItems) - { - $this->menuItems = $menuItems; - } + public function setMenuItems($menuItems) { + $this->menuItems = $menuItems; + } - public function getMenuItems() - { - return $this->menuItems; - } + public function getMenuItems() { + return $this->menuItems; + } - public function setNotification(Google_Service_Mirror_NotificationConfig $notification) - { - $this->notification = $notification; - } + public function setNotification(Google_Service_Mirror_NotificationConfig $notification) { + $this->notification = $notification; + } - public function getNotification() - { - return $this->notification; - } + public function getNotification() { + return $this->notification; + } - public function setPinScore($pinScore) - { - $this->pinScore = $pinScore; - } + public function setPinScore($pinScore) { + $this->pinScore = $pinScore; + } - public function getPinScore() - { - return $this->pinScore; - } + public function getPinScore() { + return $this->pinScore; + } - public function setRecipients($recipients) - { - $this->recipients = $recipients; - } + public function setRecipients($recipients) { + $this->recipients = $recipients; + } - public function getRecipients() - { - return $this->recipients; - } + public function getRecipients() { + return $this->recipients; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setSourceItemId($sourceItemId) - { - $this->sourceItemId = $sourceItemId; - } + public function setSourceItemId($sourceItemId) { + $this->sourceItemId = $sourceItemId; + } - public function getSourceItemId() - { - return $this->sourceItemId; - } + public function getSourceItemId() { + return $this->sourceItemId; + } - public function setSpeakableText($speakableText) - { - $this->speakableText = $speakableText; - } + public function setSpeakableText($speakableText) { + $this->speakableText = $speakableText; + } - public function getSpeakableText() - { - return $this->speakableText; - } + public function getSpeakableText() { + return $this->speakableText; + } - public function setSpeakableType($speakableType) - { - $this->speakableType = $speakableType; - } + public function setSpeakableType($speakableType) { + $this->speakableType = $speakableType; + } - public function getSpeakableType() - { - return $this->speakableType; - } + public function getSpeakableType() { + return $this->speakableType; + } - public function setText($text) - { - $this->text = $text; - } + public function setText($text) { + $this->text = $text; + } - public function getText() - { - return $this->text; - } + public function getText() { + return $this->text; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Mirror_TimelineListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_Mirror_TimelineItem'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Mirror_TimelineListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_Mirror_TimelineItem'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Mirror_UserAction extends Google_Model -{ - public $payload; - public $type; +class Google_Service_Mirror_UserAction extends Google_Model { + public $payload; + public $type; - public function setPayload($payload) - { - $this->payload = $payload; - } + public function setPayload($payload) { + $this->payload = $payload; + } - public function getPayload() - { - return $this->payload; - } + public function getPayload() { + return $this->payload; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Mirror_UserData extends Google_Model -{ - public $key; - public $value; +class Google_Service_Mirror_UserData extends Google_Model { + public $key; + public $value; - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } diff --git a/oauth/Google/Service/Oauth2.php b/oauth/Google/Service/Oauth2.php index 766cf4a..0b3669c 100644 --- a/oauth/Google/Service/Oauth2.php +++ b/oauth/Google/Service/Oauth2.php @@ -29,102 +29,100 @@ * * @author Google, Inc. */ -class Google_Service_Oauth2 extends Google_Service -{ - /** Know your basic profile info and list of people in your circles.. */ - const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; - /** Know who you are on Google. */ - const PLUS_ME = "https://www.googleapis.com/auth/plus.me"; - /** View your email address. */ - const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; - /** View your basic profile info. */ - const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; +class Google_Service_Oauth2 extends Google_Service { + /** Know your basic profile info and list of people in your circles.. */ + const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; + /** Know who you are on Google. */ + const PLUS_ME = "https://www.googleapis.com/auth/plus.me"; + /** View your email address. */ + const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; + /** View your basic profile info. */ + const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; - public $userinfo; - public $userinfo_v2_me; - private $base_methods; + public $userinfo; + public $userinfo_v2_me; + private $base_methods; - /** - * Constructs the internal representation of the Oauth2 service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = ''; - $this->version = 'v2'; - $this->serviceName = 'oauth2'; + /** + * Constructs the internal representation of the Oauth2 service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = ''; + $this->version = 'v2'; + $this->serviceName = 'oauth2'; - $this->userinfo = new Google_Service_Oauth2_Userinfo_Resource( - $this, - $this->serviceName, - 'userinfo', - array( - 'methods' => array( - 'get' => array( - 'path' => 'oauth2/v2/userinfo', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->userinfo_v2_me = new Google_Service_Oauth2_UserinfoV2Me_Resource( - $this, - $this->serviceName, - 'me', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userinfo/v2/me', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->base_methods = new Google_Service_Resource( - $this, - $this->serviceName, - '', - array( - 'methods' => array( - 'tokeninfo' => array( - 'path' => 'oauth2/v2/tokeninfo', - 'httpMethod' => 'POST', - 'parameters' => array( - 'access_token' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id_token' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } - /** - * (tokeninfo) - * - * @param array $optParams Optional parameters. - * - * @opt_param string access_token - * - * @opt_param string id_token - * - * @return Google_Service_Oauth2_Tokeninfo - */ - public function tokeninfo($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->base_methods->call('tokeninfo', array($params), "Google_Service_Oauth2_Tokeninfo"); - } + $this->userinfo = new Google_Service_Oauth2_Userinfo_Resource( + $this, + $this->serviceName, + 'userinfo', + array( + 'methods' => array( + 'get' => array( + 'path' => 'oauth2/v2/userinfo', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->userinfo_v2_me = new Google_Service_Oauth2_UserinfoV2Me_Resource( + $this, + $this->serviceName, + 'me', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userinfo/v2/me', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->base_methods = new Google_Service_Resource( + $this, + $this->serviceName, + '', + array( + 'methods' => array( + 'tokeninfo' => array( + 'path' => 'oauth2/v2/tokeninfo', + 'httpMethod' => 'POST', + 'parameters' => array( + 'access_token' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id_token' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } + + /** + * (tokeninfo) + * + * @param array $optParams Optional parameters. + * + * @opt_param string access_token + * + * @opt_param string id_token + * + * @return Google_Service_Oauth2_Tokeninfo + */ + public function tokeninfo($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->base_methods->call('tokeninfo', array($params), "Google_Service_Oauth2_Tokeninfo"); + } } @@ -136,21 +134,19 @@ class Google_Service_Oauth2 extends Google_Service * $userinfo = $oauth2Service->userinfo; * */ -class Google_Service_Oauth2_Userinfo_Resource extends Google_Service_Resource -{ +class Google_Service_Oauth2_Userinfo_Resource extends Google_Service_Resource { - /** - * (userinfo.get) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Oauth2_Userinfoplus - */ - public function get($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus"); - } + /** + * (userinfo.get) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Oauth2_Userinfoplus + */ + public function get($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus"); + } } /** @@ -161,8 +157,7 @@ class Google_Service_Oauth2_Userinfo_Resource extends Google_Service_Resource * $v2 = $oauth2Service->v2; * */ -class Google_Service_Oauth2_UserinfoV2_Resource extends Google_Service_Resource -{ +class Google_Service_Oauth2_UserinfoV2_Resource extends Google_Service_Resource { } @@ -174,239 +169,195 @@ class Google_Service_Oauth2_UserinfoV2_Resource extends Google_Service_Resource * $me = $oauth2Service->me; * */ -class Google_Service_Oauth2_UserinfoV2Me_Resource extends Google_Service_Resource -{ +class Google_Service_Oauth2_UserinfoV2Me_Resource extends Google_Service_Resource { - /** - * (me.get) - * - * @param array $optParams Optional parameters. - * @return Google_Service_Oauth2_Userinfoplus - */ - public function get($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus"); - } + /** + * (me.get) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Oauth2_Userinfoplus + */ + public function get($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus"); + } } +class Google_Service_Oauth2_Tokeninfo extends Google_Model { + public $accessType; + public $audience; + public $email; + public $expiresIn; + public $issuedTo; + public $scope; + public $userId; + public $verifiedEmail; + public function setAccessType($accessType) { + $this->accessType = $accessType; + } -class Google_Service_Oauth2_Tokeninfo extends Google_Model -{ - public $accessType; - public $audience; - public $email; - public $expiresIn; - public $issuedTo; - public $scope; - public $userId; - public $verifiedEmail; + public function getAccessType() { + return $this->accessType; + } - public function setAccessType($accessType) - { - $this->accessType = $accessType; - } + public function setAudience($audience) { + $this->audience = $audience; + } - public function getAccessType() - { - return $this->accessType; - } + public function getAudience() { + return $this->audience; + } - public function setAudience($audience) - { - $this->audience = $audience; - } + public function setEmail($email) { + $this->email = $email; + } - public function getAudience() - { - return $this->audience; - } + public function getEmail() { + return $this->email; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setExpiresIn($expiresIn) { + $this->expiresIn = $expiresIn; + } - public function getEmail() - { - return $this->email; - } + public function getExpiresIn() { + return $this->expiresIn; + } - public function setExpiresIn($expiresIn) - { - $this->expiresIn = $expiresIn; - } + public function setIssuedTo($issuedTo) { + $this->issuedTo = $issuedTo; + } - public function getExpiresIn() - { - return $this->expiresIn; - } + public function getIssuedTo() { + return $this->issuedTo; + } - public function setIssuedTo($issuedTo) - { - $this->issuedTo = $issuedTo; - } + public function setScope($scope) { + $this->scope = $scope; + } - public function getIssuedTo() - { - return $this->issuedTo; - } + public function getScope() { + return $this->scope; + } - public function setScope($scope) - { - $this->scope = $scope; - } + public function setUserId($userId) { + $this->userId = $userId; + } - public function getScope() - { - return $this->scope; - } + public function getUserId() { + return $this->userId; + } - public function setUserId($userId) - { - $this->userId = $userId; - } + public function setVerifiedEmail($verifiedEmail) { + $this->verifiedEmail = $verifiedEmail; + } - public function getUserId() - { - return $this->userId; - } - - public function setVerifiedEmail($verifiedEmail) - { - $this->verifiedEmail = $verifiedEmail; - } - - public function getVerifiedEmail() - { - return $this->verifiedEmail; - } + public function getVerifiedEmail() { + return $this->verifiedEmail; + } } -class Google_Service_Oauth2_Userinfoplus extends Google_Model -{ - public $email; - public $familyName; - public $gender; - public $givenName; - public $hd; - public $id; - public $link; - public $locale; - public $name; - public $picture; - public $verifiedEmail; +class Google_Service_Oauth2_Userinfoplus extends Google_Model { + public $email; + public $familyName; + public $gender; + public $givenName; + public $hd; + public $id; + public $link; + public $locale; + public $name; + public $picture; + public $verifiedEmail; - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } + public function setFamilyName($familyName) { + $this->familyName = $familyName; + } - public function getFamilyName() - { - return $this->familyName; - } + public function getFamilyName() { + return $this->familyName; + } - public function setGender($gender) - { - $this->gender = $gender; - } + public function setGender($gender) { + $this->gender = $gender; + } - public function getGender() - { - return $this->gender; - } + public function getGender() { + return $this->gender; + } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } + public function setGivenName($givenName) { + $this->givenName = $givenName; + } - public function getGivenName() - { - return $this->givenName; - } + public function getGivenName() { + return $this->givenName; + } - public function setHd($hd) - { - $this->hd = $hd; - } + public function setHd($hd) { + $this->hd = $hd; + } - public function getHd() - { - return $this->hd; - } + public function getHd() { + return $this->hd; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLink($link) - { - $this->link = $link; - } + public function setLink($link) { + $this->link = $link; + } - public function getLink() - { - return $this->link; - } + public function getLink() { + return $this->link; + } - public function setLocale($locale) - { - $this->locale = $locale; - } + public function setLocale($locale) { + $this->locale = $locale; + } - public function getLocale() - { - return $this->locale; - } + public function getLocale() { + return $this->locale; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPicture($picture) - { - $this->picture = $picture; - } + public function setPicture($picture) { + $this->picture = $picture; + } - public function getPicture() - { - return $this->picture; - } + public function getPicture() { + return $this->picture; + } - public function setVerifiedEmail($verifiedEmail) - { - $this->verifiedEmail = $verifiedEmail; - } + public function setVerifiedEmail($verifiedEmail) { + $this->verifiedEmail = $verifiedEmail; + } - public function getVerifiedEmail() - { - return $this->verifiedEmail; - } + public function getVerifiedEmail() { + return $this->verifiedEmail; + } } diff --git a/oauth/Google/Service/Orkut.php b/oauth/Google/Service/Orkut.php index 77bbc49..52dabe8 100644 --- a/oauth/Google/Service/Orkut.php +++ b/oauth/Google/Service/Orkut.php @@ -29,770 +29,768 @@ * * @author Google, Inc. */ -class Google_Service_Orkut extends Google_Service -{ - /** Manage your Orkut activity. */ - const ORKUT = "https://www.googleapis.com/auth/orkut"; - /** View your Orkut data. */ - const ORKUT_READONLY = "https://www.googleapis.com/auth/orkut.readonly"; +class Google_Service_Orkut extends Google_Service { + /** Manage your Orkut activity. */ + const ORKUT = "https://www.googleapis.com/auth/orkut"; + /** View your Orkut data. */ + const ORKUT_READONLY = "https://www.googleapis.com/auth/orkut.readonly"; - public $acl; - public $activities; - public $activityVisibility; - public $badges; - public $comments; - public $communities; - public $communityFollow; - public $communityMembers; - public $communityMessages; - public $communityPollComments; - public $communityPollVotes; - public $communityPolls; - public $communityRelated; - public $communityTopics; - public $counters; - public $scraps; - + public $acl; + public $activities; + public $activityVisibility; + public $badges; + public $comments; + public $communities; + public $communityFollow; + public $communityMembers; + public $communityMessages; + public $communityPollComments; + public $communityPollVotes; + public $communityPolls; + public $communityRelated; + public $communityTopics; + public $counters; + public $scraps; - /** - * Constructs the internal representation of the Orkut service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'orkut/v2/'; - $this->version = 'v2'; - $this->serviceName = 'orkut'; - $this->acl = new Google_Service_Orkut_Acl_Resource( - $this, - $this->serviceName, - 'acl', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'activities/{activityId}/acl/{userId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->activities = new Google_Service_Orkut_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'activities/{activityId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/activities/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->activityVisibility = new Google_Service_Orkut_ActivityVisibility_Resource( - $this, - $this->serviceName, - 'activityVisibility', - array( - 'methods' => array( - 'get' => array( - 'path' => 'activities/{activityId}/visibility', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'activities/{activityId}/visibility', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'activities/{activityId}/visibility', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->badges = new Google_Service_Orkut_Badges_Resource( - $this, - $this->serviceName, - 'badges', - array( - 'methods' => array( - 'get' => array( - 'path' => 'people/{userId}/badges/{badgeId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'badgeId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/badges', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_Orkut_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'comments/{commentId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'comments/{commentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'activities/{activityId}/comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'activities/{activityId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communities = new Google_Service_Orkut_Communities_Resource( - $this, - $this->serviceName, - 'communities', - array( - 'methods' => array( - 'get' => array( - 'path' => 'communities/{communityId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/communities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityFollow = new Google_Service_Orkut_CommunityFollow_Resource( - $this, - $this->serviceName, - 'communityFollow', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'communities/{communityId}/followers/{userId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'communities/{communityId}/followers/{userId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->communityMembers = new Google_Service_Orkut_CommunityMembers_Resource( - $this, - $this->serviceName, - 'communityMembers', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'communities/{communityId}/members/{userId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'communities/{communityId}/members/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'communities/{communityId}/members/{userId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'communities/{communityId}/members', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'friendsOnly' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityMessages = new Google_Service_Orkut_CommunityMessages_Resource( - $this, - $this->serviceName, - 'communityMessages', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'communities/{communityId}/topics/{topicId}/messages/{messageId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'topicId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'messageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'communities/{communityId}/topics/{topicId}/messages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'topicId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'communities/{communityId}/topics/{topicId}/messages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'topicId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityPollComments = new Google_Service_Orkut_CommunityPollComments_Resource( - $this, - $this->serviceName, - 'communityPollComments', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'communities/{communityId}/polls/{pollId}/comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pollId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'communities/{communityId}/polls/{pollId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pollId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityPollVotes = new Google_Service_Orkut_CommunityPollVotes_Resource( - $this, - $this->serviceName, - 'communityPollVotes', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'communities/{communityId}/polls/{pollId}/votes', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pollId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->communityPolls = new Google_Service_Orkut_CommunityPolls_Resource( - $this, - $this->serviceName, - 'communityPolls', - array( - 'methods' => array( - 'get' => array( - 'path' => 'communities/{communityId}/polls/{pollId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pollId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'communities/{communityId}/polls', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityRelated = new Google_Service_Orkut_CommunityRelated_Resource( - $this, - $this->serviceName, - 'communityRelated', - array( - 'methods' => array( - 'list' => array( - 'path' => 'communities/{communityId}/related', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->communityTopics = new Google_Service_Orkut_CommunityTopics_Resource( - $this, - $this->serviceName, - 'communityTopics', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'communities/{communityId}/topics/{topicId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'topicId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'communities/{communityId}/topics/{topicId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'topicId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'communities/{communityId}/topics', - 'httpMethod' => 'POST', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'isShout' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'communities/{communityId}/topics', - 'httpMethod' => 'GET', - 'parameters' => array( - 'communityId' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->counters = new Google_Service_Orkut_Counters_Resource( - $this, - $this->serviceName, - 'counters', - array( - 'methods' => array( - 'list' => array( - 'path' => 'people/{userId}/counters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->scraps = new Google_Service_Orkut_Scraps_Resource( - $this, - $this->serviceName, - 'scraps', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'activities/scraps', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Orkut service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'orkut/v2/'; + $this->version = 'v2'; + $this->serviceName = 'orkut'; + + $this->acl = new Google_Service_Orkut_Acl_Resource( + $this, + $this->serviceName, + 'acl', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'activities/{activityId}/acl/{userId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->activities = new Google_Service_Orkut_Activities_Resource( + $this, + $this->serviceName, + 'activities', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'activities/{activityId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'people/{userId}/activities/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->activityVisibility = new Google_Service_Orkut_ActivityVisibility_Resource( + $this, + $this->serviceName, + 'activityVisibility', + array( + 'methods' => array( + 'get' => array( + 'path' => 'activities/{activityId}/visibility', + 'httpMethod' => 'GET', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => 'activities/{activityId}/visibility', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'activities/{activityId}/visibility', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->badges = new Google_Service_Orkut_Badges_Resource( + $this, + $this->serviceName, + 'badges', + array( + 'methods' => array( + 'get' => array( + 'path' => 'people/{userId}/badges/{badgeId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'badgeId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'people/{userId}/badges', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->comments = new Google_Service_Orkut_Comments_Resource( + $this, + $this->serviceName, + 'comments', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'comments/{commentId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'comments/{commentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'activities/{activityId}/comments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'activities/{activityId}/comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->communities = new Google_Service_Orkut_Communities_Resource( + $this, + $this->serviceName, + 'communities', + array( + 'methods' => array( + 'get' => array( + 'path' => 'communities/{communityId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'people/{userId}/communities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->communityFollow = new Google_Service_Orkut_CommunityFollow_Resource( + $this, + $this->serviceName, + 'communityFollow', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'communities/{communityId}/followers/{userId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'communities/{communityId}/followers/{userId}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->communityMembers = new Google_Service_Orkut_CommunityMembers_Resource( + $this, + $this->serviceName, + 'communityMembers', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'communities/{communityId}/members/{userId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'communities/{communityId}/members/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'communities/{communityId}/members/{userId}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'communities/{communityId}/members', + 'httpMethod' => 'GET', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'friendsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->communityMessages = new Google_Service_Orkut_CommunityMessages_Resource( + $this, + $this->serviceName, + 'communityMessages', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'communities/{communityId}/topics/{topicId}/messages/{messageId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'topicId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'messageId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'communities/{communityId}/topics/{topicId}/messages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'topicId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'communities/{communityId}/topics/{topicId}/messages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'topicId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->communityPollComments = new Google_Service_Orkut_CommunityPollComments_Resource( + $this, + $this->serviceName, + 'communityPollComments', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'communities/{communityId}/polls/{pollId}/comments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'pollId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'communities/{communityId}/polls/{pollId}/comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'pollId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->communityPollVotes = new Google_Service_Orkut_CommunityPollVotes_Resource( + $this, + $this->serviceName, + 'communityPollVotes', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'communities/{communityId}/polls/{pollId}/votes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'pollId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->communityPolls = new Google_Service_Orkut_CommunityPolls_Resource( + $this, + $this->serviceName, + 'communityPolls', + array( + 'methods' => array( + 'get' => array( + 'path' => 'communities/{communityId}/polls/{pollId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'pollId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'communities/{communityId}/polls', + 'httpMethod' => 'GET', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->communityRelated = new Google_Service_Orkut_CommunityRelated_Resource( + $this, + $this->serviceName, + 'communityRelated', + array( + 'methods' => array( + 'list' => array( + 'path' => 'communities/{communityId}/related', + 'httpMethod' => 'GET', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->communityTopics = new Google_Service_Orkut_CommunityTopics_Resource( + $this, + $this->serviceName, + 'communityTopics', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'communities/{communityId}/topics/{topicId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'topicId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'communities/{communityId}/topics/{topicId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'topicId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'communities/{communityId}/topics', + 'httpMethod' => 'POST', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'isShout' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => 'communities/{communityId}/topics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'communityId' => array( + 'location' => 'path', + 'type' => 'integer', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->counters = new Google_Service_Orkut_Counters_Resource( + $this, + $this->serviceName, + 'counters', + array( + 'methods' => array( + 'list' => array( + 'path' => 'people/{userId}/counters', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->scraps = new Google_Service_Orkut_Scraps_Resource( + $this, + $this->serviceName, + 'scraps', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'activities/scraps', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } } @@ -804,24 +802,22 @@ class Google_Service_Orkut extends Google_Service * $acl = $orkutService->acl; * */ -class Google_Service_Orkut_Acl_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_Acl_Resource extends Google_Service_Resource { - /** - * Excludes an element from the ACL of the activity. (acl.delete) - * - * @param string $activityId - * ID of the activity. - * @param string $userId - * ID of the user to be removed from the activity. - * @param array $optParams Optional parameters. - */ - public function delete($activityId, $userId, $optParams = array()) - { - $params = array('activityId' => $activityId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } + /** + * Excludes an element from the ACL of the activity. (acl.delete) + * + * @param string $activityId + * ID of the activity. + * @param string $userId + * ID of the user to be removed from the activity. + * @param array $optParams Optional parameters. + */ + public function delete($activityId, $userId, $optParams = array()) { + $params = array('activityId' => $activityId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } } /** @@ -832,47 +828,45 @@ class Google_Service_Orkut_Acl_Resource extends Google_Service_Resource * $activities = $orkutService->activities; * */ -class Google_Service_Orkut_Activities_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_Activities_Resource extends Google_Service_Resource { - /** - * Deletes an existing activity, if the access controls allow it. - * (activities.delete) - * - * @param string $activityId - * ID of the activity to remove. - * @param array $optParams Optional parameters. - */ - public function delete($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a list of activities. (activities.listActivities) - * - * @param string $userId - * The ID of the user whose activities will be listed. Can be me to refer to the viewer (i.e. the - * authenticated user). - * @param string $collection - * The collection of activities to list. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of activities to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_ActivityList - */ - public function listActivities($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_ActivityList"); - } + /** + * Deletes an existing activity, if the access controls allow it. + * (activities.delete) + * + * @param string $activityId + * ID of the activity to remove. + * @param array $optParams Optional parameters. + */ + public function delete($activityId, $optParams = array()) { + $params = array('activityId' => $activityId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a list of activities. (activities.listActivities) + * + * @param string $userId + * The ID of the user whose activities will be listed. Can be me to refer to the viewer (i.e. the + * authenticated user). + * @param string $collection + * The collection of activities to list. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token that allows pagination. + * @opt_param string maxResults + * The maximum number of activities to include in the response. + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_ActivityList + */ + public function listActivities($userId, $collection, $optParams = array()) { + $params = array('userId' => $userId, 'collection' => $collection); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Orkut_ActivityList"); + } } /** @@ -883,54 +877,52 @@ class Google_Service_Orkut_Activities_Resource extends Google_Service_Resource * $activityVisibility = $orkutService->activityVisibility; * */ -class Google_Service_Orkut_ActivityVisibility_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_ActivityVisibility_Resource extends Google_Service_Resource { - /** - * Gets the visibility of an existing activity. (activityVisibility.get) - * - * @param string $activityId - * ID of the activity to get the visibility. - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_Visibility - */ - public function get($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Orkut_Visibility"); - } - /** - * Updates the visibility of an existing activity. This method supports patch - * semantics. (activityVisibility.patch) - * - * @param string $activityId - * ID of the activity. - * @param Google_Visibility $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_Visibility - */ - public function patch($activityId, Google_Service_Orkut_Visibility $postBody, $optParams = array()) - { - $params = array('activityId' => $activityId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Orkut_Visibility"); - } - /** - * Updates the visibility of an existing activity. (activityVisibility.update) - * - * @param string $activityId - * ID of the activity. - * @param Google_Visibility $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_Visibility - */ - public function update($activityId, Google_Service_Orkut_Visibility $postBody, $optParams = array()) - { - $params = array('activityId' => $activityId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Orkut_Visibility"); - } + /** + * Gets the visibility of an existing activity. (activityVisibility.get) + * + * @param string $activityId + * ID of the activity to get the visibility. + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_Visibility + */ + public function get($activityId, $optParams = array()) { + $params = array('activityId' => $activityId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Orkut_Visibility"); + } + + /** + * Updates the visibility of an existing activity. This method supports patch + * semantics. (activityVisibility.patch) + * + * @param string $activityId + * ID of the activity. + * @param Google_Visibility $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_Visibility + */ + public function patch($activityId, Google_Service_Orkut_Visibility $postBody, $optParams = array()) { + $params = array('activityId' => $activityId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Orkut_Visibility"); + } + + /** + * Updates the visibility of an existing activity. (activityVisibility.update) + * + * @param string $activityId + * ID of the activity. + * @param Google_Visibility $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_Visibility + */ + public function update($activityId, Google_Service_Orkut_Visibility $postBody, $optParams = array()) { + $params = array('activityId' => $activityId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Orkut_Visibility"); + } } /** @@ -941,39 +933,37 @@ class Google_Service_Orkut_ActivityVisibility_Resource extends Google_Service_Re * $badges = $orkutService->badges; * */ -class Google_Service_Orkut_Badges_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_Badges_Resource extends Google_Service_Resource { - /** - * Retrieves a badge from a user. (badges.get) - * - * @param string $userId - * The ID of the user whose badges will be listed. Can be me to refer to caller. - * @param string $badgeId - * The ID of the badge that will be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_Badge - */ - public function get($userId, $badgeId, $optParams = array()) - { - $params = array('userId' => $userId, 'badgeId' => $badgeId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Orkut_Badge"); - } - /** - * Retrieves the list of visible badges of a user. (badges.listBadges) - * - * @param string $userId - * The id of the user whose badges will be listed. Can be me to refer to caller. - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_BadgeList - */ - public function listBadges($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_BadgeList"); - } + /** + * Retrieves a badge from a user. (badges.get) + * + * @param string $userId + * The ID of the user whose badges will be listed. Can be me to refer to caller. + * @param string $badgeId + * The ID of the badge that will be retrieved. + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_Badge + */ + public function get($userId, $badgeId, $optParams = array()) { + $params = array('userId' => $userId, 'badgeId' => $badgeId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Orkut_Badge"); + } + + /** + * Retrieves the list of visible badges of a user. (badges.listBadges) + * + * @param string $userId + * The id of the user whose badges will be listed. Can be me to refer to caller. + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_BadgeList + */ + public function listBadges($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Orkut_BadgeList"); + } } /** @@ -984,77 +974,75 @@ class Google_Service_Orkut_Badges_Resource extends Google_Service_Resource * $comments = $orkutService->comments; * */ -class Google_Service_Orkut_Comments_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_Comments_Resource extends Google_Service_Resource { - /** - * Deletes an existing comment. (comments.delete) - * - * @param string $commentId - * ID of the comment to remove. - * @param array $optParams Optional parameters. - */ - public function delete($commentId, $optParams = array()) - { - $params = array('commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves an existing comment. (comments.get) - * - * @param string $commentId - * ID of the comment to get. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_Comment - */ - public function get($commentId, $optParams = array()) - { - $params = array('commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Orkut_Comment"); - } - /** - * Inserts a new comment to an activity. (comments.insert) - * - * @param string $activityId - * The ID of the activity to contain the new comment. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_Comment - */ - public function insert($activityId, Google_Service_Orkut_Comment $postBody, $optParams = array()) - { - $params = array('activityId' => $activityId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_Comment"); - } - /** - * Retrieves a list of comments, possibly filtered. (comments.listComments) - * - * @param string $activityId - * The ID of the activity containing the comments. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Sort search results. - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of activities to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommentList - */ - public function listComments($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommentList"); - } + /** + * Deletes an existing comment. (comments.delete) + * + * @param string $commentId + * ID of the comment to remove. + * @param array $optParams Optional parameters. + */ + public function delete($commentId, $optParams = array()) { + $params = array('commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves an existing comment. (comments.get) + * + * @param string $commentId + * ID of the comment to get. + * @param array $optParams Optional parameters. + * + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_Comment + */ + public function get($commentId, $optParams = array()) { + $params = array('commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Orkut_Comment"); + } + + /** + * Inserts a new comment to an activity. (comments.insert) + * + * @param string $activityId + * The ID of the activity to contain the new comment. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_Comment + */ + public function insert($activityId, Google_Service_Orkut_Comment $postBody, $optParams = array()) { + $params = array('activityId' => $activityId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Orkut_Comment"); + } + + /** + * Retrieves a list of comments, possibly filtered. (comments.listComments) + * + * @param string $activityId + * The ID of the activity containing the comments. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Sort search results. + * @opt_param string pageToken + * A continuation token that allows pagination. + * @opt_param string maxResults + * The maximum number of activities to include in the response. + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_CommentList + */ + public function listComments($activityId, $optParams = array()) { + $params = array('activityId' => $activityId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Orkut_CommentList"); + } } /** @@ -1065,49 +1053,47 @@ class Google_Service_Orkut_Comments_Resource extends Google_Service_Resource * $communities = $orkutService->communities; * */ -class Google_Service_Orkut_Communities_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_Communities_Resource extends Google_Service_Resource { - /** - * Retrieves the basic information (aka. profile) of a community. - * (communities.get) - * - * @param int $communityId - * The ID of the community to get. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_Community - */ - public function get($communityId, $optParams = array()) - { - $params = array('communityId' => $communityId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Orkut_Community"); - } - /** - * Retrieves the list of communities the current user is a member of. - * (communities.listCommunities) - * - * @param string $userId - * The ID of the user whose communities will be listed. Can be me to refer to caller. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * How to order the communities by. - * @opt_param string maxResults - * The maximum number of communities to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityList - */ - public function listCommunities($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityList"); - } + /** + * Retrieves the basic information (aka. profile) of a community. + * (communities.get) + * + * @param int $communityId + * The ID of the community to get. + * @param array $optParams Optional parameters. + * + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_Community + */ + public function get($communityId, $optParams = array()) { + $params = array('communityId' => $communityId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Orkut_Community"); + } + + /** + * Retrieves the list of communities the current user is a member of. + * (communities.listCommunities) + * + * @param string $userId + * The ID of the user whose communities will be listed. Can be me to refer to caller. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * How to order the communities by. + * @opt_param string maxResults + * The maximum number of communities to include in the response. + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_CommunityList + */ + public function listCommunities($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Orkut_CommunityList"); + } } /** @@ -1118,40 +1104,38 @@ class Google_Service_Orkut_Communities_Resource extends Google_Service_Resource * $communityFollow = $orkutService->communityFollow; * */ -class Google_Service_Orkut_CommunityFollow_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_CommunityFollow_Resource extends Google_Service_Resource { - /** - * Removes a user from the followers of a community. (communityFollow.delete) - * - * @param int $communityId - * ID of the community. - * @param string $userId - * ID of the user. - * @param array $optParams Optional parameters. - */ - public function delete($communityId, $userId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Adds a user as a follower of a community. (communityFollow.insert) - * - * @param int $communityId - * ID of the community. - * @param string $userId - * ID of the user. - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_CommunityMembers - */ - public function insert($communityId, $userId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityMembers"); - } + /** + * Removes a user from the followers of a community. (communityFollow.delete) + * + * @param int $communityId + * ID of the community. + * @param string $userId + * ID of the user. + * @param array $optParams Optional parameters. + */ + public function delete($communityId, $userId, $optParams = array()) { + $params = array('communityId' => $communityId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a user as a follower of a community. (communityFollow.insert) + * + * @param int $communityId + * ID of the community. + * @param string $userId + * ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_CommunityMembers + */ + public function insert($communityId, $userId, $optParams = array()) { + $params = array('communityId' => $communityId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Orkut_CommunityMembers"); + } } /** @@ -1162,86 +1146,84 @@ class Google_Service_Orkut_CommunityFollow_Resource extends Google_Service_Resou * $communityMembers = $orkutService->communityMembers; * */ -class Google_Service_Orkut_CommunityMembers_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_CommunityMembers_Resource extends Google_Service_Resource { - /** - * Makes the user leave a community. (communityMembers.delete) - * - * @param int $communityId - * ID of the community. - * @param string $userId - * ID of the user. - * @param array $optParams Optional parameters. - */ - public function delete($communityId, $userId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves the relationship between a user and a community. - * (communityMembers.get) - * - * @param int $communityId - * ID of the community. - * @param string $userId - * ID of the user. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityMembers - */ - public function get($communityId, $userId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Orkut_CommunityMembers"); - } - /** - * Makes the user join a community. (communityMembers.insert) - * - * @param int $communityId - * ID of the community. - * @param string $userId - * ID of the user. - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_CommunityMembers - */ - public function insert($communityId, $userId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityMembers"); - } - /** - * Lists members of a community. Use the pagination tokens to retrieve the full - * list; do not rely on the member count available in the community profile - * information to know when to stop iterating, as that count may be approximate. - * (communityMembers.listCommunityMembers) - * - * @param int $communityId - * The ID of the community whose members will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param bool friendsOnly - * Whether to list only community members who are friends of the user. - * @opt_param string maxResults - * The maximum number of members to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityMembersList - */ - public function listCommunityMembers($communityId, $optParams = array()) - { - $params = array('communityId' => $communityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityMembersList"); - } + /** + * Makes the user leave a community. (communityMembers.delete) + * + * @param int $communityId + * ID of the community. + * @param string $userId + * ID of the user. + * @param array $optParams Optional parameters. + */ + public function delete($communityId, $userId, $optParams = array()) { + $params = array('communityId' => $communityId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the relationship between a user and a community. + * (communityMembers.get) + * + * @param int $communityId + * ID of the community. + * @param string $userId + * ID of the user. + * @param array $optParams Optional parameters. + * + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_CommunityMembers + */ + public function get($communityId, $userId, $optParams = array()) { + $params = array('communityId' => $communityId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Orkut_CommunityMembers"); + } + + /** + * Makes the user join a community. (communityMembers.insert) + * + * @param int $communityId + * ID of the community. + * @param string $userId + * ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_CommunityMembers + */ + public function insert($communityId, $userId, $optParams = array()) { + $params = array('communityId' => $communityId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Orkut_CommunityMembers"); + } + + /** + * Lists members of a community. Use the pagination tokens to retrieve the full + * list; do not rely on the member count available in the community profile + * information to know when to stop iterating, as that count may be approximate. + * (communityMembers.listCommunityMembers) + * + * @param int $communityId + * The ID of the community whose members will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token that allows pagination. + * @opt_param bool friendsOnly + * Whether to list only community members who are friends of the user. + * @opt_param string maxResults + * The maximum number of members to include in the response. + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_CommunityMembersList + */ + public function listCommunityMembers($communityId, $optParams = array()) { + $params = array('communityId' => $communityId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Orkut_CommunityMembersList"); + } } /** @@ -1252,68 +1234,66 @@ class Google_Service_Orkut_CommunityMembers_Resource extends Google_Service_Reso * $communityMessages = $orkutService->communityMessages; * */ -class Google_Service_Orkut_CommunityMessages_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_CommunityMessages_Resource extends Google_Service_Resource { - /** - * Moves a message of the community to the trash folder. - * (communityMessages.delete) - * - * @param int $communityId - * The ID of the community whose message will be moved to the trash folder. - * @param string $topicId - * The ID of the topic whose message will be moved to the trash folder. - * @param string $messageId - * The ID of the message to be moved to the trash folder. - * @param array $optParams Optional parameters. - */ - public function delete($communityId, $topicId, $messageId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'topicId' => $topicId, 'messageId' => $messageId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Adds a message to a given community topic. (communityMessages.insert) - * - * @param int $communityId - * The ID of the community the message should be added to. - * @param string $topicId - * The ID of the topic the message should be added to. - * @param Google_CommunityMessage $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_CommunityMessage - */ - public function insert($communityId, $topicId, Google_Service_Orkut_CommunityMessage $postBody, $optParams = array()) - { - $params = array('communityId' => $communityId, 'topicId' => $topicId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityMessage"); - } - /** - * Retrieves the messages of a topic of a community. - * (communityMessages.listCommunityMessages) - * - * @param int $communityId - * The ID of the community which messages will be listed. - * @param string $topicId - * The ID of the topic which messages will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of messages to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityMessageList - */ - public function listCommunityMessages($communityId, $topicId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'topicId' => $topicId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityMessageList"); - } + /** + * Moves a message of the community to the trash folder. + * (communityMessages.delete) + * + * @param int $communityId + * The ID of the community whose message will be moved to the trash folder. + * @param string $topicId + * The ID of the topic whose message will be moved to the trash folder. + * @param string $messageId + * The ID of the message to be moved to the trash folder. + * @param array $optParams Optional parameters. + */ + public function delete($communityId, $topicId, $messageId, $optParams = array()) { + $params = array('communityId' => $communityId, 'topicId' => $topicId, 'messageId' => $messageId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a message to a given community topic. (communityMessages.insert) + * + * @param int $communityId + * The ID of the community the message should be added to. + * @param string $topicId + * The ID of the topic the message should be added to. + * @param Google_CommunityMessage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_CommunityMessage + */ + public function insert($communityId, $topicId, Google_Service_Orkut_CommunityMessage $postBody, $optParams = array()) { + $params = array('communityId' => $communityId, 'topicId' => $topicId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Orkut_CommunityMessage"); + } + + /** + * Retrieves the messages of a topic of a community. + * (communityMessages.listCommunityMessages) + * + * @param int $communityId + * The ID of the community which messages will be listed. + * @param string $topicId + * The ID of the topic which messages will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token that allows pagination. + * @opt_param string maxResults + * The maximum number of messages to include in the response. + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_CommunityMessageList + */ + public function listCommunityMessages($communityId, $topicId, $optParams = array()) { + $params = array('communityId' => $communityId, 'topicId' => $topicId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Orkut_CommunityMessageList"); + } } /** @@ -1324,50 +1304,48 @@ class Google_Service_Orkut_CommunityMessages_Resource extends Google_Service_Res * $communityPollComments = $orkutService->communityPollComments; * */ -class Google_Service_Orkut_CommunityPollComments_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_CommunityPollComments_Resource extends Google_Service_Resource { - /** - * Adds a comment on a community poll. (communityPollComments.insert) - * - * @param int $communityId - * The ID of the community whose poll is being commented. - * @param string $pollId - * The ID of the poll being commented. - * @param Google_CommunityPollComment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_CommunityPollComment - */ - public function insert($communityId, $pollId, Google_Service_Orkut_CommunityPollComment $postBody, $optParams = array()) - { - $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityPollComment"); - } - /** - * Retrieves the comments of a community poll. - * (communityPollComments.listCommunityPollComments) - * - * @param int $communityId - * The ID of the community whose poll is having its comments listed. - * @param string $pollId - * The ID of the community whose polls will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of comments to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityPollCommentList - */ - public function listCommunityPollComments($communityId, $pollId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'pollId' => $pollId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityPollCommentList"); - } + /** + * Adds a comment on a community poll. (communityPollComments.insert) + * + * @param int $communityId + * The ID of the community whose poll is being commented. + * @param string $pollId + * The ID of the poll being commented. + * @param Google_CommunityPollComment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_CommunityPollComment + */ + public function insert($communityId, $pollId, Google_Service_Orkut_CommunityPollComment $postBody, $optParams = array()) { + $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Orkut_CommunityPollComment"); + } + + /** + * Retrieves the comments of a community poll. + * (communityPollComments.listCommunityPollComments) + * + * @param int $communityId + * The ID of the community whose poll is having its comments listed. + * @param string $pollId + * The ID of the community whose polls will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token that allows pagination. + * @opt_param string maxResults + * The maximum number of comments to include in the response. + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_CommunityPollCommentList + */ + public function listCommunityPollComments($communityId, $pollId, $optParams = array()) { + $params = array('communityId' => $communityId, 'pollId' => $pollId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Orkut_CommunityPollCommentList"); + } } /** @@ -1378,26 +1356,24 @@ class Google_Service_Orkut_CommunityPollComments_Resource extends Google_Service * $communityPollVotes = $orkutService->communityPollVotes; * */ -class Google_Service_Orkut_CommunityPollVotes_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_CommunityPollVotes_Resource extends Google_Service_Resource { - /** - * Votes on a community poll. (communityPollVotes.insert) - * - * @param int $communityId - * The ID of the community whose poll is being voted. - * @param string $pollId - * The ID of the poll being voted. - * @param Google_CommunityPollVote $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_CommunityPollVote - */ - public function insert($communityId, $pollId, Google_Service_Orkut_CommunityPollVote $postBody, $optParams = array()) - { - $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityPollVote"); - } + /** + * Votes on a community poll. (communityPollVotes.insert) + * + * @param int $communityId + * The ID of the community whose poll is being voted. + * @param string $pollId + * The ID of the poll being voted. + * @param Google_CommunityPollVote $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_CommunityPollVote + */ + public function insert($communityId, $pollId, Google_Service_Orkut_CommunityPollVote $postBody, $optParams = array()) { + $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Orkut_CommunityPollVote"); + } } /** @@ -1408,49 +1384,47 @@ class Google_Service_Orkut_CommunityPollVotes_Resource extends Google_Service_Re * $communityPolls = $orkutService->communityPolls; * */ -class Google_Service_Orkut_CommunityPolls_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_CommunityPolls_Resource extends Google_Service_Resource { - /** - * Retrieves one specific poll of a community. (communityPolls.get) - * - * @param int $communityId - * The ID of the community for whose poll will be retrieved. - * @param string $pollId - * The ID of the poll to get. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityPoll - */ - public function get($communityId, $pollId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'pollId' => $pollId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Orkut_CommunityPoll"); - } - /** - * Retrieves the polls of a community. (communityPolls.listCommunityPolls) - * - * @param int $communityId - * The ID of the community which polls will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of polls to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityPollList - */ - public function listCommunityPolls($communityId, $optParams = array()) - { - $params = array('communityId' => $communityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityPollList"); - } + /** + * Retrieves one specific poll of a community. (communityPolls.get) + * + * @param int $communityId + * The ID of the community for whose poll will be retrieved. + * @param string $pollId + * The ID of the poll to get. + * @param array $optParams Optional parameters. + * + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_CommunityPoll + */ + public function get($communityId, $pollId, $optParams = array()) { + $params = array('communityId' => $communityId, 'pollId' => $pollId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Orkut_CommunityPoll"); + } + + /** + * Retrieves the polls of a community. (communityPolls.listCommunityPolls) + * + * @param int $communityId + * The ID of the community which polls will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token that allows pagination. + * @opt_param string maxResults + * The maximum number of polls to include in the response. + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_CommunityPollList + */ + public function listCommunityPolls($communityId, $optParams = array()) { + $params = array('communityId' => $communityId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Orkut_CommunityPollList"); + } } /** @@ -1461,27 +1435,25 @@ class Google_Service_Orkut_CommunityPolls_Resource extends Google_Service_Resour * $communityRelated = $orkutService->communityRelated; * */ -class Google_Service_Orkut_CommunityRelated_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_CommunityRelated_Resource extends Google_Service_Resource { - /** - * Retrieves the communities related to another one. - * (communityRelated.listCommunityRelated) - * - * @param int $communityId - * The ID of the community whose related communities will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityList - */ - public function listCommunityRelated($communityId, $optParams = array()) - { - $params = array('communityId' => $communityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityList"); - } + /** + * Retrieves the communities related to another one. + * (communityRelated.listCommunityRelated) + * + * @param int $communityId + * The ID of the community whose related communities will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_CommunityList + */ + public function listCommunityRelated($communityId, $optParams = array()) { + $params = array('communityId' => $communityId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Orkut_CommunityList"); + } } /** @@ -1492,82 +1464,80 @@ class Google_Service_Orkut_CommunityRelated_Resource extends Google_Service_Reso * $communityTopics = $orkutService->communityTopics; * */ -class Google_Service_Orkut_CommunityTopics_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_CommunityTopics_Resource extends Google_Service_Resource { - /** - * Moves a topic of the community to the trash folder. (communityTopics.delete) - * - * @param int $communityId - * The ID of the community whose topic will be moved to the trash folder. - * @param string $topicId - * The ID of the topic to be moved to the trash folder. - * @param array $optParams Optional parameters. - */ - public function delete($communityId, $topicId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'topicId' => $topicId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a topic of a community. (communityTopics.get) - * - * @param int $communityId - * The ID of the community whose topic will be retrieved. - * @param string $topicId - * The ID of the topic to get. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityTopic - */ - public function get($communityId, $topicId, $optParams = array()) - { - $params = array('communityId' => $communityId, 'topicId' => $topicId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Orkut_CommunityTopic"); - } - /** - * Adds a topic to a given community. (communityTopics.insert) - * - * @param int $communityId - * The ID of the community the topic should be added to. - * @param Google_CommunityTopic $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool isShout - * Whether this topic is a shout. - * @return Google_Service_Orkut_CommunityTopic - */ - public function insert($communityId, Google_Service_Orkut_CommunityTopic $postBody, $optParams = array()) - { - $params = array('communityId' => $communityId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_CommunityTopic"); - } - /** - * Retrieves the topics of a community. (communityTopics.listCommunityTopics) - * - * @param int $communityId - * The ID of the community which topics will be listed. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A continuation token that allows pagination. - * @opt_param string maxResults - * The maximum number of topics to include in the response. - * @opt_param string hl - * Specifies the interface language (host language) of your user interface. - * @return Google_Service_Orkut_CommunityTopicList - */ - public function listCommunityTopics($communityId, $optParams = array()) - { - $params = array('communityId' => $communityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_CommunityTopicList"); - } + /** + * Moves a topic of the community to the trash folder. (communityTopics.delete) + * + * @param int $communityId + * The ID of the community whose topic will be moved to the trash folder. + * @param string $topicId + * The ID of the topic to be moved to the trash folder. + * @param array $optParams Optional parameters. + */ + public function delete($communityId, $topicId, $optParams = array()) { + $params = array('communityId' => $communityId, 'topicId' => $topicId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a topic of a community. (communityTopics.get) + * + * @param int $communityId + * The ID of the community whose topic will be retrieved. + * @param string $topicId + * The ID of the topic to get. + * @param array $optParams Optional parameters. + * + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_CommunityTopic + */ + public function get($communityId, $topicId, $optParams = array()) { + $params = array('communityId' => $communityId, 'topicId' => $topicId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Orkut_CommunityTopic"); + } + + /** + * Adds a topic to a given community. (communityTopics.insert) + * + * @param int $communityId + * The ID of the community the topic should be added to. + * @param Google_CommunityTopic $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool isShout + * Whether this topic is a shout. + * @return Google_Service_Orkut_CommunityTopic + */ + public function insert($communityId, Google_Service_Orkut_CommunityTopic $postBody, $optParams = array()) { + $params = array('communityId' => $communityId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Orkut_CommunityTopic"); + } + + /** + * Retrieves the topics of a community. (communityTopics.listCommunityTopics) + * + * @param int $communityId + * The ID of the community which topics will be listed. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A continuation token that allows pagination. + * @opt_param string maxResults + * The maximum number of topics to include in the response. + * @opt_param string hl + * Specifies the interface language (host language) of your user interface. + * @return Google_Service_Orkut_CommunityTopicList + */ + public function listCommunityTopics($communityId, $optParams = array()) { + $params = array('communityId' => $communityId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Orkut_CommunityTopicList"); + } } /** @@ -1578,23 +1548,21 @@ class Google_Service_Orkut_CommunityTopics_Resource extends Google_Service_Resou * $counters = $orkutService->counters; * */ -class Google_Service_Orkut_Counters_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_Counters_Resource extends Google_Service_Resource { - /** - * Retrieves the counters of a user. (counters.listCounters) - * - * @param string $userId - * The ID of the user whose counters will be listed. Can be me to refer to caller. - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_Counters - */ - public function listCounters($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Orkut_Counters"); - } + /** + * Retrieves the counters of a user. (counters.listCounters) + * + * @param string $userId + * The ID of the user whose counters will be listed. Can be me to refer to caller. + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_Counters + */ + public function listCounters($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Orkut_Counters"); + } } /** @@ -1605,2421 +1573,1979 @@ class Google_Service_Orkut_Counters_Resource extends Google_Service_Resource * $scraps = $orkutService->scraps; * */ -class Google_Service_Orkut_Scraps_Resource extends Google_Service_Resource -{ +class Google_Service_Orkut_Scraps_Resource extends Google_Service_Resource { - /** - * Creates a new scrap. (scraps.insert) - * - * @param Google_Activity $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Orkut_Activity - */ - public function insert(Google_Service_Orkut_Activity $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Orkut_Activity"); - } + /** + * Creates a new scrap. (scraps.insert) + * + * @param Google_Activity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Orkut_Activity + */ + public function insert(Google_Service_Orkut_Activity $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Orkut_Activity"); + } } +class Google_Service_Orkut_Acl extends Google_Collection { + public $description; + protected $itemsType = 'Google_Service_Orkut_AclItems'; + protected $itemsDataType = 'array'; + public $kind; + public $totalParticipants; + public function setDescription($description) { + $this->description = $description; + } -class Google_Service_Orkut_Acl extends Google_Collection -{ - public $description; - protected $itemsType = 'Google_Service_Orkut_AclItems'; - protected $itemsDataType = 'array'; - public $kind; - public $totalParticipants; + public function getDescription() { + return $this->description; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setItems($items) { + $this->items = $items; + } - public function getDescription() - { - return $this->description; - } + public function getItems() { + return $this->items; + } - public function setItems($items) - { - $this->items = $items; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getItems() - { - return $this->items; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setTotalParticipants($totalParticipants) { + $this->totalParticipants = $totalParticipants; + } - public function getKind() - { - return $this->kind; - } - - public function setTotalParticipants($totalParticipants) - { - $this->totalParticipants = $totalParticipants; - } - - public function getTotalParticipants() - { - return $this->totalParticipants; - } + public function getTotalParticipants() { + return $this->totalParticipants; + } } -class Google_Service_Orkut_AclItems extends Google_Model -{ - public $id; - public $type; +class Google_Service_Orkut_AclItems extends Google_Model { + public $id; + public $type; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Orkut_Activity extends Google_Collection -{ - protected $accessType = 'Google_Service_Orkut_Acl'; - protected $accessDataType = ''; - protected $actorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $actorDataType = ''; - public $id; - public $kind; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - protected $objectType = 'Google_Service_Orkut_ActivityObject'; - protected $objectDataType = ''; - public $published; - public $title; - public $updated; - public $verb; +class Google_Service_Orkut_Activity extends Google_Collection { + protected $accessType = 'Google_Service_Orkut_Acl'; + protected $accessDataType = ''; + protected $actorType = 'Google_Service_Orkut_OrkutAuthorResource'; + protected $actorDataType = ''; + public $id; + public $kind; + protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; + protected $linksDataType = 'array'; + protected $objectType = 'Google_Service_Orkut_ActivityObject'; + protected $objectDataType = ''; + public $published; + public $title; + public $updated; + public $verb; - public function setAccess(Google_Service_Orkut_Acl $access) - { - $this->access = $access; - } + public function setAccess(Google_Service_Orkut_Acl $access) { + $this->access = $access; + } - public function getAccess() - { - return $this->access; - } + public function getAccess() { + return $this->access; + } - public function setActor(Google_Service_Orkut_OrkutAuthorResource $actor) - { - $this->actor = $actor; - } + public function setActor(Google_Service_Orkut_OrkutAuthorResource $actor) { + $this->actor = $actor; + } - public function getActor() - { - return $this->actor; - } + public function getActor() { + return $this->actor; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLinks($links) - { - $this->links = $links; - } + public function setLinks($links) { + $this->links = $links; + } - public function getLinks() - { - return $this->links; - } + public function getLinks() { + return $this->links; + } - public function setObject(Google_Service_Orkut_ActivityObject $object) - { - $this->object = $object; - } + public function setObject(Google_Service_Orkut_ActivityObject $object) { + $this->object = $object; + } - public function getObject() - { - return $this->object; - } + public function getObject() { + return $this->object; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPublished() - { - return $this->published; - } + public function getPublished() { + return $this->published; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } - public function setVerb($verb) - { - $this->verb = $verb; - } + public function setVerb($verb) { + $this->verb = $verb; + } - public function getVerb() - { - return $this->verb; - } + public function getVerb() { + return $this->verb; + } } -class Google_Service_Orkut_ActivityList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Orkut_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Orkut_ActivityList extends Google_Collection { + protected $itemsType = 'Google_Service_Orkut_Activity'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Orkut_ActivityObject extends Google_Collection -{ - public $content; - protected $itemsType = 'Google_Service_Orkut_OrkutActivityobjectsResource'; - protected $itemsDataType = 'array'; - public $objectType; - protected $repliesType = 'Google_Service_Orkut_ActivityObjectReplies'; - protected $repliesDataType = ''; +class Google_Service_Orkut_ActivityObject extends Google_Collection { + public $content; + protected $itemsType = 'Google_Service_Orkut_OrkutActivityobjectsResource'; + protected $itemsDataType = 'array'; + public $objectType; + protected $repliesType = 'Google_Service_Orkut_ActivityObjectReplies'; + protected $repliesDataType = ''; - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } + public function setObjectType($objectType) { + $this->objectType = $objectType; + } - public function getObjectType() - { - return $this->objectType; - } + public function getObjectType() { + return $this->objectType; + } - public function setReplies(Google_Service_Orkut_ActivityObjectReplies $replies) - { - $this->replies = $replies; - } + public function setReplies(Google_Service_Orkut_ActivityObjectReplies $replies) { + $this->replies = $replies; + } - public function getReplies() - { - return $this->replies; - } + public function getReplies() { + return $this->replies; + } } -class Google_Service_Orkut_ActivityObjectReplies extends Google_Collection -{ - protected $itemsType = 'Google_Service_Orkut_Comment'; - protected $itemsDataType = 'array'; - public $totalItems; - public $url; +class Google_Service_Orkut_ActivityObjectReplies extends Google_Collection { + protected $itemsType = 'Google_Service_Orkut_Comment'; + protected $itemsDataType = 'array'; + public $totalItems; + public $url; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Orkut_Badge extends Google_Model -{ - public $badgeLargeLogo; - public $badgeSmallLogo; - public $caption; - public $description; - public $id; - public $kind; - public $sponsorLogo; - public $sponsorName; - public $sponsorUrl; +class Google_Service_Orkut_Badge extends Google_Model { + public $badgeLargeLogo; + public $badgeSmallLogo; + public $caption; + public $description; + public $id; + public $kind; + public $sponsorLogo; + public $sponsorName; + public $sponsorUrl; - public function setBadgeLargeLogo($badgeLargeLogo) - { - $this->badgeLargeLogo = $badgeLargeLogo; - } + public function setBadgeLargeLogo($badgeLargeLogo) { + $this->badgeLargeLogo = $badgeLargeLogo; + } - public function getBadgeLargeLogo() - { - return $this->badgeLargeLogo; - } + public function getBadgeLargeLogo() { + return $this->badgeLargeLogo; + } - public function setBadgeSmallLogo($badgeSmallLogo) - { - $this->badgeSmallLogo = $badgeSmallLogo; - } + public function setBadgeSmallLogo($badgeSmallLogo) { + $this->badgeSmallLogo = $badgeSmallLogo; + } - public function getBadgeSmallLogo() - { - return $this->badgeSmallLogo; - } + public function getBadgeSmallLogo() { + return $this->badgeSmallLogo; + } - public function setCaption($caption) - { - $this->caption = $caption; - } + public function setCaption($caption) { + $this->caption = $caption; + } - public function getCaption() - { - return $this->caption; - } + public function getCaption() { + return $this->caption; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSponsorLogo($sponsorLogo) - { - $this->sponsorLogo = $sponsorLogo; - } + public function setSponsorLogo($sponsorLogo) { + $this->sponsorLogo = $sponsorLogo; + } - public function getSponsorLogo() - { - return $this->sponsorLogo; - } + public function getSponsorLogo() { + return $this->sponsorLogo; + } - public function setSponsorName($sponsorName) - { - $this->sponsorName = $sponsorName; - } + public function setSponsorName($sponsorName) { + $this->sponsorName = $sponsorName; + } - public function getSponsorName() - { - return $this->sponsorName; - } + public function getSponsorName() { + return $this->sponsorName; + } - public function setSponsorUrl($sponsorUrl) - { - $this->sponsorUrl = $sponsorUrl; - } + public function setSponsorUrl($sponsorUrl) { + $this->sponsorUrl = $sponsorUrl; + } - public function getSponsorUrl() - { - return $this->sponsorUrl; - } + public function getSponsorUrl() { + return $this->sponsorUrl; + } } -class Google_Service_Orkut_BadgeList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Orkut_Badge'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Orkut_BadgeList extends Google_Collection { + protected $itemsType = 'Google_Service_Orkut_Badge'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Orkut_Comment extends Google_Collection -{ - protected $actorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $actorDataType = ''; - public $content; - public $id; - protected $inReplyToType = 'Google_Service_Orkut_CommentInReplyTo'; - protected $inReplyToDataType = ''; - public $kind; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - public $published; +class Google_Service_Orkut_Comment extends Google_Collection { + protected $actorType = 'Google_Service_Orkut_OrkutAuthorResource'; + protected $actorDataType = ''; + public $content; + public $id; + protected $inReplyToType = 'Google_Service_Orkut_CommentInReplyTo'; + protected $inReplyToDataType = ''; + public $kind; + protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; + protected $linksDataType = 'array'; + public $published; - public function setActor(Google_Service_Orkut_OrkutAuthorResource $actor) - { - $this->actor = $actor; - } + public function setActor(Google_Service_Orkut_OrkutAuthorResource $actor) { + $this->actor = $actor; + } - public function getActor() - { - return $this->actor; - } + public function getActor() { + return $this->actor; + } - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setInReplyTo(Google_Service_Orkut_CommentInReplyTo $inReplyTo) - { - $this->inReplyTo = $inReplyTo; - } + public function setInReplyTo(Google_Service_Orkut_CommentInReplyTo $inReplyTo) { + $this->inReplyTo = $inReplyTo; + } - public function getInReplyTo() - { - return $this->inReplyTo; - } + public function getInReplyTo() { + return $this->inReplyTo; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLinks($links) - { - $this->links = $links; - } + public function setLinks($links) { + $this->links = $links; + } - public function getLinks() - { - return $this->links; - } + public function getLinks() { + return $this->links; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPublished() - { - return $this->published; - } + public function getPublished() { + return $this->published; + } } -class Google_Service_Orkut_CommentInReplyTo extends Google_Model -{ - public $href; - public $ref; - public $rel; - public $type; +class Google_Service_Orkut_CommentInReplyTo extends Google_Model { + public $href; + public $ref; + public $rel; + public $type; - public function setHref($href) - { - $this->href = $href; - } + public function setHref($href) { + $this->href = $href; + } - public function getHref() - { - return $this->href; - } + public function getHref() { + return $this->href; + } - public function setRef($ref) - { - $this->ref = $ref; - } + public function setRef($ref) { + $this->ref = $ref; + } - public function getRef() - { - return $this->ref; - } + public function getRef() { + return $this->ref; + } - public function setRel($rel) - { - $this->rel = $rel; - } + public function setRel($rel) { + $this->rel = $rel; + } - public function getRel() - { - return $this->rel; - } + public function getRel() { + return $this->rel; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Orkut_CommentList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Orkut_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $previousPageToken; +class Google_Service_Orkut_CommentList extends Google_Collection { + protected $itemsType = 'Google_Service_Orkut_Comment'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $previousPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setPreviousPageToken($previousPageToken) - { - $this->previousPageToken = $previousPageToken; - } + public function setPreviousPageToken($previousPageToken) { + $this->previousPageToken = $previousPageToken; + } - public function getPreviousPageToken() - { - return $this->previousPageToken; - } + public function getPreviousPageToken() { + return $this->previousPageToken; + } } -class Google_Service_Orkut_Community extends Google_Collection -{ - public $category; - protected $coOwnersType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $coOwnersDataType = 'array'; - public $creationDate; - public $description; - public $id; - public $kind; - public $language; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - public $location; - public $memberCount; - protected $moderatorsType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $moderatorsDataType = 'array'; - public $name; - protected $ownerType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $ownerDataType = ''; - public $photoUrl; +class Google_Service_Orkut_Community extends Google_Collection { + public $category; + protected $coOwnersType = 'Google_Service_Orkut_OrkutAuthorResource'; + protected $coOwnersDataType = 'array'; + public $creationDate; + public $description; + public $id; + public $kind; + public $language; + protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; + protected $linksDataType = 'array'; + public $location; + public $memberCount; + protected $moderatorsType = 'Google_Service_Orkut_OrkutAuthorResource'; + protected $moderatorsDataType = 'array'; + public $name; + protected $ownerType = 'Google_Service_Orkut_OrkutAuthorResource'; + protected $ownerDataType = ''; + public $photoUrl; - public function setCategory($category) - { - $this->category = $category; - } + public function setCategory($category) { + $this->category = $category; + } - public function getCategory() - { - return $this->category; - } + public function getCategory() { + return $this->category; + } - public function setCoOwners($coOwners) - { - $this->coOwners = $coOwners; - } + public function setCoOwners($coOwners) { + $this->coOwners = $coOwners; + } - public function getCoOwners() - { - return $this->coOwners; - } + public function getCoOwners() { + return $this->coOwners; + } - public function setCreationDate($creationDate) - { - $this->creationDate = $creationDate; - } + public function setCreationDate($creationDate) { + $this->creationDate = $creationDate; + } - public function getCreationDate() - { - return $this->creationDate; - } + public function getCreationDate() { + return $this->creationDate; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLanguage($language) - { - $this->language = $language; - } + public function setLanguage($language) { + $this->language = $language; + } - public function getLanguage() - { - return $this->language; - } + public function getLanguage() { + return $this->language; + } - public function setLinks($links) - { - $this->links = $links; - } + public function setLinks($links) { + $this->links = $links; + } - public function getLinks() - { - return $this->links; - } + public function getLinks() { + return $this->links; + } - public function setLocation($location) - { - $this->location = $location; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setMemberCount($memberCount) - { - $this->memberCount = $memberCount; - } + public function setMemberCount($memberCount) { + $this->memberCount = $memberCount; + } - public function getMemberCount() - { - return $this->memberCount; - } + public function getMemberCount() { + return $this->memberCount; + } - public function setModerators($moderators) - { - $this->moderators = $moderators; - } + public function setModerators($moderators) { + $this->moderators = $moderators; + } - public function getModerators() - { - return $this->moderators; - } + public function getModerators() { + return $this->moderators; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOwner(Google_Service_Orkut_OrkutAuthorResource $owner) - { - $this->owner = $owner; - } + public function setOwner(Google_Service_Orkut_OrkutAuthorResource $owner) { + $this->owner = $owner; + } - public function getOwner() - { - return $this->owner; - } + public function getOwner() { + return $this->owner; + } - public function setPhotoUrl($photoUrl) - { - $this->photoUrl = $photoUrl; - } + public function setPhotoUrl($photoUrl) { + $this->photoUrl = $photoUrl; + } - public function getPhotoUrl() - { - return $this->photoUrl; - } + public function getPhotoUrl() { + return $this->photoUrl; + } } -class Google_Service_Orkut_CommunityList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Orkut_Community'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Orkut_CommunityList extends Google_Collection { + protected $itemsType = 'Google_Service_Orkut_Community'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Orkut_CommunityMembers extends Google_Model -{ - protected $communityMembershipStatusType = 'Google_Service_Orkut_CommunityMembershipStatus'; - protected $communityMembershipStatusDataType = ''; - public $kind; - protected $personType = 'Google_Service_Orkut_OrkutActivitypersonResource'; - protected $personDataType = ''; +class Google_Service_Orkut_CommunityMembers extends Google_Model { + protected $communityMembershipStatusType = 'Google_Service_Orkut_CommunityMembershipStatus'; + protected $communityMembershipStatusDataType = ''; + public $kind; + protected $personType = 'Google_Service_Orkut_OrkutActivitypersonResource'; + protected $personDataType = ''; - public function setCommunityMembershipStatus(Google_Service_Orkut_CommunityMembershipStatus $communityMembershipStatus) - { - $this->communityMembershipStatus = $communityMembershipStatus; - } + public function setCommunityMembershipStatus(Google_Service_Orkut_CommunityMembershipStatus $communityMembershipStatus) { + $this->communityMembershipStatus = $communityMembershipStatus; + } - public function getCommunityMembershipStatus() - { - return $this->communityMembershipStatus; - } + public function getCommunityMembershipStatus() { + return $this->communityMembershipStatus; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPerson(Google_Service_Orkut_OrkutActivitypersonResource $person) - { - $this->person = $person; - } + public function setPerson(Google_Service_Orkut_OrkutActivitypersonResource $person) { + $this->person = $person; + } - public function getPerson() - { - return $this->person; - } + public function getPerson() { + return $this->person; + } } -class Google_Service_Orkut_CommunityMembersList extends Google_Collection -{ - public $firstPageToken; - protected $itemsType = 'Google_Service_Orkut_CommunityMembers'; - protected $itemsDataType = 'array'; - public $kind; - public $lastPageToken; - public $nextPageToken; - public $prevPageToken; +class Google_Service_Orkut_CommunityMembersList extends Google_Collection { + public $firstPageToken; + protected $itemsType = 'Google_Service_Orkut_CommunityMembers'; + protected $itemsDataType = 'array'; + public $kind; + public $lastPageToken; + public $nextPageToken; + public $prevPageToken; - public function setFirstPageToken($firstPageToken) - { - $this->firstPageToken = $firstPageToken; - } + public function setFirstPageToken($firstPageToken) { + $this->firstPageToken = $firstPageToken; + } - public function getFirstPageToken() - { - return $this->firstPageToken; - } + public function getFirstPageToken() { + return $this->firstPageToken; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastPageToken($lastPageToken) - { - $this->lastPageToken = $lastPageToken; - } + public function setLastPageToken($lastPageToken) { + $this->lastPageToken = $lastPageToken; + } - public function getLastPageToken() - { - return $this->lastPageToken; - } + public function getLastPageToken() { + return $this->lastPageToken; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } - public function getPrevPageToken() - { - return $this->prevPageToken; - } + public function getPrevPageToken() { + return $this->prevPageToken; + } } -class Google_Service_Orkut_CommunityMembershipStatus extends Google_Model -{ - public $canCreatePoll; - public $canCreateTopic; - public $canShout; - public $isCoOwner; - public $isFollowing; - public $isModerator; - public $isOwner; - public $isRestoreAvailable; - public $isTakebackAvailable; - public $kind; - public $status; +class Google_Service_Orkut_CommunityMembershipStatus extends Google_Model { + public $canCreatePoll; + public $canCreateTopic; + public $canShout; + public $isCoOwner; + public $isFollowing; + public $isModerator; + public $isOwner; + public $isRestoreAvailable; + public $isTakebackAvailable; + public $kind; + public $status; - public function setCanCreatePoll($canCreatePoll) - { - $this->canCreatePoll = $canCreatePoll; - } + public function setCanCreatePoll($canCreatePoll) { + $this->canCreatePoll = $canCreatePoll; + } - public function getCanCreatePoll() - { - return $this->canCreatePoll; - } + public function getCanCreatePoll() { + return $this->canCreatePoll; + } - public function setCanCreateTopic($canCreateTopic) - { - $this->canCreateTopic = $canCreateTopic; - } + public function setCanCreateTopic($canCreateTopic) { + $this->canCreateTopic = $canCreateTopic; + } - public function getCanCreateTopic() - { - return $this->canCreateTopic; - } + public function getCanCreateTopic() { + return $this->canCreateTopic; + } - public function setCanShout($canShout) - { - $this->canShout = $canShout; - } + public function setCanShout($canShout) { + $this->canShout = $canShout; + } - public function getCanShout() - { - return $this->canShout; - } + public function getCanShout() { + return $this->canShout; + } - public function setIsCoOwner($isCoOwner) - { - $this->isCoOwner = $isCoOwner; - } + public function setIsCoOwner($isCoOwner) { + $this->isCoOwner = $isCoOwner; + } - public function getIsCoOwner() - { - return $this->isCoOwner; - } + public function getIsCoOwner() { + return $this->isCoOwner; + } - public function setIsFollowing($isFollowing) - { - $this->isFollowing = $isFollowing; - } + public function setIsFollowing($isFollowing) { + $this->isFollowing = $isFollowing; + } - public function getIsFollowing() - { - return $this->isFollowing; - } + public function getIsFollowing() { + return $this->isFollowing; + } - public function setIsModerator($isModerator) - { - $this->isModerator = $isModerator; - } + public function setIsModerator($isModerator) { + $this->isModerator = $isModerator; + } - public function getIsModerator() - { - return $this->isModerator; - } + public function getIsModerator() { + return $this->isModerator; + } - public function setIsOwner($isOwner) - { - $this->isOwner = $isOwner; - } + public function setIsOwner($isOwner) { + $this->isOwner = $isOwner; + } - public function getIsOwner() - { - return $this->isOwner; - } + public function getIsOwner() { + return $this->isOwner; + } - public function setIsRestoreAvailable($isRestoreAvailable) - { - $this->isRestoreAvailable = $isRestoreAvailable; - } + public function setIsRestoreAvailable($isRestoreAvailable) { + $this->isRestoreAvailable = $isRestoreAvailable; + } - public function getIsRestoreAvailable() - { - return $this->isRestoreAvailable; - } + public function getIsRestoreAvailable() { + return $this->isRestoreAvailable; + } - public function setIsTakebackAvailable($isTakebackAvailable) - { - $this->isTakebackAvailable = $isTakebackAvailable; - } + public function setIsTakebackAvailable($isTakebackAvailable) { + $this->isTakebackAvailable = $isTakebackAvailable; + } - public function getIsTakebackAvailable() - { - return $this->isTakebackAvailable; - } + public function getIsTakebackAvailable() { + return $this->isTakebackAvailable; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_Orkut_CommunityMessage extends Google_Collection -{ - public $addedDate; - protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $authorDataType = ''; - public $body; - public $id; - public $isSpam; - public $kind; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - public $subject; +class Google_Service_Orkut_CommunityMessage extends Google_Collection { + public $addedDate; + protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; + protected $authorDataType = ''; + public $body; + public $id; + public $isSpam; + public $kind; + protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; + protected $linksDataType = 'array'; + public $subject; - public function setAddedDate($addedDate) - { - $this->addedDate = $addedDate; - } + public function setAddedDate($addedDate) { + $this->addedDate = $addedDate; + } - public function getAddedDate() - { - return $this->addedDate; - } + public function getAddedDate() { + return $this->addedDate; + } - public function setAuthor(Google_Service_Orkut_OrkutAuthorResource $author) - { - $this->author = $author; - } + public function setAuthor(Google_Service_Orkut_OrkutAuthorResource $author) { + $this->author = $author; + } - public function getAuthor() - { - return $this->author; - } + public function getAuthor() { + return $this->author; + } - public function setBody($body) - { - $this->body = $body; - } + public function setBody($body) { + $this->body = $body; + } - public function getBody() - { - return $this->body; - } + public function getBody() { + return $this->body; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setIsSpam($isSpam) - { - $this->isSpam = $isSpam; - } + public function setIsSpam($isSpam) { + $this->isSpam = $isSpam; + } - public function getIsSpam() - { - return $this->isSpam; - } + public function getIsSpam() { + return $this->isSpam; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLinks($links) - { - $this->links = $links; - } + public function setLinks($links) { + $this->links = $links; + } - public function getLinks() - { - return $this->links; - } + public function getLinks() { + return $this->links; + } - public function setSubject($subject) - { - $this->subject = $subject; - } + public function setSubject($subject) { + $this->subject = $subject; + } - public function getSubject() - { - return $this->subject; - } + public function getSubject() { + return $this->subject; + } } -class Google_Service_Orkut_CommunityMessageList extends Google_Collection -{ - public $firstPageToken; - protected $itemsType = 'Google_Service_Orkut_CommunityMessage'; - protected $itemsDataType = 'array'; - public $kind; - public $lastPageToken; - public $nextPageToken; - public $prevPageToken; +class Google_Service_Orkut_CommunityMessageList extends Google_Collection { + public $firstPageToken; + protected $itemsType = 'Google_Service_Orkut_CommunityMessage'; + protected $itemsDataType = 'array'; + public $kind; + public $lastPageToken; + public $nextPageToken; + public $prevPageToken; - public function setFirstPageToken($firstPageToken) - { - $this->firstPageToken = $firstPageToken; - } + public function setFirstPageToken($firstPageToken) { + $this->firstPageToken = $firstPageToken; + } - public function getFirstPageToken() - { - return $this->firstPageToken; - } + public function getFirstPageToken() { + return $this->firstPageToken; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastPageToken($lastPageToken) - { - $this->lastPageToken = $lastPageToken; - } + public function setLastPageToken($lastPageToken) { + $this->lastPageToken = $lastPageToken; + } - public function getLastPageToken() - { - return $this->lastPageToken; - } + public function getLastPageToken() { + return $this->lastPageToken; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } - public function getPrevPageToken() - { - return $this->prevPageToken; - } + public function getPrevPageToken() { + return $this->prevPageToken; + } } -class Google_Service_Orkut_CommunityPoll extends Google_Collection -{ - protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $authorDataType = ''; - public $communityId; - public $creationTime; - public $description; - public $endingTime; - public $hasVoted; - public $id; - protected $imageType = 'Google_Service_Orkut_CommunityPollImage'; - protected $imageDataType = ''; - public $isClosed; - public $isMultipleAnswers; - public $isOpenForVoting; - public $isRestricted; - public $isSpam; - public $isUsersVotePublic; - public $isVotingAllowedForNonMembers; - public $kind; - public $lastUpdate; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - protected $optionsType = 'Google_Service_Orkut_OrkutCommunitypolloptionResource'; - protected $optionsDataType = 'array'; - public $question; - public $totalNumberOfVotes; - public $votedOptions; +class Google_Service_Orkut_CommunityPoll extends Google_Collection { + protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; + protected $authorDataType = ''; + public $communityId; + public $creationTime; + public $description; + public $endingTime; + public $hasVoted; + public $id; + protected $imageType = 'Google_Service_Orkut_CommunityPollImage'; + protected $imageDataType = ''; + public $isClosed; + public $isMultipleAnswers; + public $isOpenForVoting; + public $isRestricted; + public $isSpam; + public $isUsersVotePublic; + public $isVotingAllowedForNonMembers; + public $kind; + public $lastUpdate; + protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; + protected $linksDataType = 'array'; + protected $optionsType = 'Google_Service_Orkut_OrkutCommunitypolloptionResource'; + protected $optionsDataType = 'array'; + public $question; + public $totalNumberOfVotes; + public $votedOptions; - public function setAuthor(Google_Service_Orkut_OrkutAuthorResource $author) - { - $this->author = $author; - } + public function setAuthor(Google_Service_Orkut_OrkutAuthorResource $author) { + $this->author = $author; + } - public function getAuthor() - { - return $this->author; - } + public function getAuthor() { + return $this->author; + } - public function setCommunityId($communityId) - { - $this->communityId = $communityId; - } + public function setCommunityId($communityId) { + $this->communityId = $communityId; + } - public function getCommunityId() - { - return $this->communityId; - } + public function getCommunityId() { + return $this->communityId; + } - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setEndingTime($endingTime) - { - $this->endingTime = $endingTime; - } + public function setEndingTime($endingTime) { + $this->endingTime = $endingTime; + } - public function getEndingTime() - { - return $this->endingTime; - } + public function getEndingTime() { + return $this->endingTime; + } - public function setHasVoted($hasVoted) - { - $this->hasVoted = $hasVoted; - } + public function setHasVoted($hasVoted) { + $this->hasVoted = $hasVoted; + } - public function getHasVoted() - { - return $this->hasVoted; - } + public function getHasVoted() { + return $this->hasVoted; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_Orkut_CommunityPollImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Orkut_CommunityPollImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setIsClosed($isClosed) - { - $this->isClosed = $isClosed; - } + public function setIsClosed($isClosed) { + $this->isClosed = $isClosed; + } - public function getIsClosed() - { - return $this->isClosed; - } + public function getIsClosed() { + return $this->isClosed; + } - public function setIsMultipleAnswers($isMultipleAnswers) - { - $this->isMultipleAnswers = $isMultipleAnswers; - } + public function setIsMultipleAnswers($isMultipleAnswers) { + $this->isMultipleAnswers = $isMultipleAnswers; + } - public function getIsMultipleAnswers() - { - return $this->isMultipleAnswers; - } + public function getIsMultipleAnswers() { + return $this->isMultipleAnswers; + } - public function setIsOpenForVoting($isOpenForVoting) - { - $this->isOpenForVoting = $isOpenForVoting; - } + public function setIsOpenForVoting($isOpenForVoting) { + $this->isOpenForVoting = $isOpenForVoting; + } - public function getIsOpenForVoting() - { - return $this->isOpenForVoting; - } + public function getIsOpenForVoting() { + return $this->isOpenForVoting; + } - public function setIsRestricted($isRestricted) - { - $this->isRestricted = $isRestricted; - } + public function setIsRestricted($isRestricted) { + $this->isRestricted = $isRestricted; + } - public function getIsRestricted() - { - return $this->isRestricted; - } + public function getIsRestricted() { + return $this->isRestricted; + } - public function setIsSpam($isSpam) - { - $this->isSpam = $isSpam; - } + public function setIsSpam($isSpam) { + $this->isSpam = $isSpam; + } - public function getIsSpam() - { - return $this->isSpam; - } + public function getIsSpam() { + return $this->isSpam; + } - public function setIsUsersVotePublic($isUsersVotePublic) - { - $this->isUsersVotePublic = $isUsersVotePublic; - } + public function setIsUsersVotePublic($isUsersVotePublic) { + $this->isUsersVotePublic = $isUsersVotePublic; + } - public function getIsUsersVotePublic() - { - return $this->isUsersVotePublic; - } + public function getIsUsersVotePublic() { + return $this->isUsersVotePublic; + } - public function setIsVotingAllowedForNonMembers($isVotingAllowedForNonMembers) - { - $this->isVotingAllowedForNonMembers = $isVotingAllowedForNonMembers; - } + public function setIsVotingAllowedForNonMembers($isVotingAllowedForNonMembers) { + $this->isVotingAllowedForNonMembers = $isVotingAllowedForNonMembers; + } - public function getIsVotingAllowedForNonMembers() - { - return $this->isVotingAllowedForNonMembers; - } + public function getIsVotingAllowedForNonMembers() { + return $this->isVotingAllowedForNonMembers; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastUpdate($lastUpdate) - { - $this->lastUpdate = $lastUpdate; - } + public function setLastUpdate($lastUpdate) { + $this->lastUpdate = $lastUpdate; + } - public function getLastUpdate() - { - return $this->lastUpdate; - } + public function getLastUpdate() { + return $this->lastUpdate; + } - public function setLinks($links) - { - $this->links = $links; - } + public function setLinks($links) { + $this->links = $links; + } - public function getLinks() - { - return $this->links; - } + public function getLinks() { + return $this->links; + } - public function setOptions($options) - { - $this->options = $options; - } + public function setOptions($options) { + $this->options = $options; + } - public function getOptions() - { - return $this->options; - } + public function getOptions() { + return $this->options; + } - public function setQuestion($question) - { - $this->question = $question; - } + public function setQuestion($question) { + $this->question = $question; + } - public function getQuestion() - { - return $this->question; - } + public function getQuestion() { + return $this->question; + } - public function setTotalNumberOfVotes($totalNumberOfVotes) - { - $this->totalNumberOfVotes = $totalNumberOfVotes; - } + public function setTotalNumberOfVotes($totalNumberOfVotes) { + $this->totalNumberOfVotes = $totalNumberOfVotes; + } - public function getTotalNumberOfVotes() - { - return $this->totalNumberOfVotes; - } + public function getTotalNumberOfVotes() { + return $this->totalNumberOfVotes; + } - public function setVotedOptions($votedOptions) - { - $this->votedOptions = $votedOptions; - } + public function setVotedOptions($votedOptions) { + $this->votedOptions = $votedOptions; + } - public function getVotedOptions() - { - return $this->votedOptions; - } + public function getVotedOptions() { + return $this->votedOptions; + } } -class Google_Service_Orkut_CommunityPollComment extends Google_Model -{ - public $addedDate; - protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $authorDataType = ''; - public $body; - public $id; - public $kind; +class Google_Service_Orkut_CommunityPollComment extends Google_Model { + public $addedDate; + protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; + protected $authorDataType = ''; + public $body; + public $id; + public $kind; - public function setAddedDate($addedDate) - { - $this->addedDate = $addedDate; - } + public function setAddedDate($addedDate) { + $this->addedDate = $addedDate; + } - public function getAddedDate() - { - return $this->addedDate; - } + public function getAddedDate() { + return $this->addedDate; + } - public function setAuthor(Google_Service_Orkut_OrkutAuthorResource $author) - { - $this->author = $author; - } + public function setAuthor(Google_Service_Orkut_OrkutAuthorResource $author) { + $this->author = $author; + } - public function getAuthor() - { - return $this->author; - } + public function getAuthor() { + return $this->author; + } - public function setBody($body) - { - $this->body = $body; - } + public function setBody($body) { + $this->body = $body; + } - public function getBody() - { - return $this->body; - } + public function getBody() { + return $this->body; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Orkut_CommunityPollCommentList extends Google_Collection -{ - public $firstPageToken; - protected $itemsType = 'Google_Service_Orkut_CommunityPollComment'; - protected $itemsDataType = 'array'; - public $kind; - public $lastPageToken; - public $nextPageToken; - public $prevPageToken; +class Google_Service_Orkut_CommunityPollCommentList extends Google_Collection { + public $firstPageToken; + protected $itemsType = 'Google_Service_Orkut_CommunityPollComment'; + protected $itemsDataType = 'array'; + public $kind; + public $lastPageToken; + public $nextPageToken; + public $prevPageToken; - public function setFirstPageToken($firstPageToken) - { - $this->firstPageToken = $firstPageToken; - } + public function setFirstPageToken($firstPageToken) { + $this->firstPageToken = $firstPageToken; + } - public function getFirstPageToken() - { - return $this->firstPageToken; - } + public function getFirstPageToken() { + return $this->firstPageToken; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastPageToken($lastPageToken) - { - $this->lastPageToken = $lastPageToken; - } + public function setLastPageToken($lastPageToken) { + $this->lastPageToken = $lastPageToken; + } - public function getLastPageToken() - { - return $this->lastPageToken; - } + public function getLastPageToken() { + return $this->lastPageToken; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } - public function getPrevPageToken() - { - return $this->prevPageToken; - } + public function getPrevPageToken() { + return $this->prevPageToken; + } } -class Google_Service_Orkut_CommunityPollImage extends Google_Model -{ - public $url; +class Google_Service_Orkut_CommunityPollImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Orkut_CommunityPollList extends Google_Collection -{ - public $firstPageToken; - protected $itemsType = 'Google_Service_Orkut_CommunityPoll'; - protected $itemsDataType = 'array'; - public $kind; - public $lastPageToken; - public $nextPageToken; - public $prevPageToken; +class Google_Service_Orkut_CommunityPollList extends Google_Collection { + public $firstPageToken; + protected $itemsType = 'Google_Service_Orkut_CommunityPoll'; + protected $itemsDataType = 'array'; + public $kind; + public $lastPageToken; + public $nextPageToken; + public $prevPageToken; - public function setFirstPageToken($firstPageToken) - { - $this->firstPageToken = $firstPageToken; - } + public function setFirstPageToken($firstPageToken) { + $this->firstPageToken = $firstPageToken; + } - public function getFirstPageToken() - { - return $this->firstPageToken; - } + public function getFirstPageToken() { + return $this->firstPageToken; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastPageToken($lastPageToken) - { - $this->lastPageToken = $lastPageToken; - } + public function setLastPageToken($lastPageToken) { + $this->lastPageToken = $lastPageToken; + } - public function getLastPageToken() - { - return $this->lastPageToken; - } + public function getLastPageToken() { + return $this->lastPageToken; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } - public function getPrevPageToken() - { - return $this->prevPageToken; - } + public function getPrevPageToken() { + return $this->prevPageToken; + } } -class Google_Service_Orkut_CommunityPollVote extends Google_Collection -{ - public $isVotevisible; - public $kind; - public $optionIds; +class Google_Service_Orkut_CommunityPollVote extends Google_Collection { + public $isVotevisible; + public $kind; + public $optionIds; - public function setIsVotevisible($isVotevisible) - { - $this->isVotevisible = $isVotevisible; - } + public function setIsVotevisible($isVotevisible) { + $this->isVotevisible = $isVotevisible; + } - public function getIsVotevisible() - { - return $this->isVotevisible; - } + public function getIsVotevisible() { + return $this->isVotevisible; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOptionIds($optionIds) - { - $this->optionIds = $optionIds; - } + public function setOptionIds($optionIds) { + $this->optionIds = $optionIds; + } - public function getOptionIds() - { - return $this->optionIds; - } + public function getOptionIds() { + return $this->optionIds; + } } -class Google_Service_Orkut_CommunityTopic extends Google_Collection -{ - protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; - protected $authorDataType = ''; - public $body; - public $id; - public $isClosed; - public $kind; - public $lastUpdate; - public $latestMessageSnippet; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - protected $messagesType = 'Google_Service_Orkut_CommunityMessage'; - protected $messagesDataType = 'array'; - public $numberOfReplies; - public $title; +class Google_Service_Orkut_CommunityTopic extends Google_Collection { + protected $authorType = 'Google_Service_Orkut_OrkutAuthorResource'; + protected $authorDataType = ''; + public $body; + public $id; + public $isClosed; + public $kind; + public $lastUpdate; + public $latestMessageSnippet; + protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; + protected $linksDataType = 'array'; + protected $messagesType = 'Google_Service_Orkut_CommunityMessage'; + protected $messagesDataType = 'array'; + public $numberOfReplies; + public $title; - public function setAuthor(Google_Service_Orkut_OrkutAuthorResource $author) - { - $this->author = $author; - } + public function setAuthor(Google_Service_Orkut_OrkutAuthorResource $author) { + $this->author = $author; + } - public function getAuthor() - { - return $this->author; - } + public function getAuthor() { + return $this->author; + } - public function setBody($body) - { - $this->body = $body; - } + public function setBody($body) { + $this->body = $body; + } - public function getBody() - { - return $this->body; - } + public function getBody() { + return $this->body; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setIsClosed($isClosed) - { - $this->isClosed = $isClosed; - } + public function setIsClosed($isClosed) { + $this->isClosed = $isClosed; + } - public function getIsClosed() - { - return $this->isClosed; - } + public function getIsClosed() { + return $this->isClosed; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastUpdate($lastUpdate) - { - $this->lastUpdate = $lastUpdate; - } + public function setLastUpdate($lastUpdate) { + $this->lastUpdate = $lastUpdate; + } - public function getLastUpdate() - { - return $this->lastUpdate; - } + public function getLastUpdate() { + return $this->lastUpdate; + } - public function setLatestMessageSnippet($latestMessageSnippet) - { - $this->latestMessageSnippet = $latestMessageSnippet; - } + public function setLatestMessageSnippet($latestMessageSnippet) { + $this->latestMessageSnippet = $latestMessageSnippet; + } - public function getLatestMessageSnippet() - { - return $this->latestMessageSnippet; - } + public function getLatestMessageSnippet() { + return $this->latestMessageSnippet; + } - public function setLinks($links) - { - $this->links = $links; - } + public function setLinks($links) { + $this->links = $links; + } - public function getLinks() - { - return $this->links; - } + public function getLinks() { + return $this->links; + } - public function setMessages($messages) - { - $this->messages = $messages; - } + public function setMessages($messages) { + $this->messages = $messages; + } - public function getMessages() - { - return $this->messages; - } + public function getMessages() { + return $this->messages; + } - public function setNumberOfReplies($numberOfReplies) - { - $this->numberOfReplies = $numberOfReplies; - } + public function setNumberOfReplies($numberOfReplies) { + $this->numberOfReplies = $numberOfReplies; + } - public function getNumberOfReplies() - { - return $this->numberOfReplies; - } + public function getNumberOfReplies() { + return $this->numberOfReplies; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_Orkut_CommunityTopicList extends Google_Collection -{ - public $firstPageToken; - protected $itemsType = 'Google_Service_Orkut_CommunityTopic'; - protected $itemsDataType = 'array'; - public $kind; - public $lastPageToken; - public $nextPageToken; - public $prevPageToken; +class Google_Service_Orkut_CommunityTopicList extends Google_Collection { + public $firstPageToken; + protected $itemsType = 'Google_Service_Orkut_CommunityTopic'; + protected $itemsDataType = 'array'; + public $kind; + public $lastPageToken; + public $nextPageToken; + public $prevPageToken; - public function setFirstPageToken($firstPageToken) - { - $this->firstPageToken = $firstPageToken; - } + public function setFirstPageToken($firstPageToken) { + $this->firstPageToken = $firstPageToken; + } - public function getFirstPageToken() - { - return $this->firstPageToken; - } + public function getFirstPageToken() { + return $this->firstPageToken; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLastPageToken($lastPageToken) - { - $this->lastPageToken = $lastPageToken; - } + public function setLastPageToken($lastPageToken) { + $this->lastPageToken = $lastPageToken; + } - public function getLastPageToken() - { - return $this->lastPageToken; - } + public function getLastPageToken() { + return $this->lastPageToken; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } - public function getPrevPageToken() - { - return $this->prevPageToken; - } + public function getPrevPageToken() { + return $this->prevPageToken; + } } -class Google_Service_Orkut_Counters extends Google_Collection -{ - protected $itemsType = 'Google_Service_Orkut_OrkutCounterResource'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Orkut_Counters extends Google_Collection { + protected $itemsType = 'Google_Service_Orkut_OrkutCounterResource'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Orkut_OrkutActivityobjectsResource extends Google_Collection -{ - protected $communityType = 'Google_Service_Orkut_Community'; - protected $communityDataType = ''; - public $content; - public $displayName; - public $id; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - public $objectType; - protected $personType = 'Google_Service_Orkut_OrkutActivitypersonResource'; - protected $personDataType = ''; +class Google_Service_Orkut_OrkutActivityobjectsResource extends Google_Collection { + protected $communityType = 'Google_Service_Orkut_Community'; + protected $communityDataType = ''; + public $content; + public $displayName; + public $id; + protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; + protected $linksDataType = 'array'; + public $objectType; + protected $personType = 'Google_Service_Orkut_OrkutActivitypersonResource'; + protected $personDataType = ''; - public function setCommunity(Google_Service_Orkut_Community $community) - { - $this->community = $community; - } + public function setCommunity(Google_Service_Orkut_Community $community) { + $this->community = $community; + } - public function getCommunity() - { - return $this->community; - } + public function getCommunity() { + return $this->community; + } - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setLinks($links) - { - $this->links = $links; - } + public function setLinks($links) { + $this->links = $links; + } - public function getLinks() - { - return $this->links; - } + public function getLinks() { + return $this->links; + } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } + public function setObjectType($objectType) { + $this->objectType = $objectType; + } - public function getObjectType() - { - return $this->objectType; - } + public function getObjectType() { + return $this->objectType; + } - public function setPerson(Google_Service_Orkut_OrkutActivitypersonResource $person) - { - $this->person = $person; - } + public function setPerson(Google_Service_Orkut_OrkutActivitypersonResource $person) { + $this->person = $person; + } - public function getPerson() - { - return $this->person; - } + public function getPerson() { + return $this->person; + } } -class Google_Service_Orkut_OrkutActivitypersonResource extends Google_Model -{ - public $birthday; - public $gender; - public $id; - protected $imageType = 'Google_Service_Orkut_OrkutActivitypersonResourceImage'; - protected $imageDataType = ''; - protected $nameType = 'Google_Service_Orkut_OrkutActivitypersonResourceName'; - protected $nameDataType = ''; - public $url; +class Google_Service_Orkut_OrkutActivitypersonResource extends Google_Model { + public $birthday; + public $gender; + public $id; + protected $imageType = 'Google_Service_Orkut_OrkutActivitypersonResourceImage'; + protected $imageDataType = ''; + protected $nameType = 'Google_Service_Orkut_OrkutActivitypersonResourceName'; + protected $nameDataType = ''; + public $url; - public function setBirthday($birthday) - { - $this->birthday = $birthday; - } + public function setBirthday($birthday) { + $this->birthday = $birthday; + } - public function getBirthday() - { - return $this->birthday; - } + public function getBirthday() { + return $this->birthday; + } - public function setGender($gender) - { - $this->gender = $gender; - } + public function setGender($gender) { + $this->gender = $gender; + } - public function getGender() - { - return $this->gender; - } + public function getGender() { + return $this->gender; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_Orkut_OrkutActivitypersonResourceImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Orkut_OrkutActivitypersonResourceImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setName(Google_Service_Orkut_OrkutActivitypersonResourceName $name) - { - $this->name = $name; - } + public function setName(Google_Service_Orkut_OrkutActivitypersonResourceName $name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Orkut_OrkutActivitypersonResourceImage extends Google_Model -{ - public $url; +class Google_Service_Orkut_OrkutActivitypersonResourceImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Orkut_OrkutActivitypersonResourceName extends Google_Model -{ - public $familyName; - public $givenName; +class Google_Service_Orkut_OrkutActivitypersonResourceName extends Google_Model { + public $familyName; + public $givenName; - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } + public function setFamilyName($familyName) { + $this->familyName = $familyName; + } - public function getFamilyName() - { - return $this->familyName; - } + public function getFamilyName() { + return $this->familyName; + } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } + public function setGivenName($givenName) { + $this->givenName = $givenName; + } - public function getGivenName() - { - return $this->givenName; - } + public function getGivenName() { + return $this->givenName; + } } -class Google_Service_Orkut_OrkutAuthorResource extends Google_Model -{ - public $displayName; - public $id; - protected $imageType = 'Google_Service_Orkut_OrkutAuthorResourceImage'; - protected $imageDataType = ''; - public $url; +class Google_Service_Orkut_OrkutAuthorResource extends Google_Model { + public $displayName; + public $id; + protected $imageType = 'Google_Service_Orkut_OrkutAuthorResourceImage'; + protected $imageDataType = ''; + public $url; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_Orkut_OrkutAuthorResourceImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Orkut_OrkutAuthorResourceImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Orkut_OrkutAuthorResourceImage extends Google_Model -{ - public $url; +class Google_Service_Orkut_OrkutAuthorResourceImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Orkut_OrkutCommunitypolloptionResource extends Google_Model -{ - public $description; - protected $imageType = 'Google_Service_Orkut_OrkutCommunitypolloptionResourceImage'; - protected $imageDataType = ''; - public $numberOfVotes; - public $optionId; +class Google_Service_Orkut_OrkutCommunitypolloptionResource extends Google_Model { + public $description; + protected $imageType = 'Google_Service_Orkut_OrkutCommunitypolloptionResourceImage'; + protected $imageDataType = ''; + public $numberOfVotes; + public $optionId; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setImage(Google_Service_Orkut_OrkutCommunitypolloptionResourceImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Orkut_OrkutCommunitypolloptionResourceImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setNumberOfVotes($numberOfVotes) - { - $this->numberOfVotes = $numberOfVotes; - } + public function setNumberOfVotes($numberOfVotes) { + $this->numberOfVotes = $numberOfVotes; + } - public function getNumberOfVotes() - { - return $this->numberOfVotes; - } + public function getNumberOfVotes() { + return $this->numberOfVotes; + } - public function setOptionId($optionId) - { - $this->optionId = $optionId; - } + public function setOptionId($optionId) { + $this->optionId = $optionId; + } - public function getOptionId() - { - return $this->optionId; - } + public function getOptionId() { + return $this->optionId; + } } -class Google_Service_Orkut_OrkutCommunitypolloptionResourceImage extends Google_Model -{ - public $url; +class Google_Service_Orkut_OrkutCommunitypolloptionResourceImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Orkut_OrkutCounterResource extends Google_Model -{ - protected $linkType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linkDataType = ''; - public $name; - public $total; +class Google_Service_Orkut_OrkutCounterResource extends Google_Model { + protected $linkType = 'Google_Service_Orkut_OrkutLinkResource'; + protected $linkDataType = ''; + public $name; + public $total; - public function setLink(Google_Service_Orkut_OrkutLinkResource $link) - { - $this->link = $link; - } + public function setLink(Google_Service_Orkut_OrkutLinkResource $link) { + $this->link = $link; + } - public function getLink() - { - return $this->link; - } + public function getLink() { + return $this->link; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setTotal($total) - { - $this->total = $total; - } + public function setTotal($total) { + $this->total = $total; + } - public function getTotal() - { - return $this->total; - } + public function getTotal() { + return $this->total; + } } -class Google_Service_Orkut_OrkutLinkResource extends Google_Model -{ - public $href; - public $rel; - public $title; - public $type; +class Google_Service_Orkut_OrkutLinkResource extends Google_Model { + public $href; + public $rel; + public $title; + public $type; - public function setHref($href) - { - $this->href = $href; - } + public function setHref($href) { + $this->href = $href; + } - public function getHref() - { - return $this->href; - } + public function getHref() { + return $this->href; + } - public function setRel($rel) - { - $this->rel = $rel; - } + public function setRel($rel) { + $this->rel = $rel; + } - public function getRel() - { - return $this->rel; - } + public function getRel() { + return $this->rel; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Orkut_Visibility extends Google_Collection -{ - public $kind; - protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; - protected $linksDataType = 'array'; - public $visibility; +class Google_Service_Orkut_Visibility extends Google_Collection { + public $kind; + protected $linksType = 'Google_Service_Orkut_OrkutLinkResource'; + protected $linksDataType = 'array'; + public $visibility; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLinks($links) - { - $this->links = $links; - } + public function setLinks($links) { + $this->links = $links; + } - public function getLinks() - { - return $this->links; - } + public function getLinks() { + return $this->links; + } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } + public function setVisibility($visibility) { + $this->visibility = $visibility; + } - public function getVisibility() - { - return $this->visibility; - } + public function getVisibility() { + return $this->visibility; + } } diff --git a/oauth/Google/Service/Pagespeedonline.php b/oauth/Google/Service/Pagespeedonline.php index e1632d7..7c2cd0d 100644 --- a/oauth/Google/Service/Pagespeedonline.php +++ b/oauth/Google/Service/Pagespeedonline.php @@ -29,67 +29,65 @@ * * @author Google, Inc. */ -class Google_Service_Pagespeedonline extends Google_Service -{ +class Google_Service_Pagespeedonline extends Google_Service { - public $pagespeedapi; - + public $pagespeedapi; - /** - * Constructs the internal representation of the Pagespeedonline service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'pagespeedonline/v1/'; - $this->version = 'v1'; - $this->serviceName = 'pagespeedonline'; - $this->pagespeedapi = new Google_Service_Pagespeedonline_Pagespeedapi_Resource( - $this, - $this->serviceName, - 'pagespeedapi', - array( - 'methods' => array( - 'runpagespeed' => array( - 'path' => 'runPagespeed', - 'httpMethod' => 'GET', - 'parameters' => array( - 'url' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'screenshot' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'rule' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'strategy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filter_third_party_resources' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Pagespeedonline service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'pagespeedonline/v1/'; + $this->version = 'v1'; + $this->serviceName = 'pagespeedonline'; + + $this->pagespeedapi = new Google_Service_Pagespeedonline_Pagespeedapi_Resource( + $this, + $this->serviceName, + 'pagespeedapi', + array( + 'methods' => array( + 'runpagespeed' => array( + 'path' => 'runPagespeed', + 'httpMethod' => 'GET', + 'parameters' => array( + 'url' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'screenshot' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'rule' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'strategy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filter_third_party_resources' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + } } @@ -101,661 +99,542 @@ class Google_Service_Pagespeedonline extends Google_Service * $pagespeedapi = $pagespeedonlineService->pagespeedapi; * */ -class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Service_Resource -{ +class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Service_Resource { - /** - * Runs Page Speed analysis on the page at the specified URL, and returns a Page - * Speed score, a list of suggestions to make that page faster, and other - * information. (pagespeedapi.runpagespeed) - * - * @param string $url - * The URL to fetch and analyze - * @param array $optParams Optional parameters. - * - * @opt_param bool screenshot - * Indicates if binary data containing a screenshot should be included - * @opt_param string locale - * The locale used to localize formatted results - * @opt_param string rule - * A Page Speed rule to run; if none are given, all rules are run - * @opt_param string strategy - * The analysis strategy to use - * @opt_param bool filter_third_party_resources - * Indicates if third party resources should be filtered out before PageSpeed analysis. - * @return Google_Service_Pagespeedonline_Result - */ - public function runpagespeed($url, $optParams = array()) - { - $params = array('url' => $url); - $params = array_merge($params, $optParams); - return $this->call('runpagespeed', array($params), "Google_Service_Pagespeedonline_Result"); - } + /** + * Runs Page Speed analysis on the page at the specified URL, and returns a Page + * Speed score, a list of suggestions to make that page faster, and other + * information. (pagespeedapi.runpagespeed) + * + * @param string $url + * The URL to fetch and analyze + * @param array $optParams Optional parameters. + * + * @opt_param bool screenshot + * Indicates if binary data containing a screenshot should be included + * @opt_param string locale + * The locale used to localize formatted results + * @opt_param string rule + * A Page Speed rule to run; if none are given, all rules are run + * @opt_param string strategy + * The analysis strategy to use + * @opt_param bool filter_third_party_resources + * Indicates if third party resources should be filtered out before PageSpeed analysis. + * @return Google_Service_Pagespeedonline_Result + */ + public function runpagespeed($url, $optParams = array()) { + $params = array('url' => $url); + $params = array_merge($params, $optParams); + return $this->call('runpagespeed', array($params), "Google_Service_Pagespeedonline_Result"); + } } +class Google_Service_Pagespeedonline_Result extends Google_Collection { + protected $formattedResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResults'; + protected $formattedResultsDataType = ''; + public $id; + public $invalidRules; + public $kind; + protected $pageStatsType = 'Google_Service_Pagespeedonline_ResultPageStats'; + protected $pageStatsDataType = ''; + public $responseCode; + public $score; + protected $screenshotType = 'Google_Service_Pagespeedonline_ResultScreenshot'; + protected $screenshotDataType = ''; + public $title; + protected $versionType = 'Google_Service_Pagespeedonline_ResultVersion'; + protected $versionDataType = ''; + public function setFormattedResults(Google_Service_Pagespeedonline_ResultFormattedResults $formattedResults) { + $this->formattedResults = $formattedResults; + } -class Google_Service_Pagespeedonline_Result extends Google_Collection -{ - protected $formattedResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResults'; - protected $formattedResultsDataType = ''; - public $id; - public $invalidRules; - public $kind; - protected $pageStatsType = 'Google_Service_Pagespeedonline_ResultPageStats'; - protected $pageStatsDataType = ''; - public $responseCode; - public $score; - protected $screenshotType = 'Google_Service_Pagespeedonline_ResultScreenshot'; - protected $screenshotDataType = ''; - public $title; - protected $versionType = 'Google_Service_Pagespeedonline_ResultVersion'; - protected $versionDataType = ''; + public function getFormattedResults() { + return $this->formattedResults; + } - public function setFormattedResults(Google_Service_Pagespeedonline_ResultFormattedResults $formattedResults) - { - $this->formattedResults = $formattedResults; - } + public function setId($id) { + $this->id = $id; + } - public function getFormattedResults() - { - return $this->formattedResults; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setInvalidRules($invalidRules) { + $this->invalidRules = $invalidRules; + } - public function getId() - { - return $this->id; - } + public function getInvalidRules() { + return $this->invalidRules; + } - public function setInvalidRules($invalidRules) - { - $this->invalidRules = $invalidRules; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getInvalidRules() - { - return $this->invalidRules; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setPageStats(Google_Service_Pagespeedonline_ResultPageStats $pageStats) { + $this->pageStats = $pageStats; + } - public function getKind() - { - return $this->kind; - } + public function getPageStats() { + return $this->pageStats; + } - public function setPageStats(Google_Service_Pagespeedonline_ResultPageStats $pageStats) - { - $this->pageStats = $pageStats; - } + public function setResponseCode($responseCode) { + $this->responseCode = $responseCode; + } - public function getPageStats() - { - return $this->pageStats; - } + public function getResponseCode() { + return $this->responseCode; + } - public function setResponseCode($responseCode) - { - $this->responseCode = $responseCode; - } + public function setScore($score) { + $this->score = $score; + } - public function getResponseCode() - { - return $this->responseCode; - } + public function getScore() { + return $this->score; + } - public function setScore($score) - { - $this->score = $score; - } + public function setScreenshot(Google_Service_Pagespeedonline_ResultScreenshot $screenshot) { + $this->screenshot = $screenshot; + } - public function getScore() - { - return $this->score; - } + public function getScreenshot() { + return $this->screenshot; + } - public function setScreenshot(Google_Service_Pagespeedonline_ResultScreenshot $screenshot) - { - $this->screenshot = $screenshot; - } + public function setTitle($title) { + $this->title = $title; + } - public function getScreenshot() - { - return $this->screenshot; - } + public function getTitle() { + return $this->title; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setVersion(Google_Service_Pagespeedonline_ResultVersion $version) { + $this->version = $version; + } - public function getTitle() - { - return $this->title; - } - - public function setVersion(Google_Service_Pagespeedonline_ResultVersion $version) - { - $this->version = $version; - } - - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Pagespeedonline_ResultFormattedResults extends Google_Model -{ - public $locale; - protected $ruleResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement'; - protected $ruleResultsDataType = 'map'; +class Google_Service_Pagespeedonline_ResultFormattedResults extends Google_Model { + public $locale; + protected $ruleResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement'; + protected $ruleResultsDataType = 'map'; - public function setLocale($locale) - { - $this->locale = $locale; - } + public function setLocale($locale) { + $this->locale = $locale; + } - public function getLocale() - { - return $this->locale; - } + public function getLocale() { + return $this->locale; + } - public function setRuleResults($ruleResults) - { - $this->ruleResults = $ruleResults; - } + public function setRuleResults($ruleResults) { + $this->ruleResults = $ruleResults; + } - public function getRuleResults() - { - return $this->ruleResults; - } + public function getRuleResults() { + return $this->ruleResults; + } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResults extends Google_Model -{ +class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResults extends Google_Model { } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection -{ - public $localizedRuleName; - public $ruleImpact; - protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks'; - protected $urlBlocksDataType = 'array'; +class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection { + public $localizedRuleName; + public $ruleImpact; + protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks'; + protected $urlBlocksDataType = 'array'; - public function setLocalizedRuleName($localizedRuleName) - { - $this->localizedRuleName = $localizedRuleName; - } + public function setLocalizedRuleName($localizedRuleName) { + $this->localizedRuleName = $localizedRuleName; + } - public function getLocalizedRuleName() - { - return $this->localizedRuleName; - } + public function getLocalizedRuleName() { + return $this->localizedRuleName; + } - public function setRuleImpact($ruleImpact) - { - $this->ruleImpact = $ruleImpact; - } + public function setRuleImpact($ruleImpact) { + $this->ruleImpact = $ruleImpact; + } - public function getRuleImpact() - { - return $this->ruleImpact; - } + public function getRuleImpact() { + return $this->ruleImpact; + } - public function setUrlBlocks($urlBlocks) - { - $this->urlBlocks = $urlBlocks; - } + public function setUrlBlocks($urlBlocks) { + $this->urlBlocks = $urlBlocks; + } - public function getUrlBlocks() - { - return $this->urlBlocks; - } + public function getUrlBlocks() { + return $this->urlBlocks; + } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks extends Google_Collection -{ - protected $headerType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader'; - protected $headerDataType = ''; - protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls'; - protected $urlsDataType = 'array'; +class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks extends Google_Collection { + protected $headerType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader'; + protected $headerDataType = ''; + protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls'; + protected $urlsDataType = 'array'; - public function setHeader(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader $header) - { - $this->header = $header; - } + public function setHeader(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader $header) { + $this->header = $header; + } - public function getHeader() - { - return $this->header; - } + public function getHeader() { + return $this->header; + } - public function setUrls($urls) - { - $this->urls = $urls; - } + public function setUrls($urls) { + $this->urls = $urls; + } - public function getUrls() - { - return $this->urls; - } + public function getUrls() { + return $this->urls; + } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader extends Google_Collection -{ - protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs'; - protected $argsDataType = 'array'; - public $format; +class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader extends Google_Collection { + protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs'; + protected $argsDataType = 'array'; + public $format; - public function setArgs($args) - { - $this->args = $args; - } + public function setArgs($args) { + $this->args = $args; + } - public function getArgs() - { - return $this->args; - } + public function getArgs() { + return $this->args; + } - public function setFormat($format) - { - $this->format = $format; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs extends Google_Model -{ - public $type; - public $value; +class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs extends Google_Model { + public $type; + public $value; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection -{ - protected $detailsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails'; - protected $detailsDataType = 'array'; - protected $resultType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult'; - protected $resultDataType = ''; +class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection { + protected $detailsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails'; + protected $detailsDataType = 'array'; + protected $resultType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult'; + protected $resultDataType = ''; - public function setDetails($details) - { - $this->details = $details; - } + public function setDetails($details) { + $this->details = $details; + } - public function getDetails() - { - return $this->details; - } + public function getDetails() { + return $this->details; + } - public function setResult(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult $result) - { - $this->result = $result; - } + public function setResult(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult $result) { + $this->result = $result; + } - public function getResult() - { - return $this->result; - } + public function getResult() { + return $this->result; + } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails extends Google_Collection -{ - protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs'; - protected $argsDataType = 'array'; - public $format; +class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails extends Google_Collection { + protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs'; + protected $argsDataType = 'array'; + public $format; - public function setArgs($args) - { - $this->args = $args; - } + public function setArgs($args) { + $this->args = $args; + } - public function getArgs() - { - return $this->args; - } + public function getArgs() { + return $this->args; + } - public function setFormat($format) - { - $this->format = $format; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs extends Google_Model -{ - public $type; - public $value; +class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs extends Google_Model { + public $type; + public $value; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult extends Google_Collection -{ - protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs'; - protected $argsDataType = 'array'; - public $format; +class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult extends Google_Collection { + protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs'; + protected $argsDataType = 'array'; + public $format; - public function setArgs($args) - { - $this->args = $args; - } + public function setArgs($args) { + $this->args = $args; + } - public function getArgs() - { - return $this->args; - } + public function getArgs() { + return $this->args; + } - public function setFormat($format) - { - $this->format = $format; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs extends Google_Model -{ - public $type; - public $value; +class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs extends Google_Model { + public $type; + public $value; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model -{ - public $cssResponseBytes; - public $flashResponseBytes; - public $htmlResponseBytes; - public $imageResponseBytes; - public $javascriptResponseBytes; - public $numberCssResources; - public $numberHosts; - public $numberJsResources; - public $numberResources; - public $numberStaticResources; - public $otherResponseBytes; - public $textResponseBytes; - public $totalRequestBytes; +class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model { + public $cssResponseBytes; + public $flashResponseBytes; + public $htmlResponseBytes; + public $imageResponseBytes; + public $javascriptResponseBytes; + public $numberCssResources; + public $numberHosts; + public $numberJsResources; + public $numberResources; + public $numberStaticResources; + public $otherResponseBytes; + public $textResponseBytes; + public $totalRequestBytes; - public function setCssResponseBytes($cssResponseBytes) - { - $this->cssResponseBytes = $cssResponseBytes; - } + public function setCssResponseBytes($cssResponseBytes) { + $this->cssResponseBytes = $cssResponseBytes; + } - public function getCssResponseBytes() - { - return $this->cssResponseBytes; - } + public function getCssResponseBytes() { + return $this->cssResponseBytes; + } - public function setFlashResponseBytes($flashResponseBytes) - { - $this->flashResponseBytes = $flashResponseBytes; - } + public function setFlashResponseBytes($flashResponseBytes) { + $this->flashResponseBytes = $flashResponseBytes; + } - public function getFlashResponseBytes() - { - return $this->flashResponseBytes; - } + public function getFlashResponseBytes() { + return $this->flashResponseBytes; + } - public function setHtmlResponseBytes($htmlResponseBytes) - { - $this->htmlResponseBytes = $htmlResponseBytes; - } + public function setHtmlResponseBytes($htmlResponseBytes) { + $this->htmlResponseBytes = $htmlResponseBytes; + } - public function getHtmlResponseBytes() - { - return $this->htmlResponseBytes; - } + public function getHtmlResponseBytes() { + return $this->htmlResponseBytes; + } - public function setImageResponseBytes($imageResponseBytes) - { - $this->imageResponseBytes = $imageResponseBytes; - } + public function setImageResponseBytes($imageResponseBytes) { + $this->imageResponseBytes = $imageResponseBytes; + } - public function getImageResponseBytes() - { - return $this->imageResponseBytes; - } + public function getImageResponseBytes() { + return $this->imageResponseBytes; + } - public function setJavascriptResponseBytes($javascriptResponseBytes) - { - $this->javascriptResponseBytes = $javascriptResponseBytes; - } + public function setJavascriptResponseBytes($javascriptResponseBytes) { + $this->javascriptResponseBytes = $javascriptResponseBytes; + } - public function getJavascriptResponseBytes() - { - return $this->javascriptResponseBytes; - } + public function getJavascriptResponseBytes() { + return $this->javascriptResponseBytes; + } - public function setNumberCssResources($numberCssResources) - { - $this->numberCssResources = $numberCssResources; - } + public function setNumberCssResources($numberCssResources) { + $this->numberCssResources = $numberCssResources; + } - public function getNumberCssResources() - { - return $this->numberCssResources; - } + public function getNumberCssResources() { + return $this->numberCssResources; + } - public function setNumberHosts($numberHosts) - { - $this->numberHosts = $numberHosts; - } + public function setNumberHosts($numberHosts) { + $this->numberHosts = $numberHosts; + } - public function getNumberHosts() - { - return $this->numberHosts; - } + public function getNumberHosts() { + return $this->numberHosts; + } - public function setNumberJsResources($numberJsResources) - { - $this->numberJsResources = $numberJsResources; - } + public function setNumberJsResources($numberJsResources) { + $this->numberJsResources = $numberJsResources; + } - public function getNumberJsResources() - { - return $this->numberJsResources; - } + public function getNumberJsResources() { + return $this->numberJsResources; + } - public function setNumberResources($numberResources) - { - $this->numberResources = $numberResources; - } + public function setNumberResources($numberResources) { + $this->numberResources = $numberResources; + } - public function getNumberResources() - { - return $this->numberResources; - } + public function getNumberResources() { + return $this->numberResources; + } - public function setNumberStaticResources($numberStaticResources) - { - $this->numberStaticResources = $numberStaticResources; - } + public function setNumberStaticResources($numberStaticResources) { + $this->numberStaticResources = $numberStaticResources; + } - public function getNumberStaticResources() - { - return $this->numberStaticResources; - } + public function getNumberStaticResources() { + return $this->numberStaticResources; + } - public function setOtherResponseBytes($otherResponseBytes) - { - $this->otherResponseBytes = $otherResponseBytes; - } + public function setOtherResponseBytes($otherResponseBytes) { + $this->otherResponseBytes = $otherResponseBytes; + } - public function getOtherResponseBytes() - { - return $this->otherResponseBytes; - } + public function getOtherResponseBytes() { + return $this->otherResponseBytes; + } - public function setTextResponseBytes($textResponseBytes) - { - $this->textResponseBytes = $textResponseBytes; - } + public function setTextResponseBytes($textResponseBytes) { + $this->textResponseBytes = $textResponseBytes; + } - public function getTextResponseBytes() - { - return $this->textResponseBytes; - } + public function getTextResponseBytes() { + return $this->textResponseBytes; + } - public function setTotalRequestBytes($totalRequestBytes) - { - $this->totalRequestBytes = $totalRequestBytes; - } + public function setTotalRequestBytes($totalRequestBytes) { + $this->totalRequestBytes = $totalRequestBytes; + } - public function getTotalRequestBytes() - { - return $this->totalRequestBytes; - } + public function getTotalRequestBytes() { + return $this->totalRequestBytes; + } } -class Google_Service_Pagespeedonline_ResultScreenshot extends Google_Model -{ - public $data; - public $height; - public $mimeType; - public $width; +class Google_Service_Pagespeedonline_ResultScreenshot extends Google_Model { + public $data; + public $height; + public $mimeType; + public $width; - public function setData($data) - { - $this->data = $data; - } + public function setData($data) { + $this->data = $data; + } - public function getData() - { - return $this->data; - } + public function getData() { + return $this->data; + } - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } + public function setMimeType($mimeType) { + $this->mimeType = $mimeType; + } - public function getMimeType() - { - return $this->mimeType; - } + public function getMimeType() { + return $this->mimeType; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_Pagespeedonline_ResultVersion extends Google_Model -{ - public $major; - public $minor; +class Google_Service_Pagespeedonline_ResultVersion extends Google_Model { + public $major; + public $minor; - public function setMajor($major) - { - $this->major = $major; - } + public function setMajor($major) { + $this->major = $major; + } - public function getMajor() - { - return $this->major; - } + public function getMajor() { + return $this->major; + } - public function setMinor($minor) - { - $this->minor = $minor; - } + public function setMinor($minor) { + $this->minor = $minor; + } - public function getMinor() - { - return $this->minor; - } + public function getMinor() { + return $this->minor; + } } diff --git a/oauth/Google/Service/Plus.php b/oauth/Google/Service/Plus.php index 2f8721d..951e2d2 100644 --- a/oauth/Google/Service/Plus.php +++ b/oauth/Google/Service/Plus.php @@ -29,309 +29,307 @@ * * @author Google, Inc. */ -class Google_Service_Plus extends Google_Service -{ - /** Know your basic profile info and list of people in your circles.. */ - const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; - /** Know who you are on Google. */ - const PLUS_ME = "https://www.googleapis.com/auth/plus.me"; - /** View your email address. */ - const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; - /** View your basic profile info. */ - const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; +class Google_Service_Plus extends Google_Service { + /** Know your basic profile info and list of people in your circles.. */ + const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; + /** Know who you are on Google. */ + const PLUS_ME = "https://www.googleapis.com/auth/plus.me"; + /** View your email address. */ + const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; + /** View your basic profile info. */ + const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; - public $activities; - public $comments; - public $moments; - public $people; - + public $activities; + public $comments; + public $moments; + public $people; - /** - * Constructs the internal representation of the Plus service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'plus/v1/'; - $this->version = 'v1'; - $this->serviceName = 'plus'; - $this->activities = new Google_Service_Plus_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'get' => array( - 'path' => 'activities/{activityId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/activities/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'search' => array( - 'path' => 'activities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'query' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_Plus_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'get' => array( - 'path' => 'comments/{commentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'activities/{activityId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->moments = new Google_Service_Plus_Moments_Resource( - $this, - $this->serviceName, - 'moments', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'people/{userId}/moments/{collection}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'debug' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/moments/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'targetUrl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'remove' => array( - 'path' => 'moments/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->people = new Google_Service_Plus_People_Resource( - $this, - $this->serviceName, - 'people', - array( - 'methods' => array( - 'get' => array( - 'path' => 'people/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/people/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'listByActivity' => array( - 'path' => 'activities/{activityId}/people/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'search' => array( - 'path' => 'people', - 'httpMethod' => 'GET', - 'parameters' => array( - 'query' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'language' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Plus service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'plus/v1/'; + $this->version = 'v1'; + $this->serviceName = 'plus'; + + $this->activities = new Google_Service_Plus_Activities_Resource( + $this, + $this->serviceName, + 'activities', + array( + 'methods' => array( + 'get' => array( + 'path' => 'activities/{activityId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'people/{userId}/activities/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'search' => array( + 'path' => 'activities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'query' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->comments = new Google_Service_Plus_Comments_Resource( + $this, + $this->serviceName, + 'comments', + array( + 'methods' => array( + 'get' => array( + 'path' => 'comments/{commentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'activities/{activityId}/comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->moments = new Google_Service_Plus_Moments_Resource( + $this, + $this->serviceName, + 'moments', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'people/{userId}/moments/{collection}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'debug' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => 'people/{userId}/moments/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'targetUrl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'remove' => array( + 'path' => 'moments/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->people = new Google_Service_Plus_People_Resource( + $this, + $this->serviceName, + 'people', + array( + 'methods' => array( + 'get' => array( + 'path' => 'people/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'people/{userId}/people/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'listByActivity' => array( + 'path' => 'activities/{activityId}/people/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'search' => array( + 'path' => 'people', + 'httpMethod' => 'GET', + 'parameters' => array( + 'query' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -343,74 +341,72 @@ class Google_Service_Plus extends Google_Service * $activities = $plusService->activities; * */ -class Google_Service_Plus_Activities_Resource extends Google_Service_Resource -{ +class Google_Service_Plus_Activities_Resource extends Google_Service_Resource { - /** - * Get an activity. (activities.get) - * - * @param string $activityId - * The ID of the activity to get. - * @param array $optParams Optional parameters. - * @return Google_Service_Plus_Activity - */ - public function get($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Plus_Activity"); - } - /** - * List all of the activities in the specified collection for a particular user. - * (activities.listActivities) - * - * @param string $userId - * The ID of the user to get activities for. The special value "me" can be used to indicate the - * authenticated user. - * @param string $collection - * The collection of activities to list. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of activities to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @return Google_Service_Plus_ActivityFeed - */ - public function listActivities($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Plus_ActivityFeed"); - } - /** - * Search public activities. (activities.search) - * - * @param string $query - * Full-text search query string. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * Specifies how to order search results. - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. This - * token can be of any length. - * @opt_param string maxResults - * The maximum number of activities to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @opt_param string language - * Specify the preferred language to search with. See search language codes for available values. - * @return Google_Service_Plus_ActivityFeed - */ - public function search($query, $optParams = array()) - { - $params = array('query' => $query); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Plus_ActivityFeed"); - } + /** + * Get an activity. (activities.get) + * + * @param string $activityId + * The ID of the activity to get. + * @param array $optParams Optional parameters. + * @return Google_Service_Plus_Activity + */ + public function get($activityId, $optParams = array()) { + $params = array('activityId' => $activityId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Plus_Activity"); + } + + /** + * List all of the activities in the specified collection for a particular user. + * (activities.listActivities) + * + * @param string $userId + * The ID of the user to get activities for. The special value "me" can be used to indicate the + * authenticated user. + * @param string $collection + * The collection of activities to list. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults + * The maximum number of activities to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @return Google_Service_Plus_ActivityFeed + */ + public function listActivities($userId, $collection, $optParams = array()) { + $params = array('userId' => $userId, 'collection' => $collection); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Plus_ActivityFeed"); + } + + /** + * Search public activities. (activities.search) + * + * @param string $query + * Full-text search query string. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * Specifies how to order search results. + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. This + * token can be of any length. + * @opt_param string maxResults + * The maximum number of activities to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @opt_param string language + * Specify the preferred language to search with. See search language codes for available values. + * @return Google_Service_Plus_ActivityFeed + */ + public function search($query, $optParams = array()) { + $params = array('query' => $query); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Plus_ActivityFeed"); + } } /** @@ -421,46 +417,44 @@ class Google_Service_Plus_Activities_Resource extends Google_Service_Resource * $comments = $plusService->comments; * */ -class Google_Service_Plus_Comments_Resource extends Google_Service_Resource -{ +class Google_Service_Plus_Comments_Resource extends Google_Service_Resource { - /** - * Get a comment. (comments.get) - * - * @param string $commentId - * The ID of the comment to get. - * @param array $optParams Optional parameters. - * @return Google_Service_Plus_Comment - */ - public function get($commentId, $optParams = array()) - { - $params = array('commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Plus_Comment"); - } - /** - * List all of the comments for an activity. (comments.listComments) - * - * @param string $activityId - * The ID of the activity to get comments for. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string sortOrder - * The order in which to sort the list of comments. - * @opt_param string maxResults - * The maximum number of comments to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @return Google_Service_Plus_CommentFeed - */ - public function listComments($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Plus_CommentFeed"); - } + /** + * Get a comment. (comments.get) + * + * @param string $commentId + * The ID of the comment to get. + * @param array $optParams Optional parameters. + * @return Google_Service_Plus_Comment + */ + public function get($commentId, $optParams = array()) { + $params = array('commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Plus_Comment"); + } + + /** + * List all of the comments for an activity. (comments.listComments) + * + * @param string $activityId + * The ID of the activity to get comments for. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string sortOrder + * The order in which to sort the list of comments. + * @opt_param string maxResults + * The maximum number of comments to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @return Google_Service_Plus_CommentFeed + */ + public function listComments($activityId, $optParams = array()) { + $params = array('activityId' => $activityId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Plus_CommentFeed"); + } } /** @@ -471,72 +465,70 @@ class Google_Service_Plus_Comments_Resource extends Google_Service_Resource * $moments = $plusService->moments; * */ -class Google_Service_Plus_Moments_Resource extends Google_Service_Resource -{ +class Google_Service_Plus_Moments_Resource extends Google_Service_Resource { - /** - * Record a moment representing a user's action such as making a purchase or - * commenting on a blog. (moments.insert) - * - * @param string $userId - * The ID of the user to record actions for. The only valid values are "me" and the ID of the - * authenticated user. - * @param string $collection - * The collection to which to write moments. - * @param Google_Moment $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool debug - * Return the moment as written. Should be used only for debugging. - * @return Google_Service_Plus_Moment - */ - public function insert($userId, $collection, Google_Service_Plus_Moment $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Plus_Moment"); - } - /** - * List all of the moments for a particular user. (moments.listMoments) - * - * @param string $userId - * The ID of the user to get moments for. The special value "me" can be used to indicate the - * authenticated user. - * @param string $collection - * The collection of moments to list. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults - * The maximum number of moments to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string targetUrl - * Only moments containing this targetUrl will be returned. - * @opt_param string type - * Only moments of this type will be returned. - * @return Google_Service_Plus_MomentsFeed - */ - public function listMoments($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Plus_MomentsFeed"); - } - /** - * Delete a moment. (moments.remove) - * - * @param string $id - * The ID of the moment to delete. - * @param array $optParams Optional parameters. - */ - public function remove($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('remove', array($params)); - } + /** + * Record a moment representing a user's action such as making a purchase or + * commenting on a blog. (moments.insert) + * + * @param string $userId + * The ID of the user to record actions for. The only valid values are "me" and the ID of the + * authenticated user. + * @param string $collection + * The collection to which to write moments. + * @param Google_Moment $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool debug + * Return the moment as written. Should be used only for debugging. + * @return Google_Service_Plus_Moment + */ + public function insert($userId, $collection, Google_Service_Plus_Moment $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'collection' => $collection, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Plus_Moment"); + } + + /** + * List all of the moments for a particular user. (moments.listMoments) + * + * @param string $userId + * The ID of the user to get moments for. The special value "me" can be used to indicate the + * authenticated user. + * @param string $collection + * The collection of moments to list. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults + * The maximum number of moments to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string targetUrl + * Only moments containing this targetUrl will be returned. + * @opt_param string type + * Only moments of this type will be returned. + * @return Google_Service_Plus_MomentsFeed + */ + public function listMoments($userId, $collection, $optParams = array()) { + $params = array('userId' => $userId, 'collection' => $collection); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Plus_MomentsFeed"); + } + + /** + * Delete a moment. (moments.remove) + * + * @param string $id + * The ID of the moment to delete. + * @param array $optParams Optional parameters. + */ + public function remove($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('remove', array($params)); + } } /** @@ -547,3309 +539,2720 @@ class Google_Service_Plus_Moments_Resource extends Google_Service_Resource * $people = $plusService->people; * */ -class Google_Service_Plus_People_Resource extends Google_Service_Resource -{ +class Google_Service_Plus_People_Resource extends Google_Service_Resource { - /** - * Get a person's profile. If your app uses scope - * https://www.googleapis.com/auth/plus.login, this method is guaranteed to - * return ageRange and language. (people.get) - * - * @param string $userId - * The ID of the person to get the profile for. The special value "me" can be used to indicate the - * authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Plus_Person - */ - public function get($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Plus_Person"); - } - /** - * List all of the people in the specified collection. (people.listPeople) - * - * @param string $userId - * Get the collection of people for the person identified. Use "me" to indicate the authenticated - * user. - * @param string $collection - * The collection of people to list. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * The order to return people in. - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @return Google_Service_Plus_PeopleFeed - */ - public function listPeople($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Plus_PeopleFeed"); - } - /** - * List all of the people in the specified collection for a particular activity. - * (people.listByActivity) - * - * @param string $activityId - * The ID of the activity to get the list of people for. - * @param string $collection - * The collection of people to list. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @return Google_Service_Plus_PeopleFeed - */ - public function listByActivity($activityId, $collection, $optParams = array()) - { - $params = array('activityId' => $activityId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('listByActivity', array($params), "Google_Service_Plus_PeopleFeed"); - } - /** - * Search all public profiles. (people.search) - * - * @param string $query - * Specify a query string for full text search of public text in all profiles. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. This - * token can be of any length. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @opt_param string language - * Specify the preferred language to search with. See search language codes for available values. - * @return Google_Service_Plus_PeopleFeed - */ - public function search($query, $optParams = array()) - { - $params = array('query' => $query); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Plus_PeopleFeed"); - } + /** + * Get a person's profile. If your app uses scope + * https://www.googleapis.com/auth/plus.login, this method is guaranteed to + * return ageRange and language. (people.get) + * + * @param string $userId + * The ID of the person to get the profile for. The special value "me" can be used to indicate the + * authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Plus_Person + */ + public function get($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Plus_Person"); + } + + /** + * List all of the people in the specified collection. (people.listPeople) + * + * @param string $userId + * Get the collection of people for the person identified. Use "me" to indicate the authenticated + * user. + * @param string $collection + * The collection of people to list. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * The order to return people in. + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults + * The maximum number of people to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @return Google_Service_Plus_PeopleFeed + */ + public function listPeople($userId, $collection, $optParams = array()) { + $params = array('userId' => $userId, 'collection' => $collection); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Plus_PeopleFeed"); + } + + /** + * List all of the people in the specified collection for a particular activity. + * (people.listByActivity) + * + * @param string $activityId + * The ID of the activity to get the list of people for. + * @param string $collection + * The collection of people to list. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults + * The maximum number of people to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @return Google_Service_Plus_PeopleFeed + */ + public function listByActivity($activityId, $collection, $optParams = array()) { + $params = array('activityId' => $activityId, 'collection' => $collection); + $params = array_merge($params, $optParams); + return $this->call('listByActivity', array($params), "Google_Service_Plus_PeopleFeed"); + } + + /** + * Search all public profiles. (people.search) + * + * @param string $query + * Specify a query string for full text search of public text in all profiles. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. This + * token can be of any length. + * @opt_param string maxResults + * The maximum number of people to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @opt_param string language + * Specify the preferred language to search with. See search language codes for available values. + * @return Google_Service_Plus_PeopleFeed + */ + public function search($query, $optParams = array()) { + $params = array('query' => $query); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_Plus_PeopleFeed"); + } } +class Google_Service_Plus_Acl extends Google_Collection { + public $description; + protected $itemsType = 'Google_Service_Plus_PlusAclentryResource'; + protected $itemsDataType = 'array'; + public $kind; + public function setDescription($description) { + $this->description = $description; + } -class Google_Service_Plus_Acl extends Google_Collection -{ - public $description; - protected $itemsType = 'Google_Service_Plus_PlusAclentryResource'; - protected $itemsDataType = 'array'; - public $kind; + public function getDescription() { + return $this->description; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setItems($items) { + $this->items = $items; + } - public function getDescription() - { - return $this->description; - } + public function getItems() { + return $this->items; + } - public function setItems($items) - { - $this->items = $items; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Plus_Activity extends Google_Model -{ - protected $accessType = 'Google_Service_Plus_Acl'; - protected $accessDataType = ''; - protected $actorType = 'Google_Service_Plus_ActivityActor'; - protected $actorDataType = ''; - public $address; - public $annotation; - public $crosspostSource; - public $etag; - public $geocode; - public $id; - public $kind; - protected $locationType = 'Google_Service_Plus_Place'; - protected $locationDataType = ''; - protected $objectType = 'Google_Service_Plus_ActivityObject'; - protected $objectDataType = ''; - public $placeId; - public $placeName; - protected $providerType = 'Google_Service_Plus_ActivityProvider'; - protected $providerDataType = ''; - public $published; - public $radius; - public $title; - public $updated; - public $url; - public $verb; +class Google_Service_Plus_Activity extends Google_Model { + protected $accessType = 'Google_Service_Plus_Acl'; + protected $accessDataType = ''; + protected $actorType = 'Google_Service_Plus_ActivityActor'; + protected $actorDataType = ''; + public $address; + public $annotation; + public $crosspostSource; + public $etag; + public $geocode; + public $id; + public $kind; + protected $locationType = 'Google_Service_Plus_Place'; + protected $locationDataType = ''; + protected $objectType = 'Google_Service_Plus_ActivityObject'; + protected $objectDataType = ''; + public $placeId; + public $placeName; + protected $providerType = 'Google_Service_Plus_ActivityProvider'; + protected $providerDataType = ''; + public $published; + public $radius; + public $title; + public $updated; + public $url; + public $verb; - public function setAccess(Google_Service_Plus_Acl $access) - { - $this->access = $access; - } + public function setAccess(Google_Service_Plus_Acl $access) { + $this->access = $access; + } - public function getAccess() - { - return $this->access; - } + public function getAccess() { + return $this->access; + } - public function setActor(Google_Service_Plus_ActivityActor $actor) - { - $this->actor = $actor; - } + public function setActor(Google_Service_Plus_ActivityActor $actor) { + $this->actor = $actor; + } - public function getActor() - { - return $this->actor; - } + public function getActor() { + return $this->actor; + } - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setAnnotation($annotation) - { - $this->annotation = $annotation; - } + public function setAnnotation($annotation) { + $this->annotation = $annotation; + } - public function getAnnotation() - { - return $this->annotation; - } + public function getAnnotation() { + return $this->annotation; + } - public function setCrosspostSource($crosspostSource) - { - $this->crosspostSource = $crosspostSource; - } + public function setCrosspostSource($crosspostSource) { + $this->crosspostSource = $crosspostSource; + } - public function getCrosspostSource() - { - return $this->crosspostSource; - } + public function getCrosspostSource() { + return $this->crosspostSource; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setGeocode($geocode) - { - $this->geocode = $geocode; - } + public function setGeocode($geocode) { + $this->geocode = $geocode; + } - public function getGeocode() - { - return $this->geocode; - } + public function getGeocode() { + return $this->geocode; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLocation(Google_Service_Plus_Place $location) - { - $this->location = $location; - } + public function setLocation(Google_Service_Plus_Place $location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setObject(Google_Service_Plus_ActivityObject $object) - { - $this->object = $object; - } + public function setObject(Google_Service_Plus_ActivityObject $object) { + $this->object = $object; + } - public function getObject() - { - return $this->object; - } + public function getObject() { + return $this->object; + } - public function setPlaceId($placeId) - { - $this->placeId = $placeId; - } + public function setPlaceId($placeId) { + $this->placeId = $placeId; + } - public function getPlaceId() - { - return $this->placeId; - } + public function getPlaceId() { + return $this->placeId; + } - public function setPlaceName($placeName) - { - $this->placeName = $placeName; - } + public function setPlaceName($placeName) { + $this->placeName = $placeName; + } - public function getPlaceName() - { - return $this->placeName; - } + public function getPlaceName() { + return $this->placeName; + } - public function setProvider(Google_Service_Plus_ActivityProvider $provider) - { - $this->provider = $provider; - } + public function setProvider(Google_Service_Plus_ActivityProvider $provider) { + $this->provider = $provider; + } - public function getProvider() - { - return $this->provider; - } + public function getProvider() { + return $this->provider; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPublished() - { - return $this->published; - } + public function getPublished() { + return $this->published; + } - public function setRadius($radius) - { - $this->radius = $radius; - } + public function setRadius($radius) { + $this->radius = $radius; + } - public function getRadius() - { - return $this->radius; - } + public function getRadius() { + return $this->radius; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setVerb($verb) - { - $this->verb = $verb; - } + public function setVerb($verb) { + $this->verb = $verb; + } - public function getVerb() - { - return $this->verb; - } + public function getVerb() { + return $this->verb; + } } -class Google_Service_Plus_ActivityActor extends Google_Model -{ - public $displayName; - public $id; - protected $imageType = 'Google_Service_Plus_ActivityActorImage'; - protected $imageDataType = ''; - protected $nameType = 'Google_Service_Plus_ActivityActorName'; - protected $nameDataType = ''; - public $url; +class Google_Service_Plus_ActivityActor extends Google_Model { + public $displayName; + public $id; + protected $imageType = 'Google_Service_Plus_ActivityActorImage'; + protected $imageDataType = ''; + protected $nameType = 'Google_Service_Plus_ActivityActorName'; + protected $nameDataType = ''; + public $url; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_Plus_ActivityActorImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Plus_ActivityActorImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setName(Google_Service_Plus_ActivityActorName $name) - { - $this->name = $name; - } + public function setName(Google_Service_Plus_ActivityActorName $name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_ActivityActorImage extends Google_Model -{ - public $url; +class Google_Service_Plus_ActivityActorImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_ActivityActorName extends Google_Model -{ - public $familyName; - public $givenName; +class Google_Service_Plus_ActivityActorName extends Google_Model { + public $familyName; + public $givenName; - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } + public function setFamilyName($familyName) { + $this->familyName = $familyName; + } - public function getFamilyName() - { - return $this->familyName; - } + public function getFamilyName() { + return $this->familyName; + } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } + public function setGivenName($givenName) { + $this->givenName = $givenName; + } - public function getGivenName() - { - return $this->givenName; - } + public function getGivenName() { + return $this->givenName; + } } -class Google_Service_Plus_ActivityFeed extends Google_Collection -{ - public $etag; - public $id; - protected $itemsType = 'Google_Service_Plus_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; - public $title; - public $updated; +class Google_Service_Plus_ActivityFeed extends Google_Collection { + public $etag; + public $id; + protected $itemsType = 'Google_Service_Plus_Activity'; + protected $itemsDataType = 'array'; + public $kind; + public $nextLink; + public $nextPageToken; + public $selfLink; + public $title; + public $updated; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } - public function getNextLink() - { - return $this->nextLink; - } + public function getNextLink() { + return $this->nextLink; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Plus_ActivityObject extends Google_Collection -{ - protected $actorType = 'Google_Service_Plus_ActivityObjectActor'; - protected $actorDataType = ''; - protected $attachmentsType = 'Google_Service_Plus_ActivityObjectAttachments'; - protected $attachmentsDataType = 'array'; - public $content; - public $id; - public $objectType; - public $originalContent; - protected $plusonersType = 'Google_Service_Plus_ActivityObjectPlusoners'; - protected $plusonersDataType = ''; - protected $repliesType = 'Google_Service_Plus_ActivityObjectReplies'; - protected $repliesDataType = ''; - protected $resharersType = 'Google_Service_Plus_ActivityObjectResharers'; - protected $resharersDataType = ''; - public $url; +class Google_Service_Plus_ActivityObject extends Google_Collection { + protected $actorType = 'Google_Service_Plus_ActivityObjectActor'; + protected $actorDataType = ''; + protected $attachmentsType = 'Google_Service_Plus_ActivityObjectAttachments'; + protected $attachmentsDataType = 'array'; + public $content; + public $id; + public $objectType; + public $originalContent; + protected $plusonersType = 'Google_Service_Plus_ActivityObjectPlusoners'; + protected $plusonersDataType = ''; + protected $repliesType = 'Google_Service_Plus_ActivityObjectReplies'; + protected $repliesDataType = ''; + protected $resharersType = 'Google_Service_Plus_ActivityObjectResharers'; + protected $resharersDataType = ''; + public $url; - public function setActor(Google_Service_Plus_ActivityObjectActor $actor) - { - $this->actor = $actor; - } + public function setActor(Google_Service_Plus_ActivityObjectActor $actor) { + $this->actor = $actor; + } - public function getActor() - { - return $this->actor; - } + public function getActor() { + return $this->actor; + } - public function setAttachments($attachments) - { - $this->attachments = $attachments; - } + public function setAttachments($attachments) { + $this->attachments = $attachments; + } - public function getAttachments() - { - return $this->attachments; - } + public function getAttachments() { + return $this->attachments; + } - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } + public function setObjectType($objectType) { + $this->objectType = $objectType; + } - public function getObjectType() - { - return $this->objectType; - } + public function getObjectType() { + return $this->objectType; + } - public function setOriginalContent($originalContent) - { - $this->originalContent = $originalContent; - } + public function setOriginalContent($originalContent) { + $this->originalContent = $originalContent; + } - public function getOriginalContent() - { - return $this->originalContent; - } + public function getOriginalContent() { + return $this->originalContent; + } - public function setPlusoners(Google_Service_Plus_ActivityObjectPlusoners $plusoners) - { - $this->plusoners = $plusoners; - } + public function setPlusoners(Google_Service_Plus_ActivityObjectPlusoners $plusoners) { + $this->plusoners = $plusoners; + } - public function getPlusoners() - { - return $this->plusoners; - } + public function getPlusoners() { + return $this->plusoners; + } - public function setReplies(Google_Service_Plus_ActivityObjectReplies $replies) - { - $this->replies = $replies; - } + public function setReplies(Google_Service_Plus_ActivityObjectReplies $replies) { + $this->replies = $replies; + } - public function getReplies() - { - return $this->replies; - } + public function getReplies() { + return $this->replies; + } - public function setResharers(Google_Service_Plus_ActivityObjectResharers $resharers) - { - $this->resharers = $resharers; - } + public function setResharers(Google_Service_Plus_ActivityObjectResharers $resharers) { + $this->resharers = $resharers; + } - public function getResharers() - { - return $this->resharers; - } + public function getResharers() { + return $this->resharers; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_ActivityObjectActor extends Google_Model -{ - public $displayName; - public $id; - protected $imageType = 'Google_Service_Plus_ActivityObjectActorImage'; - protected $imageDataType = ''; - public $url; +class Google_Service_Plus_ActivityObjectActor extends Google_Model { + public $displayName; + public $id; + protected $imageType = 'Google_Service_Plus_ActivityObjectActorImage'; + protected $imageDataType = ''; + public $url; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_Plus_ActivityObjectActorImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Plus_ActivityObjectActorImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_ActivityObjectActorImage extends Google_Model -{ - public $url; +class Google_Service_Plus_ActivityObjectActorImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_ActivityObjectAttachments extends Google_Collection -{ - public $content; - public $displayName; - protected $embedType = 'Google_Service_Plus_ActivityObjectAttachmentsEmbed'; - protected $embedDataType = ''; - protected $fullImageType = 'Google_Service_Plus_ActivityObjectAttachmentsFullImage'; - protected $fullImageDataType = ''; - public $id; - protected $imageType = 'Google_Service_Plus_ActivityObjectAttachmentsImage'; - protected $imageDataType = ''; - public $objectType; - protected $thumbnailsType = 'Google_Service_Plus_ActivityObjectAttachmentsThumbnails'; - protected $thumbnailsDataType = 'array'; - public $url; +class Google_Service_Plus_ActivityObjectAttachments extends Google_Collection { + public $content; + public $displayName; + protected $embedType = 'Google_Service_Plus_ActivityObjectAttachmentsEmbed'; + protected $embedDataType = ''; + protected $fullImageType = 'Google_Service_Plus_ActivityObjectAttachmentsFullImage'; + protected $fullImageDataType = ''; + public $id; + protected $imageType = 'Google_Service_Plus_ActivityObjectAttachmentsImage'; + protected $imageDataType = ''; + public $objectType; + protected $thumbnailsType = 'Google_Service_Plus_ActivityObjectAttachmentsThumbnails'; + protected $thumbnailsDataType = 'array'; + public $url; - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEmbed(Google_Service_Plus_ActivityObjectAttachmentsEmbed $embed) - { - $this->embed = $embed; - } + public function setEmbed(Google_Service_Plus_ActivityObjectAttachmentsEmbed $embed) { + $this->embed = $embed; + } - public function getEmbed() - { - return $this->embed; - } + public function getEmbed() { + return $this->embed; + } - public function setFullImage(Google_Service_Plus_ActivityObjectAttachmentsFullImage $fullImage) - { - $this->fullImage = $fullImage; - } + public function setFullImage(Google_Service_Plus_ActivityObjectAttachmentsFullImage $fullImage) { + $this->fullImage = $fullImage; + } - public function getFullImage() - { - return $this->fullImage; - } + public function getFullImage() { + return $this->fullImage; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_Plus_ActivityObjectAttachmentsImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Plus_ActivityObjectAttachmentsImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } + public function setObjectType($objectType) { + $this->objectType = $objectType; + } - public function getObjectType() - { - return $this->objectType; - } + public function getObjectType() { + return $this->objectType; + } - public function setThumbnails($thumbnails) - { - $this->thumbnails = $thumbnails; - } + public function setThumbnails($thumbnails) { + $this->thumbnails = $thumbnails; + } - public function getThumbnails() - { - return $this->thumbnails; - } + public function getThumbnails() { + return $this->thumbnails; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_ActivityObjectAttachmentsEmbed extends Google_Model -{ - public $type; - public $url; +class Google_Service_Plus_ActivityObjectAttachmentsEmbed extends Google_Model { + public $type; + public $url; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_ActivityObjectAttachmentsFullImage extends Google_Model -{ - public $height; - public $type; - public $url; - public $width; +class Google_Service_Plus_ActivityObjectAttachmentsFullImage extends Google_Model { + public $height; + public $type; + public $url; + public $width; - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_Plus_ActivityObjectAttachmentsImage extends Google_Model -{ - public $height; - public $type; - public $url; - public $width; +class Google_Service_Plus_ActivityObjectAttachmentsImage extends Google_Model { + public $height; + public $type; + public $url; + public $width; - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_Plus_ActivityObjectAttachmentsThumbnails extends Google_Model -{ - public $description; - protected $imageType = 'Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage'; - protected $imageDataType = ''; - public $url; +class Google_Service_Plus_ActivityObjectAttachmentsThumbnails extends Google_Model { + public $description; + protected $imageType = 'Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage'; + protected $imageDataType = ''; + public $url; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setImage(Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage extends Google_Model -{ - public $height; - public $type; - public $url; - public $width; +class Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage extends Google_Model { + public $height; + public $type; + public $url; + public $width; - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_Plus_ActivityObjectPlusoners extends Google_Model -{ - public $selfLink; - public $totalItems; +class Google_Service_Plus_ActivityObjectPlusoners extends Google_Model { + public $selfLink; + public $totalItems; - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Plus_ActivityObjectReplies extends Google_Model -{ - public $selfLink; - public $totalItems; +class Google_Service_Plus_ActivityObjectReplies extends Google_Model { + public $selfLink; + public $totalItems; - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Plus_ActivityObjectResharers extends Google_Model -{ - public $selfLink; - public $totalItems; +class Google_Service_Plus_ActivityObjectResharers extends Google_Model { + public $selfLink; + public $totalItems; - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Plus_ActivityProvider extends Google_Model -{ - public $title; +class Google_Service_Plus_ActivityProvider extends Google_Model { + public $title; - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_Plus_Comment extends Google_Collection -{ - protected $actorType = 'Google_Service_Plus_CommentActor'; - protected $actorDataType = ''; - public $etag; - public $id; - protected $inReplyToType = 'Google_Service_Plus_CommentInReplyTo'; - protected $inReplyToDataType = 'array'; - public $kind; - protected $objectType = 'Google_Service_Plus_CommentObject'; - protected $objectDataType = ''; - protected $plusonersType = 'Google_Service_Plus_CommentPlusoners'; - protected $plusonersDataType = ''; - public $published; - public $selfLink; - public $updated; - public $verb; +class Google_Service_Plus_Comment extends Google_Collection { + protected $actorType = 'Google_Service_Plus_CommentActor'; + protected $actorDataType = ''; + public $etag; + public $id; + protected $inReplyToType = 'Google_Service_Plus_CommentInReplyTo'; + protected $inReplyToDataType = 'array'; + public $kind; + protected $objectType = 'Google_Service_Plus_CommentObject'; + protected $objectDataType = ''; + protected $plusonersType = 'Google_Service_Plus_CommentPlusoners'; + protected $plusonersDataType = ''; + public $published; + public $selfLink; + public $updated; + public $verb; - public function setActor(Google_Service_Plus_CommentActor $actor) - { - $this->actor = $actor; - } + public function setActor(Google_Service_Plus_CommentActor $actor) { + $this->actor = $actor; + } - public function getActor() - { - return $this->actor; - } + public function getActor() { + return $this->actor; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setInReplyTo($inReplyTo) - { - $this->inReplyTo = $inReplyTo; - } + public function setInReplyTo($inReplyTo) { + $this->inReplyTo = $inReplyTo; + } - public function getInReplyTo() - { - return $this->inReplyTo; - } + public function getInReplyTo() { + return $this->inReplyTo; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setObject(Google_Service_Plus_CommentObject $object) - { - $this->object = $object; - } + public function setObject(Google_Service_Plus_CommentObject $object) { + $this->object = $object; + } - public function getObject() - { - return $this->object; - } + public function getObject() { + return $this->object; + } - public function setPlusoners(Google_Service_Plus_CommentPlusoners $plusoners) - { - $this->plusoners = $plusoners; - } + public function setPlusoners(Google_Service_Plus_CommentPlusoners $plusoners) { + $this->plusoners = $plusoners; + } - public function getPlusoners() - { - return $this->plusoners; - } + public function getPlusoners() { + return $this->plusoners; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPublished() - { - return $this->published; - } + public function getPublished() { + return $this->published; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } - public function setVerb($verb) - { - $this->verb = $verb; - } + public function setVerb($verb) { + $this->verb = $verb; + } - public function getVerb() - { - return $this->verb; - } + public function getVerb() { + return $this->verb; + } } -class Google_Service_Plus_CommentActor extends Google_Model -{ - public $displayName; - public $id; - protected $imageType = 'Google_Service_Plus_CommentActorImage'; - protected $imageDataType = ''; - public $url; +class Google_Service_Plus_CommentActor extends Google_Model { + public $displayName; + public $id; + protected $imageType = 'Google_Service_Plus_CommentActorImage'; + protected $imageDataType = ''; + public $url; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_Plus_CommentActorImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Plus_CommentActorImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_CommentActorImage extends Google_Model -{ - public $url; +class Google_Service_Plus_CommentActorImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_CommentFeed extends Google_Collection -{ - public $etag; - public $id; - protected $itemsType = 'Google_Service_Plus_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $title; - public $updated; +class Google_Service_Plus_CommentFeed extends Google_Collection { + public $etag; + public $id; + protected $itemsType = 'Google_Service_Plus_Comment'; + protected $itemsDataType = 'array'; + public $kind; + public $nextLink; + public $nextPageToken; + public $title; + public $updated; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } - public function getNextLink() - { - return $this->nextLink; - } + public function getNextLink() { + return $this->nextLink; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Plus_CommentInReplyTo extends Google_Model -{ - public $id; - public $url; +class Google_Service_Plus_CommentInReplyTo extends Google_Model { + public $id; + public $url; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_CommentObject extends Google_Model -{ - public $content; - public $objectType; - public $originalContent; +class Google_Service_Plus_CommentObject extends Google_Model { + public $content; + public $objectType; + public $originalContent; - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } + public function setObjectType($objectType) { + $this->objectType = $objectType; + } - public function getObjectType() - { - return $this->objectType; - } + public function getObjectType() { + return $this->objectType; + } - public function setOriginalContent($originalContent) - { - $this->originalContent = $originalContent; - } + public function setOriginalContent($originalContent) { + $this->originalContent = $originalContent; + } - public function getOriginalContent() - { - return $this->originalContent; - } + public function getOriginalContent() { + return $this->originalContent; + } } -class Google_Service_Plus_CommentPlusoners extends Google_Model -{ - public $totalItems; +class Google_Service_Plus_CommentPlusoners extends Google_Model { + public $totalItems; - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Plus_ItemScope extends Google_Collection -{ - protected $aboutType = 'Google_Service_Plus_ItemScope'; - protected $aboutDataType = ''; - public $additionalName; - protected $addressType = 'Google_Service_Plus_ItemScope'; - protected $addressDataType = ''; - public $addressCountry; - public $addressLocality; - public $addressRegion; - protected $associatedMediaType = 'Google_Service_Plus_ItemScope'; - protected $associatedMediaDataType = 'array'; - public $attendeeCount; - protected $attendeesType = 'Google_Service_Plus_ItemScope'; - protected $attendeesDataType = 'array'; - protected $audioType = 'Google_Service_Plus_ItemScope'; - protected $audioDataType = ''; - protected $authorType = 'Google_Service_Plus_ItemScope'; - protected $authorDataType = 'array'; - public $bestRating; - public $birthDate; - protected $byArtistType = 'Google_Service_Plus_ItemScope'; - protected $byArtistDataType = ''; - public $caption; - public $contentSize; - public $contentUrl; - protected $contributorType = 'Google_Service_Plus_ItemScope'; - protected $contributorDataType = 'array'; - public $dateCreated; - public $dateModified; - public $datePublished; - public $description; - public $duration; - public $embedUrl; - public $endDate; - public $familyName; - public $gender; - protected $geoType = 'Google_Service_Plus_ItemScope'; - protected $geoDataType = ''; - public $givenName; - public $height; - public $id; - public $image; - protected $inAlbumType = 'Google_Service_Plus_ItemScope'; - protected $inAlbumDataType = ''; - public $kind; - public $latitude; - protected $locationType = 'Google_Service_Plus_ItemScope'; - protected $locationDataType = ''; - public $longitude; - public $name; - protected $partOfTVSeriesType = 'Google_Service_Plus_ItemScope'; - protected $partOfTVSeriesDataType = ''; - protected $performersType = 'Google_Service_Plus_ItemScope'; - protected $performersDataType = 'array'; - public $playerType; - public $postOfficeBoxNumber; - public $postalCode; - public $ratingValue; - protected $reviewRatingType = 'Google_Service_Plus_ItemScope'; - protected $reviewRatingDataType = ''; - public $startDate; - public $streetAddress; - public $text; - protected $thumbnailType = 'Google_Service_Plus_ItemScope'; - protected $thumbnailDataType = ''; - public $thumbnailUrl; - public $tickerSymbol; - public $type; - public $url; - public $width; - public $worstRating; - - public function setAbout(Google_Service_Plus_ItemScope $about) - { - $this->about = $about; - } - - public function getAbout() - { - return $this->about; - } - - public function setAdditionalName($additionalName) - { - $this->additionalName = $additionalName; - } - - public function getAdditionalName() - { - return $this->additionalName; - } - - public function setAddress(Google_Service_Plus_ItemScope $address) - { - $this->address = $address; - } - - public function getAddress() - { - return $this->address; - } - - public function setAddressCountry($addressCountry) - { - $this->addressCountry = $addressCountry; - } - - public function getAddressCountry() - { - return $this->addressCountry; - } - - public function setAddressLocality($addressLocality) - { - $this->addressLocality = $addressLocality; - } - - public function getAddressLocality() - { - return $this->addressLocality; - } - - public function setAddressRegion($addressRegion) - { - $this->addressRegion = $addressRegion; - } - - public function getAddressRegion() - { - return $this->addressRegion; - } - - public function setAssociatedMedia($associatedMedia) - { - $this->associatedMedia = $associatedMedia; - } - - public function getAssociatedMedia() - { - return $this->associatedMedia; - } - - public function setAttendeeCount($attendeeCount) - { - $this->attendeeCount = $attendeeCount; - } - - public function getAttendeeCount() - { - return $this->attendeeCount; - } - - public function setAttendees($attendees) - { - $this->attendees = $attendees; - } - - public function getAttendees() - { - return $this->attendees; - } - - public function setAudio(Google_Service_Plus_ItemScope $audio) - { - $this->audio = $audio; - } - - public function getAudio() - { - return $this->audio; - } - - public function setAuthor($author) - { - $this->author = $author; - } - - public function getAuthor() - { - return $this->author; - } - - public function setBestRating($bestRating) - { - $this->bestRating = $bestRating; - } - - public function getBestRating() - { - return $this->bestRating; - } - - public function setBirthDate($birthDate) - { - $this->birthDate = $birthDate; - } - - public function getBirthDate() - { - return $this->birthDate; - } - - public function setByArtist(Google_Service_Plus_ItemScope $byArtist) - { - $this->byArtist = $byArtist; - } - - public function getByArtist() - { - return $this->byArtist; - } - - public function setCaption($caption) - { - $this->caption = $caption; - } - - public function getCaption() - { - return $this->caption; - } - - public function setContentSize($contentSize) - { - $this->contentSize = $contentSize; - } - - public function getContentSize() - { - return $this->contentSize; - } - - public function setContentUrl($contentUrl) - { - $this->contentUrl = $contentUrl; - } - - public function getContentUrl() - { - return $this->contentUrl; - } - - public function setContributor($contributor) - { - $this->contributor = $contributor; - } - - public function getContributor() - { - return $this->contributor; - } - - public function setDateCreated($dateCreated) - { - $this->dateCreated = $dateCreated; - } - - public function getDateCreated() - { - return $this->dateCreated; - } - - public function setDateModified($dateModified) - { - $this->dateModified = $dateModified; - } - - public function getDateModified() - { - return $this->dateModified; - } - - public function setDatePublished($datePublished) - { - $this->datePublished = $datePublished; - } - - public function getDatePublished() - { - return $this->datePublished; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDuration($duration) - { - $this->duration = $duration; - } - - public function getDuration() - { - return $this->duration; - } - - public function setEmbedUrl($embedUrl) - { - $this->embedUrl = $embedUrl; - } - - public function getEmbedUrl() - { - return $this->embedUrl; - } - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - - public function getEndDate() - { - return $this->endDate; - } - - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } - - public function getFamilyName() - { - return $this->familyName; - } - - public function setGender($gender) - { - $this->gender = $gender; - } - - public function getGender() - { - return $this->gender; - } - - public function setGeo(Google_Service_Plus_ItemScope $geo) - { - $this->geo = $geo; - } - - public function getGeo() - { - return $this->geo; - } - - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } - - public function getGivenName() - { - return $this->givenName; - } - - public function setHeight($height) - { - $this->height = $height; - } - - public function getHeight() - { - return $this->height; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setImage($image) - { - $this->image = $image; - } - - public function getImage() - { - return $this->image; - } - - public function setInAlbum(Google_Service_Plus_ItemScope $inAlbum) - { - $this->inAlbum = $inAlbum; - } - - public function getInAlbum() - { - return $this->inAlbum; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - - public function getLatitude() - { - return $this->latitude; - } - - public function setLocation(Google_Service_Plus_ItemScope $location) - { - $this->location = $location; - } - - public function getLocation() - { - return $this->location; - } - - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - - public function getLongitude() - { - return $this->longitude; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPartOfTVSeries(Google_Service_Plus_ItemScope $partOfTVSeries) - { - $this->partOfTVSeries = $partOfTVSeries; - } - - public function getPartOfTVSeries() - { - return $this->partOfTVSeries; - } - - public function setPerformers($performers) - { - $this->performers = $performers; - } - - public function getPerformers() - { - return $this->performers; - } - - public function setPlayerType($playerType) - { - $this->playerType = $playerType; - } - - public function getPlayerType() - { - return $this->playerType; - } - - public function setPostOfficeBoxNumber($postOfficeBoxNumber) - { - $this->postOfficeBoxNumber = $postOfficeBoxNumber; - } - - public function getPostOfficeBoxNumber() - { - return $this->postOfficeBoxNumber; - } - - public function setPostalCode($postalCode) - { - $this->postalCode = $postalCode; - } - - public function getPostalCode() - { - return $this->postalCode; - } - - public function setRatingValue($ratingValue) - { - $this->ratingValue = $ratingValue; - } - - public function getRatingValue() - { - return $this->ratingValue; - } - - public function setReviewRating(Google_Service_Plus_ItemScope $reviewRating) - { - $this->reviewRating = $reviewRating; - } - - public function getReviewRating() - { - return $this->reviewRating; - } - - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } - - public function getStartDate() - { - return $this->startDate; - } - - public function setStreetAddress($streetAddress) - { - $this->streetAddress = $streetAddress; - } - - public function getStreetAddress() - { - return $this->streetAddress; - } - - public function setText($text) - { - $this->text = $text; - } - - public function getText() - { - return $this->text; - } - - public function setThumbnail(Google_Service_Plus_ItemScope $thumbnail) - { - $this->thumbnail = $thumbnail; - } - - public function getThumbnail() - { - return $this->thumbnail; - } - - public function setThumbnailUrl($thumbnailUrl) - { - $this->thumbnailUrl = $thumbnailUrl; - } - - public function getThumbnailUrl() - { - return $this->thumbnailUrl; - } - - public function setTickerSymbol($tickerSymbol) - { - $this->tickerSymbol = $tickerSymbol; - } - - public function getTickerSymbol() - { - return $this->tickerSymbol; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } - - public function setWidth($width) - { - $this->width = $width; - } - - public function getWidth() - { - return $this->width; - } - - public function setWorstRating($worstRating) - { - $this->worstRating = $worstRating; - } - - public function getWorstRating() - { - return $this->worstRating; - } +class Google_Service_Plus_ItemScope extends Google_Collection { + protected $aboutType = 'Google_Service_Plus_ItemScope'; + protected $aboutDataType = ''; + public $additionalName; + protected $addressType = 'Google_Service_Plus_ItemScope'; + protected $addressDataType = ''; + public $addressCountry; + public $addressLocality; + public $addressRegion; + protected $associatedMediaType = 'Google_Service_Plus_ItemScope'; + protected $associatedMediaDataType = 'array'; + public $attendeeCount; + protected $attendeesType = 'Google_Service_Plus_ItemScope'; + protected $attendeesDataType = 'array'; + protected $audioType = 'Google_Service_Plus_ItemScope'; + protected $audioDataType = ''; + protected $authorType = 'Google_Service_Plus_ItemScope'; + protected $authorDataType = 'array'; + public $bestRating; + public $birthDate; + protected $byArtistType = 'Google_Service_Plus_ItemScope'; + protected $byArtistDataType = ''; + public $caption; + public $contentSize; + public $contentUrl; + protected $contributorType = 'Google_Service_Plus_ItemScope'; + protected $contributorDataType = 'array'; + public $dateCreated; + public $dateModified; + public $datePublished; + public $description; + public $duration; + public $embedUrl; + public $endDate; + public $familyName; + public $gender; + protected $geoType = 'Google_Service_Plus_ItemScope'; + protected $geoDataType = ''; + public $givenName; + public $height; + public $id; + public $image; + protected $inAlbumType = 'Google_Service_Plus_ItemScope'; + protected $inAlbumDataType = ''; + public $kind; + public $latitude; + protected $locationType = 'Google_Service_Plus_ItemScope'; + protected $locationDataType = ''; + public $longitude; + public $name; + protected $partOfTVSeriesType = 'Google_Service_Plus_ItemScope'; + protected $partOfTVSeriesDataType = ''; + protected $performersType = 'Google_Service_Plus_ItemScope'; + protected $performersDataType = 'array'; + public $playerType; + public $postOfficeBoxNumber; + public $postalCode; + public $ratingValue; + protected $reviewRatingType = 'Google_Service_Plus_ItemScope'; + protected $reviewRatingDataType = ''; + public $startDate; + public $streetAddress; + public $text; + protected $thumbnailType = 'Google_Service_Plus_ItemScope'; + protected $thumbnailDataType = ''; + public $thumbnailUrl; + public $tickerSymbol; + public $type; + public $url; + public $width; + public $worstRating; + + public function setAbout(Google_Service_Plus_ItemScope $about) { + $this->about = $about; + } + + public function getAbout() { + return $this->about; + } + + public function setAdditionalName($additionalName) { + $this->additionalName = $additionalName; + } + + public function getAdditionalName() { + return $this->additionalName; + } + + public function setAddress(Google_Service_Plus_ItemScope $address) { + $this->address = $address; + } + + public function getAddress() { + return $this->address; + } + + public function setAddressCountry($addressCountry) { + $this->addressCountry = $addressCountry; + } + + public function getAddressCountry() { + return $this->addressCountry; + } + + public function setAddressLocality($addressLocality) { + $this->addressLocality = $addressLocality; + } + + public function getAddressLocality() { + return $this->addressLocality; + } + + public function setAddressRegion($addressRegion) { + $this->addressRegion = $addressRegion; + } + + public function getAddressRegion() { + return $this->addressRegion; + } + + public function setAssociatedMedia($associatedMedia) { + $this->associatedMedia = $associatedMedia; + } + + public function getAssociatedMedia() { + return $this->associatedMedia; + } + + public function setAttendeeCount($attendeeCount) { + $this->attendeeCount = $attendeeCount; + } + + public function getAttendeeCount() { + return $this->attendeeCount; + } + + public function setAttendees($attendees) { + $this->attendees = $attendees; + } + + public function getAttendees() { + return $this->attendees; + } + + public function setAudio(Google_Service_Plus_ItemScope $audio) { + $this->audio = $audio; + } + + public function getAudio() { + return $this->audio; + } + + public function setAuthor($author) { + $this->author = $author; + } + + public function getAuthor() { + return $this->author; + } + + public function setBestRating($bestRating) { + $this->bestRating = $bestRating; + } + + public function getBestRating() { + return $this->bestRating; + } + + public function setBirthDate($birthDate) { + $this->birthDate = $birthDate; + } + + public function getBirthDate() { + return $this->birthDate; + } + + public function setByArtist(Google_Service_Plus_ItemScope $byArtist) { + $this->byArtist = $byArtist; + } + + public function getByArtist() { + return $this->byArtist; + } + + public function setCaption($caption) { + $this->caption = $caption; + } + + public function getCaption() { + return $this->caption; + } + + public function setContentSize($contentSize) { + $this->contentSize = $contentSize; + } + + public function getContentSize() { + return $this->contentSize; + } + + public function setContentUrl($contentUrl) { + $this->contentUrl = $contentUrl; + } + + public function getContentUrl() { + return $this->contentUrl; + } + + public function setContributor($contributor) { + $this->contributor = $contributor; + } + + public function getContributor() { + return $this->contributor; + } + + public function setDateCreated($dateCreated) { + $this->dateCreated = $dateCreated; + } + + public function getDateCreated() { + return $this->dateCreated; + } + + public function setDateModified($dateModified) { + $this->dateModified = $dateModified; + } + + public function getDateModified() { + return $this->dateModified; + } + + public function setDatePublished($datePublished) { + $this->datePublished = $datePublished; + } + + public function getDatePublished() { + return $this->datePublished; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setDuration($duration) { + $this->duration = $duration; + } + + public function getDuration() { + return $this->duration; + } + + public function setEmbedUrl($embedUrl) { + $this->embedUrl = $embedUrl; + } + + public function getEmbedUrl() { + return $this->embedUrl; + } + + public function setEndDate($endDate) { + $this->endDate = $endDate; + } + + public function getEndDate() { + return $this->endDate; + } + + public function setFamilyName($familyName) { + $this->familyName = $familyName; + } + + public function getFamilyName() { + return $this->familyName; + } + + public function setGender($gender) { + $this->gender = $gender; + } + + public function getGender() { + return $this->gender; + } + + public function setGeo(Google_Service_Plus_ItemScope $geo) { + $this->geo = $geo; + } + + public function getGeo() { + return $this->geo; + } + + public function setGivenName($givenName) { + $this->givenName = $givenName; + } + + public function getGivenName() { + return $this->givenName; + } + + public function setHeight($height) { + $this->height = $height; + } + + public function getHeight() { + return $this->height; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setImage($image) { + $this->image = $image; + } + + public function getImage() { + return $this->image; + } + + public function setInAlbum(Google_Service_Plus_ItemScope $inAlbum) { + $this->inAlbum = $inAlbum; + } + + public function getInAlbum() { + return $this->inAlbum; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLatitude($latitude) { + $this->latitude = $latitude; + } + + public function getLatitude() { + return $this->latitude; + } + + public function setLocation(Google_Service_Plus_ItemScope $location) { + $this->location = $location; + } + + public function getLocation() { + return $this->location; + } + + public function setLongitude($longitude) { + $this->longitude = $longitude; + } + + public function getLongitude() { + return $this->longitude; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setPartOfTVSeries(Google_Service_Plus_ItemScope $partOfTVSeries) { + $this->partOfTVSeries = $partOfTVSeries; + } + + public function getPartOfTVSeries() { + return $this->partOfTVSeries; + } + + public function setPerformers($performers) { + $this->performers = $performers; + } + + public function getPerformers() { + return $this->performers; + } + + public function setPlayerType($playerType) { + $this->playerType = $playerType; + } + + public function getPlayerType() { + return $this->playerType; + } + + public function setPostOfficeBoxNumber($postOfficeBoxNumber) { + $this->postOfficeBoxNumber = $postOfficeBoxNumber; + } + + public function getPostOfficeBoxNumber() { + return $this->postOfficeBoxNumber; + } + + public function setPostalCode($postalCode) { + $this->postalCode = $postalCode; + } + + public function getPostalCode() { + return $this->postalCode; + } + + public function setRatingValue($ratingValue) { + $this->ratingValue = $ratingValue; + } + + public function getRatingValue() { + return $this->ratingValue; + } + + public function setReviewRating(Google_Service_Plus_ItemScope $reviewRating) { + $this->reviewRating = $reviewRating; + } + + public function getReviewRating() { + return $this->reviewRating; + } + + public function setStartDate($startDate) { + $this->startDate = $startDate; + } + + public function getStartDate() { + return $this->startDate; + } + + public function setStreetAddress($streetAddress) { + $this->streetAddress = $streetAddress; + } + + public function getStreetAddress() { + return $this->streetAddress; + } + + public function setText($text) { + $this->text = $text; + } + + public function getText() { + return $this->text; + } + + public function setThumbnail(Google_Service_Plus_ItemScope $thumbnail) { + $this->thumbnail = $thumbnail; + } + + public function getThumbnail() { + return $this->thumbnail; + } + + public function setThumbnailUrl($thumbnailUrl) { + $this->thumbnailUrl = $thumbnailUrl; + } + + public function getThumbnailUrl() { + return $this->thumbnailUrl; + } + + public function setTickerSymbol($tickerSymbol) { + $this->tickerSymbol = $tickerSymbol; + } + + public function getTickerSymbol() { + return $this->tickerSymbol; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } + + public function setWidth($width) { + $this->width = $width; + } + + public function getWidth() { + return $this->width; + } + + public function setWorstRating($worstRating) { + $this->worstRating = $worstRating; + } + + public function getWorstRating() { + return $this->worstRating; + } } -class Google_Service_Plus_Moment extends Google_Model -{ - public $id; - public $kind; - protected $objectType = 'Google_Service_Plus_ItemScope'; - protected $objectDataType = ''; - protected $resultType = 'Google_Service_Plus_ItemScope'; - protected $resultDataType = ''; - public $startDate; - protected $targetType = 'Google_Service_Plus_ItemScope'; - protected $targetDataType = ''; - public $type; +class Google_Service_Plus_Moment extends Google_Model { + public $id; + public $kind; + protected $objectType = 'Google_Service_Plus_ItemScope'; + protected $objectDataType = ''; + protected $resultType = 'Google_Service_Plus_ItemScope'; + protected $resultDataType = ''; + public $startDate; + protected $targetType = 'Google_Service_Plus_ItemScope'; + protected $targetDataType = ''; + public $type; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setObject(Google_Service_Plus_ItemScope $object) - { - $this->object = $object; - } + public function setObject(Google_Service_Plus_ItemScope $object) { + $this->object = $object; + } - public function getObject() - { - return $this->object; - } + public function getObject() { + return $this->object; + } - public function setResult(Google_Service_Plus_ItemScope $result) - { - $this->result = $result; - } + public function setResult(Google_Service_Plus_ItemScope $result) { + $this->result = $result; + } - public function getResult() - { - return $this->result; - } + public function getResult() { + return $this->result; + } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } + public function setStartDate($startDate) { + $this->startDate = $startDate; + } - public function getStartDate() - { - return $this->startDate; - } + public function getStartDate() { + return $this->startDate; + } - public function setTarget(Google_Service_Plus_ItemScope $target) - { - $this->target = $target; - } + public function setTarget(Google_Service_Plus_ItemScope $target) { + $this->target = $target; + } - public function getTarget() - { - return $this->target; - } + public function getTarget() { + return $this->target; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Plus_MomentsFeed extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Plus_Moment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; - public $title; - public $updated; +class Google_Service_Plus_MomentsFeed extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Plus_Moment'; + protected $itemsDataType = 'array'; + public $kind; + public $nextLink; + public $nextPageToken; + public $selfLink; + public $title; + public $updated; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } - public function getNextLink() - { - return $this->nextLink; - } + public function getNextLink() { + return $this->nextLink; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Plus_PeopleFeed extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Plus_Person'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - public $title; - public $totalItems; +class Google_Service_Plus_PeopleFeed extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Plus_Person'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + public $title; + public $totalItems; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_Plus_Person extends Google_Collection -{ - public $aboutMe; - protected $ageRangeType = 'Google_Service_Plus_PersonAgeRange'; - protected $ageRangeDataType = ''; - public $birthday; - public $braggingRights; - public $circledByCount; - protected $coverType = 'Google_Service_Plus_PersonCover'; - protected $coverDataType = ''; - public $currentLocation; - public $displayName; - public $domain; - protected $emailsType = 'Google_Service_Plus_PersonEmails'; - protected $emailsDataType = 'array'; - public $etag; - public $gender; - public $id; - protected $imageType = 'Google_Service_Plus_PersonImage'; - protected $imageDataType = ''; - public $isPlusUser; - public $kind; - public $language; - protected $nameType = 'Google_Service_Plus_PersonName'; - protected $nameDataType = ''; - public $nickname; - public $objectType; - public $occupation; - protected $organizationsType = 'Google_Service_Plus_PersonOrganizations'; - protected $organizationsDataType = 'array'; - protected $placesLivedType = 'Google_Service_Plus_PersonPlacesLived'; - protected $placesLivedDataType = 'array'; - public $plusOneCount; - public $relationshipStatus; - public $skills; - public $tagline; - public $url; - protected $urlsType = 'Google_Service_Plus_PersonUrls'; - protected $urlsDataType = 'array'; - public $verified; +class Google_Service_Plus_Person extends Google_Collection { + public $aboutMe; + protected $ageRangeType = 'Google_Service_Plus_PersonAgeRange'; + protected $ageRangeDataType = ''; + public $birthday; + public $braggingRights; + public $circledByCount; + protected $coverType = 'Google_Service_Plus_PersonCover'; + protected $coverDataType = ''; + public $currentLocation; + public $displayName; + public $domain; + protected $emailsType = 'Google_Service_Plus_PersonEmails'; + protected $emailsDataType = 'array'; + public $etag; + public $gender; + public $id; + protected $imageType = 'Google_Service_Plus_PersonImage'; + protected $imageDataType = ''; + public $isPlusUser; + public $kind; + public $language; + protected $nameType = 'Google_Service_Plus_PersonName'; + protected $nameDataType = ''; + public $nickname; + public $objectType; + public $occupation; + protected $organizationsType = 'Google_Service_Plus_PersonOrganizations'; + protected $organizationsDataType = 'array'; + protected $placesLivedType = 'Google_Service_Plus_PersonPlacesLived'; + protected $placesLivedDataType = 'array'; + public $plusOneCount; + public $relationshipStatus; + public $skills; + public $tagline; + public $url; + protected $urlsType = 'Google_Service_Plus_PersonUrls'; + protected $urlsDataType = 'array'; + public $verified; - public function setAboutMe($aboutMe) - { - $this->aboutMe = $aboutMe; - } + public function setAboutMe($aboutMe) { + $this->aboutMe = $aboutMe; + } - public function getAboutMe() - { - return $this->aboutMe; - } + public function getAboutMe() { + return $this->aboutMe; + } - public function setAgeRange(Google_Service_Plus_PersonAgeRange $ageRange) - { - $this->ageRange = $ageRange; - } + public function setAgeRange(Google_Service_Plus_PersonAgeRange $ageRange) { + $this->ageRange = $ageRange; + } - public function getAgeRange() - { - return $this->ageRange; - } + public function getAgeRange() { + return $this->ageRange; + } - public function setBirthday($birthday) - { - $this->birthday = $birthday; - } + public function setBirthday($birthday) { + $this->birthday = $birthday; + } - public function getBirthday() - { - return $this->birthday; - } + public function getBirthday() { + return $this->birthday; + } - public function setBraggingRights($braggingRights) - { - $this->braggingRights = $braggingRights; - } + public function setBraggingRights($braggingRights) { + $this->braggingRights = $braggingRights; + } - public function getBraggingRights() - { - return $this->braggingRights; - } + public function getBraggingRights() { + return $this->braggingRights; + } - public function setCircledByCount($circledByCount) - { - $this->circledByCount = $circledByCount; - } + public function setCircledByCount($circledByCount) { + $this->circledByCount = $circledByCount; + } - public function getCircledByCount() - { - return $this->circledByCount; - } + public function getCircledByCount() { + return $this->circledByCount; + } - public function setCover(Google_Service_Plus_PersonCover $cover) - { - $this->cover = $cover; - } + public function setCover(Google_Service_Plus_PersonCover $cover) { + $this->cover = $cover; + } - public function getCover() - { - return $this->cover; - } + public function getCover() { + return $this->cover; + } - public function setCurrentLocation($currentLocation) - { - $this->currentLocation = $currentLocation; - } + public function setCurrentLocation($currentLocation) { + $this->currentLocation = $currentLocation; + } - public function getCurrentLocation() - { - return $this->currentLocation; - } + public function getCurrentLocation() { + return $this->currentLocation; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setDomain($domain) - { - $this->domain = $domain; - } + public function setDomain($domain) { + $this->domain = $domain; + } - public function getDomain() - { - return $this->domain; - } + public function getDomain() { + return $this->domain; + } - public function setEmails($emails) - { - $this->emails = $emails; - } + public function setEmails($emails) { + $this->emails = $emails; + } - public function getEmails() - { - return $this->emails; - } + public function getEmails() { + return $this->emails; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setGender($gender) - { - $this->gender = $gender; - } + public function setGender($gender) { + $this->gender = $gender; + } - public function getGender() - { - return $this->gender; - } + public function getGender() { + return $this->gender; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_Plus_PersonImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_Plus_PersonImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setIsPlusUser($isPlusUser) - { - $this->isPlusUser = $isPlusUser; - } + public function setIsPlusUser($isPlusUser) { + $this->isPlusUser = $isPlusUser; + } - public function getIsPlusUser() - { - return $this->isPlusUser; - } + public function getIsPlusUser() { + return $this->isPlusUser; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLanguage($language) - { - $this->language = $language; - } + public function setLanguage($language) { + $this->language = $language; + } - public function getLanguage() - { - return $this->language; - } + public function getLanguage() { + return $this->language; + } - public function setName(Google_Service_Plus_PersonName $name) - { - $this->name = $name; - } + public function setName(Google_Service_Plus_PersonName $name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setNickname($nickname) - { - $this->nickname = $nickname; - } + public function setNickname($nickname) { + $this->nickname = $nickname; + } - public function getNickname() - { - return $this->nickname; - } + public function getNickname() { + return $this->nickname; + } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } + public function setObjectType($objectType) { + $this->objectType = $objectType; + } - public function getObjectType() - { - return $this->objectType; - } + public function getObjectType() { + return $this->objectType; + } - public function setOccupation($occupation) - { - $this->occupation = $occupation; - } + public function setOccupation($occupation) { + $this->occupation = $occupation; + } - public function getOccupation() - { - return $this->occupation; - } + public function getOccupation() { + return $this->occupation; + } - public function setOrganizations($organizations) - { - $this->organizations = $organizations; - } + public function setOrganizations($organizations) { + $this->organizations = $organizations; + } - public function getOrganizations() - { - return $this->organizations; - } + public function getOrganizations() { + return $this->organizations; + } - public function setPlacesLived($placesLived) - { - $this->placesLived = $placesLived; - } + public function setPlacesLived($placesLived) { + $this->placesLived = $placesLived; + } - public function getPlacesLived() - { - return $this->placesLived; - } + public function getPlacesLived() { + return $this->placesLived; + } - public function setPlusOneCount($plusOneCount) - { - $this->plusOneCount = $plusOneCount; - } + public function setPlusOneCount($plusOneCount) { + $this->plusOneCount = $plusOneCount; + } - public function getPlusOneCount() - { - return $this->plusOneCount; - } + public function getPlusOneCount() { + return $this->plusOneCount; + } - public function setRelationshipStatus($relationshipStatus) - { - $this->relationshipStatus = $relationshipStatus; - } + public function setRelationshipStatus($relationshipStatus) { + $this->relationshipStatus = $relationshipStatus; + } - public function getRelationshipStatus() - { - return $this->relationshipStatus; - } + public function getRelationshipStatus() { + return $this->relationshipStatus; + } - public function setSkills($skills) - { - $this->skills = $skills; - } + public function setSkills($skills) { + $this->skills = $skills; + } - public function getSkills() - { - return $this->skills; - } + public function getSkills() { + return $this->skills; + } - public function setTagline($tagline) - { - $this->tagline = $tagline; - } + public function setTagline($tagline) { + $this->tagline = $tagline; + } - public function getTagline() - { - return $this->tagline; - } + public function getTagline() { + return $this->tagline; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setUrls($urls) - { - $this->urls = $urls; - } + public function setUrls($urls) { + $this->urls = $urls; + } - public function getUrls() - { - return $this->urls; - } + public function getUrls() { + return $this->urls; + } - public function setVerified($verified) - { - $this->verified = $verified; - } + public function setVerified($verified) { + $this->verified = $verified; + } - public function getVerified() - { - return $this->verified; - } + public function getVerified() { + return $this->verified; + } } -class Google_Service_Plus_PersonAgeRange extends Google_Model -{ - public $max; - public $min; +class Google_Service_Plus_PersonAgeRange extends Google_Model { + public $max; + public $min; - public function setMax($max) - { - $this->max = $max; - } + public function setMax($max) { + $this->max = $max; + } - public function getMax() - { - return $this->max; - } + public function getMax() { + return $this->max; + } - public function setMin($min) - { - $this->min = $min; - } + public function setMin($min) { + $this->min = $min; + } - public function getMin() - { - return $this->min; - } + public function getMin() { + return $this->min; + } } -class Google_Service_Plus_PersonCover extends Google_Model -{ - protected $coverInfoType = 'Google_Service_Plus_PersonCoverCoverInfo'; - protected $coverInfoDataType = ''; - protected $coverPhotoType = 'Google_Service_Plus_PersonCoverCoverPhoto'; - protected $coverPhotoDataType = ''; - public $layout; +class Google_Service_Plus_PersonCover extends Google_Model { + protected $coverInfoType = 'Google_Service_Plus_PersonCoverCoverInfo'; + protected $coverInfoDataType = ''; + protected $coverPhotoType = 'Google_Service_Plus_PersonCoverCoverPhoto'; + protected $coverPhotoDataType = ''; + public $layout; - public function setCoverInfo(Google_Service_Plus_PersonCoverCoverInfo $coverInfo) - { - $this->coverInfo = $coverInfo; - } + public function setCoverInfo(Google_Service_Plus_PersonCoverCoverInfo $coverInfo) { + $this->coverInfo = $coverInfo; + } - public function getCoverInfo() - { - return $this->coverInfo; - } + public function getCoverInfo() { + return $this->coverInfo; + } - public function setCoverPhoto(Google_Service_Plus_PersonCoverCoverPhoto $coverPhoto) - { - $this->coverPhoto = $coverPhoto; - } + public function setCoverPhoto(Google_Service_Plus_PersonCoverCoverPhoto $coverPhoto) { + $this->coverPhoto = $coverPhoto; + } - public function getCoverPhoto() - { - return $this->coverPhoto; - } + public function getCoverPhoto() { + return $this->coverPhoto; + } - public function setLayout($layout) - { - $this->layout = $layout; - } + public function setLayout($layout) { + $this->layout = $layout; + } - public function getLayout() - { - return $this->layout; - } + public function getLayout() { + return $this->layout; + } } -class Google_Service_Plus_PersonCoverCoverInfo extends Google_Model -{ - public $leftImageOffset; - public $topImageOffset; +class Google_Service_Plus_PersonCoverCoverInfo extends Google_Model { + public $leftImageOffset; + public $topImageOffset; - public function setLeftImageOffset($leftImageOffset) - { - $this->leftImageOffset = $leftImageOffset; - } + public function setLeftImageOffset($leftImageOffset) { + $this->leftImageOffset = $leftImageOffset; + } - public function getLeftImageOffset() - { - return $this->leftImageOffset; - } + public function getLeftImageOffset() { + return $this->leftImageOffset; + } - public function setTopImageOffset($topImageOffset) - { - $this->topImageOffset = $topImageOffset; - } + public function setTopImageOffset($topImageOffset) { + $this->topImageOffset = $topImageOffset; + } - public function getTopImageOffset() - { - return $this->topImageOffset; - } + public function getTopImageOffset() { + return $this->topImageOffset; + } } -class Google_Service_Plus_PersonCoverCoverPhoto extends Google_Model -{ - public $height; - public $url; - public $width; +class Google_Service_Plus_PersonCoverCoverPhoto extends Google_Model { + public $height; + public $url; + public $width; - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_Plus_PersonEmails extends Google_Model -{ - public $type; - public $value; +class Google_Service_Plus_PersonEmails extends Google_Model { + public $type; + public $value; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Plus_PersonImage extends Google_Model -{ - public $isDefault; - public $url; +class Google_Service_Plus_PersonImage extends Google_Model { + public $isDefault; + public $url; - public function setIsDefault($isDefault) - { - $this->isDefault = $isDefault; - } + public function setIsDefault($isDefault) { + $this->isDefault = $isDefault; + } - public function getIsDefault() - { - return $this->isDefault; - } + public function getIsDefault() { + return $this->isDefault; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_Plus_PersonName extends Google_Model -{ - public $familyName; - public $formatted; - public $givenName; - public $honorificPrefix; - public $honorificSuffix; - public $middleName; +class Google_Service_Plus_PersonName extends Google_Model { + public $familyName; + public $formatted; + public $givenName; + public $honorificPrefix; + public $honorificSuffix; + public $middleName; - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } + public function setFamilyName($familyName) { + $this->familyName = $familyName; + } - public function getFamilyName() - { - return $this->familyName; - } + public function getFamilyName() { + return $this->familyName; + } - public function setFormatted($formatted) - { - $this->formatted = $formatted; - } + public function setFormatted($formatted) { + $this->formatted = $formatted; + } - public function getFormatted() - { - return $this->formatted; - } + public function getFormatted() { + return $this->formatted; + } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } + public function setGivenName($givenName) { + $this->givenName = $givenName; + } - public function getGivenName() - { - return $this->givenName; - } + public function getGivenName() { + return $this->givenName; + } - public function setHonorificPrefix($honorificPrefix) - { - $this->honorificPrefix = $honorificPrefix; - } + public function setHonorificPrefix($honorificPrefix) { + $this->honorificPrefix = $honorificPrefix; + } - public function getHonorificPrefix() - { - return $this->honorificPrefix; - } + public function getHonorificPrefix() { + return $this->honorificPrefix; + } - public function setHonorificSuffix($honorificSuffix) - { - $this->honorificSuffix = $honorificSuffix; - } + public function setHonorificSuffix($honorificSuffix) { + $this->honorificSuffix = $honorificSuffix; + } - public function getHonorificSuffix() - { - return $this->honorificSuffix; - } + public function getHonorificSuffix() { + return $this->honorificSuffix; + } - public function setMiddleName($middleName) - { - $this->middleName = $middleName; - } + public function setMiddleName($middleName) { + $this->middleName = $middleName; + } - public function getMiddleName() - { - return $this->middleName; - } + public function getMiddleName() { + return $this->middleName; + } } -class Google_Service_Plus_PersonOrganizations extends Google_Model -{ - public $department; - public $description; - public $endDate; - public $location; - public $name; - public $primary; - public $startDate; - public $title; - public $type; +class Google_Service_Plus_PersonOrganizations extends Google_Model { + public $department; + public $description; + public $endDate; + public $location; + public $name; + public $primary; + public $startDate; + public $title; + public $type; - public function setDepartment($department) - { - $this->department = $department; - } + public function setDepartment($department) { + $this->department = $department; + } - public function getDepartment() - { - return $this->department; - } + public function getDepartment() { + return $this->department; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } + public function setEndDate($endDate) { + $this->endDate = $endDate; + } - public function getEndDate() - { - return $this->endDate; - } + public function getEndDate() { + return $this->endDate; + } - public function setLocation($location) - { - $this->location = $location; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPrimary($primary) - { - $this->primary = $primary; - } + public function setPrimary($primary) { + $this->primary = $primary; + } - public function getPrimary() - { - return $this->primary; - } + public function getPrimary() { + return $this->primary; + } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } + public function setStartDate($startDate) { + $this->startDate = $startDate; + } - public function getStartDate() - { - return $this->startDate; - } + public function getStartDate() { + return $this->startDate; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Plus_PersonPlacesLived extends Google_Model -{ - public $primary; - public $value; +class Google_Service_Plus_PersonPlacesLived extends Google_Model { + public $primary; + public $value; - public function setPrimary($primary) - { - $this->primary = $primary; - } + public function setPrimary($primary) { + $this->primary = $primary; + } - public function getPrimary() - { - return $this->primary; - } + public function getPrimary() { + return $this->primary; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Plus_PersonUrls extends Google_Model -{ - public $label; - public $type; - public $value; +class Google_Service_Plus_PersonUrls extends Google_Model { + public $label; + public $type; + public $value; - public function setLabel($label) - { - $this->label = $label; - } + public function setLabel($label) { + $this->label = $label; + } - public function getLabel() - { - return $this->label; - } + public function getLabel() { + return $this->label; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Plus_Place extends Google_Model -{ - protected $addressType = 'Google_Service_Plus_PlaceAddress'; - protected $addressDataType = ''; - public $displayName; - public $id; - public $kind; - protected $positionType = 'Google_Service_Plus_PlacePosition'; - protected $positionDataType = ''; +class Google_Service_Plus_Place extends Google_Model { + protected $addressType = 'Google_Service_Plus_PlaceAddress'; + protected $addressDataType = ''; + public $displayName; + public $id; + public $kind; + protected $positionType = 'Google_Service_Plus_PlacePosition'; + protected $positionDataType = ''; - public function setAddress(Google_Service_Plus_PlaceAddress $address) - { - $this->address = $address; - } + public function setAddress(Google_Service_Plus_PlaceAddress $address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPosition(Google_Service_Plus_PlacePosition $position) - { - $this->position = $position; - } + public function setPosition(Google_Service_Plus_PlacePosition $position) { + $this->position = $position; + } - public function getPosition() - { - return $this->position; - } + public function getPosition() { + return $this->position; + } } -class Google_Service_Plus_PlaceAddress extends Google_Model -{ - public $formatted; +class Google_Service_Plus_PlaceAddress extends Google_Model { + public $formatted; - public function setFormatted($formatted) - { - $this->formatted = $formatted; - } + public function setFormatted($formatted) { + $this->formatted = $formatted; + } - public function getFormatted() - { - return $this->formatted; - } + public function getFormatted() { + return $this->formatted; + } } -class Google_Service_Plus_PlacePosition extends Google_Model -{ - public $latitude; - public $longitude; +class Google_Service_Plus_PlacePosition extends Google_Model { + public $latitude; + public $longitude; - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } + public function setLatitude($latitude) { + $this->latitude = $latitude; + } - public function getLatitude() - { - return $this->latitude; - } + public function getLatitude() { + return $this->latitude; + } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } + public function setLongitude($longitude) { + $this->longitude = $longitude; + } - public function getLongitude() - { - return $this->longitude; - } + public function getLongitude() { + return $this->longitude; + } } -class Google_Service_Plus_PlusAclentryResource extends Google_Model -{ - public $displayName; - public $id; - public $type; +class Google_Service_Plus_PlusAclentryResource extends Google_Model { + public $displayName; + public $id; + public $type; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } diff --git a/oauth/Google/Service/PlusDomains.php b/oauth/Google/Service/PlusDomains.php index 3cd3bbe..358e3bd 100644 --- a/oauth/Google/Service/PlusDomains.php +++ b/oauth/Google/Service/PlusDomains.php @@ -29,418 +29,416 @@ * * @author Google, Inc. */ -class Google_Service_PlusDomains extends Google_Service -{ - /** View your circles and the people and pages in them. */ - const PLUS_CIRCLES_READ = "https://www.googleapis.com/auth/plus.circles.read"; - /** Manage your circles and add people and pages. People and pages you add to your circles will be notified. Others may see this information publicly. People you add to circles can use Hangouts with you.. */ - const PLUS_CIRCLES_WRITE = "https://www.googleapis.com/auth/plus.circles.write"; - /** Know your basic profile info and list of people in your circles.. */ - const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; - /** Know who you are on Google. */ - const PLUS_ME = "https://www.googleapis.com/auth/plus.me"; - /** Send your photos and videos to Google+. */ - const PLUS_MEDIA_UPLOAD = "https://www.googleapis.com/auth/plus.media.upload"; - /** View your own Google+ profile and profiles visible to you. */ - const PLUS_PROFILES_READ = "https://www.googleapis.com/auth/plus.profiles.read"; - /** View your Google+ posts, comments, and stream. */ - const PLUS_STREAM_READ = "https://www.googleapis.com/auth/plus.stream.read"; - /** Manage your Google+ posts, comments, and stream. */ - const PLUS_STREAM_WRITE = "https://www.googleapis.com/auth/plus.stream.write"; - /** View your email address. */ - const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; - /** View your basic profile info. */ - const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; +class Google_Service_PlusDomains extends Google_Service { + /** View your circles and the people and pages in them. */ + const PLUS_CIRCLES_READ = "https://www.googleapis.com/auth/plus.circles.read"; + /** Manage your circles and add people and pages. People and pages you add to your circles will be notified. Others may see this information publicly. People you add to circles can use Hangouts with you.. */ + const PLUS_CIRCLES_WRITE = "https://www.googleapis.com/auth/plus.circles.write"; + /** Know your basic profile info and list of people in your circles.. */ + const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; + /** Know who you are on Google. */ + const PLUS_ME = "https://www.googleapis.com/auth/plus.me"; + /** Send your photos and videos to Google+. */ + const PLUS_MEDIA_UPLOAD = "https://www.googleapis.com/auth/plus.media.upload"; + /** View your own Google+ profile and profiles visible to you. */ + const PLUS_PROFILES_READ = "https://www.googleapis.com/auth/plus.profiles.read"; + /** View your Google+ posts, comments, and stream. */ + const PLUS_STREAM_READ = "https://www.googleapis.com/auth/plus.stream.read"; + /** Manage your Google+ posts, comments, and stream. */ + const PLUS_STREAM_WRITE = "https://www.googleapis.com/auth/plus.stream.write"; + /** View your email address. */ + const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; + /** View your basic profile info. */ + const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; - public $activities; - public $audiences; - public $circles; - public $comments; - public $media; - public $people; - + public $activities; + public $audiences; + public $circles; + public $comments; + public $media; + public $people; - /** - * Constructs the internal representation of the PlusDomains service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'plusDomains/v1/'; - $this->version = 'v1'; - $this->serviceName = 'plusDomains'; - $this->activities = new Google_Service_PlusDomains_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'get' => array( - 'path' => 'activities/{activityId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'people/{userId}/activities', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'preview' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/activities/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->audiences = new Google_Service_PlusDomains_Audiences_Resource( - $this, - $this->serviceName, - 'audiences', - array( - 'methods' => array( - 'list' => array( - 'path' => 'people/{userId}/audiences', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->circles = new Google_Service_PlusDomains_Circles_Resource( - $this, - $this->serviceName, - 'circles', - array( - 'methods' => array( - 'addPeople' => array( - 'path' => 'circles/{circleId}/people', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'email' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'get' => array( - 'path' => 'circles/{circleId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'people/{userId}/circles', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/circles', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'circles/{circleId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'remove' => array( - 'path' => 'circles/{circleId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'removePeople' => array( - 'path' => 'circles/{circleId}/people', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'userId' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'email' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'update' => array( - 'path' => 'circles/{circleId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->comments = new Google_Service_PlusDomains_Comments_Resource( - $this, - $this->serviceName, - 'comments', - array( - 'methods' => array( - 'get' => array( - 'path' => 'comments/{commentId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'commentId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'activities/{activityId}/comments', - 'httpMethod' => 'POST', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'activities/{activityId}/comments', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->media = new Google_Service_PlusDomains_Media_Resource( - $this, - $this->serviceName, - 'media', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'people/{userId}/media/{collection}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->people = new Google_Service_PlusDomains_People_Resource( - $this, - $this->serviceName, - 'people', - array( - 'methods' => array( - 'get' => array( - 'path' => 'people/{userId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'people/{userId}/people/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'listByActivity' => array( - 'path' => 'activities/{activityId}/people/{collection}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'activityId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'collection' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'listByCircle' => array( - 'path' => 'circles/{circleId}/people', - 'httpMethod' => 'GET', - 'parameters' => array( - 'circleId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the PlusDomains service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'plusDomains/v1/'; + $this->version = 'v1'; + $this->serviceName = 'plusDomains'; + + $this->activities = new Google_Service_PlusDomains_Activities_Resource( + $this, + $this->serviceName, + 'activities', + array( + 'methods' => array( + 'get' => array( + 'path' => 'activities/{activityId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'people/{userId}/activities', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'preview' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => 'people/{userId}/activities/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->audiences = new Google_Service_PlusDomains_Audiences_Resource( + $this, + $this->serviceName, + 'audiences', + array( + 'methods' => array( + 'list' => array( + 'path' => 'people/{userId}/audiences', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->circles = new Google_Service_PlusDomains_Circles_Resource( + $this, + $this->serviceName, + 'circles', + array( + 'methods' => array( + 'addPeople' => array( + 'path' => 'circles/{circleId}/people', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'circleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'email' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), 'get' => array( + 'path' => 'circles/{circleId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'circleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'people/{userId}/circles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'people/{userId}/circles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'circles/{circleId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'circleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'remove' => array( + 'path' => 'circles/{circleId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'circleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'removePeople' => array( + 'path' => 'circles/{circleId}/people', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'circleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'email' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), 'update' => array( + 'path' => 'circles/{circleId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'circleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->comments = new Google_Service_PlusDomains_Comments_Resource( + $this, + $this->serviceName, + 'comments', + array( + 'methods' => array( + 'get' => array( + 'path' => 'comments/{commentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'commentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'activities/{activityId}/comments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'activities/{activityId}/comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->media = new Google_Service_PlusDomains_Media_Resource( + $this, + $this->serviceName, + 'media', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'people/{userId}/media/{collection}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->people = new Google_Service_PlusDomains_People_Resource( + $this, + $this->serviceName, + 'people', + array( + 'methods' => array( + 'get' => array( + 'path' => 'people/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'people/{userId}/people/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'listByActivity' => array( + 'path' => 'activities/{activityId}/people/{collection}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'activityId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collection' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'listByCircle' => array( + 'path' => 'circles/{circleId}/people', + 'httpMethod' => 'GET', + 'parameters' => array( + 'circleId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } } @@ -452,69 +450,67 @@ class Google_Service_PlusDomains extends Google_Service * $activities = $plusDomainsService->activities; * */ -class Google_Service_PlusDomains_Activities_Resource extends Google_Service_Resource -{ +class Google_Service_PlusDomains_Activities_Resource extends Google_Service_Resource { - /** - * Get an activity. (activities.get) - * - * @param string $activityId - * The ID of the activity to get. - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Activity - */ - public function get($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_PlusDomains_Activity"); - } - /** - * Create a new activity for the authenticated user. (activities.insert) - * - * @param string $userId - * The ID of the user to create the activity on behalf of. Its value should be "me", to indicate - * the authenticated user. - * @param Google_Activity $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool preview - * If "true", extract the potential media attachments for a URL. The response will include all - * possible attachments for a URL, including video, photos, and articles based on the content of - * the page. - * @return Google_Service_PlusDomains_Activity - */ - public function insert($userId, Google_Service_PlusDomains_Activity $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_PlusDomains_Activity"); - } - /** - * List all of the activities in the specified collection for a particular user. - * (activities.listActivities) - * - * @param string $userId - * The ID of the user to get activities for. The special value "me" can be used to indicate the - * authenticated user. - * @param string $collection - * The collection of activities to list. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of activities to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @return Google_Service_PlusDomains_ActivityFeed - */ - public function listActivities($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_PlusDomains_ActivityFeed"); - } + /** + * Get an activity. (activities.get) + * + * @param string $activityId + * The ID of the activity to get. + * @param array $optParams Optional parameters. + * @return Google_Service_PlusDomains_Activity + */ + public function get($activityId, $optParams = array()) { + $params = array('activityId' => $activityId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_PlusDomains_Activity"); + } + + /** + * Create a new activity for the authenticated user. (activities.insert) + * + * @param string $userId + * The ID of the user to create the activity on behalf of. Its value should be "me", to indicate + * the authenticated user. + * @param Google_Activity $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool preview + * If "true", extract the potential media attachments for a URL. The response will include all + * possible attachments for a URL, including video, photos, and articles based on the content of + * the page. + * @return Google_Service_PlusDomains_Activity + */ + public function insert($userId, Google_Service_PlusDomains_Activity $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_PlusDomains_Activity"); + } + + /** + * List all of the activities in the specified collection for a particular user. + * (activities.listActivities) + * + * @param string $userId + * The ID of the user to get activities for. The special value "me" can be used to indicate the + * authenticated user. + * @param string $collection + * The collection of activities to list. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults + * The maximum number of activities to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @return Google_Service_PlusDomains_ActivityFeed + */ + public function listActivities($userId, $collection, $optParams = array()) { + $params = array('userId' => $userId, 'collection' => $collection); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_PlusDomains_ActivityFeed"); + } } /** @@ -525,32 +521,30 @@ class Google_Service_PlusDomains_Activities_Resource extends Google_Service_Reso * $audiences = $plusDomainsService->audiences; * */ -class Google_Service_PlusDomains_Audiences_Resource extends Google_Service_Resource -{ +class Google_Service_PlusDomains_Audiences_Resource extends Google_Service_Resource { - /** - * List all of the audiences to which a user can share. - * (audiences.listAudiences) - * - * @param string $userId - * The ID of the user to get audiences for. The special value "me" can be used to indicate the - * authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of circles to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @return Google_Service_PlusDomains_AudiencesFeed - */ - public function listAudiences($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_PlusDomains_AudiencesFeed"); - } + /** + * List all of the audiences to which a user can share. + * (audiences.listAudiences) + * + * @param string $userId + * The ID of the user to get audiences for. The special value "me" can be used to indicate the + * authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults + * The maximum number of circles to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @return Google_Service_PlusDomains_AudiencesFeed + */ + public function listAudiences($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_PlusDomains_AudiencesFeed"); + } } /** @@ -561,143 +555,141 @@ class Google_Service_PlusDomains_Audiences_Resource extends Google_Service_Resou * $circles = $plusDomainsService->circles; * */ -class Google_Service_PlusDomains_Circles_Resource extends Google_Service_Resource -{ +class Google_Service_PlusDomains_Circles_Resource extends Google_Service_Resource { - /** - * Add a person to a circle. Google+ limits certain circle operations, including - * the number of circle adds. Learn More. (circles.addPeople) - * - * @param string $circleId - * The ID of the circle to add the person to. - * @param array $optParams Optional parameters. - * - * @opt_param string userId - * IDs of the people to add to the circle. Optional, can be repeated. - * @opt_param string email - * Email of the people to add to the circle. Optional, can be repeated. - * @return Google_Service_PlusDomains_Circle - */ - public function addPeople($circleId, $optParams = array()) - { - $params = array('circleId' => $circleId); - $params = array_merge($params, $optParams); - return $this->call('addPeople', array($params), "Google_Service_PlusDomains_Circle"); - } - /** - * Get a circle. (circles.get) - * - * @param string $circleId - * The ID of the circle to get. - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Circle - */ - public function get($circleId, $optParams = array()) - { - $params = array('circleId' => $circleId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_PlusDomains_Circle"); - } - /** - * Create a new circle for the authenticated user. (circles.insert) - * - * @param string $userId - * The ID of the user to create the circle on behalf of. The value "me" can be used to indicate the - * authenticated user. - * @param Google_Circle $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Circle - */ - public function insert($userId, Google_Service_PlusDomains_Circle $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_PlusDomains_Circle"); - } - /** - * List all of the circles for a user. (circles.listCircles) - * - * @param string $userId - * The ID of the user to get circles for. The special value "me" can be used to indicate the - * authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of circles to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @return Google_Service_PlusDomains_CircleFeed - */ - public function listCircles($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_PlusDomains_CircleFeed"); - } - /** - * Update a circle's description. This method supports patch semantics. - * (circles.patch) - * - * @param string $circleId - * The ID of the circle to update. - * @param Google_Circle $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Circle - */ - public function patch($circleId, Google_Service_PlusDomains_Circle $postBody, $optParams = array()) - { - $params = array('circleId' => $circleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_PlusDomains_Circle"); - } - /** - * Delete a circle. (circles.remove) - * - * @param string $circleId - * The ID of the circle to delete. - * @param array $optParams Optional parameters. - */ - public function remove($circleId, $optParams = array()) - { - $params = array('circleId' => $circleId); - $params = array_merge($params, $optParams); - return $this->call('remove', array($params)); - } - /** - * Remove a person from a circle. (circles.removePeople) - * - * @param string $circleId - * The ID of the circle to remove the person from. - * @param array $optParams Optional parameters. - * - * @opt_param string userId - * IDs of the people to remove from the circle. Optional, can be repeated. - * @opt_param string email - * Email of the people to add to the circle. Optional, can be repeated. - */ - public function removePeople($circleId, $optParams = array()) - { - $params = array('circleId' => $circleId); - $params = array_merge($params, $optParams); - return $this->call('removePeople', array($params)); - } - /** - * Update a circle's description. (circles.update) - * - * @param string $circleId - * The ID of the circle to update. - * @param Google_Circle $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Circle - */ - public function update($circleId, Google_Service_PlusDomains_Circle $postBody, $optParams = array()) - { - $params = array('circleId' => $circleId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_PlusDomains_Circle"); - } + /** + * Add a person to a circle. Google+ limits certain circle operations, including + * the number of circle adds. Learn More. (circles.addPeople) + * + * @param string $circleId + * The ID of the circle to add the person to. + * @param array $optParams Optional parameters. + * + * @opt_param string userId + * IDs of the people to add to the circle. Optional, can be repeated. + * @opt_param string email + * Email of the people to add to the circle. Optional, can be repeated. + * @return Google_Service_PlusDomains_Circle + */ + public function addPeople($circleId, $optParams = array()) { + $params = array('circleId' => $circleId); + $params = array_merge($params, $optParams); + return $this->call('addPeople', array($params), "Google_Service_PlusDomains_Circle"); + } + + /** + * Get a circle. (circles.get) + * + * @param string $circleId + * The ID of the circle to get. + * @param array $optParams Optional parameters. + * @return Google_Service_PlusDomains_Circle + */ + public function get($circleId, $optParams = array()) { + $params = array('circleId' => $circleId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_PlusDomains_Circle"); + } + + /** + * Create a new circle for the authenticated user. (circles.insert) + * + * @param string $userId + * The ID of the user to create the circle on behalf of. The value "me" can be used to indicate the + * authenticated user. + * @param Google_Circle $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_PlusDomains_Circle + */ + public function insert($userId, Google_Service_PlusDomains_Circle $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_PlusDomains_Circle"); + } + + /** + * List all of the circles for a user. (circles.listCircles) + * + * @param string $userId + * The ID of the user to get circles for. The special value "me" can be used to indicate the + * authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults + * The maximum number of circles to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @return Google_Service_PlusDomains_CircleFeed + */ + public function listCircles($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_PlusDomains_CircleFeed"); + } + + /** + * Update a circle's description. This method supports patch semantics. + * (circles.patch) + * + * @param string $circleId + * The ID of the circle to update. + * @param Google_Circle $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_PlusDomains_Circle + */ + public function patch($circleId, Google_Service_PlusDomains_Circle $postBody, $optParams = array()) { + $params = array('circleId' => $circleId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_PlusDomains_Circle"); + } + + /** + * Delete a circle. (circles.remove) + * + * @param string $circleId + * The ID of the circle to delete. + * @param array $optParams Optional parameters. + */ + public function remove($circleId, $optParams = array()) { + $params = array('circleId' => $circleId); + $params = array_merge($params, $optParams); + return $this->call('remove', array($params)); + } + + /** + * Remove a person from a circle. (circles.removePeople) + * + * @param string $circleId + * The ID of the circle to remove the person from. + * @param array $optParams Optional parameters. + * + * @opt_param string userId + * IDs of the people to remove from the circle. Optional, can be repeated. + * @opt_param string email + * Email of the people to add to the circle. Optional, can be repeated. + */ + public function removePeople($circleId, $optParams = array()) { + $params = array('circleId' => $circleId); + $params = array_merge($params, $optParams); + return $this->call('removePeople', array($params)); + } + + /** + * Update a circle's description. (circles.update) + * + * @param string $circleId + * The ID of the circle to update. + * @param Google_Circle $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_PlusDomains_Circle + */ + public function update($circleId, Google_Service_PlusDomains_Circle $postBody, $optParams = array()) { + $params = array('circleId' => $circleId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_PlusDomains_Circle"); + } } /** @@ -708,61 +700,59 @@ class Google_Service_PlusDomains_Circles_Resource extends Google_Service_Resourc * $comments = $plusDomainsService->comments; * */ -class Google_Service_PlusDomains_Comments_Resource extends Google_Service_Resource -{ +class Google_Service_PlusDomains_Comments_Resource extends Google_Service_Resource { - /** - * Get a comment. (comments.get) - * - * @param string $commentId - * The ID of the comment to get. - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Comment - */ - public function get($commentId, $optParams = array()) - { - $params = array('commentId' => $commentId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_PlusDomains_Comment"); - } - /** - * Create a new comment in reply to an activity. (comments.insert) - * - * @param string $activityId - * The ID of the activity to reply to. - * @param Google_Comment $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Comment - */ - public function insert($activityId, Google_Service_PlusDomains_Comment $postBody, $optParams = array()) - { - $params = array('activityId' => $activityId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_PlusDomains_Comment"); - } - /** - * List all of the comments for an activity. (comments.listComments) - * - * @param string $activityId - * The ID of the activity to get comments for. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string sortOrder - * The order in which to sort the list of comments. - * @opt_param string maxResults - * The maximum number of comments to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @return Google_Service_PlusDomains_CommentFeed - */ - public function listComments($activityId, $optParams = array()) - { - $params = array('activityId' => $activityId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_PlusDomains_CommentFeed"); - } + /** + * Get a comment. (comments.get) + * + * @param string $commentId + * The ID of the comment to get. + * @param array $optParams Optional parameters. + * @return Google_Service_PlusDomains_Comment + */ + public function get($commentId, $optParams = array()) { + $params = array('commentId' => $commentId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_PlusDomains_Comment"); + } + + /** + * Create a new comment in reply to an activity. (comments.insert) + * + * @param string $activityId + * The ID of the activity to reply to. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_PlusDomains_Comment + */ + public function insert($activityId, Google_Service_PlusDomains_Comment $postBody, $optParams = array()) { + $params = array('activityId' => $activityId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_PlusDomains_Comment"); + } + + /** + * List all of the comments for an activity. (comments.listComments) + * + * @param string $activityId + * The ID of the activity to get comments for. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string sortOrder + * The order in which to sort the list of comments. + * @opt_param string maxResults + * The maximum number of comments to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @return Google_Service_PlusDomains_CommentFeed + */ + public function listComments($activityId, $optParams = array()) { + $params = array('activityId' => $activityId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_PlusDomains_CommentFeed"); + } } /** @@ -773,29 +763,27 @@ class Google_Service_PlusDomains_Comments_Resource extends Google_Service_Resour * $media = $plusDomainsService->media; * */ -class Google_Service_PlusDomains_Media_Resource extends Google_Service_Resource -{ +class Google_Service_PlusDomains_Media_Resource extends Google_Service_Resource { - /** - * Add a new media item to an album. The current upload size limitations are - * 36MB for a photo and 1GB for a video. Uploads do not count against quota if - * photos are less than 2048 pixels on their longest side or videos are less - * than 15 minutes in length. (media.insert) - * - * @param string $userId - * The ID of the user to create the activity on behalf of. - * @param string $collection - * - * @param Google_Media $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Media - */ - public function insert($userId, $collection, Google_Service_PlusDomains_Media $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_PlusDomains_Media"); - } + /** + * Add a new media item to an album. The current upload size limitations are + * 36MB for a photo and 1GB for a video. Uploads do not count against quota if + * photos are less than 2048 pixels on their longest side or videos are less + * than 15 minutes in length. (media.insert) + * + * @param string $userId + * The ID of the user to create the activity on behalf of. + * @param string $collection + * + * @param Google_Media $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_PlusDomains_Media + */ + public function insert($userId, $collection, Google_Service_PlusDomains_Media $postBody, $optParams = array()) { + $params = array('userId' => $userId, 'collection' => $collection, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_PlusDomains_Media"); + } } /** @@ -806,3205 +794,2630 @@ class Google_Service_PlusDomains_Media_Resource extends Google_Service_Resource * $people = $plusDomainsService->people; * */ -class Google_Service_PlusDomains_People_Resource extends Google_Service_Resource -{ +class Google_Service_PlusDomains_People_Resource extends Google_Service_Resource { - /** - * Get a person's profile. (people.get) - * - * @param string $userId - * The ID of the person to get the profile for. The special value "me" can be used to indicate the - * authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_PlusDomains_Person - */ - public function get($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_PlusDomains_Person"); - } - /** - * List all of the people in the specified collection. (people.listPeople) - * - * @param string $userId - * Get the collection of people for the person identified. Use "me" to indicate the authenticated - * user. - * @param string $collection - * The collection of people to list. - * @param array $optParams Optional parameters. - * - * @opt_param string orderBy - * The order to return people in. - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @return Google_Service_PlusDomains_PeopleFeed - */ - public function listPeople($userId, $collection, $optParams = array()) - { - $params = array('userId' => $userId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_PlusDomains_PeopleFeed"); - } - /** - * List all of the people in the specified collection for a particular activity. - * (people.listByActivity) - * - * @param string $activityId - * The ID of the activity to get the list of people for. - * @param string $collection - * The collection of people to list. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @return Google_Service_PlusDomains_PeopleFeed - */ - public function listByActivity($activityId, $collection, $optParams = array()) - { - $params = array('activityId' => $activityId, 'collection' => $collection); - $params = array_merge($params, $optParams); - return $this->call('listByActivity', array($params), "Google_Service_PlusDomains_PeopleFeed"); - } - /** - * List all of the people who are members of a circle. (people.listByCircle) - * - * @param string $circleId - * The ID of the circle to get the members of. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The continuation token, which is used to page through large result sets. To get the next page of - * results, set this parameter to the value of "nextPageToken" from the previous response. - * @opt_param string maxResults - * The maximum number of people to include in the response, which is used for paging. For any - * response, the actual number returned might be less than the specified maxResults. - * @return Google_Service_PlusDomains_PeopleFeed - */ - public function listByCircle($circleId, $optParams = array()) - { - $params = array('circleId' => $circleId); - $params = array_merge($params, $optParams); - return $this->call('listByCircle', array($params), "Google_Service_PlusDomains_PeopleFeed"); - } + /** + * Get a person's profile. (people.get) + * + * @param string $userId + * The ID of the person to get the profile for. The special value "me" can be used to indicate the + * authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_PlusDomains_Person + */ + public function get($userId, $optParams = array()) { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_PlusDomains_Person"); + } + + /** + * List all of the people in the specified collection. (people.listPeople) + * + * @param string $userId + * Get the collection of people for the person identified. Use "me" to indicate the authenticated + * user. + * @param string $collection + * The collection of people to list. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy + * The order to return people in. + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults + * The maximum number of people to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @return Google_Service_PlusDomains_PeopleFeed + */ + public function listPeople($userId, $collection, $optParams = array()) { + $params = array('userId' => $userId, 'collection' => $collection); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_PlusDomains_PeopleFeed"); + } + + /** + * List all of the people in the specified collection for a particular activity. + * (people.listByActivity) + * + * @param string $activityId + * The ID of the activity to get the list of people for. + * @param string $collection + * The collection of people to list. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults + * The maximum number of people to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @return Google_Service_PlusDomains_PeopleFeed + */ + public function listByActivity($activityId, $collection, $optParams = array()) { + $params = array('activityId' => $activityId, 'collection' => $collection); + $params = array_merge($params, $optParams); + return $this->call('listByActivity', array($params), "Google_Service_PlusDomains_PeopleFeed"); + } + + /** + * List all of the people who are members of a circle. (people.listByCircle) + * + * @param string $circleId + * The ID of the circle to get the members of. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The continuation token, which is used to page through large result sets. To get the next page of + * results, set this parameter to the value of "nextPageToken" from the previous response. + * @opt_param string maxResults + * The maximum number of people to include in the response, which is used for paging. For any + * response, the actual number returned might be less than the specified maxResults. + * @return Google_Service_PlusDomains_PeopleFeed + */ + public function listByCircle($circleId, $optParams = array()) { + $params = array('circleId' => $circleId); + $params = array_merge($params, $optParams); + return $this->call('listByCircle', array($params), "Google_Service_PlusDomains_PeopleFeed"); + } } +class Google_Service_PlusDomains_Acl extends Google_Collection { + public $description; + public $domainRestricted; + protected $itemsType = 'Google_Service_PlusDomains_PlusDomainsAclentryResource'; + protected $itemsDataType = 'array'; + public $kind; + public function setDescription($description) { + $this->description = $description; + } -class Google_Service_PlusDomains_Acl extends Google_Collection -{ - public $description; - public $domainRestricted; - protected $itemsType = 'Google_Service_PlusDomains_PlusDomainsAclentryResource'; - protected $itemsDataType = 'array'; - public $kind; + public function getDescription() { + return $this->description; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDomainRestricted($domainRestricted) { + $this->domainRestricted = $domainRestricted; + } - public function getDescription() - { - return $this->description; - } + public function getDomainRestricted() { + return $this->domainRestricted; + } - public function setDomainRestricted($domainRestricted) - { - $this->domainRestricted = $domainRestricted; - } + public function setItems($items) { + $this->items = $items; + } - public function getDomainRestricted() - { - return $this->domainRestricted; - } + public function getItems() { + return $this->items; + } - public function setItems($items) - { - $this->items = $items; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_PlusDomains_Activity extends Google_Model -{ - protected $accessType = 'Google_Service_PlusDomains_Acl'; - protected $accessDataType = ''; - protected $actorType = 'Google_Service_PlusDomains_ActivityActor'; - protected $actorDataType = ''; - public $address; - public $annotation; - public $crosspostSource; - public $etag; - public $geocode; - public $id; - public $kind; - protected $locationType = 'Google_Service_PlusDomains_Place'; - protected $locationDataType = ''; - protected $objectType = 'Google_Service_PlusDomains_ActivityObject'; - protected $objectDataType = ''; - public $placeId; - public $placeName; - protected $providerType = 'Google_Service_PlusDomains_ActivityProvider'; - protected $providerDataType = ''; - public $published; - public $radius; - public $title; - public $updated; - public $url; - public $verb; +class Google_Service_PlusDomains_Activity extends Google_Model { + protected $accessType = 'Google_Service_PlusDomains_Acl'; + protected $accessDataType = ''; + protected $actorType = 'Google_Service_PlusDomains_ActivityActor'; + protected $actorDataType = ''; + public $address; + public $annotation; + public $crosspostSource; + public $etag; + public $geocode; + public $id; + public $kind; + protected $locationType = 'Google_Service_PlusDomains_Place'; + protected $locationDataType = ''; + protected $objectType = 'Google_Service_PlusDomains_ActivityObject'; + protected $objectDataType = ''; + public $placeId; + public $placeName; + protected $providerType = 'Google_Service_PlusDomains_ActivityProvider'; + protected $providerDataType = ''; + public $published; + public $radius; + public $title; + public $updated; + public $url; + public $verb; - public function setAccess(Google_Service_PlusDomains_Acl $access) - { - $this->access = $access; - } + public function setAccess(Google_Service_PlusDomains_Acl $access) { + $this->access = $access; + } - public function getAccess() - { - return $this->access; - } + public function getAccess() { + return $this->access; + } - public function setActor(Google_Service_PlusDomains_ActivityActor $actor) - { - $this->actor = $actor; - } + public function setActor(Google_Service_PlusDomains_ActivityActor $actor) { + $this->actor = $actor; + } - public function getActor() - { - return $this->actor; - } + public function getActor() { + return $this->actor; + } - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setAnnotation($annotation) - { - $this->annotation = $annotation; - } + public function setAnnotation($annotation) { + $this->annotation = $annotation; + } - public function getAnnotation() - { - return $this->annotation; - } + public function getAnnotation() { + return $this->annotation; + } - public function setCrosspostSource($crosspostSource) - { - $this->crosspostSource = $crosspostSource; - } + public function setCrosspostSource($crosspostSource) { + $this->crosspostSource = $crosspostSource; + } - public function getCrosspostSource() - { - return $this->crosspostSource; - } + public function getCrosspostSource() { + return $this->crosspostSource; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setGeocode($geocode) - { - $this->geocode = $geocode; - } + public function setGeocode($geocode) { + $this->geocode = $geocode; + } - public function getGeocode() - { - return $this->geocode; - } + public function getGeocode() { + return $this->geocode; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLocation(Google_Service_PlusDomains_Place $location) - { - $this->location = $location; - } + public function setLocation(Google_Service_PlusDomains_Place $location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setObject(Google_Service_PlusDomains_ActivityObject $object) - { - $this->object = $object; - } + public function setObject(Google_Service_PlusDomains_ActivityObject $object) { + $this->object = $object; + } - public function getObject() - { - return $this->object; - } + public function getObject() { + return $this->object; + } - public function setPlaceId($placeId) - { - $this->placeId = $placeId; - } + public function setPlaceId($placeId) { + $this->placeId = $placeId; + } - public function getPlaceId() - { - return $this->placeId; - } + public function getPlaceId() { + return $this->placeId; + } - public function setPlaceName($placeName) - { - $this->placeName = $placeName; - } + public function setPlaceName($placeName) { + $this->placeName = $placeName; + } - public function getPlaceName() - { - return $this->placeName; - } + public function getPlaceName() { + return $this->placeName; + } - public function setProvider(Google_Service_PlusDomains_ActivityProvider $provider) - { - $this->provider = $provider; - } + public function setProvider(Google_Service_PlusDomains_ActivityProvider $provider) { + $this->provider = $provider; + } - public function getProvider() - { - return $this->provider; - } + public function getProvider() { + return $this->provider; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPublished() - { - return $this->published; - } + public function getPublished() { + return $this->published; + } - public function setRadius($radius) - { - $this->radius = $radius; - } + public function setRadius($radius) { + $this->radius = $radius; + } - public function getRadius() - { - return $this->radius; - } + public function getRadius() { + return $this->radius; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setVerb($verb) - { - $this->verb = $verb; - } + public function setVerb($verb) { + $this->verb = $verb; + } - public function getVerb() - { - return $this->verb; - } + public function getVerb() { + return $this->verb; + } } -class Google_Service_PlusDomains_ActivityActor extends Google_Model -{ - public $displayName; - public $id; - protected $imageType = 'Google_Service_PlusDomains_ActivityActorImage'; - protected $imageDataType = ''; - protected $nameType = 'Google_Service_PlusDomains_ActivityActorName'; - protected $nameDataType = ''; - public $url; +class Google_Service_PlusDomains_ActivityActor extends Google_Model { + public $displayName; + public $id; + protected $imageType = 'Google_Service_PlusDomains_ActivityActorImage'; + protected $imageDataType = ''; + protected $nameType = 'Google_Service_PlusDomains_ActivityActorName'; + protected $nameDataType = ''; + public $url; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_PlusDomains_ActivityActorImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_PlusDomains_ActivityActorImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setName(Google_Service_PlusDomains_ActivityActorName $name) - { - $this->name = $name; - } + public function setName(Google_Service_PlusDomains_ActivityActorName $name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_ActivityActorImage extends Google_Model -{ - public $url; +class Google_Service_PlusDomains_ActivityActorImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_ActivityActorName extends Google_Model -{ - public $familyName; - public $givenName; +class Google_Service_PlusDomains_ActivityActorName extends Google_Model { + public $familyName; + public $givenName; - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } + public function setFamilyName($familyName) { + $this->familyName = $familyName; + } - public function getFamilyName() - { - return $this->familyName; - } + public function getFamilyName() { + return $this->familyName; + } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } + public function setGivenName($givenName) { + $this->givenName = $givenName; + } - public function getGivenName() - { - return $this->givenName; - } + public function getGivenName() { + return $this->givenName; + } } -class Google_Service_PlusDomains_ActivityFeed extends Google_Collection -{ - public $etag; - public $id; - protected $itemsType = 'Google_Service_PlusDomains_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; - public $title; - public $updated; +class Google_Service_PlusDomains_ActivityFeed extends Google_Collection { + public $etag; + public $id; + protected $itemsType = 'Google_Service_PlusDomains_Activity'; + protected $itemsDataType = 'array'; + public $kind; + public $nextLink; + public $nextPageToken; + public $selfLink; + public $title; + public $updated; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } - public function getNextLink() - { - return $this->nextLink; - } + public function getNextLink() { + return $this->nextLink; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_PlusDomains_ActivityObject extends Google_Collection -{ - protected $actorType = 'Google_Service_PlusDomains_ActivityObjectActor'; - protected $actorDataType = ''; - protected $attachmentsType = 'Google_Service_PlusDomains_ActivityObjectAttachments'; - protected $attachmentsDataType = 'array'; - public $content; - public $id; - public $objectType; - public $originalContent; - protected $plusonersType = 'Google_Service_PlusDomains_ActivityObjectPlusoners'; - protected $plusonersDataType = ''; - protected $repliesType = 'Google_Service_PlusDomains_ActivityObjectReplies'; - protected $repliesDataType = ''; - protected $resharersType = 'Google_Service_PlusDomains_ActivityObjectResharers'; - protected $resharersDataType = ''; - protected $statusForViewerType = 'Google_Service_PlusDomains_ActivityObjectStatusForViewer'; - protected $statusForViewerDataType = ''; - public $url; +class Google_Service_PlusDomains_ActivityObject extends Google_Collection { + protected $actorType = 'Google_Service_PlusDomains_ActivityObjectActor'; + protected $actorDataType = ''; + protected $attachmentsType = 'Google_Service_PlusDomains_ActivityObjectAttachments'; + protected $attachmentsDataType = 'array'; + public $content; + public $id; + public $objectType; + public $originalContent; + protected $plusonersType = 'Google_Service_PlusDomains_ActivityObjectPlusoners'; + protected $plusonersDataType = ''; + protected $repliesType = 'Google_Service_PlusDomains_ActivityObjectReplies'; + protected $repliesDataType = ''; + protected $resharersType = 'Google_Service_PlusDomains_ActivityObjectResharers'; + protected $resharersDataType = ''; + protected $statusForViewerType = 'Google_Service_PlusDomains_ActivityObjectStatusForViewer'; + protected $statusForViewerDataType = ''; + public $url; - public function setActor(Google_Service_PlusDomains_ActivityObjectActor $actor) - { - $this->actor = $actor; - } + public function setActor(Google_Service_PlusDomains_ActivityObjectActor $actor) { + $this->actor = $actor; + } - public function getActor() - { - return $this->actor; - } + public function getActor() { + return $this->actor; + } - public function setAttachments($attachments) - { - $this->attachments = $attachments; - } + public function setAttachments($attachments) { + $this->attachments = $attachments; + } - public function getAttachments() - { - return $this->attachments; - } + public function getAttachments() { + return $this->attachments; + } - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } + public function setObjectType($objectType) { + $this->objectType = $objectType; + } - public function getObjectType() - { - return $this->objectType; - } + public function getObjectType() { + return $this->objectType; + } - public function setOriginalContent($originalContent) - { - $this->originalContent = $originalContent; - } + public function setOriginalContent($originalContent) { + $this->originalContent = $originalContent; + } - public function getOriginalContent() - { - return $this->originalContent; - } + public function getOriginalContent() { + return $this->originalContent; + } - public function setPlusoners(Google_Service_PlusDomains_ActivityObjectPlusoners $plusoners) - { - $this->plusoners = $plusoners; - } + public function setPlusoners(Google_Service_PlusDomains_ActivityObjectPlusoners $plusoners) { + $this->plusoners = $plusoners; + } - public function getPlusoners() - { - return $this->plusoners; - } + public function getPlusoners() { + return $this->plusoners; + } - public function setReplies(Google_Service_PlusDomains_ActivityObjectReplies $replies) - { - $this->replies = $replies; - } + public function setReplies(Google_Service_PlusDomains_ActivityObjectReplies $replies) { + $this->replies = $replies; + } - public function getReplies() - { - return $this->replies; - } + public function getReplies() { + return $this->replies; + } - public function setResharers(Google_Service_PlusDomains_ActivityObjectResharers $resharers) - { - $this->resharers = $resharers; - } + public function setResharers(Google_Service_PlusDomains_ActivityObjectResharers $resharers) { + $this->resharers = $resharers; + } - public function getResharers() - { - return $this->resharers; - } + public function getResharers() { + return $this->resharers; + } - public function setStatusForViewer(Google_Service_PlusDomains_ActivityObjectStatusForViewer $statusForViewer) - { - $this->statusForViewer = $statusForViewer; - } + public function setStatusForViewer(Google_Service_PlusDomains_ActivityObjectStatusForViewer $statusForViewer) { + $this->statusForViewer = $statusForViewer; + } - public function getStatusForViewer() - { - return $this->statusForViewer; - } + public function getStatusForViewer() { + return $this->statusForViewer; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_ActivityObjectActor extends Google_Model -{ - public $displayName; - public $id; - protected $imageType = 'Google_Service_PlusDomains_ActivityObjectActorImage'; - protected $imageDataType = ''; - public $url; +class Google_Service_PlusDomains_ActivityObjectActor extends Google_Model { + public $displayName; + public $id; + protected $imageType = 'Google_Service_PlusDomains_ActivityObjectActorImage'; + protected $imageDataType = ''; + public $url; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_PlusDomains_ActivityObjectActorImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_PlusDomains_ActivityObjectActorImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_ActivityObjectActorImage extends Google_Model -{ - public $url; +class Google_Service_PlusDomains_ActivityObjectActorImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_ActivityObjectAttachments extends Google_Collection -{ - public $content; - public $displayName; - protected $embedType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed'; - protected $embedDataType = ''; - protected $fullImageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage'; - protected $fullImageDataType = ''; - public $id; - protected $imageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsImage'; - protected $imageDataType = ''; - public $objectType; - protected $previewThumbnailsType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails'; - protected $previewThumbnailsDataType = 'array'; - protected $thumbnailsType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails'; - protected $thumbnailsDataType = 'array'; - public $url; +class Google_Service_PlusDomains_ActivityObjectAttachments extends Google_Collection { + public $content; + public $displayName; + protected $embedType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed'; + protected $embedDataType = ''; + protected $fullImageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage'; + protected $fullImageDataType = ''; + public $id; + protected $imageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsImage'; + protected $imageDataType = ''; + public $objectType; + protected $previewThumbnailsType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails'; + protected $previewThumbnailsDataType = 'array'; + protected $thumbnailsType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails'; + protected $thumbnailsDataType = 'array'; + public $url; - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEmbed(Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed $embed) - { - $this->embed = $embed; - } + public function setEmbed(Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed $embed) { + $this->embed = $embed; + } - public function getEmbed() - { - return $this->embed; - } + public function getEmbed() { + return $this->embed; + } - public function setFullImage(Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage $fullImage) - { - $this->fullImage = $fullImage; - } + public function setFullImage(Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage $fullImage) { + $this->fullImage = $fullImage; + } - public function getFullImage() - { - return $this->fullImage; - } + public function getFullImage() { + return $this->fullImage; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } + public function setObjectType($objectType) { + $this->objectType = $objectType; + } - public function getObjectType() - { - return $this->objectType; - } + public function getObjectType() { + return $this->objectType; + } - public function setPreviewThumbnails($previewThumbnails) - { - $this->previewThumbnails = $previewThumbnails; - } + public function setPreviewThumbnails($previewThumbnails) { + $this->previewThumbnails = $previewThumbnails; + } - public function getPreviewThumbnails() - { - return $this->previewThumbnails; - } + public function getPreviewThumbnails() { + return $this->previewThumbnails; + } - public function setThumbnails($thumbnails) - { - $this->thumbnails = $thumbnails; - } + public function setThumbnails($thumbnails) { + $this->thumbnails = $thumbnails; + } - public function getThumbnails() - { - return $this->thumbnails; - } + public function getThumbnails() { + return $this->thumbnails; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed extends Google_Model -{ - public $type; - public $url; +class Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed extends Google_Model { + public $type; + public $url; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage extends Google_Model -{ - public $height; - public $type; - public $url; - public $width; +class Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage extends Google_Model { + public $height; + public $type; + public $url; + public $width; - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_PlusDomains_ActivityObjectAttachmentsImage extends Google_Model -{ - public $height; - public $type; - public $url; - public $width; +class Google_Service_PlusDomains_ActivityObjectAttachmentsImage extends Google_Model { + public $height; + public $type; + public $url; + public $width; - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails extends Google_Model -{ - public $url; +class Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails extends Google_Model -{ - public $description; - protected $imageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage'; - protected $imageDataType = ''; - public $url; +class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails extends Google_Model { + public $description; + protected $imageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage'; + protected $imageDataType = ''; + public $url; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage extends Google_Model -{ - public $height; - public $type; - public $url; - public $width; +class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage extends Google_Model { + public $height; + public $type; + public $url; + public $width; - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_PlusDomains_ActivityObjectPlusoners extends Google_Model -{ - public $selfLink; - public $totalItems; +class Google_Service_PlusDomains_ActivityObjectPlusoners extends Google_Model { + public $selfLink; + public $totalItems; - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_PlusDomains_ActivityObjectReplies extends Google_Model -{ - public $selfLink; - public $totalItems; +class Google_Service_PlusDomains_ActivityObjectReplies extends Google_Model { + public $selfLink; + public $totalItems; - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_PlusDomains_ActivityObjectResharers extends Google_Model -{ - public $selfLink; - public $totalItems; +class Google_Service_PlusDomains_ActivityObjectResharers extends Google_Model { + public $selfLink; + public $totalItems; - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_PlusDomains_ActivityObjectStatusForViewer extends Google_Model -{ - public $canComment; - public $canPlusone; - public $canUpdate; - public $isPlusOned; - public $resharingDisabled; +class Google_Service_PlusDomains_ActivityObjectStatusForViewer extends Google_Model { + public $canComment; + public $canPlusone; + public $canUpdate; + public $isPlusOned; + public $resharingDisabled; - public function setCanComment($canComment) - { - $this->canComment = $canComment; - } + public function setCanComment($canComment) { + $this->canComment = $canComment; + } - public function getCanComment() - { - return $this->canComment; - } + public function getCanComment() { + return $this->canComment; + } - public function setCanPlusone($canPlusone) - { - $this->canPlusone = $canPlusone; - } + public function setCanPlusone($canPlusone) { + $this->canPlusone = $canPlusone; + } - public function getCanPlusone() - { - return $this->canPlusone; - } + public function getCanPlusone() { + return $this->canPlusone; + } - public function setCanUpdate($canUpdate) - { - $this->canUpdate = $canUpdate; - } + public function setCanUpdate($canUpdate) { + $this->canUpdate = $canUpdate; + } - public function getCanUpdate() - { - return $this->canUpdate; - } + public function getCanUpdate() { + return $this->canUpdate; + } - public function setIsPlusOned($isPlusOned) - { - $this->isPlusOned = $isPlusOned; - } + public function setIsPlusOned($isPlusOned) { + $this->isPlusOned = $isPlusOned; + } - public function getIsPlusOned() - { - return $this->isPlusOned; - } + public function getIsPlusOned() { + return $this->isPlusOned; + } - public function setResharingDisabled($resharingDisabled) - { - $this->resharingDisabled = $resharingDisabled; - } + public function setResharingDisabled($resharingDisabled) { + $this->resharingDisabled = $resharingDisabled; + } - public function getResharingDisabled() - { - return $this->resharingDisabled; - } + public function getResharingDisabled() { + return $this->resharingDisabled; + } } -class Google_Service_PlusDomains_ActivityProvider extends Google_Model -{ - public $title; +class Google_Service_PlusDomains_ActivityProvider extends Google_Model { + public $title; - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } } -class Google_Service_PlusDomains_Audience extends Google_Model -{ - public $etag; - protected $itemType = 'Google_Service_PlusDomains_PlusDomainsAclentryResource'; - protected $itemDataType = ''; - public $kind; - public $memberCount; - public $visibility; +class Google_Service_PlusDomains_Audience extends Google_Model { + public $etag; + protected $itemType = 'Google_Service_PlusDomains_PlusDomainsAclentryResource'; + protected $itemDataType = ''; + public $kind; + public $memberCount; + public $visibility; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItem(Google_Service_PlusDomains_PlusDomainsAclentryResource $item) - { - $this->item = $item; - } + public function setItem(Google_Service_PlusDomains_PlusDomainsAclentryResource $item) { + $this->item = $item; + } - public function getItem() - { - return $this->item; - } + public function getItem() { + return $this->item; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMemberCount($memberCount) - { - $this->memberCount = $memberCount; - } + public function setMemberCount($memberCount) { + $this->memberCount = $memberCount; + } - public function getMemberCount() - { - return $this->memberCount; - } + public function getMemberCount() { + return $this->memberCount; + } - public function setVisibility($visibility) - { - $this->visibility = $visibility; - } + public function setVisibility($visibility) { + $this->visibility = $visibility; + } - public function getVisibility() - { - return $this->visibility; - } + public function getVisibility() { + return $this->visibility; + } } -class Google_Service_PlusDomains_AudiencesFeed extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_PlusDomains_Audience'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $totalItems; +class Google_Service_PlusDomains_AudiencesFeed extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_PlusDomains_Audience'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $totalItems; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_PlusDomains_Circle extends Google_Model -{ - public $description; - public $displayName; - public $etag; - public $id; - public $kind; - protected $peopleType = 'Google_Service_PlusDomains_CirclePeople'; - protected $peopleDataType = ''; - public $selfLink; +class Google_Service_PlusDomains_Circle extends Google_Model { + public $description; + public $displayName; + public $etag; + public $id; + public $kind; + protected $peopleType = 'Google_Service_PlusDomains_CirclePeople'; + protected $peopleDataType = ''; + public $selfLink; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPeople(Google_Service_PlusDomains_CirclePeople $people) - { - $this->people = $people; - } + public function setPeople(Google_Service_PlusDomains_CirclePeople $people) { + $this->people = $people; + } - public function getPeople() - { - return $this->people; - } + public function getPeople() { + return $this->people; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_PlusDomains_CircleFeed extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_PlusDomains_Circle'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $selfLink; - public $title; - public $totalItems; +class Google_Service_PlusDomains_CircleFeed extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_PlusDomains_Circle'; + protected $itemsDataType = 'array'; + public $kind; + public $nextLink; + public $nextPageToken; + public $selfLink; + public $title; + public $totalItems; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } - public function getNextLink() - { - return $this->nextLink; - } + public function getNextLink() { + return $this->nextLink; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_PlusDomains_CirclePeople extends Google_Model -{ - public $totalItems; +class Google_Service_PlusDomains_CirclePeople extends Google_Model { + public $totalItems; - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_PlusDomains_Comment extends Google_Collection -{ - protected $actorType = 'Google_Service_PlusDomains_CommentActor'; - protected $actorDataType = ''; - public $etag; - public $id; - protected $inReplyToType = 'Google_Service_PlusDomains_CommentInReplyTo'; - protected $inReplyToDataType = 'array'; - public $kind; - protected $objectType = 'Google_Service_PlusDomains_CommentObject'; - protected $objectDataType = ''; - protected $plusonersType = 'Google_Service_PlusDomains_CommentPlusoners'; - protected $plusonersDataType = ''; - public $published; - public $selfLink; - public $updated; - public $verb; +class Google_Service_PlusDomains_Comment extends Google_Collection { + protected $actorType = 'Google_Service_PlusDomains_CommentActor'; + protected $actorDataType = ''; + public $etag; + public $id; + protected $inReplyToType = 'Google_Service_PlusDomains_CommentInReplyTo'; + protected $inReplyToDataType = 'array'; + public $kind; + protected $objectType = 'Google_Service_PlusDomains_CommentObject'; + protected $objectDataType = ''; + protected $plusonersType = 'Google_Service_PlusDomains_CommentPlusoners'; + protected $plusonersDataType = ''; + public $published; + public $selfLink; + public $updated; + public $verb; - public function setActor(Google_Service_PlusDomains_CommentActor $actor) - { - $this->actor = $actor; - } + public function setActor(Google_Service_PlusDomains_CommentActor $actor) { + $this->actor = $actor; + } - public function getActor() - { - return $this->actor; - } + public function getActor() { + return $this->actor; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setInReplyTo($inReplyTo) - { - $this->inReplyTo = $inReplyTo; - } + public function setInReplyTo($inReplyTo) { + $this->inReplyTo = $inReplyTo; + } - public function getInReplyTo() - { - return $this->inReplyTo; - } + public function getInReplyTo() { + return $this->inReplyTo; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setObject(Google_Service_PlusDomains_CommentObject $object) - { - $this->object = $object; - } + public function setObject(Google_Service_PlusDomains_CommentObject $object) { + $this->object = $object; + } - public function getObject() - { - return $this->object; - } + public function getObject() { + return $this->object; + } - public function setPlusoners(Google_Service_PlusDomains_CommentPlusoners $plusoners) - { - $this->plusoners = $plusoners; - } + public function setPlusoners(Google_Service_PlusDomains_CommentPlusoners $plusoners) { + $this->plusoners = $plusoners; + } - public function getPlusoners() - { - return $this->plusoners; - } + public function getPlusoners() { + return $this->plusoners; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPublished() - { - return $this->published; - } + public function getPublished() { + return $this->published; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } - public function setVerb($verb) - { - $this->verb = $verb; - } + public function setVerb($verb) { + $this->verb = $verb; + } - public function getVerb() - { - return $this->verb; - } + public function getVerb() { + return $this->verb; + } } -class Google_Service_PlusDomains_CommentActor extends Google_Model -{ - public $displayName; - public $id; - protected $imageType = 'Google_Service_PlusDomains_CommentActorImage'; - protected $imageDataType = ''; - public $url; +class Google_Service_PlusDomains_CommentActor extends Google_Model { + public $displayName; + public $id; + protected $imageType = 'Google_Service_PlusDomains_CommentActorImage'; + protected $imageDataType = ''; + public $url; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_PlusDomains_CommentActorImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_PlusDomains_CommentActorImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_CommentActorImage extends Google_Model -{ - public $url; +class Google_Service_PlusDomains_CommentActorImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_CommentFeed extends Google_Collection -{ - public $etag; - public $id; - protected $itemsType = 'Google_Service_PlusDomains_Comment'; - protected $itemsDataType = 'array'; - public $kind; - public $nextLink; - public $nextPageToken; - public $title; - public $updated; +class Google_Service_PlusDomains_CommentFeed extends Google_Collection { + public $etag; + public $id; + protected $itemsType = 'Google_Service_PlusDomains_Comment'; + protected $itemsDataType = 'array'; + public $kind; + public $nextLink; + public $nextPageToken; + public $title; + public $updated; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextLink($nextLink) - { - $this->nextLink = $nextLink; - } + public function setNextLink($nextLink) { + $this->nextLink = $nextLink; + } - public function getNextLink() - { - return $this->nextLink; - } + public function getNextLink() { + return $this->nextLink; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_PlusDomains_CommentInReplyTo extends Google_Model -{ - public $id; - public $url; +class Google_Service_PlusDomains_CommentInReplyTo extends Google_Model { + public $id; + public $url; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_CommentObject extends Google_Model -{ - public $content; - public $objectType; - public $originalContent; +class Google_Service_PlusDomains_CommentObject extends Google_Model { + public $content; + public $objectType; + public $originalContent; - public function setContent($content) - { - $this->content = $content; - } + public function setContent($content) { + $this->content = $content; + } - public function getContent() - { - return $this->content; - } + public function getContent() { + return $this->content; + } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } + public function setObjectType($objectType) { + $this->objectType = $objectType; + } - public function getObjectType() - { - return $this->objectType; - } + public function getObjectType() { + return $this->objectType; + } - public function setOriginalContent($originalContent) - { - $this->originalContent = $originalContent; - } + public function setOriginalContent($originalContent) { + $this->originalContent = $originalContent; + } - public function getOriginalContent() - { - return $this->originalContent; - } + public function getOriginalContent() { + return $this->originalContent; + } } -class Google_Service_PlusDomains_CommentPlusoners extends Google_Model -{ - public $totalItems; +class Google_Service_PlusDomains_CommentPlusoners extends Google_Model { + public $totalItems; - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_PlusDomains_Media extends Google_Collection -{ - protected $authorType = 'Google_Service_PlusDomains_MediaAuthor'; - protected $authorDataType = ''; - public $displayName; - public $etag; - protected $exifType = 'Google_Service_PlusDomains_MediaExif'; - protected $exifDataType = ''; - public $height; - public $id; - public $kind; - public $mediaCreatedTime; - public $mediaUrl; - public $published; - public $sizeBytes; - protected $streamsType = 'Google_Service_PlusDomains_Videostream'; - protected $streamsDataType = 'array'; - public $summary; - public $updated; - public $url; - public $videoDuration; - public $videoStatus; - public $width; +class Google_Service_PlusDomains_Media extends Google_Collection { + protected $authorType = 'Google_Service_PlusDomains_MediaAuthor'; + protected $authorDataType = ''; + public $displayName; + public $etag; + protected $exifType = 'Google_Service_PlusDomains_MediaExif'; + protected $exifDataType = ''; + public $height; + public $id; + public $kind; + public $mediaCreatedTime; + public $mediaUrl; + public $published; + public $sizeBytes; + protected $streamsType = 'Google_Service_PlusDomains_Videostream'; + protected $streamsDataType = 'array'; + public $summary; + public $updated; + public $url; + public $videoDuration; + public $videoStatus; + public $width; - public function setAuthor(Google_Service_PlusDomains_MediaAuthor $author) - { - $this->author = $author; - } + public function setAuthor(Google_Service_PlusDomains_MediaAuthor $author) { + $this->author = $author; + } - public function getAuthor() - { - return $this->author; - } + public function getAuthor() { + return $this->author; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setExif(Google_Service_PlusDomains_MediaExif $exif) - { - $this->exif = $exif; - } + public function setExif(Google_Service_PlusDomains_MediaExif $exif) { + $this->exif = $exif; + } - public function getExif() - { - return $this->exif; - } + public function getExif() { + return $this->exif; + } - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMediaCreatedTime($mediaCreatedTime) - { - $this->mediaCreatedTime = $mediaCreatedTime; - } + public function setMediaCreatedTime($mediaCreatedTime) { + $this->mediaCreatedTime = $mediaCreatedTime; + } - public function getMediaCreatedTime() - { - return $this->mediaCreatedTime; - } + public function getMediaCreatedTime() { + return $this->mediaCreatedTime; + } - public function setMediaUrl($mediaUrl) - { - $this->mediaUrl = $mediaUrl; - } + public function setMediaUrl($mediaUrl) { + $this->mediaUrl = $mediaUrl; + } - public function getMediaUrl() - { - return $this->mediaUrl; - } + public function getMediaUrl() { + return $this->mediaUrl; + } - public function setPublished($published) - { - $this->published = $published; - } + public function setPublished($published) { + $this->published = $published; + } - public function getPublished() - { - return $this->published; - } + public function getPublished() { + return $this->published; + } - public function setSizeBytes($sizeBytes) - { - $this->sizeBytes = $sizeBytes; - } + public function setSizeBytes($sizeBytes) { + $this->sizeBytes = $sizeBytes; + } - public function getSizeBytes() - { - return $this->sizeBytes; - } + public function getSizeBytes() { + return $this->sizeBytes; + } - public function setStreams($streams) - { - $this->streams = $streams; - } + public function setStreams($streams) { + $this->streams = $streams; + } - public function getStreams() - { - return $this->streams; - } + public function getStreams() { + return $this->streams; + } - public function setSummary($summary) - { - $this->summary = $summary; - } + public function setSummary($summary) { + $this->summary = $summary; + } - public function getSummary() - { - return $this->summary; - } + public function getSummary() { + return $this->summary; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setVideoDuration($videoDuration) - { - $this->videoDuration = $videoDuration; - } + public function setVideoDuration($videoDuration) { + $this->videoDuration = $videoDuration; + } - public function getVideoDuration() - { - return $this->videoDuration; - } + public function getVideoDuration() { + return $this->videoDuration; + } - public function setVideoStatus($videoStatus) - { - $this->videoStatus = $videoStatus; - } + public function setVideoStatus($videoStatus) { + $this->videoStatus = $videoStatus; + } - public function getVideoStatus() - { - return $this->videoStatus; - } + public function getVideoStatus() { + return $this->videoStatus; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_PlusDomains_MediaAuthor extends Google_Model -{ - public $displayName; - public $id; - protected $imageType = 'Google_Service_PlusDomains_MediaAuthorImage'; - protected $imageDataType = ''; - public $url; +class Google_Service_PlusDomains_MediaAuthor extends Google_Model { + public $displayName; + public $id; + protected $imageType = 'Google_Service_PlusDomains_MediaAuthorImage'; + protected $imageDataType = ''; + public $url; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_PlusDomains_MediaAuthorImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_PlusDomains_MediaAuthorImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_MediaAuthorImage extends Google_Model -{ - public $url; +class Google_Service_PlusDomains_MediaAuthorImage extends Google_Model { + public $url; - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_MediaExif extends Google_Model -{ - public $time; +class Google_Service_PlusDomains_MediaExif extends Google_Model { + public $time; - public function setTime($time) - { - $this->time = $time; - } + public function setTime($time) { + $this->time = $time; + } - public function getTime() - { - return $this->time; - } + public function getTime() { + return $this->time; + } } -class Google_Service_PlusDomains_PeopleFeed extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_PlusDomains_Person'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; - public $title; - public $totalItems; +class Google_Service_PlusDomains_PeopleFeed extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_PlusDomains_Person'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + public $title; + public $totalItems; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } -class Google_Service_PlusDomains_Person extends Google_Collection -{ - public $aboutMe; - public $birthday; - public $braggingRights; - public $circledByCount; - protected $coverType = 'Google_Service_PlusDomains_PersonCover'; - protected $coverDataType = ''; - public $currentLocation; - public $displayName; - public $domain; - protected $emailsType = 'Google_Service_PlusDomains_PersonEmails'; - protected $emailsDataType = 'array'; - public $etag; - public $gender; - public $id; - protected $imageType = 'Google_Service_PlusDomains_PersonImage'; - protected $imageDataType = ''; - public $isPlusUser; - public $kind; - protected $nameType = 'Google_Service_PlusDomains_PersonName'; - protected $nameDataType = ''; - public $nickname; - public $objectType; - public $occupation; - protected $organizationsType = 'Google_Service_PlusDomains_PersonOrganizations'; - protected $organizationsDataType = 'array'; - protected $placesLivedType = 'Google_Service_PlusDomains_PersonPlacesLived'; - protected $placesLivedDataType = 'array'; - public $plusOneCount; - public $relationshipStatus; - public $skills; - public $tagline; - public $url; - protected $urlsType = 'Google_Service_PlusDomains_PersonUrls'; - protected $urlsDataType = 'array'; - public $verified; +class Google_Service_PlusDomains_Person extends Google_Collection { + public $aboutMe; + public $birthday; + public $braggingRights; + public $circledByCount; + protected $coverType = 'Google_Service_PlusDomains_PersonCover'; + protected $coverDataType = ''; + public $currentLocation; + public $displayName; + public $domain; + protected $emailsType = 'Google_Service_PlusDomains_PersonEmails'; + protected $emailsDataType = 'array'; + public $etag; + public $gender; + public $id; + protected $imageType = 'Google_Service_PlusDomains_PersonImage'; + protected $imageDataType = ''; + public $isPlusUser; + public $kind; + protected $nameType = 'Google_Service_PlusDomains_PersonName'; + protected $nameDataType = ''; + public $nickname; + public $objectType; + public $occupation; + protected $organizationsType = 'Google_Service_PlusDomains_PersonOrganizations'; + protected $organizationsDataType = 'array'; + protected $placesLivedType = 'Google_Service_PlusDomains_PersonPlacesLived'; + protected $placesLivedDataType = 'array'; + public $plusOneCount; + public $relationshipStatus; + public $skills; + public $tagline; + public $url; + protected $urlsType = 'Google_Service_PlusDomains_PersonUrls'; + protected $urlsDataType = 'array'; + public $verified; - public function setAboutMe($aboutMe) - { - $this->aboutMe = $aboutMe; - } + public function setAboutMe($aboutMe) { + $this->aboutMe = $aboutMe; + } - public function getAboutMe() - { - return $this->aboutMe; - } + public function getAboutMe() { + return $this->aboutMe; + } - public function setBirthday($birthday) - { - $this->birthday = $birthday; - } + public function setBirthday($birthday) { + $this->birthday = $birthday; + } - public function getBirthday() - { - return $this->birthday; - } + public function getBirthday() { + return $this->birthday; + } - public function setBraggingRights($braggingRights) - { - $this->braggingRights = $braggingRights; - } + public function setBraggingRights($braggingRights) { + $this->braggingRights = $braggingRights; + } - public function getBraggingRights() - { - return $this->braggingRights; - } + public function getBraggingRights() { + return $this->braggingRights; + } - public function setCircledByCount($circledByCount) - { - $this->circledByCount = $circledByCount; - } + public function setCircledByCount($circledByCount) { + $this->circledByCount = $circledByCount; + } - public function getCircledByCount() - { - return $this->circledByCount; - } + public function getCircledByCount() { + return $this->circledByCount; + } - public function setCover(Google_Service_PlusDomains_PersonCover $cover) - { - $this->cover = $cover; - } + public function setCover(Google_Service_PlusDomains_PersonCover $cover) { + $this->cover = $cover; + } - public function getCover() - { - return $this->cover; - } + public function getCover() { + return $this->cover; + } - public function setCurrentLocation($currentLocation) - { - $this->currentLocation = $currentLocation; - } + public function setCurrentLocation($currentLocation) { + $this->currentLocation = $currentLocation; + } - public function getCurrentLocation() - { - return $this->currentLocation; - } + public function getCurrentLocation() { + return $this->currentLocation; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setDomain($domain) - { - $this->domain = $domain; - } + public function setDomain($domain) { + $this->domain = $domain; + } - public function getDomain() - { - return $this->domain; - } + public function getDomain() { + return $this->domain; + } - public function setEmails($emails) - { - $this->emails = $emails; - } + public function setEmails($emails) { + $this->emails = $emails; + } - public function getEmails() - { - return $this->emails; - } + public function getEmails() { + return $this->emails; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setGender($gender) - { - $this->gender = $gender; - } + public function setGender($gender) { + $this->gender = $gender; + } - public function getGender() - { - return $this->gender; - } + public function getGender() { + return $this->gender; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setImage(Google_Service_PlusDomains_PersonImage $image) - { - $this->image = $image; - } + public function setImage(Google_Service_PlusDomains_PersonImage $image) { + $this->image = $image; + } - public function getImage() - { - return $this->image; - } + public function getImage() { + return $this->image; + } - public function setIsPlusUser($isPlusUser) - { - $this->isPlusUser = $isPlusUser; - } + public function setIsPlusUser($isPlusUser) { + $this->isPlusUser = $isPlusUser; + } - public function getIsPlusUser() - { - return $this->isPlusUser; - } + public function getIsPlusUser() { + return $this->isPlusUser; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName(Google_Service_PlusDomains_PersonName $name) - { - $this->name = $name; - } + public function setName(Google_Service_PlusDomains_PersonName $name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setNickname($nickname) - { - $this->nickname = $nickname; - } + public function setNickname($nickname) { + $this->nickname = $nickname; + } - public function getNickname() - { - return $this->nickname; - } + public function getNickname() { + return $this->nickname; + } - public function setObjectType($objectType) - { - $this->objectType = $objectType; - } + public function setObjectType($objectType) { + $this->objectType = $objectType; + } - public function getObjectType() - { - return $this->objectType; - } + public function getObjectType() { + return $this->objectType; + } - public function setOccupation($occupation) - { - $this->occupation = $occupation; - } + public function setOccupation($occupation) { + $this->occupation = $occupation; + } - public function getOccupation() - { - return $this->occupation; - } + public function getOccupation() { + return $this->occupation; + } - public function setOrganizations($organizations) - { - $this->organizations = $organizations; - } + public function setOrganizations($organizations) { + $this->organizations = $organizations; + } - public function getOrganizations() - { - return $this->organizations; - } + public function getOrganizations() { + return $this->organizations; + } - public function setPlacesLived($placesLived) - { - $this->placesLived = $placesLived; - } + public function setPlacesLived($placesLived) { + $this->placesLived = $placesLived; + } - public function getPlacesLived() - { - return $this->placesLived; - } + public function getPlacesLived() { + return $this->placesLived; + } - public function setPlusOneCount($plusOneCount) - { - $this->plusOneCount = $plusOneCount; - } + public function setPlusOneCount($plusOneCount) { + $this->plusOneCount = $plusOneCount; + } - public function getPlusOneCount() - { - return $this->plusOneCount; - } + public function getPlusOneCount() { + return $this->plusOneCount; + } - public function setRelationshipStatus($relationshipStatus) - { - $this->relationshipStatus = $relationshipStatus; - } + public function setRelationshipStatus($relationshipStatus) { + $this->relationshipStatus = $relationshipStatus; + } - public function getRelationshipStatus() - { - return $this->relationshipStatus; - } + public function getRelationshipStatus() { + return $this->relationshipStatus; + } - public function setSkills($skills) - { - $this->skills = $skills; - } + public function setSkills($skills) { + $this->skills = $skills; + } - public function getSkills() - { - return $this->skills; - } + public function getSkills() { + return $this->skills; + } - public function setTagline($tagline) - { - $this->tagline = $tagline; - } + public function setTagline($tagline) { + $this->tagline = $tagline; + } - public function getTagline() - { - return $this->tagline; - } + public function getTagline() { + return $this->tagline; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setUrls($urls) - { - $this->urls = $urls; - } + public function setUrls($urls) { + $this->urls = $urls; + } - public function getUrls() - { - return $this->urls; - } + public function getUrls() { + return $this->urls; + } - public function setVerified($verified) - { - $this->verified = $verified; - } + public function setVerified($verified) { + $this->verified = $verified; + } - public function getVerified() - { - return $this->verified; - } + public function getVerified() { + return $this->verified; + } } -class Google_Service_PlusDomains_PersonCover extends Google_Model -{ - protected $coverInfoType = 'Google_Service_PlusDomains_PersonCoverCoverInfo'; - protected $coverInfoDataType = ''; - protected $coverPhotoType = 'Google_Service_PlusDomains_PersonCoverCoverPhoto'; - protected $coverPhotoDataType = ''; - public $layout; +class Google_Service_PlusDomains_PersonCover extends Google_Model { + protected $coverInfoType = 'Google_Service_PlusDomains_PersonCoverCoverInfo'; + protected $coverInfoDataType = ''; + protected $coverPhotoType = 'Google_Service_PlusDomains_PersonCoverCoverPhoto'; + protected $coverPhotoDataType = ''; + public $layout; - public function setCoverInfo(Google_Service_PlusDomains_PersonCoverCoverInfo $coverInfo) - { - $this->coverInfo = $coverInfo; - } + public function setCoverInfo(Google_Service_PlusDomains_PersonCoverCoverInfo $coverInfo) { + $this->coverInfo = $coverInfo; + } - public function getCoverInfo() - { - return $this->coverInfo; - } + public function getCoverInfo() { + return $this->coverInfo; + } - public function setCoverPhoto(Google_Service_PlusDomains_PersonCoverCoverPhoto $coverPhoto) - { - $this->coverPhoto = $coverPhoto; - } + public function setCoverPhoto(Google_Service_PlusDomains_PersonCoverCoverPhoto $coverPhoto) { + $this->coverPhoto = $coverPhoto; + } - public function getCoverPhoto() - { - return $this->coverPhoto; - } + public function getCoverPhoto() { + return $this->coverPhoto; + } - public function setLayout($layout) - { - $this->layout = $layout; - } + public function setLayout($layout) { + $this->layout = $layout; + } - public function getLayout() - { - return $this->layout; - } + public function getLayout() { + return $this->layout; + } } -class Google_Service_PlusDomains_PersonCoverCoverInfo extends Google_Model -{ - public $leftImageOffset; - public $topImageOffset; +class Google_Service_PlusDomains_PersonCoverCoverInfo extends Google_Model { + public $leftImageOffset; + public $topImageOffset; - public function setLeftImageOffset($leftImageOffset) - { - $this->leftImageOffset = $leftImageOffset; - } + public function setLeftImageOffset($leftImageOffset) { + $this->leftImageOffset = $leftImageOffset; + } - public function getLeftImageOffset() - { - return $this->leftImageOffset; - } + public function getLeftImageOffset() { + return $this->leftImageOffset; + } - public function setTopImageOffset($topImageOffset) - { - $this->topImageOffset = $topImageOffset; - } + public function setTopImageOffset($topImageOffset) { + $this->topImageOffset = $topImageOffset; + } - public function getTopImageOffset() - { - return $this->topImageOffset; - } + public function getTopImageOffset() { + return $this->topImageOffset; + } } -class Google_Service_PlusDomains_PersonCoverCoverPhoto extends Google_Model -{ - public $height; - public $url; - public $width; +class Google_Service_PlusDomains_PersonCoverCoverPhoto extends Google_Model { + public $height; + public $url; + public $width; - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } -class Google_Service_PlusDomains_PersonEmails extends Google_Model -{ - public $type; - public $value; +class Google_Service_PlusDomains_PersonEmails extends Google_Model { + public $type; + public $value; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_PlusDomains_PersonImage extends Google_Model -{ - public $isDefault; - public $url; +class Google_Service_PlusDomains_PersonImage extends Google_Model { + public $isDefault; + public $url; - public function setIsDefault($isDefault) - { - $this->isDefault = $isDefault; - } + public function setIsDefault($isDefault) { + $this->isDefault = $isDefault; + } - public function getIsDefault() - { - return $this->isDefault; - } + public function getIsDefault() { + return $this->isDefault; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } } -class Google_Service_PlusDomains_PersonName extends Google_Model -{ - public $familyName; - public $formatted; - public $givenName; - public $honorificPrefix; - public $honorificSuffix; - public $middleName; +class Google_Service_PlusDomains_PersonName extends Google_Model { + public $familyName; + public $formatted; + public $givenName; + public $honorificPrefix; + public $honorificSuffix; + public $middleName; - public function setFamilyName($familyName) - { - $this->familyName = $familyName; - } + public function setFamilyName($familyName) { + $this->familyName = $familyName; + } - public function getFamilyName() - { - return $this->familyName; - } + public function getFamilyName() { + return $this->familyName; + } - public function setFormatted($formatted) - { - $this->formatted = $formatted; - } + public function setFormatted($formatted) { + $this->formatted = $formatted; + } - public function getFormatted() - { - return $this->formatted; - } + public function getFormatted() { + return $this->formatted; + } - public function setGivenName($givenName) - { - $this->givenName = $givenName; - } + public function setGivenName($givenName) { + $this->givenName = $givenName; + } - public function getGivenName() - { - return $this->givenName; - } + public function getGivenName() { + return $this->givenName; + } - public function setHonorificPrefix($honorificPrefix) - { - $this->honorificPrefix = $honorificPrefix; - } + public function setHonorificPrefix($honorificPrefix) { + $this->honorificPrefix = $honorificPrefix; + } - public function getHonorificPrefix() - { - return $this->honorificPrefix; - } + public function getHonorificPrefix() { + return $this->honorificPrefix; + } - public function setHonorificSuffix($honorificSuffix) - { - $this->honorificSuffix = $honorificSuffix; - } + public function setHonorificSuffix($honorificSuffix) { + $this->honorificSuffix = $honorificSuffix; + } - public function getHonorificSuffix() - { - return $this->honorificSuffix; - } + public function getHonorificSuffix() { + return $this->honorificSuffix; + } - public function setMiddleName($middleName) - { - $this->middleName = $middleName; - } + public function setMiddleName($middleName) { + $this->middleName = $middleName; + } - public function getMiddleName() - { - return $this->middleName; - } + public function getMiddleName() { + return $this->middleName; + } } -class Google_Service_PlusDomains_PersonOrganizations extends Google_Model -{ - public $department; - public $description; - public $endDate; - public $location; - public $name; - public $primary; - public $startDate; - public $title; - public $type; +class Google_Service_PlusDomains_PersonOrganizations extends Google_Model { + public $department; + public $description; + public $endDate; + public $location; + public $name; + public $primary; + public $startDate; + public $title; + public $type; - public function setDepartment($department) - { - $this->department = $department; - } + public function setDepartment($department) { + $this->department = $department; + } - public function getDepartment() - { - return $this->department; - } + public function getDepartment() { + return $this->department; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } + public function setEndDate($endDate) { + $this->endDate = $endDate; + } - public function getEndDate() - { - return $this->endDate; - } + public function getEndDate() { + return $this->endDate; + } - public function setLocation($location) - { - $this->location = $location; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPrimary($primary) - { - $this->primary = $primary; - } + public function setPrimary($primary) { + $this->primary = $primary; + } - public function getPrimary() - { - return $this->primary; - } + public function getPrimary() { + return $this->primary; + } - public function setStartDate($startDate) - { - $this->startDate = $startDate; - } + public function setStartDate($startDate) { + $this->startDate = $startDate; + } - public function getStartDate() - { - return $this->startDate; - } + public function getStartDate() { + return $this->startDate; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_PlusDomains_PersonPlacesLived extends Google_Model -{ - public $primary; - public $value; +class Google_Service_PlusDomains_PersonPlacesLived extends Google_Model { + public $primary; + public $value; - public function setPrimary($primary) - { - $this->primary = $primary; - } + public function setPrimary($primary) { + $this->primary = $primary; + } - public function getPrimary() - { - return $this->primary; - } + public function getPrimary() { + return $this->primary; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_PlusDomains_PersonUrls extends Google_Model -{ - public $label; - public $type; - public $value; +class Google_Service_PlusDomains_PersonUrls extends Google_Model { + public $label; + public $type; + public $value; - public function setLabel($label) - { - $this->label = $label; - } + public function setLabel($label) { + $this->label = $label; + } - public function getLabel() - { - return $this->label; - } + public function getLabel() { + return $this->label; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_PlusDomains_Place extends Google_Model -{ - protected $addressType = 'Google_Service_PlusDomains_PlaceAddress'; - protected $addressDataType = ''; - public $displayName; - public $id; - public $kind; - protected $positionType = 'Google_Service_PlusDomains_PlacePosition'; - protected $positionDataType = ''; +class Google_Service_PlusDomains_Place extends Google_Model { + protected $addressType = 'Google_Service_PlusDomains_PlaceAddress'; + protected $addressDataType = ''; + public $displayName; + public $id; + public $kind; + protected $positionType = 'Google_Service_PlusDomains_PlacePosition'; + protected $positionDataType = ''; - public function setAddress(Google_Service_PlusDomains_PlaceAddress $address) - { - $this->address = $address; - } + public function setAddress(Google_Service_PlusDomains_PlaceAddress $address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPosition(Google_Service_PlusDomains_PlacePosition $position) - { - $this->position = $position; - } + public function setPosition(Google_Service_PlusDomains_PlacePosition $position) { + $this->position = $position; + } - public function getPosition() - { - return $this->position; - } + public function getPosition() { + return $this->position; + } } -class Google_Service_PlusDomains_PlaceAddress extends Google_Model -{ - public $formatted; +class Google_Service_PlusDomains_PlaceAddress extends Google_Model { + public $formatted; - public function setFormatted($formatted) - { - $this->formatted = $formatted; - } + public function setFormatted($formatted) { + $this->formatted = $formatted; + } - public function getFormatted() - { - return $this->formatted; - } + public function getFormatted() { + return $this->formatted; + } } -class Google_Service_PlusDomains_PlacePosition extends Google_Model -{ - public $latitude; - public $longitude; +class Google_Service_PlusDomains_PlacePosition extends Google_Model { + public $latitude; + public $longitude; - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } + public function setLatitude($latitude) { + $this->latitude = $latitude; + } - public function getLatitude() - { - return $this->latitude; - } + public function getLatitude() { + return $this->latitude; + } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } + public function setLongitude($longitude) { + $this->longitude = $longitude; + } - public function getLongitude() - { - return $this->longitude; - } + public function getLongitude() { + return $this->longitude; + } } -class Google_Service_PlusDomains_PlusDomainsAclentryResource extends Google_Model -{ - public $displayName; - public $id; - public $type; +class Google_Service_PlusDomains_PlusDomainsAclentryResource extends Google_Model { + public $displayName; + public $id; + public $type; - public function setDisplayName($displayName) - { - $this->displayName = $displayName; - } + public function setDisplayName($displayName) { + $this->displayName = $displayName; + } - public function getDisplayName() - { - return $this->displayName; - } + public function getDisplayName() { + return $this->displayName; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_PlusDomains_Videostream extends Google_Model -{ - public $height; - public $type; - public $url; - public $width; +class Google_Service_PlusDomains_Videostream extends Google_Model { + public $height; + public $type; + public $url; + public $width; - public function setHeight($height) - { - $this->height = $height; - } + public function setHeight($height) { + $this->height = $height; + } - public function getHeight() - { - return $this->height; - } + public function getHeight() { + return $this->height; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUrl($url) - { - $this->url = $url; - } + public function setUrl($url) { + $this->url = $url; + } - public function getUrl() - { - return $this->url; - } + public function getUrl() { + return $this->url; + } - public function setWidth($width) - { - $this->width = $width; - } + public function setWidth($width) { + $this->width = $width; + } - public function getWidth() - { - return $this->width; - } + public function getWidth() { + return $this->width; + } } diff --git a/oauth/Google/Service/Prediction.php b/oauth/Google/Service/Prediction.php index 33286ba..115343a 100644 --- a/oauth/Google/Service/Prediction.php +++ b/oauth/Google/Service/Prediction.php @@ -29,172 +29,170 @@ * * @author Google, Inc. */ -class Google_Service_Prediction extends Google_Service -{ - /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; - /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; - /** Manage your data in the Google Prediction API. */ - const PREDICTION = "https://www.googleapis.com/auth/prediction"; +class Google_Service_Prediction extends Google_Service { + /** Manage your data and permissions in Google Cloud Storage. */ + const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; + /** View your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; + /** Manage your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; + /** Manage your data in the Google Prediction API. */ + const PREDICTION = "https://www.googleapis.com/auth/prediction"; - public $hostedmodels; - public $trainedmodels; - + public $hostedmodels; + public $trainedmodels; - /** - * Constructs the internal representation of the Prediction service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'prediction/v1.6/projects/'; - $this->version = 'v1.6'; - $this->serviceName = 'prediction'; - $this->hostedmodels = new Google_Service_Prediction_Hostedmodels_Resource( - $this, - $this->serviceName, - 'hostedmodels', - array( - 'methods' => array( - 'predict' => array( - 'path' => '{project}/hostedmodels/{hostedModelName}/predict', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'hostedModelName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->trainedmodels = new Google_Service_Prediction_Trainedmodels_Resource( - $this, - $this->serviceName, - 'trainedmodels', - array( - 'methods' => array( - 'analyze' => array( - 'path' => '{project}/trainedmodels/{id}/analyze', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/trainedmodels/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/trainedmodels/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/trainedmodels', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{project}/trainedmodels/list', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'predict' => array( - 'path' => '{project}/trainedmodels/{id}/predict', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/trainedmodels/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Prediction service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'prediction/v1.6/projects/'; + $this->version = 'v1.6'; + $this->serviceName = 'prediction'; + + $this->hostedmodels = new Google_Service_Prediction_Hostedmodels_Resource( + $this, + $this->serviceName, + 'hostedmodels', + array( + 'methods' => array( + 'predict' => array( + 'path' => '{project}/hostedmodels/{hostedModelName}/predict', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'hostedModelName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->trainedmodels = new Google_Service_Prediction_Trainedmodels_Resource( + $this, + $this->serviceName, + 'trainedmodels', + array( + 'methods' => array( + 'analyze' => array( + 'path' => '{project}/trainedmodels/{id}/analyze', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => '{project}/trainedmodels/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/trainedmodels/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/trainedmodels', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{project}/trainedmodels/list', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'predict' => array( + 'path' => '{project}/trainedmodels/{id}/predict', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{project}/trainedmodels/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -206,27 +204,25 @@ class Google_Service_Prediction extends Google_Service * $hostedmodels = $predictionService->hostedmodels; * */ -class Google_Service_Prediction_Hostedmodels_Resource extends Google_Service_Resource -{ +class Google_Service_Prediction_Hostedmodels_Resource extends Google_Service_Resource { - /** - * Submit input and request an output against a hosted model. - * (hostedmodels.predict) - * - * @param string $project - * The project associated with the model. - * @param string $hostedModelName - * The name of a hosted model. - * @param Google_Input $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Output - */ - public function predict($project, $hostedModelName, Google_Service_Prediction_Input $postBody, $optParams = array()) - { - $params = array('project' => $project, 'hostedModelName' => $hostedModelName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('predict', array($params), "Google_Service_Prediction_Output"); - } + /** + * Submit input and request an output against a hosted model. + * (hostedmodels.predict) + * + * @param string $project + * The project associated with the model. + * @param string $hostedModelName + * The name of a hosted model. + * @param Google_Input $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Prediction_Output + */ + public function predict($project, $hostedModelName, Google_Service_Prediction_Input $postBody, $optParams = array()) { + $params = array('project' => $project, 'hostedModelName' => $hostedModelName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('predict', array($params), "Google_Service_Prediction_Output"); + } } /** @@ -237,1054 +233,878 @@ class Google_Service_Prediction_Hostedmodels_Resource extends Google_Service_Res * $trainedmodels = $predictionService->trainedmodels; * */ -class Google_Service_Prediction_Trainedmodels_Resource extends Google_Service_Resource -{ +class Google_Service_Prediction_Trainedmodels_Resource extends Google_Service_Resource { - /** - * Get analysis of the model and the data the model was trained on. - * (trainedmodels.analyze) - * - * @param string $project - * The project associated with the model. - * @param string $id - * The unique name for the predictive model. - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Analyze - */ - public function analyze($project, $id, $optParams = array()) - { - $params = array('project' => $project, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('analyze', array($params), "Google_Service_Prediction_Analyze"); - } - /** - * Delete a trained model. (trainedmodels.delete) - * - * @param string $project - * The project associated with the model. - * @param string $id - * The unique name for the predictive model. - * @param array $optParams Optional parameters. - */ - public function delete($project, $id, $optParams = array()) - { - $params = array('project' => $project, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Check training status of your model. (trainedmodels.get) - * - * @param string $project - * The project associated with the model. - * @param string $id - * The unique name for the predictive model. - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Insert2 - */ - public function get($project, $id, $optParams = array()) - { - $params = array('project' => $project, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Prediction_Insert2"); - } - /** - * Train a Prediction API model. (trainedmodels.insert) - * - * @param string $project - * The project associated with the model. - * @param Google_Insert $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Insert2 - */ - public function insert($project, Google_Service_Prediction_Insert $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Prediction_Insert2"); - } - /** - * List available models. (trainedmodels.listTrainedmodels) - * - * @param string $project - * The project associated with the model. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Pagination token. - * @opt_param string maxResults - * Maximum number of results to return. - * @return Google_Service_Prediction_PredictionList - */ - public function listTrainedmodels($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Prediction_PredictionList"); - } - /** - * Submit model id and request a prediction. (trainedmodels.predict) - * - * @param string $project - * The project associated with the model. - * @param string $id - * The unique name for the predictive model. - * @param Google_Input $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Output - */ - public function predict($project, $id, Google_Service_Prediction_Input $postBody, $optParams = array()) - { - $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('predict', array($params), "Google_Service_Prediction_Output"); - } - /** - * Add new data to a trained model. (trainedmodels.update) - * - * @param string $project - * The project associated with the model. - * @param string $id - * The unique name for the predictive model. - * @param Google_Update $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Prediction_Insert2 - */ - public function update($project, $id, Google_Service_Prediction_Update $postBody, $optParams = array()) - { - $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Prediction_Insert2"); - } + /** + * Get analysis of the model and the data the model was trained on. + * (trainedmodels.analyze) + * + * @param string $project + * The project associated with the model. + * @param string $id + * The unique name for the predictive model. + * @param array $optParams Optional parameters. + * @return Google_Service_Prediction_Analyze + */ + public function analyze($project, $id, $optParams = array()) { + $params = array('project' => $project, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('analyze', array($params), "Google_Service_Prediction_Analyze"); + } + + /** + * Delete a trained model. (trainedmodels.delete) + * + * @param string $project + * The project associated with the model. + * @param string $id + * The unique name for the predictive model. + * @param array $optParams Optional parameters. + */ + public function delete($project, $id, $optParams = array()) { + $params = array('project' => $project, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Check training status of your model. (trainedmodels.get) + * + * @param string $project + * The project associated with the model. + * @param string $id + * The unique name for the predictive model. + * @param array $optParams Optional parameters. + * @return Google_Service_Prediction_Insert2 + */ + public function get($project, $id, $optParams = array()) { + $params = array('project' => $project, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Prediction_Insert2"); + } + + /** + * Train a Prediction API model. (trainedmodels.insert) + * + * @param string $project + * The project associated with the model. + * @param Google_Insert $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Prediction_Insert2 + */ + public function insert($project, Google_Service_Prediction_Insert $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Prediction_Insert2"); + } + + /** + * List available models. (trainedmodels.listTrainedmodels) + * + * @param string $project + * The project associated with the model. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Pagination token. + * @opt_param string maxResults + * Maximum number of results to return. + * @return Google_Service_Prediction_PredictionList + */ + public function listTrainedmodels($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Prediction_PredictionList"); + } + + /** + * Submit model id and request a prediction. (trainedmodels.predict) + * + * @param string $project + * The project associated with the model. + * @param string $id + * The unique name for the predictive model. + * @param Google_Input $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Prediction_Output + */ + public function predict($project, $id, Google_Service_Prediction_Input $postBody, $optParams = array()) { + $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('predict', array($params), "Google_Service_Prediction_Output"); + } + + /** + * Add new data to a trained model. (trainedmodels.update) + * + * @param string $project + * The project associated with the model. + * @param string $id + * The unique name for the predictive model. + * @param Google_Update $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Prediction_Insert2 + */ + public function update($project, $id, Google_Service_Prediction_Update $postBody, $optParams = array()) { + $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Prediction_Insert2"); + } } +class Google_Service_Prediction_Analyze extends Google_Collection { + protected $dataDescriptionType = 'Google_Service_Prediction_AnalyzeDataDescription'; + protected $dataDescriptionDataType = ''; + public $errors; + public $id; + public $kind; + protected $modelDescriptionType = 'Google_Service_Prediction_AnalyzeModelDescription'; + protected $modelDescriptionDataType = ''; + public $selfLink; + public function setDataDescription(Google_Service_Prediction_AnalyzeDataDescription $dataDescription) { + $this->dataDescription = $dataDescription; + } -class Google_Service_Prediction_Analyze extends Google_Collection -{ - protected $dataDescriptionType = 'Google_Service_Prediction_AnalyzeDataDescription'; - protected $dataDescriptionDataType = ''; - public $errors; - public $id; - public $kind; - protected $modelDescriptionType = 'Google_Service_Prediction_AnalyzeModelDescription'; - protected $modelDescriptionDataType = ''; - public $selfLink; + public function getDataDescription() { + return $this->dataDescription; + } - public function setDataDescription(Google_Service_Prediction_AnalyzeDataDescription $dataDescription) - { - $this->dataDescription = $dataDescription; - } + public function setErrors($errors) { + $this->errors = $errors; + } - public function getDataDescription() - { - return $this->dataDescription; - } + public function getErrors() { + return $this->errors; + } - public function setErrors($errors) - { - $this->errors = $errors; - } + public function setId($id) { + $this->id = $id; + } - public function getErrors() - { - return $this->errors; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setModelDescription(Google_Service_Prediction_AnalyzeModelDescription $modelDescription) { + $this->modelDescription = $modelDescription; + } - public function getKind() - { - return $this->kind; - } + public function getModelDescription() { + return $this->modelDescription; + } - public function setModelDescription(Google_Service_Prediction_AnalyzeModelDescription $modelDescription) - { - $this->modelDescription = $modelDescription; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getModelDescription() - { - return $this->modelDescription; - } - - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection -{ - protected $featuresType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeatures'; - protected $featuresDataType = 'array'; - protected $outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature'; - protected $outputFeatureDataType = ''; +class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection { + protected $featuresType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeatures'; + protected $featuresDataType = 'array'; + protected $outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature'; + protected $outputFeatureDataType = ''; - public function setFeatures($features) - { - $this->features = $features; - } + public function setFeatures($features) { + $this->features = $features; + } - public function getFeatures() - { - return $this->features; - } + public function getFeatures() { + return $this->features; + } - public function setOutputFeature(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature $outputFeature) - { - $this->outputFeature = $outputFeature; - } + public function setOutputFeature(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature $outputFeature) { + $this->outputFeature = $outputFeature; + } - public function getOutputFeature() - { - return $this->outputFeature; - } + public function getOutputFeature() { + return $this->outputFeature; + } } -class Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Google_Model -{ - protected $categoricalType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical'; - protected $categoricalDataType = ''; - public $index; - protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric'; - protected $numericDataType = ''; - protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText'; - protected $textDataType = ''; +class Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Google_Model { + protected $categoricalType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical'; + protected $categoricalDataType = ''; + public $index; + protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric'; + protected $numericDataType = ''; + protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText'; + protected $textDataType = ''; - public function setCategorical(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical $categorical) - { - $this->categorical = $categorical; - } + public function setCategorical(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical $categorical) { + $this->categorical = $categorical; + } - public function getCategorical() - { - return $this->categorical; - } + public function getCategorical() { + return $this->categorical; + } - public function setIndex($index) - { - $this->index = $index; - } + public function setIndex($index) { + $this->index = $index; + } - public function getIndex() - { - return $this->index; - } + public function getIndex() { + return $this->index; + } - public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric $numeric) - { - $this->numeric = $numeric; - } + public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric $numeric) { + $this->numeric = $numeric; + } - public function getNumeric() - { - return $this->numeric; - } + public function getNumeric() { + return $this->numeric; + } - public function setText(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText $text) - { - $this->text = $text; - } + public function setText(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText $text) { + $this->text = $text; + } - public function getText() - { - return $this->text; - } + public function getText() { + return $this->text; + } } -class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Google_Collection -{ - public $count; - protected $valuesType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues'; - protected $valuesDataType = 'array'; +class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Google_Collection { + public $count; + protected $valuesType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues'; + protected $valuesDataType = 'array'; - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } - public function setValues($values) - { - $this->values = $values; - } + public function setValues($values) { + $this->values = $values; + } - public function getValues() - { - return $this->values; - } + public function getValues() { + return $this->values; + } } -class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues extends Google_Model -{ - public $count; - public $value; +class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues extends Google_Model { + public $count; + public $value; - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Google_Model -{ - public $count; - public $mean; - public $variance; +class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Google_Model { + public $count; + public $mean; + public $variance; - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } - public function setMean($mean) - { - $this->mean = $mean; - } + public function setMean($mean) { + $this->mean = $mean; + } - public function getMean() - { - return $this->mean; - } + public function getMean() { + return $this->mean; + } - public function setVariance($variance) - { - $this->variance = $variance; - } + public function setVariance($variance) { + $this->variance = $variance; + } - public function getVariance() - { - return $this->variance; - } + public function getVariance() { + return $this->variance; + } } -class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Google_Model -{ - public $count; +class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Google_Model { + public $count; - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } } -class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection -{ - protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric'; - protected $numericDataType = ''; - protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText'; - protected $textDataType = 'array'; +class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection { + protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric'; + protected $numericDataType = ''; + protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText'; + protected $textDataType = 'array'; - public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric $numeric) - { - $this->numeric = $numeric; - } + public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric $numeric) { + $this->numeric = $numeric; + } - public function getNumeric() - { - return $this->numeric; - } + public function getNumeric() { + return $this->numeric; + } - public function setText($text) - { - $this->text = $text; - } + public function setText($text) { + $this->text = $text; + } - public function getText() - { - return $this->text; - } + public function getText() { + return $this->text; + } } -class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric extends Google_Model -{ - public $count; - public $mean; - public $variance; +class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric extends Google_Model { + public $count; + public $mean; + public $variance; - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } - public function setMean($mean) - { - $this->mean = $mean; - } + public function setMean($mean) { + $this->mean = $mean; + } - public function getMean() - { - return $this->mean; - } + public function getMean() { + return $this->mean; + } - public function setVariance($variance) - { - $this->variance = $variance; - } + public function setVariance($variance) { + $this->variance = $variance; + } - public function getVariance() - { - return $this->variance; - } + public function getVariance() { + return $this->variance; + } } -class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends Google_Model -{ - public $count; - public $value; +class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends Google_Model { + public $count; + public $value; - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Prediction_AnalyzeErrors extends Google_Model -{ +class Google_Service_Prediction_AnalyzeErrors extends Google_Model { } -class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model -{ - public $confusionMatrix; - public $confusionMatrixRowTotals; - protected $modelinfoType = 'Google_Service_Prediction_Insert2'; - protected $modelinfoDataType = ''; +class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model { + public $confusionMatrix; + public $confusionMatrixRowTotals; + protected $modelinfoType = 'Google_Service_Prediction_Insert2'; + protected $modelinfoDataType = ''; - public function setConfusionMatrix($confusionMatrix) - { - $this->confusionMatrix = $confusionMatrix; - } + public function setConfusionMatrix($confusionMatrix) { + $this->confusionMatrix = $confusionMatrix; + } - public function getConfusionMatrix() - { - return $this->confusionMatrix; - } + public function getConfusionMatrix() { + return $this->confusionMatrix; + } - public function setConfusionMatrixRowTotals($confusionMatrixRowTotals) - { - $this->confusionMatrixRowTotals = $confusionMatrixRowTotals; - } + public function setConfusionMatrixRowTotals($confusionMatrixRowTotals) { + $this->confusionMatrixRowTotals = $confusionMatrixRowTotals; + } - public function getConfusionMatrixRowTotals() - { - return $this->confusionMatrixRowTotals; - } + public function getConfusionMatrixRowTotals() { + return $this->confusionMatrixRowTotals; + } - public function setModelinfo(Google_Service_Prediction_Insert2 $modelinfo) - { - $this->modelinfo = $modelinfo; - } + public function setModelinfo(Google_Service_Prediction_Insert2 $modelinfo) { + $this->modelinfo = $modelinfo; + } - public function getModelinfo() - { - return $this->modelinfo; - } + public function getModelinfo() { + return $this->modelinfo; + } } -class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrix extends Google_Model -{ +class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrix extends Google_Model { } -class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixElement extends Google_Model -{ +class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixElement extends Google_Model { } -class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixRowTotals extends Google_Model -{ +class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixRowTotals extends Google_Model { } -class Google_Service_Prediction_Input extends Google_Model -{ - protected $inputType = 'Google_Service_Prediction_InputInput'; - protected $inputDataType = ''; +class Google_Service_Prediction_Input extends Google_Model { + protected $inputType = 'Google_Service_Prediction_InputInput'; + protected $inputDataType = ''; - public function setInput(Google_Service_Prediction_InputInput $input) - { - $this->input = $input; - } + public function setInput(Google_Service_Prediction_InputInput $input) { + $this->input = $input; + } - public function getInput() - { - return $this->input; - } + public function getInput() { + return $this->input; + } } -class Google_Service_Prediction_InputInput extends Google_Collection -{ - public $csvInstance; +class Google_Service_Prediction_InputInput extends Google_Collection { + public $csvInstance; - public function setCsvInstance($csvInstance) - { - $this->csvInstance = $csvInstance; - } + public function setCsvInstance($csvInstance) { + $this->csvInstance = $csvInstance; + } - public function getCsvInstance() - { - return $this->csvInstance; - } + public function getCsvInstance() { + return $this->csvInstance; + } } -class Google_Service_Prediction_Insert extends Google_Collection -{ - public $id; - public $modelType; - public $sourceModel; - public $storageDataLocation; - public $storagePMMLLocation; - public $storagePMMLModelLocation; - protected $trainingInstancesType = 'Google_Service_Prediction_InsertTrainingInstances'; - protected $trainingInstancesDataType = 'array'; - public $utility; +class Google_Service_Prediction_Insert extends Google_Collection { + public $id; + public $modelType; + public $sourceModel; + public $storageDataLocation; + public $storagePMMLLocation; + public $storagePMMLModelLocation; + protected $trainingInstancesType = 'Google_Service_Prediction_InsertTrainingInstances'; + protected $trainingInstancesDataType = 'array'; + public $utility; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setModelType($modelType) - { - $this->modelType = $modelType; - } + public function setModelType($modelType) { + $this->modelType = $modelType; + } - public function getModelType() - { - return $this->modelType; - } + public function getModelType() { + return $this->modelType; + } - public function setSourceModel($sourceModel) - { - $this->sourceModel = $sourceModel; - } + public function setSourceModel($sourceModel) { + $this->sourceModel = $sourceModel; + } - public function getSourceModel() - { - return $this->sourceModel; - } + public function getSourceModel() { + return $this->sourceModel; + } - public function setStorageDataLocation($storageDataLocation) - { - $this->storageDataLocation = $storageDataLocation; - } + public function setStorageDataLocation($storageDataLocation) { + $this->storageDataLocation = $storageDataLocation; + } - public function getStorageDataLocation() - { - return $this->storageDataLocation; - } + public function getStorageDataLocation() { + return $this->storageDataLocation; + } - public function setStoragePMMLLocation($storagePMMLLocation) - { - $this->storagePMMLLocation = $storagePMMLLocation; - } + public function setStoragePMMLLocation($storagePMMLLocation) { + $this->storagePMMLLocation = $storagePMMLLocation; + } - public function getStoragePMMLLocation() - { - return $this->storagePMMLLocation; - } + public function getStoragePMMLLocation() { + return $this->storagePMMLLocation; + } - public function setStoragePMMLModelLocation($storagePMMLModelLocation) - { - $this->storagePMMLModelLocation = $storagePMMLModelLocation; - } + public function setStoragePMMLModelLocation($storagePMMLModelLocation) { + $this->storagePMMLModelLocation = $storagePMMLModelLocation; + } - public function getStoragePMMLModelLocation() - { - return $this->storagePMMLModelLocation; - } + public function getStoragePMMLModelLocation() { + return $this->storagePMMLModelLocation; + } - public function setTrainingInstances($trainingInstances) - { - $this->trainingInstances = $trainingInstances; - } + public function setTrainingInstances($trainingInstances) { + $this->trainingInstances = $trainingInstances; + } - public function getTrainingInstances() - { - return $this->trainingInstances; - } + public function getTrainingInstances() { + return $this->trainingInstances; + } - public function setUtility($utility) - { - $this->utility = $utility; - } + public function setUtility($utility) { + $this->utility = $utility; + } - public function getUtility() - { - return $this->utility; - } + public function getUtility() { + return $this->utility; + } } -class Google_Service_Prediction_Insert2 extends Google_Model -{ - public $created; - public $id; - public $kind; - protected $modelInfoType = 'Google_Service_Prediction_Insert2ModelInfo'; - protected $modelInfoDataType = ''; - public $modelType; - public $selfLink; - public $storageDataLocation; - public $storagePMMLLocation; - public $storagePMMLModelLocation; - public $trainingComplete; - public $trainingStatus; +class Google_Service_Prediction_Insert2 extends Google_Model { + public $created; + public $id; + public $kind; + protected $modelInfoType = 'Google_Service_Prediction_Insert2ModelInfo'; + protected $modelInfoDataType = ''; + public $modelType; + public $selfLink; + public $storageDataLocation; + public $storagePMMLLocation; + public $storagePMMLModelLocation; + public $trainingComplete; + public $trainingStatus; - public function setCreated($created) - { - $this->created = $created; - } + public function setCreated($created) { + $this->created = $created; + } - public function getCreated() - { - return $this->created; - } + public function getCreated() { + return $this->created; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setModelInfo(Google_Service_Prediction_Insert2ModelInfo $modelInfo) - { - $this->modelInfo = $modelInfo; - } + public function setModelInfo(Google_Service_Prediction_Insert2ModelInfo $modelInfo) { + $this->modelInfo = $modelInfo; + } - public function getModelInfo() - { - return $this->modelInfo; - } + public function getModelInfo() { + return $this->modelInfo; + } - public function setModelType($modelType) - { - $this->modelType = $modelType; - } + public function setModelType($modelType) { + $this->modelType = $modelType; + } - public function getModelType() - { - return $this->modelType; - } + public function getModelType() { + return $this->modelType; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setStorageDataLocation($storageDataLocation) - { - $this->storageDataLocation = $storageDataLocation; - } + public function setStorageDataLocation($storageDataLocation) { + $this->storageDataLocation = $storageDataLocation; + } - public function getStorageDataLocation() - { - return $this->storageDataLocation; - } + public function getStorageDataLocation() { + return $this->storageDataLocation; + } - public function setStoragePMMLLocation($storagePMMLLocation) - { - $this->storagePMMLLocation = $storagePMMLLocation; - } + public function setStoragePMMLLocation($storagePMMLLocation) { + $this->storagePMMLLocation = $storagePMMLLocation; + } - public function getStoragePMMLLocation() - { - return $this->storagePMMLLocation; - } + public function getStoragePMMLLocation() { + return $this->storagePMMLLocation; + } - public function setStoragePMMLModelLocation($storagePMMLModelLocation) - { - $this->storagePMMLModelLocation = $storagePMMLModelLocation; - } + public function setStoragePMMLModelLocation($storagePMMLModelLocation) { + $this->storagePMMLModelLocation = $storagePMMLModelLocation; + } - public function getStoragePMMLModelLocation() - { - return $this->storagePMMLModelLocation; - } + public function getStoragePMMLModelLocation() { + return $this->storagePMMLModelLocation; + } - public function setTrainingComplete($trainingComplete) - { - $this->trainingComplete = $trainingComplete; - } + public function setTrainingComplete($trainingComplete) { + $this->trainingComplete = $trainingComplete; + } - public function getTrainingComplete() - { - return $this->trainingComplete; - } + public function getTrainingComplete() { + return $this->trainingComplete; + } - public function setTrainingStatus($trainingStatus) - { - $this->trainingStatus = $trainingStatus; - } + public function setTrainingStatus($trainingStatus) { + $this->trainingStatus = $trainingStatus; + } - public function getTrainingStatus() - { - return $this->trainingStatus; - } + public function getTrainingStatus() { + return $this->trainingStatus; + } } -class Google_Service_Prediction_Insert2ModelInfo extends Google_Model -{ - public $classWeightedAccuracy; - public $classificationAccuracy; - public $meanSquaredError; - public $modelType; - public $numberInstances; - public $numberLabels; +class Google_Service_Prediction_Insert2ModelInfo extends Google_Model { + public $classWeightedAccuracy; + public $classificationAccuracy; + public $meanSquaredError; + public $modelType; + public $numberInstances; + public $numberLabels; - public function setClassWeightedAccuracy($classWeightedAccuracy) - { - $this->classWeightedAccuracy = $classWeightedAccuracy; - } + public function setClassWeightedAccuracy($classWeightedAccuracy) { + $this->classWeightedAccuracy = $classWeightedAccuracy; + } - public function getClassWeightedAccuracy() - { - return $this->classWeightedAccuracy; - } + public function getClassWeightedAccuracy() { + return $this->classWeightedAccuracy; + } - public function setClassificationAccuracy($classificationAccuracy) - { - $this->classificationAccuracy = $classificationAccuracy; - } + public function setClassificationAccuracy($classificationAccuracy) { + $this->classificationAccuracy = $classificationAccuracy; + } - public function getClassificationAccuracy() - { - return $this->classificationAccuracy; - } + public function getClassificationAccuracy() { + return $this->classificationAccuracy; + } - public function setMeanSquaredError($meanSquaredError) - { - $this->meanSquaredError = $meanSquaredError; - } + public function setMeanSquaredError($meanSquaredError) { + $this->meanSquaredError = $meanSquaredError; + } - public function getMeanSquaredError() - { - return $this->meanSquaredError; - } + public function getMeanSquaredError() { + return $this->meanSquaredError; + } - public function setModelType($modelType) - { - $this->modelType = $modelType; - } + public function setModelType($modelType) { + $this->modelType = $modelType; + } - public function getModelType() - { - return $this->modelType; - } + public function getModelType() { + return $this->modelType; + } - public function setNumberInstances($numberInstances) - { - $this->numberInstances = $numberInstances; - } + public function setNumberInstances($numberInstances) { + $this->numberInstances = $numberInstances; + } - public function getNumberInstances() - { - return $this->numberInstances; - } + public function getNumberInstances() { + return $this->numberInstances; + } - public function setNumberLabels($numberLabels) - { - $this->numberLabels = $numberLabels; - } + public function setNumberLabels($numberLabels) { + $this->numberLabels = $numberLabels; + } - public function getNumberLabels() - { - return $this->numberLabels; - } + public function getNumberLabels() { + return $this->numberLabels; + } } -class Google_Service_Prediction_InsertTrainingInstances extends Google_Collection -{ - public $csvInstance; - public $output; +class Google_Service_Prediction_InsertTrainingInstances extends Google_Collection { + public $csvInstance; + public $output; - public function setCsvInstance($csvInstance) - { - $this->csvInstance = $csvInstance; - } + public function setCsvInstance($csvInstance) { + $this->csvInstance = $csvInstance; + } - public function getCsvInstance() - { - return $this->csvInstance; - } + public function getCsvInstance() { + return $this->csvInstance; + } - public function setOutput($output) - { - $this->output = $output; - } + public function setOutput($output) { + $this->output = $output; + } - public function getOutput() - { - return $this->output; - } + public function getOutput() { + return $this->output; + } } -class Google_Service_Prediction_InsertUtility extends Google_Model -{ +class Google_Service_Prediction_InsertUtility extends Google_Model { } -class Google_Service_Prediction_Output extends Google_Collection -{ - public $id; - public $kind; - public $outputLabel; - protected $outputMultiType = 'Google_Service_Prediction_OutputOutputMulti'; - protected $outputMultiDataType = 'array'; - public $outputValue; - public $selfLink; +class Google_Service_Prediction_Output extends Google_Collection { + public $id; + public $kind; + public $outputLabel; + protected $outputMultiType = 'Google_Service_Prediction_OutputOutputMulti'; + protected $outputMultiDataType = 'array'; + public $outputValue; + public $selfLink; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOutputLabel($outputLabel) - { - $this->outputLabel = $outputLabel; - } + public function setOutputLabel($outputLabel) { + $this->outputLabel = $outputLabel; + } - public function getOutputLabel() - { - return $this->outputLabel; - } + public function getOutputLabel() { + return $this->outputLabel; + } - public function setOutputMulti($outputMulti) - { - $this->outputMulti = $outputMulti; - } + public function setOutputMulti($outputMulti) { + $this->outputMulti = $outputMulti; + } - public function getOutputMulti() - { - return $this->outputMulti; - } + public function getOutputMulti() { + return $this->outputMulti; + } - public function setOutputValue($outputValue) - { - $this->outputValue = $outputValue; - } + public function setOutputValue($outputValue) { + $this->outputValue = $outputValue; + } - public function getOutputValue() - { - return $this->outputValue; - } + public function getOutputValue() { + return $this->outputValue; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Prediction_OutputOutputMulti extends Google_Model -{ - public $label; - public $score; +class Google_Service_Prediction_OutputOutputMulti extends Google_Model { + public $label; + public $score; - public function setLabel($label) - { - $this->label = $label; - } + public function setLabel($label) { + $this->label = $label; + } - public function getLabel() - { - return $this->label; - } + public function getLabel() { + return $this->label; + } - public function setScore($score) - { - $this->score = $score; - } + public function setScore($score) { + $this->score = $score; + } - public function getScore() - { - return $this->score; - } + public function getScore() { + return $this->score; + } } -class Google_Service_Prediction_PredictionList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Prediction_Insert2'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $selfLink; +class Google_Service_Prediction_PredictionList extends Google_Collection { + protected $itemsType = 'Google_Service_Prediction_Insert2'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Prediction_Update extends Google_Collection -{ - public $csvInstance; - public $output; +class Google_Service_Prediction_Update extends Google_Collection { + public $csvInstance; + public $output; - public function setCsvInstance($csvInstance) - { - $this->csvInstance = $csvInstance; - } + public function setCsvInstance($csvInstance) { + $this->csvInstance = $csvInstance; + } - public function getCsvInstance() - { - return $this->csvInstance; - } + public function getCsvInstance() { + return $this->csvInstance; + } - public function setOutput($output) - { - $this->output = $output; - } + public function setOutput($output) { + $this->output = $output; + } - public function getOutput() - { - return $this->output; - } + public function getOutput() { + return $this->output; + } } diff --git a/oauth/Google/Service/Pubsub.php b/oauth/Google/Service/Pubsub.php index 27c4968..09db1ea 100644 --- a/oauth/Google/Service/Pubsub.php +++ b/oauth/Google/Service/Pubsub.php @@ -29,152 +29,150 @@ * * @author Google, Inc. */ -class Google_Service_Pubsub extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - /** View and manage Pub/Sub topics and subscriptions. */ - const PUBSUB = "https://www.googleapis.com/auth/pubsub"; +class Google_Service_Pubsub extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage Pub/Sub topics and subscriptions. */ + const PUBSUB = "https://www.googleapis.com/auth/pubsub"; - public $subscriptions; - public $topics; - + public $subscriptions; + public $topics; - /** - * Constructs the internal representation of the Pubsub service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'pubsub/v1beta1/'; - $this->version = 'v1beta1'; - $this->serviceName = 'pubsub'; - $this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'acknowledge' => array( - 'path' => 'subscriptions/acknowledge', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'create' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'subscriptions/{+subscription}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'subscriptions/{+subscription}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'subscription' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'modifyAckDeadline' => array( - 'path' => 'subscriptions/modifyAckDeadline', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'modifyPushConfig' => array( - 'path' => 'subscriptions/modifyPushConfig', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'pull' => array( - 'path' => 'subscriptions/pull', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->topics = new Google_Service_Pubsub_Topics_Resource( - $this, - $this->serviceName, - 'topics', - array( - 'methods' => array( - 'create' => array( - 'path' => 'topics', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'topics/{+topic}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'topic' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'topics/{+topic}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'topic' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'topics', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'publish' => array( - 'path' => 'topics/publish', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Pubsub service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'pubsub/v1beta1/'; + $this->version = 'v1beta1'; + $this->serviceName = 'pubsub'; + + $this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'acknowledge' => array( + 'path' => 'subscriptions/acknowledge', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'create' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'delete' => array( + 'path' => 'subscriptions/{+subscription}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'subscriptions/{+subscription}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'modifyAckDeadline' => array( + 'path' => 'subscriptions/modifyAckDeadline', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'modifyPushConfig' => array( + 'path' => 'subscriptions/modifyPushConfig', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'pull' => array( + 'path' => 'subscriptions/pull', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->topics = new Google_Service_Pubsub_Topics_Resource( + $this, + $this->serviceName, + 'topics', + array( + 'methods' => array( + 'create' => array( + 'path' => 'topics', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'delete' => array( + 'path' => 'topics/{+topic}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'topics/{+topic}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'topics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'publish' => array( + 'path' => 'topics/publish', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } } @@ -186,135 +184,133 @@ class Google_Service_Pubsub extends Google_Service * $subscriptions = $pubsubService->subscriptions; * */ -class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource -{ +class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource { - /** - * Acknowledges a particular received message: the Pub/Sub system can remove the - * given message from the subscription. Acknowledging a message whose Ack - * deadline has expired may succeed, but the message could have been already - * redelivered. Acknowledging a message more than once will not result in an - * error. This is only used for messages received via pull. - * (subscriptions.acknowledge) - * - * @param Google_AcknowledgeRequest $postBody - * @param array $optParams Optional parameters. - */ - public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('acknowledge', array($params)); - } - /** - * Creates a subscription on a given topic for a given subscriber. If the - * subscription already exists, returns ALREADY_EXISTS. If the corresponding - * topic doesn't exist, returns NOT_FOUND. (subscriptions.create) - * - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Subscription - */ - public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); - } - /** - * Deletes an existing subscription. All pending messages in the subscription - * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. - * (subscriptions.delete) - * - * @param string $subscription - * The subscription to delete. - * @param array $optParams Optional parameters. - */ - public function delete($subscription, $optParams = array()) - { - $params = array('subscription' => $subscription); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the configuration details of a subscription. (subscriptions.get) - * - * @param string $subscription - * The name of the subscription to get. - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Subscription - */ - public function get($subscription, $optParams = array()) - { - $params = array('subscription' => $subscription); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Pubsub_Subscription"); - } - /** - * Lists matching subscriptions. (subscriptions.listSubscriptions) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The value obtained in the last ListSubscriptionsResponse for continuation. - * @opt_param int maxResults - * Maximum number of subscriptions to return. - * @opt_param string query - * A valid label query expression. - * @return Google_Service_Pubsub_ListSubscriptionsResponse - */ - public function listSubscriptions($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); - } - /** - * Modifies the Ack deadline for a message received from a pull request. - * (subscriptions.modifyAckDeadline) - * - * @param Google_ModifyAckDeadlineRequest $postBody - * @param array $optParams Optional parameters. - */ - public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('modifyAckDeadline', array($params)); - } - /** - * Modifies the PushConfig for a specified subscription. This method can be used - * to suspend the flow of messages to an end point by clearing the PushConfig - * field in the request. Messages will be accumulated for delivery even if no - * push configuration is defined or while the configuration is modified. - * (subscriptions.modifyPushConfig) - * - * @param Google_ModifyPushConfigRequest $postBody - * @param array $optParams Optional parameters. - */ - public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('modifyPushConfig', array($params)); - } - /** - * Pulls a single message from the server. If return_immediately is true, and no - * messages are available in the subscription, this method returns - * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no - * messages are available in a reasonable amount of time (to reduce system - * load). (subscriptions.pull) - * - * @param Google_PullRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PullResponse - */ - public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); - } + /** + * Acknowledges a particular received message: the Pub/Sub system can remove the + * given message from the subscription. Acknowledging a message whose Ack + * deadline has expired may succeed, but the message could have been already + * redelivered. Acknowledging a message more than once will not result in an + * error. This is only used for messages received via pull. + * (subscriptions.acknowledge) + * + * @param Google_AcknowledgeRequest $postBody + * @param array $optParams Optional parameters. + */ + public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('acknowledge', array($params)); + } + + /** + * Creates a subscription on a given topic for a given subscriber. If the + * subscription already exists, returns ALREADY_EXISTS. If the corresponding + * topic doesn't exist, returns NOT_FOUND. (subscriptions.create) + * + * @param Google_Subscription $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Subscription + */ + public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); + } + + /** + * Deletes an existing subscription. All pending messages in the subscription + * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. + * (subscriptions.delete) + * + * @param string $subscription + * The subscription to delete. + * @param array $optParams Optional parameters. + */ + public function delete($subscription, $optParams = array()) { + $params = array('subscription' => $subscription); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets the configuration details of a subscription. (subscriptions.get) + * + * @param string $subscription + * The name of the subscription to get. + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Subscription + */ + public function get($subscription, $optParams = array()) { + $params = array('subscription' => $subscription); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Pubsub_Subscription"); + } + + /** + * Lists matching subscriptions. (subscriptions.listSubscriptions) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The value obtained in the last ListSubscriptionsResponse for continuation. + * @opt_param int maxResults + * Maximum number of subscriptions to return. + * @opt_param string query + * A valid label query expression. + * @return Google_Service_Pubsub_ListSubscriptionsResponse + */ + public function listSubscriptions($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); + } + + /** + * Modifies the Ack deadline for a message received from a pull request. + * (subscriptions.modifyAckDeadline) + * + * @param Google_ModifyAckDeadlineRequest $postBody + * @param array $optParams Optional parameters. + */ + public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('modifyAckDeadline', array($params)); + } + + /** + * Modifies the PushConfig for a specified subscription. This method can be used + * to suspend the flow of messages to an end point by clearing the PushConfig + * field in the request. Messages will be accumulated for delivery even if no + * push configuration is defined or while the configuration is modified. + * (subscriptions.modifyPushConfig) + * + * @param Google_ModifyPushConfigRequest $postBody + * @param array $optParams Optional parameters. + */ + public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('modifyPushConfig', array($params)); + } + + /** + * Pulls a single message from the server. If return_immediately is true, and no + * messages are available in the subscription, this method returns + * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no + * messages are available in a reasonable amount of time (to reduce system + * load). (subscriptions.pull) + * + * @param Google_PullRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_PullResponse + */ + public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); + } } /** @@ -325,503 +321,421 @@ class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resour * $topics = $pubsubService->topics; * */ -class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource -{ +class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource { - /** - * Creates the given topic with the given name. (topics.create) - * - * @param Google_Topic $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Topic - */ - public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); - } - /** - * Deletes the topic with the given name. All subscriptions to this topic are - * also deleted. Returns NOT_FOUND if the topic does not exist. After a topic is - * deleted, a new topic may be created with the same name. (topics.delete) - * - * @param string $topic - * Name of the topic to delete. - * @param array $optParams Optional parameters. - */ - public function delete($topic, $optParams = array()) - { - $params = array('topic' => $topic); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the configuration of a topic. Since the topic only has the name - * attribute, this method is only useful to check the existence of a topic. If - * other attributes are added in the future, they will be returned here. - * (topics.get) - * - * @param string $topic - * The name of the topic to get. - * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_Topic - */ - public function get($topic, $optParams = array()) - { - $params = array('topic' => $topic); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Pubsub_Topic"); - } - /** - * Lists matching topics. (topics.listTopics) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The value obtained in the last ListTopicsResponse for continuation. - * @opt_param int maxResults - * Maximum number of topics to return. - * @opt_param string query - * A valid label query expression. - * @return Google_Service_Pubsub_ListTopicsResponse - */ - public function listTopics($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); - } - /** - * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. - * (topics.publish) - * - * @param Google_PublishRequest $postBody - * @param array $optParams Optional parameters. - */ - public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('publish', array($params)); - } + /** + * Creates the given topic with the given name. (topics.create) + * + * @param Google_Topic $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Topic + */ + public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); + } + + /** + * Deletes the topic with the given name. All subscriptions to this topic are + * also deleted. Returns NOT_FOUND if the topic does not exist. After a topic is + * deleted, a new topic may be created with the same name. (topics.delete) + * + * @param string $topic + * Name of the topic to delete. + * @param array $optParams Optional parameters. + */ + public function delete($topic, $optParams = array()) { + $params = array('topic' => $topic); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets the configuration of a topic. Since the topic only has the name + * attribute, this method is only useful to check the existence of a topic. If + * other attributes are added in the future, they will be returned here. + * (topics.get) + * + * @param string $topic + * The name of the topic to get. + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Topic + */ + public function get($topic, $optParams = array()) { + $params = array('topic' => $topic); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Pubsub_Topic"); + } + + /** + * Lists matching topics. (topics.listTopics) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The value obtained in the last ListTopicsResponse for continuation. + * @opt_param int maxResults + * Maximum number of topics to return. + * @opt_param string query + * A valid label query expression. + * @return Google_Service_Pubsub_ListTopicsResponse + */ + public function listTopics($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); + } + + /** + * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. + * (topics.publish) + * + * @param Google_PublishRequest $postBody + * @param array $optParams Optional parameters. + */ + public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params)); + } } +class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection { + public $ackId; + public $subscription; + public function setAckId($ackId) { + $this->ackId = $ackId; + } -class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection -{ - public $ackId; - public $subscription; + public function getAckId() { + return $this->ackId; + } - public function setAckId($ackId) - { - $this->ackId = $ackId; - } + public function setSubscription($subscription) { + $this->subscription = $subscription; + } - public function getAckId() - { - return $this->ackId; - } - - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - - public function getSubscription() - { - return $this->subscription; - } + public function getSubscription() { + return $this->subscription; + } } -class Google_Service_Pubsub_Label extends Google_Model -{ - public $key; - public $numValue; - public $strValue; +class Google_Service_Pubsub_Label extends Google_Model { + public $key; + public $numValue; + public $strValue; - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setNumValue($numValue) - { - $this->numValue = $numValue; - } + public function setNumValue($numValue) { + $this->numValue = $numValue; + } - public function getNumValue() - { - return $this->numValue; - } + public function getNumValue() { + return $this->numValue; + } - public function setStrValue($strValue) - { - $this->strValue = $strValue; - } + public function setStrValue($strValue) { + $this->strValue = $strValue; + } - public function getStrValue() - { - return $this->strValue; - } + public function getStrValue() { + return $this->strValue; + } } -class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection -{ - public $nextPageToken; - protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; - protected $subscriptionDataType = 'array'; +class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection { + public $nextPageToken; + protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; + protected $subscriptionDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } + public function setSubscription($subscription) { + $this->subscription = $subscription; + } - public function getSubscription() - { - return $this->subscription; - } + public function getSubscription() { + return $this->subscription; + } } -class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection -{ - public $nextPageToken; - protected $topicType = 'Google_Service_Pubsub_Topic'; - protected $topicDataType = 'array'; +class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection { + public $nextPageToken; + protected $topicType = 'Google_Service_Pubsub_Topic'; + protected $topicDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTopic($topic) - { - $this->topic = $topic; - } + public function setTopic($topic) { + $this->topic = $topic; + } - public function getTopic() - { - return $this->topic; - } + public function getTopic() { + return $this->topic; + } } -class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model -{ - public $ackDeadlineSeconds; - public $ackId; - public $subscription; +class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model { + public $ackDeadlineSeconds; + public $ackId; + public $subscription; - public function setAckDeadlineSeconds($ackDeadlineSeconds) - { - $this->ackDeadlineSeconds = $ackDeadlineSeconds; - } + public function setAckDeadlineSeconds($ackDeadlineSeconds) { + $this->ackDeadlineSeconds = $ackDeadlineSeconds; + } - public function getAckDeadlineSeconds() - { - return $this->ackDeadlineSeconds; - } + public function getAckDeadlineSeconds() { + return $this->ackDeadlineSeconds; + } - public function setAckId($ackId) - { - $this->ackId = $ackId; - } + public function setAckId($ackId) { + $this->ackId = $ackId; + } - public function getAckId() - { - return $this->ackId; - } + public function getAckId() { + return $this->ackId; + } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } + public function setSubscription($subscription) { + $this->subscription = $subscription; + } - public function getSubscription() - { - return $this->subscription; - } + public function getSubscription() { + return $this->subscription; + } } -class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model -{ - protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; - protected $pushConfigDataType = ''; - public $subscription; +class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model { + protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; + protected $pushConfigDataType = ''; + public $subscription; - public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) - { - $this->pushConfig = $pushConfig; - } + public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) { + $this->pushConfig = $pushConfig; + } - public function getPushConfig() - { - return $this->pushConfig; - } + public function getPushConfig() { + return $this->pushConfig; + } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } + public function setSubscription($subscription) { + $this->subscription = $subscription; + } - public function getSubscription() - { - return $this->subscription; - } + public function getSubscription() { + return $this->subscription; + } } -class Google_Service_Pubsub_PublishRequest extends Google_Model -{ - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; - public $topic; +class Google_Service_Pubsub_PublishRequest extends Google_Model { + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; + public $topic; - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) - { - $this->message = $message; - } + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) { + $this->message = $message; + } - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } - public function setTopic($topic) - { - $this->topic = $topic; - } + public function setTopic($topic) { + $this->topic = $topic; + } - public function getTopic() - { - return $this->topic; - } + public function getTopic() { + return $this->topic; + } } -class Google_Service_Pubsub_PubsubEvent extends Google_Model -{ - public $deleted; - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; - public $subscription; - public $truncated; +class Google_Service_Pubsub_PubsubEvent extends Google_Model { + public $deleted; + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; + public $subscription; + public $truncated; - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } + public function setDeleted($deleted) { + $this->deleted = $deleted; + } - public function getDeleted() - { - return $this->deleted; - } + public function getDeleted() { + return $this->deleted; + } - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) - { - $this->message = $message; - } + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) { + $this->message = $message; + } - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } + public function setSubscription($subscription) { + $this->subscription = $subscription; + } - public function getSubscription() - { - return $this->subscription; - } + public function getSubscription() { + return $this->subscription; + } - public function setTruncated($truncated) - { - $this->truncated = $truncated; - } + public function setTruncated($truncated) { + $this->truncated = $truncated; + } - public function getTruncated() - { - return $this->truncated; - } + public function getTruncated() { + return $this->truncated; + } } -class Google_Service_Pubsub_PubsubMessage extends Google_Collection -{ - public $data; - protected $labelType = 'Google_Service_Pubsub_Label'; - protected $labelDataType = 'array'; +class Google_Service_Pubsub_PubsubMessage extends Google_Collection { + public $data; + protected $labelType = 'Google_Service_Pubsub_Label'; + protected $labelDataType = 'array'; - public function setData($data) - { - $this->data = $data; - } + public function setData($data) { + $this->data = $data; + } - public function getData() - { - return $this->data; - } + public function getData() { + return $this->data; + } - public function setLabel($label) - { - $this->label = $label; - } + public function setLabel($label) { + $this->label = $label; + } - public function getLabel() - { - return $this->label; - } + public function getLabel() { + return $this->label; + } } -class Google_Service_Pubsub_PullRequest extends Google_Model -{ - public $returnImmediately; - public $subscription; +class Google_Service_Pubsub_PullRequest extends Google_Model { + public $returnImmediately; + public $subscription; - public function setReturnImmediately($returnImmediately) - { - $this->returnImmediately = $returnImmediately; - } + public function setReturnImmediately($returnImmediately) { + $this->returnImmediately = $returnImmediately; + } - public function getReturnImmediately() - { - return $this->returnImmediately; - } + public function getReturnImmediately() { + return $this->returnImmediately; + } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } + public function setSubscription($subscription) { + $this->subscription = $subscription; + } - public function getSubscription() - { - return $this->subscription; - } + public function getSubscription() { + return $this->subscription; + } } -class Google_Service_Pubsub_PullResponse extends Google_Model -{ - public $ackId; - protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; - protected $pubsubEventDataType = ''; +class Google_Service_Pubsub_PullResponse extends Google_Model { + public $ackId; + protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; + protected $pubsubEventDataType = ''; - public function setAckId($ackId) - { - $this->ackId = $ackId; - } + public function setAckId($ackId) { + $this->ackId = $ackId; + } - public function getAckId() - { - return $this->ackId; - } + public function getAckId() { + return $this->ackId; + } - public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) - { - $this->pubsubEvent = $pubsubEvent; - } + public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) { + $this->pubsubEvent = $pubsubEvent; + } - public function getPubsubEvent() - { - return $this->pubsubEvent; - } + public function getPubsubEvent() { + return $this->pubsubEvent; + } } -class Google_Service_Pubsub_PushConfig extends Google_Model -{ - public $pushEndpoint; +class Google_Service_Pubsub_PushConfig extends Google_Model { + public $pushEndpoint; - public function setPushEndpoint($pushEndpoint) - { - $this->pushEndpoint = $pushEndpoint; - } + public function setPushEndpoint($pushEndpoint) { + $this->pushEndpoint = $pushEndpoint; + } - public function getPushEndpoint() - { - return $this->pushEndpoint; - } + public function getPushEndpoint() { + return $this->pushEndpoint; + } } -class Google_Service_Pubsub_Subscription extends Google_Model -{ - public $ackDeadlineSeconds; - public $name; - protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; - protected $pushConfigDataType = ''; - public $topic; +class Google_Service_Pubsub_Subscription extends Google_Model { + public $ackDeadlineSeconds; + public $name; + protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; + protected $pushConfigDataType = ''; + public $topic; - public function setAckDeadlineSeconds($ackDeadlineSeconds) - { - $this->ackDeadlineSeconds = $ackDeadlineSeconds; - } + public function setAckDeadlineSeconds($ackDeadlineSeconds) { + $this->ackDeadlineSeconds = $ackDeadlineSeconds; + } - public function getAckDeadlineSeconds() - { - return $this->ackDeadlineSeconds; - } + public function getAckDeadlineSeconds() { + return $this->ackDeadlineSeconds; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) - { - $this->pushConfig = $pushConfig; - } + public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) { + $this->pushConfig = $pushConfig; + } - public function getPushConfig() - { - return $this->pushConfig; - } + public function getPushConfig() { + return $this->pushConfig; + } - public function setTopic($topic) - { - $this->topic = $topic; - } + public function setTopic($topic) { + $this->topic = $topic; + } - public function getTopic() - { - return $this->topic; - } + public function getTopic() { + return $this->topic; + } } -class Google_Service_Pubsub_Topic extends Google_Model -{ - public $name; +class Google_Service_Pubsub_Topic extends Google_Model { + public $name; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } diff --git a/oauth/Google/Service/QPXExpress.php b/oauth/Google/Service/QPXExpress.php index ebc1cea..8efed8e 100644 --- a/oauth/Google/Service/QPXExpress.php +++ b/oauth/Google/Service/QPXExpress.php @@ -29,40 +29,38 @@ * * @author Google, Inc. */ -class Google_Service_QPXExpress extends Google_Service -{ +class Google_Service_QPXExpress extends Google_Service { - public $trips; - + public $trips; - /** - * Constructs the internal representation of the QPXExpress service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'qpxExpress/v1/trips/'; - $this->version = 'v1'; - $this->serviceName = 'qpxExpress'; - $this->trips = new Google_Service_QPXExpress_Trips_Resource( - $this, - $this->serviceName, - 'trips', - array( - 'methods' => array( - 'search' => array( - 'path' => 'search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the QPXExpress service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'qpxExpress/v1/trips/'; + $this->version = 'v1'; + $this->serviceName = 'qpxExpress'; + + $this->trips = new Google_Service_QPXExpress_Trips_Resource( + $this, + $this->serviceName, + 'trips', + array( + 'methods' => array( + 'search' => array( + 'path' => 'search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } } @@ -74,1627 +72,1329 @@ class Google_Service_QPXExpress extends Google_Service * $trips = $qpxExpressService->trips; * */ -class Google_Service_QPXExpress_Trips_Resource extends Google_Service_Resource -{ +class Google_Service_QPXExpress_Trips_Resource extends Google_Service_Resource { - /** - * Returns a list of flights. (trips.search) - * - * @param Google_TripsSearchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_QPXExpress_TripsSearchResponse - */ - public function search(Google_Service_QPXExpress_TripsSearchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_QPXExpress_TripsSearchResponse"); - } + /** + * Returns a list of flights. (trips.search) + * + * @param Google_TripsSearchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_QPXExpress_TripsSearchResponse + */ + public function search(Google_Service_QPXExpress_TripsSearchRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_QPXExpress_TripsSearchResponse"); + } } +class Google_Service_QPXExpress_AircraftData extends Google_Model { + public $code; + public $kind; + public $name; + public function setCode($code) { + $this->code = $code; + } -class Google_Service_QPXExpress_AircraftData extends Google_Model -{ - public $code; - public $kind; - public $name; + public function getCode() { + return $this->code; + } - public function setCode($code) - { - $this->code = $code; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getCode() - { - return $this->code; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setName($name) { + $this->name = $name; + } - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_QPXExpress_AirportData extends Google_Model -{ - public $city; - public $code; - public $kind; - public $name; +class Google_Service_QPXExpress_AirportData extends Google_Model { + public $city; + public $code; + public $kind; + public $name; - public function setCity($city) - { - $this->city = $city; - } + public function setCity($city) { + $this->city = $city; + } - public function getCity() - { - return $this->city; - } + public function getCity() { + return $this->city; + } - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_QPXExpress_BagDescriptor extends Google_Collection -{ - public $commercialName; - public $count; - public $description; - public $kind; - public $subcode; +class Google_Service_QPXExpress_BagDescriptor extends Google_Collection { + public $commercialName; + public $count; + public $description; + public $kind; + public $subcode; - public function setCommercialName($commercialName) - { - $this->commercialName = $commercialName; - } + public function setCommercialName($commercialName) { + $this->commercialName = $commercialName; + } - public function getCommercialName() - { - return $this->commercialName; - } + public function getCommercialName() { + return $this->commercialName; + } - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSubcode($subcode) - { - $this->subcode = $subcode; - } + public function setSubcode($subcode) { + $this->subcode = $subcode; + } - public function getSubcode() - { - return $this->subcode; - } + public function getSubcode() { + return $this->subcode; + } } -class Google_Service_QPXExpress_CarrierData extends Google_Model -{ - public $code; - public $kind; - public $name; +class Google_Service_QPXExpress_CarrierData extends Google_Model { + public $code; + public $kind; + public $name; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_QPXExpress_CityData extends Google_Model -{ - public $code; - public $country; - public $kind; - public $name; +class Google_Service_QPXExpress_CityData extends Google_Model { + public $code; + public $country; + public $kind; + public $name; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setCountry($country) - { - $this->country = $country; - } + public function setCountry($country) { + $this->country = $country; + } - public function getCountry() - { - return $this->country; - } + public function getCountry() { + return $this->country; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_QPXExpress_Data extends Google_Collection -{ - protected $aircraftType = 'Google_Service_QPXExpress_AircraftData'; - protected $aircraftDataType = 'array'; - protected $airportType = 'Google_Service_QPXExpress_AirportData'; - protected $airportDataType = 'array'; - protected $carrierType = 'Google_Service_QPXExpress_CarrierData'; - protected $carrierDataType = 'array'; - protected $cityType = 'Google_Service_QPXExpress_CityData'; - protected $cityDataType = 'array'; - public $kind; - protected $taxType = 'Google_Service_QPXExpress_TaxData'; - protected $taxDataType = 'array'; +class Google_Service_QPXExpress_Data extends Google_Collection { + protected $aircraftType = 'Google_Service_QPXExpress_AircraftData'; + protected $aircraftDataType = 'array'; + protected $airportType = 'Google_Service_QPXExpress_AirportData'; + protected $airportDataType = 'array'; + protected $carrierType = 'Google_Service_QPXExpress_CarrierData'; + protected $carrierDataType = 'array'; + protected $cityType = 'Google_Service_QPXExpress_CityData'; + protected $cityDataType = 'array'; + public $kind; + protected $taxType = 'Google_Service_QPXExpress_TaxData'; + protected $taxDataType = 'array'; - public function setAircraft($aircraft) - { - $this->aircraft = $aircraft; - } + public function setAircraft($aircraft) { + $this->aircraft = $aircraft; + } - public function getAircraft() - { - return $this->aircraft; - } + public function getAircraft() { + return $this->aircraft; + } - public function setAirport($airport) - { - $this->airport = $airport; - } + public function setAirport($airport) { + $this->airport = $airport; + } - public function getAirport() - { - return $this->airport; - } + public function getAirport() { + return $this->airport; + } - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } + public function setCarrier($carrier) { + $this->carrier = $carrier; + } - public function getCarrier() - { - return $this->carrier; - } + public function getCarrier() { + return $this->carrier; + } - public function setCity($city) - { - $this->city = $city; - } + public function setCity($city) { + $this->city = $city; + } - public function getCity() - { - return $this->city; - } + public function getCity() { + return $this->city; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setTax($tax) - { - $this->tax = $tax; - } + public function setTax($tax) { + $this->tax = $tax; + } - public function getTax() - { - return $this->tax; - } + public function getTax() { + return $this->tax; + } } -class Google_Service_QPXExpress_FareInfo extends Google_Model -{ - public $basisCode; - public $carrier; - public $destination; - public $id; - public $kind; - public $origin; - public $private; +class Google_Service_QPXExpress_FareInfo extends Google_Model { + public $basisCode; + public $carrier; + public $destination; + public $id; + public $kind; + public $origin; + public $private; - public function setBasisCode($basisCode) - { - $this->basisCode = $basisCode; - } + public function setBasisCode($basisCode) { + $this->basisCode = $basisCode; + } - public function getBasisCode() - { - return $this->basisCode; - } + public function getBasisCode() { + return $this->basisCode; + } - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } + public function setCarrier($carrier) { + $this->carrier = $carrier; + } - public function getCarrier() - { - return $this->carrier; - } + public function getCarrier() { + return $this->carrier; + } - public function setDestination($destination) - { - $this->destination = $destination; - } + public function setDestination($destination) { + $this->destination = $destination; + } - public function getDestination() - { - return $this->destination; - } + public function getDestination() { + return $this->destination; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOrigin($origin) - { - $this->origin = $origin; - } + public function setOrigin($origin) { + $this->origin = $origin; + } - public function getOrigin() - { - return $this->origin; - } + public function getOrigin() { + return $this->origin; + } - public function setPrivate($private) - { - $this->private = $private; - } + public function setPrivate($private) { + $this->private = $private; + } - public function getPrivate() - { - return $this->private; - } + public function getPrivate() { + return $this->private; + } } -class Google_Service_QPXExpress_FlightInfo extends Google_Model -{ - public $carrier; - public $number; +class Google_Service_QPXExpress_FlightInfo extends Google_Model { + public $carrier; + public $number; - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } + public function setCarrier($carrier) { + $this->carrier = $carrier; + } - public function getCarrier() - { - return $this->carrier; - } + public function getCarrier() { + return $this->carrier; + } - public function setNumber($number) - { - $this->number = $number; - } + public function setNumber($number) { + $this->number = $number; + } - public function getNumber() - { - return $this->number; - } + public function getNumber() { + return $this->number; + } } -class Google_Service_QPXExpress_FreeBaggageAllowance extends Google_Collection -{ - protected $bagDescriptorType = 'Google_Service_QPXExpress_BagDescriptor'; - protected $bagDescriptorDataType = 'array'; - public $kilos; - public $kilosPerPiece; - public $kind; - public $pieces; - public $pounds; +class Google_Service_QPXExpress_FreeBaggageAllowance extends Google_Collection { + protected $bagDescriptorType = 'Google_Service_QPXExpress_BagDescriptor'; + protected $bagDescriptorDataType = 'array'; + public $kilos; + public $kilosPerPiece; + public $kind; + public $pieces; + public $pounds; - public function setBagDescriptor($bagDescriptor) - { - $this->bagDescriptor = $bagDescriptor; - } + public function setBagDescriptor($bagDescriptor) { + $this->bagDescriptor = $bagDescriptor; + } - public function getBagDescriptor() - { - return $this->bagDescriptor; - } + public function getBagDescriptor() { + return $this->bagDescriptor; + } - public function setKilos($kilos) - { - $this->kilos = $kilos; - } + public function setKilos($kilos) { + $this->kilos = $kilos; + } - public function getKilos() - { - return $this->kilos; - } + public function getKilos() { + return $this->kilos; + } - public function setKilosPerPiece($kilosPerPiece) - { - $this->kilosPerPiece = $kilosPerPiece; - } + public function setKilosPerPiece($kilosPerPiece) { + $this->kilosPerPiece = $kilosPerPiece; + } - public function getKilosPerPiece() - { - return $this->kilosPerPiece; - } + public function getKilosPerPiece() { + return $this->kilosPerPiece; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPieces($pieces) - { - $this->pieces = $pieces; - } + public function setPieces($pieces) { + $this->pieces = $pieces; + } - public function getPieces() - { - return $this->pieces; - } + public function getPieces() { + return $this->pieces; + } - public function setPounds($pounds) - { - $this->pounds = $pounds; - } + public function setPounds($pounds) { + $this->pounds = $pounds; + } - public function getPounds() - { - return $this->pounds; - } + public function getPounds() { + return $this->pounds; + } } -class Google_Service_QPXExpress_LegInfo extends Google_Model -{ - public $aircraft; - public $arrivalTime; - public $changePlane; - public $connectionDuration; - public $departureTime; - public $destination; - public $destinationTerminal; - public $duration; - public $id; - public $kind; - public $meal; - public $mileage; - public $onTimePerformance; - public $operatingDisclosure; - public $origin; - public $originTerminal; - public $secure; +class Google_Service_QPXExpress_LegInfo extends Google_Model { + public $aircraft; + public $arrivalTime; + public $changePlane; + public $connectionDuration; + public $departureTime; + public $destination; + public $destinationTerminal; + public $duration; + public $id; + public $kind; + public $meal; + public $mileage; + public $onTimePerformance; + public $operatingDisclosure; + public $origin; + public $originTerminal; + public $secure; - public function setAircraft($aircraft) - { - $this->aircraft = $aircraft; - } + public function setAircraft($aircraft) { + $this->aircraft = $aircraft; + } - public function getAircraft() - { - return $this->aircraft; - } + public function getAircraft() { + return $this->aircraft; + } - public function setArrivalTime($arrivalTime) - { - $this->arrivalTime = $arrivalTime; - } + public function setArrivalTime($arrivalTime) { + $this->arrivalTime = $arrivalTime; + } - public function getArrivalTime() - { - return $this->arrivalTime; - } + public function getArrivalTime() { + return $this->arrivalTime; + } - public function setChangePlane($changePlane) - { - $this->changePlane = $changePlane; - } + public function setChangePlane($changePlane) { + $this->changePlane = $changePlane; + } - public function getChangePlane() - { - return $this->changePlane; - } + public function getChangePlane() { + return $this->changePlane; + } - public function setConnectionDuration($connectionDuration) - { - $this->connectionDuration = $connectionDuration; - } + public function setConnectionDuration($connectionDuration) { + $this->connectionDuration = $connectionDuration; + } - public function getConnectionDuration() - { - return $this->connectionDuration; - } + public function getConnectionDuration() { + return $this->connectionDuration; + } - public function setDepartureTime($departureTime) - { - $this->departureTime = $departureTime; - } + public function setDepartureTime($departureTime) { + $this->departureTime = $departureTime; + } - public function getDepartureTime() - { - return $this->departureTime; - } + public function getDepartureTime() { + return $this->departureTime; + } - public function setDestination($destination) - { - $this->destination = $destination; - } + public function setDestination($destination) { + $this->destination = $destination; + } - public function getDestination() - { - return $this->destination; - } + public function getDestination() { + return $this->destination; + } - public function setDestinationTerminal($destinationTerminal) - { - $this->destinationTerminal = $destinationTerminal; - } + public function setDestinationTerminal($destinationTerminal) { + $this->destinationTerminal = $destinationTerminal; + } - public function getDestinationTerminal() - { - return $this->destinationTerminal; - } + public function getDestinationTerminal() { + return $this->destinationTerminal; + } - public function setDuration($duration) - { - $this->duration = $duration; - } + public function setDuration($duration) { + $this->duration = $duration; + } - public function getDuration() - { - return $this->duration; - } + public function getDuration() { + return $this->duration; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMeal($meal) - { - $this->meal = $meal; - } + public function setMeal($meal) { + $this->meal = $meal; + } - public function getMeal() - { - return $this->meal; - } + public function getMeal() { + return $this->meal; + } - public function setMileage($mileage) - { - $this->mileage = $mileage; - } + public function setMileage($mileage) { + $this->mileage = $mileage; + } - public function getMileage() - { - return $this->mileage; - } + public function getMileage() { + return $this->mileage; + } - public function setOnTimePerformance($onTimePerformance) - { - $this->onTimePerformance = $onTimePerformance; - } + public function setOnTimePerformance($onTimePerformance) { + $this->onTimePerformance = $onTimePerformance; + } - public function getOnTimePerformance() - { - return $this->onTimePerformance; - } + public function getOnTimePerformance() { + return $this->onTimePerformance; + } - public function setOperatingDisclosure($operatingDisclosure) - { - $this->operatingDisclosure = $operatingDisclosure; - } + public function setOperatingDisclosure($operatingDisclosure) { + $this->operatingDisclosure = $operatingDisclosure; + } - public function getOperatingDisclosure() - { - return $this->operatingDisclosure; - } + public function getOperatingDisclosure() { + return $this->operatingDisclosure; + } - public function setOrigin($origin) - { - $this->origin = $origin; - } + public function setOrigin($origin) { + $this->origin = $origin; + } - public function getOrigin() - { - return $this->origin; - } + public function getOrigin() { + return $this->origin; + } - public function setOriginTerminal($originTerminal) - { - $this->originTerminal = $originTerminal; - } + public function setOriginTerminal($originTerminal) { + $this->originTerminal = $originTerminal; + } - public function getOriginTerminal() - { - return $this->originTerminal; - } + public function getOriginTerminal() { + return $this->originTerminal; + } - public function setSecure($secure) - { - $this->secure = $secure; - } + public function setSecure($secure) { + $this->secure = $secure; + } - public function getSecure() - { - return $this->secure; - } + public function getSecure() { + return $this->secure; + } } -class Google_Service_QPXExpress_PassengerCounts extends Google_Model -{ - public $adultCount; - public $childCount; - public $infantInLapCount; - public $infantInSeatCount; - public $kind; - public $seniorCount; +class Google_Service_QPXExpress_PassengerCounts extends Google_Model { + public $adultCount; + public $childCount; + public $infantInLapCount; + public $infantInSeatCount; + public $kind; + public $seniorCount; - public function setAdultCount($adultCount) - { - $this->adultCount = $adultCount; - } + public function setAdultCount($adultCount) { + $this->adultCount = $adultCount; + } - public function getAdultCount() - { - return $this->adultCount; - } + public function getAdultCount() { + return $this->adultCount; + } - public function setChildCount($childCount) - { - $this->childCount = $childCount; - } + public function setChildCount($childCount) { + $this->childCount = $childCount; + } - public function getChildCount() - { - return $this->childCount; - } + public function getChildCount() { + return $this->childCount; + } - public function setInfantInLapCount($infantInLapCount) - { - $this->infantInLapCount = $infantInLapCount; - } + public function setInfantInLapCount($infantInLapCount) { + $this->infantInLapCount = $infantInLapCount; + } - public function getInfantInLapCount() - { - return $this->infantInLapCount; - } + public function getInfantInLapCount() { + return $this->infantInLapCount; + } - public function setInfantInSeatCount($infantInSeatCount) - { - $this->infantInSeatCount = $infantInSeatCount; - } + public function setInfantInSeatCount($infantInSeatCount) { + $this->infantInSeatCount = $infantInSeatCount; + } - public function getInfantInSeatCount() - { - return $this->infantInSeatCount; - } + public function getInfantInSeatCount() { + return $this->infantInSeatCount; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSeniorCount($seniorCount) - { - $this->seniorCount = $seniorCount; - } + public function setSeniorCount($seniorCount) { + $this->seniorCount = $seniorCount; + } - public function getSeniorCount() - { - return $this->seniorCount; - } + public function getSeniorCount() { + return $this->seniorCount; + } } -class Google_Service_QPXExpress_PricingInfo extends Google_Collection -{ - public $baseFareTotal; - protected $fareType = 'Google_Service_QPXExpress_FareInfo'; - protected $fareDataType = 'array'; - public $fareCalculation; - public $kind; - public $latestTicketingTime; - protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts'; - protected $passengersDataType = ''; - public $ptc; - public $refundable; - public $saleFareTotal; - public $saleTaxTotal; - public $saleTotal; - protected $segmentPricingType = 'Google_Service_QPXExpress_SegmentPricing'; - protected $segmentPricingDataType = 'array'; - protected $taxType = 'Google_Service_QPXExpress_TaxInfo'; - protected $taxDataType = 'array'; +class Google_Service_QPXExpress_PricingInfo extends Google_Collection { + public $baseFareTotal; + protected $fareType = 'Google_Service_QPXExpress_FareInfo'; + protected $fareDataType = 'array'; + public $fareCalculation; + public $kind; + public $latestTicketingTime; + protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts'; + protected $passengersDataType = ''; + public $ptc; + public $refundable; + public $saleFareTotal; + public $saleTaxTotal; + public $saleTotal; + protected $segmentPricingType = 'Google_Service_QPXExpress_SegmentPricing'; + protected $segmentPricingDataType = 'array'; + protected $taxType = 'Google_Service_QPXExpress_TaxInfo'; + protected $taxDataType = 'array'; - public function setBaseFareTotal($baseFareTotal) - { - $this->baseFareTotal = $baseFareTotal; - } + public function setBaseFareTotal($baseFareTotal) { + $this->baseFareTotal = $baseFareTotal; + } - public function getBaseFareTotal() - { - return $this->baseFareTotal; - } + public function getBaseFareTotal() { + return $this->baseFareTotal; + } - public function setFare($fare) - { - $this->fare = $fare; - } + public function setFare($fare) { + $this->fare = $fare; + } - public function getFare() - { - return $this->fare; - } + public function getFare() { + return $this->fare; + } - public function setFareCalculation($fareCalculation) - { - $this->fareCalculation = $fareCalculation; - } + public function setFareCalculation($fareCalculation) { + $this->fareCalculation = $fareCalculation; + } - public function getFareCalculation() - { - return $this->fareCalculation; - } + public function getFareCalculation() { + return $this->fareCalculation; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLatestTicketingTime($latestTicketingTime) - { - $this->latestTicketingTime = $latestTicketingTime; - } + public function setLatestTicketingTime($latestTicketingTime) { + $this->latestTicketingTime = $latestTicketingTime; + } - public function getLatestTicketingTime() - { - return $this->latestTicketingTime; - } + public function getLatestTicketingTime() { + return $this->latestTicketingTime; + } - public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers) - { - $this->passengers = $passengers; - } + public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers) { + $this->passengers = $passengers; + } - public function getPassengers() - { - return $this->passengers; - } + public function getPassengers() { + return $this->passengers; + } - public function setPtc($ptc) - { - $this->ptc = $ptc; - } + public function setPtc($ptc) { + $this->ptc = $ptc; + } - public function getPtc() - { - return $this->ptc; - } + public function getPtc() { + return $this->ptc; + } - public function setRefundable($refundable) - { - $this->refundable = $refundable; - } + public function setRefundable($refundable) { + $this->refundable = $refundable; + } - public function getRefundable() - { - return $this->refundable; - } + public function getRefundable() { + return $this->refundable; + } - public function setSaleFareTotal($saleFareTotal) - { - $this->saleFareTotal = $saleFareTotal; - } + public function setSaleFareTotal($saleFareTotal) { + $this->saleFareTotal = $saleFareTotal; + } - public function getSaleFareTotal() - { - return $this->saleFareTotal; - } + public function getSaleFareTotal() { + return $this->saleFareTotal; + } - public function setSaleTaxTotal($saleTaxTotal) - { - $this->saleTaxTotal = $saleTaxTotal; - } + public function setSaleTaxTotal($saleTaxTotal) { + $this->saleTaxTotal = $saleTaxTotal; + } - public function getSaleTaxTotal() - { - return $this->saleTaxTotal; - } + public function getSaleTaxTotal() { + return $this->saleTaxTotal; + } - public function setSaleTotal($saleTotal) - { - $this->saleTotal = $saleTotal; - } + public function setSaleTotal($saleTotal) { + $this->saleTotal = $saleTotal; + } - public function getSaleTotal() - { - return $this->saleTotal; - } + public function getSaleTotal() { + return $this->saleTotal; + } - public function setSegmentPricing($segmentPricing) - { - $this->segmentPricing = $segmentPricing; - } + public function setSegmentPricing($segmentPricing) { + $this->segmentPricing = $segmentPricing; + } - public function getSegmentPricing() - { - return $this->segmentPricing; - } + public function getSegmentPricing() { + return $this->segmentPricing; + } - public function setTax($tax) - { - $this->tax = $tax; - } + public function setTax($tax) { + $this->tax = $tax; + } - public function getTax() - { - return $this->tax; - } + public function getTax() { + return $this->tax; + } } -class Google_Service_QPXExpress_SegmentInfo extends Google_Collection -{ - public $bookingCode; - public $bookingCodeCount; - public $cabin; - public $connectionDuration; - public $duration; - protected $flightType = 'Google_Service_QPXExpress_FlightInfo'; - protected $flightDataType = ''; - public $id; - public $kind; - protected $legType = 'Google_Service_QPXExpress_LegInfo'; - protected $legDataType = 'array'; - public $marriedSegmentGroup; - public $subjectToGovernmentApproval; +class Google_Service_QPXExpress_SegmentInfo extends Google_Collection { + public $bookingCode; + public $bookingCodeCount; + public $cabin; + public $connectionDuration; + public $duration; + protected $flightType = 'Google_Service_QPXExpress_FlightInfo'; + protected $flightDataType = ''; + public $id; + public $kind; + protected $legType = 'Google_Service_QPXExpress_LegInfo'; + protected $legDataType = 'array'; + public $marriedSegmentGroup; + public $subjectToGovernmentApproval; - public function setBookingCode($bookingCode) - { - $this->bookingCode = $bookingCode; - } + public function setBookingCode($bookingCode) { + $this->bookingCode = $bookingCode; + } - public function getBookingCode() - { - return $this->bookingCode; - } + public function getBookingCode() { + return $this->bookingCode; + } - public function setBookingCodeCount($bookingCodeCount) - { - $this->bookingCodeCount = $bookingCodeCount; - } + public function setBookingCodeCount($bookingCodeCount) { + $this->bookingCodeCount = $bookingCodeCount; + } - public function getBookingCodeCount() - { - return $this->bookingCodeCount; - } + public function getBookingCodeCount() { + return $this->bookingCodeCount; + } - public function setCabin($cabin) - { - $this->cabin = $cabin; - } + public function setCabin($cabin) { + $this->cabin = $cabin; + } - public function getCabin() - { - return $this->cabin; - } + public function getCabin() { + return $this->cabin; + } - public function setConnectionDuration($connectionDuration) - { - $this->connectionDuration = $connectionDuration; - } + public function setConnectionDuration($connectionDuration) { + $this->connectionDuration = $connectionDuration; + } - public function getConnectionDuration() - { - return $this->connectionDuration; - } + public function getConnectionDuration() { + return $this->connectionDuration; + } - public function setDuration($duration) - { - $this->duration = $duration; - } + public function setDuration($duration) { + $this->duration = $duration; + } - public function getDuration() - { - return $this->duration; - } + public function getDuration() { + return $this->duration; + } - public function setFlight(Google_Service_QPXExpress_FlightInfo $flight) - { - $this->flight = $flight; - } + public function setFlight(Google_Service_QPXExpress_FlightInfo $flight) { + $this->flight = $flight; + } - public function getFlight() - { - return $this->flight; - } + public function getFlight() { + return $this->flight; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLeg($leg) - { - $this->leg = $leg; - } + public function setLeg($leg) { + $this->leg = $leg; + } - public function getLeg() - { - return $this->leg; - } + public function getLeg() { + return $this->leg; + } - public function setMarriedSegmentGroup($marriedSegmentGroup) - { - $this->marriedSegmentGroup = $marriedSegmentGroup; - } + public function setMarriedSegmentGroup($marriedSegmentGroup) { + $this->marriedSegmentGroup = $marriedSegmentGroup; + } - public function getMarriedSegmentGroup() - { - return $this->marriedSegmentGroup; - } + public function getMarriedSegmentGroup() { + return $this->marriedSegmentGroup; + } - public function setSubjectToGovernmentApproval($subjectToGovernmentApproval) - { - $this->subjectToGovernmentApproval = $subjectToGovernmentApproval; - } + public function setSubjectToGovernmentApproval($subjectToGovernmentApproval) { + $this->subjectToGovernmentApproval = $subjectToGovernmentApproval; + } - public function getSubjectToGovernmentApproval() - { - return $this->subjectToGovernmentApproval; - } + public function getSubjectToGovernmentApproval() { + return $this->subjectToGovernmentApproval; + } } -class Google_Service_QPXExpress_SegmentPricing extends Google_Collection -{ - public $fareId; - protected $freeBaggageOptionType = 'Google_Service_QPXExpress_FreeBaggageAllowance'; - protected $freeBaggageOptionDataType = 'array'; - public $kind; - public $segmentId; +class Google_Service_QPXExpress_SegmentPricing extends Google_Collection { + public $fareId; + protected $freeBaggageOptionType = 'Google_Service_QPXExpress_FreeBaggageAllowance'; + protected $freeBaggageOptionDataType = 'array'; + public $kind; + public $segmentId; - public function setFareId($fareId) - { - $this->fareId = $fareId; - } + public function setFareId($fareId) { + $this->fareId = $fareId; + } - public function getFareId() - { - return $this->fareId; - } + public function getFareId() { + return $this->fareId; + } - public function setFreeBaggageOption($freeBaggageOption) - { - $this->freeBaggageOption = $freeBaggageOption; - } + public function setFreeBaggageOption($freeBaggageOption) { + $this->freeBaggageOption = $freeBaggageOption; + } - public function getFreeBaggageOption() - { - return $this->freeBaggageOption; - } + public function getFreeBaggageOption() { + return $this->freeBaggageOption; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSegmentId($segmentId) - { - $this->segmentId = $segmentId; - } + public function setSegmentId($segmentId) { + $this->segmentId = $segmentId; + } - public function getSegmentId() - { - return $this->segmentId; - } + public function getSegmentId() { + return $this->segmentId; + } } -class Google_Service_QPXExpress_SliceInfo extends Google_Collection -{ - public $duration; - public $kind; - protected $segmentType = 'Google_Service_QPXExpress_SegmentInfo'; - protected $segmentDataType = 'array'; +class Google_Service_QPXExpress_SliceInfo extends Google_Collection { + public $duration; + public $kind; + protected $segmentType = 'Google_Service_QPXExpress_SegmentInfo'; + protected $segmentDataType = 'array'; - public function setDuration($duration) - { - $this->duration = $duration; - } + public function setDuration($duration) { + $this->duration = $duration; + } - public function getDuration() - { - return $this->duration; - } + public function getDuration() { + return $this->duration; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSegment($segment) - { - $this->segment = $segment; - } + public function setSegment($segment) { + $this->segment = $segment; + } - public function getSegment() - { - return $this->segment; - } + public function getSegment() { + return $this->segment; + } } -class Google_Service_QPXExpress_SliceInput extends Google_Collection -{ - public $alliance; - public $date; - public $destination; - public $kind; - public $maxConnectionDuration; - public $maxStops; - public $origin; - public $permittedCarrier; - protected $permittedDepartureTimeType = 'Google_Service_QPXExpress_TimeOfDayRange'; - protected $permittedDepartureTimeDataType = ''; - public $preferredCabin; - public $prohibitedCarrier; +class Google_Service_QPXExpress_SliceInput extends Google_Collection { + public $alliance; + public $date; + public $destination; + public $kind; + public $maxConnectionDuration; + public $maxStops; + public $origin; + public $permittedCarrier; + protected $permittedDepartureTimeType = 'Google_Service_QPXExpress_TimeOfDayRange'; + protected $permittedDepartureTimeDataType = ''; + public $preferredCabin; + public $prohibitedCarrier; - public function setAlliance($alliance) - { - $this->alliance = $alliance; - } + public function setAlliance($alliance) { + $this->alliance = $alliance; + } - public function getAlliance() - { - return $this->alliance; - } + public function getAlliance() { + return $this->alliance; + } - public function setDate($date) - { - $this->date = $date; - } + public function setDate($date) { + $this->date = $date; + } - public function getDate() - { - return $this->date; - } + public function getDate() { + return $this->date; + } - public function setDestination($destination) - { - $this->destination = $destination; - } + public function setDestination($destination) { + $this->destination = $destination; + } - public function getDestination() - { - return $this->destination; - } + public function getDestination() { + return $this->destination; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMaxConnectionDuration($maxConnectionDuration) - { - $this->maxConnectionDuration = $maxConnectionDuration; - } + public function setMaxConnectionDuration($maxConnectionDuration) { + $this->maxConnectionDuration = $maxConnectionDuration; + } - public function getMaxConnectionDuration() - { - return $this->maxConnectionDuration; - } + public function getMaxConnectionDuration() { + return $this->maxConnectionDuration; + } - public function setMaxStops($maxStops) - { - $this->maxStops = $maxStops; - } + public function setMaxStops($maxStops) { + $this->maxStops = $maxStops; + } - public function getMaxStops() - { - return $this->maxStops; - } + public function getMaxStops() { + return $this->maxStops; + } - public function setOrigin($origin) - { - $this->origin = $origin; - } + public function setOrigin($origin) { + $this->origin = $origin; + } - public function getOrigin() - { - return $this->origin; - } + public function getOrigin() { + return $this->origin; + } - public function setPermittedCarrier($permittedCarrier) - { - $this->permittedCarrier = $permittedCarrier; - } + public function setPermittedCarrier($permittedCarrier) { + $this->permittedCarrier = $permittedCarrier; + } - public function getPermittedCarrier() - { - return $this->permittedCarrier; - } + public function getPermittedCarrier() { + return $this->permittedCarrier; + } - public function setPermittedDepartureTime(Google_Service_QPXExpress_TimeOfDayRange $permittedDepartureTime) - { - $this->permittedDepartureTime = $permittedDepartureTime; - } + public function setPermittedDepartureTime(Google_Service_QPXExpress_TimeOfDayRange $permittedDepartureTime) { + $this->permittedDepartureTime = $permittedDepartureTime; + } - public function getPermittedDepartureTime() - { - return $this->permittedDepartureTime; - } + public function getPermittedDepartureTime() { + return $this->permittedDepartureTime; + } - public function setPreferredCabin($preferredCabin) - { - $this->preferredCabin = $preferredCabin; - } + public function setPreferredCabin($preferredCabin) { + $this->preferredCabin = $preferredCabin; + } - public function getPreferredCabin() - { - return $this->preferredCabin; - } + public function getPreferredCabin() { + return $this->preferredCabin; + } - public function setProhibitedCarrier($prohibitedCarrier) - { - $this->prohibitedCarrier = $prohibitedCarrier; - } + public function setProhibitedCarrier($prohibitedCarrier) { + $this->prohibitedCarrier = $prohibitedCarrier; + } - public function getProhibitedCarrier() - { - return $this->prohibitedCarrier; - } + public function getProhibitedCarrier() { + return $this->prohibitedCarrier; + } } -class Google_Service_QPXExpress_TaxData extends Google_Model -{ - public $id; - public $kind; - public $name; +class Google_Service_QPXExpress_TaxData extends Google_Model { + public $id; + public $kind; + public $name; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_QPXExpress_TaxInfo extends Google_Model -{ - public $chargeType; - public $code; - public $country; - public $id; - public $kind; - public $salePrice; +class Google_Service_QPXExpress_TaxInfo extends Google_Model { + public $chargeType; + public $code; + public $country; + public $id; + public $kind; + public $salePrice; - public function setChargeType($chargeType) - { - $this->chargeType = $chargeType; - } + public function setChargeType($chargeType) { + $this->chargeType = $chargeType; + } - public function getChargeType() - { - return $this->chargeType; - } + public function getChargeType() { + return $this->chargeType; + } - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setCountry($country) - { - $this->country = $country; - } + public function setCountry($country) { + $this->country = $country; + } - public function getCountry() - { - return $this->country; - } + public function getCountry() { + return $this->country; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSalePrice($salePrice) - { - $this->salePrice = $salePrice; - } + public function setSalePrice($salePrice) { + $this->salePrice = $salePrice; + } - public function getSalePrice() - { - return $this->salePrice; - } + public function getSalePrice() { + return $this->salePrice; + } } -class Google_Service_QPXExpress_TimeOfDayRange extends Google_Model -{ - public $earliestTime; - public $kind; - public $latestTime; +class Google_Service_QPXExpress_TimeOfDayRange extends Google_Model { + public $earliestTime; + public $kind; + public $latestTime; - public function setEarliestTime($earliestTime) - { - $this->earliestTime = $earliestTime; - } + public function setEarliestTime($earliestTime) { + $this->earliestTime = $earliestTime; + } - public function getEarliestTime() - { - return $this->earliestTime; - } + public function getEarliestTime() { + return $this->earliestTime; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLatestTime($latestTime) - { - $this->latestTime = $latestTime; - } + public function setLatestTime($latestTime) { + $this->latestTime = $latestTime; + } - public function getLatestTime() - { - return $this->latestTime; - } + public function getLatestTime() { + return $this->latestTime; + } } -class Google_Service_QPXExpress_TripOption extends Google_Collection -{ - public $id; - public $kind; - protected $pricingType = 'Google_Service_QPXExpress_PricingInfo'; - protected $pricingDataType = 'array'; - public $saleTotal; - protected $sliceType = 'Google_Service_QPXExpress_SliceInfo'; - protected $sliceDataType = 'array'; +class Google_Service_QPXExpress_TripOption extends Google_Collection { + public $id; + public $kind; + protected $pricingType = 'Google_Service_QPXExpress_PricingInfo'; + protected $pricingDataType = 'array'; + public $saleTotal; + protected $sliceType = 'Google_Service_QPXExpress_SliceInfo'; + protected $sliceDataType = 'array'; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPricing($pricing) - { - $this->pricing = $pricing; - } + public function setPricing($pricing) { + $this->pricing = $pricing; + } - public function getPricing() - { - return $this->pricing; - } + public function getPricing() { + return $this->pricing; + } - public function setSaleTotal($saleTotal) - { - $this->saleTotal = $saleTotal; - } + public function setSaleTotal($saleTotal) { + $this->saleTotal = $saleTotal; + } - public function getSaleTotal() - { - return $this->saleTotal; - } + public function getSaleTotal() { + return $this->saleTotal; + } - public function setSlice($slice) - { - $this->slice = $slice; - } + public function setSlice($slice) { + $this->slice = $slice; + } - public function getSlice() - { - return $this->slice; - } + public function getSlice() { + return $this->slice; + } } -class Google_Service_QPXExpress_TripOptionsRequest extends Google_Collection -{ - public $maxPrice; - protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts'; - protected $passengersDataType = ''; - public $refundable; - public $saleCountry; - protected $sliceType = 'Google_Service_QPXExpress_SliceInput'; - protected $sliceDataType = 'array'; - public $solutions; +class Google_Service_QPXExpress_TripOptionsRequest extends Google_Collection { + public $maxPrice; + protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts'; + protected $passengersDataType = ''; + public $refundable; + public $saleCountry; + protected $sliceType = 'Google_Service_QPXExpress_SliceInput'; + protected $sliceDataType = 'array'; + public $solutions; - public function setMaxPrice($maxPrice) - { - $this->maxPrice = $maxPrice; - } + public function setMaxPrice($maxPrice) { + $this->maxPrice = $maxPrice; + } - public function getMaxPrice() - { - return $this->maxPrice; - } + public function getMaxPrice() { + return $this->maxPrice; + } - public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers) - { - $this->passengers = $passengers; - } + public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers) { + $this->passengers = $passengers; + } - public function getPassengers() - { - return $this->passengers; - } + public function getPassengers() { + return $this->passengers; + } - public function setRefundable($refundable) - { - $this->refundable = $refundable; - } + public function setRefundable($refundable) { + $this->refundable = $refundable; + } - public function getRefundable() - { - return $this->refundable; - } + public function getRefundable() { + return $this->refundable; + } - public function setSaleCountry($saleCountry) - { - $this->saleCountry = $saleCountry; - } + public function setSaleCountry($saleCountry) { + $this->saleCountry = $saleCountry; + } - public function getSaleCountry() - { - return $this->saleCountry; - } + public function getSaleCountry() { + return $this->saleCountry; + } - public function setSlice($slice) - { - $this->slice = $slice; - } + public function setSlice($slice) { + $this->slice = $slice; + } - public function getSlice() - { - return $this->slice; - } + public function getSlice() { + return $this->slice; + } - public function setSolutions($solutions) - { - $this->solutions = $solutions; - } + public function setSolutions($solutions) { + $this->solutions = $solutions; + } - public function getSolutions() - { - return $this->solutions; - } + public function getSolutions() { + return $this->solutions; + } } -class Google_Service_QPXExpress_TripOptionsResponse extends Google_Collection -{ - protected $dataType = 'Google_Service_QPXExpress_Data'; - protected $dataDataType = ''; - public $kind; - public $requestId; - protected $tripOptionType = 'Google_Service_QPXExpress_TripOption'; - protected $tripOptionDataType = 'array'; +class Google_Service_QPXExpress_TripOptionsResponse extends Google_Collection { + protected $dataType = 'Google_Service_QPXExpress_Data'; + protected $dataDataType = ''; + public $kind; + public $requestId; + protected $tripOptionType = 'Google_Service_QPXExpress_TripOption'; + protected $tripOptionDataType = 'array'; - public function setData(Google_Service_QPXExpress_Data $data) - { - $this->data = $data; - } + public function setData(Google_Service_QPXExpress_Data $data) { + $this->data = $data; + } - public function getData() - { - return $this->data; - } + public function getData() { + return $this->data; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } + public function setRequestId($requestId) { + $this->requestId = $requestId; + } - public function getRequestId() - { - return $this->requestId; - } + public function getRequestId() { + return $this->requestId; + } - public function setTripOption($tripOption) - { - $this->tripOption = $tripOption; - } + public function setTripOption($tripOption) { + $this->tripOption = $tripOption; + } - public function getTripOption() - { - return $this->tripOption; - } + public function getTripOption() { + return $this->tripOption; + } } -class Google_Service_QPXExpress_TripsSearchRequest extends Google_Model -{ - protected $requestType = 'Google_Service_QPXExpress_TripOptionsRequest'; - protected $requestDataType = ''; +class Google_Service_QPXExpress_TripsSearchRequest extends Google_Model { + protected $requestType = 'Google_Service_QPXExpress_TripOptionsRequest'; + protected $requestDataType = ''; - public function setRequest(Google_Service_QPXExpress_TripOptionsRequest $request) - { - $this->request = $request; - } + public function setRequest(Google_Service_QPXExpress_TripOptionsRequest $request) { + $this->request = $request; + } - public function getRequest() - { - return $this->request; - } + public function getRequest() { + return $this->request; + } } -class Google_Service_QPXExpress_TripsSearchResponse extends Google_Model -{ - public $kind; - protected $tripsType = 'Google_Service_QPXExpress_TripOptionsResponse'; - protected $tripsDataType = ''; +class Google_Service_QPXExpress_TripsSearchResponse extends Google_Model { + public $kind; + protected $tripsType = 'Google_Service_QPXExpress_TripOptionsResponse'; + protected $tripsDataType = ''; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setTrips(Google_Service_QPXExpress_TripOptionsResponse $trips) - { - $this->trips = $trips; - } + public function setTrips(Google_Service_QPXExpress_TripOptionsResponse $trips) { + $this->trips = $trips; + } - public function getTrips() - { - return $this->trips; - } + public function getTrips() { + return $this->trips; + } } diff --git a/oauth/Google/Service/Replicapool.php b/oauth/Google/Service/Replicapool.php index 4922ffb..6dc87ff 100644 --- a/oauth/Google/Service/Replicapool.php +++ b/oauth/Google/Service/Replicapool.php @@ -29,281 +29,279 @@ * * @author Google, Inc. */ -class Google_Service_Replicapool extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; - /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly"; - /** View and manage replica pools. */ - const REPLICAPOOL = "https://www.googleapis.com/auth/replicapool"; - /** View replica pools. */ - const REPLICAPOOL_READONLY = "https://www.googleapis.com/auth/replicapool.readonly"; +class Google_Service_Replicapool extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; + /** View your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly"; + /** View and manage replica pools. */ + const REPLICAPOOL = "https://www.googleapis.com/auth/replicapool"; + /** View replica pools. */ + const REPLICAPOOL_READONLY = "https://www.googleapis.com/auth/replicapool.readonly"; - public $pools; - public $replicas; - + public $pools; + public $replicas; - /** - * Constructs the internal representation of the Replicapool service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'replicapool/v1beta1/projects/'; - $this->version = 'v1beta1'; - $this->serviceName = 'replicapool'; - $this->pools = new Google_Service_Replicapool_Pools_Resource( - $this, - $this->serviceName, - 'pools', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'poolName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'poolName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{projectName}/zones/{zone}/pools', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{projectName}/zones/{zone}/pools', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'resize' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/resize', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'poolName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'numReplicas' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'updatetemplate' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/updateTemplate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'poolName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->replicas = new Google_Service_Replicapool_Replicas_Resource( - $this, - $this->serviceName, - 'replicas', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'poolName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replicaName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'poolName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replicaName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'poolName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'restart' => array( - 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}/restart', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'poolName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'replicaName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Replicapool service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'replicapool/v1beta1/projects/'; + $this->version = 'v1beta1'; + $this->serviceName = 'replicapool'; + + $this->pools = new Google_Service_Replicapool_Pools_Resource( + $this, + $this->serviceName, + 'pools', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'poolName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'poolName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{projectName}/zones/{zone}/pools', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{projectName}/zones/{zone}/pools', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'resize' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/resize', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'poolName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'numReplicas' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'updatetemplate' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/updateTemplate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'poolName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->replicas = new Google_Service_Replicapool_Replicas_Resource( + $this, + $this->serviceName, + 'replicas', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'poolName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replicaName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'poolName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replicaName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'poolName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'restart' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}/restart', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'poolName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replicaName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -315,128 +313,126 @@ class Google_Service_Replicapool extends Google_Service * $pools = $replicapoolService->pools; * */ -class Google_Service_Replicapool_Pools_Resource extends Google_Service_Resource -{ +class Google_Service_Replicapool_Pools_Resource extends Google_Service_Resource { - /** - * Deletes a replica pool. (pools.delete) - * - * @param string $projectName - * The project ID for this replica pool. - * @param string $zone - * The zone for this replica pool. - * @param string $poolName - * The name of the replica pool for this request. - * @param Google_PoolsDeleteRequest $postBody - * @param array $optParams Optional parameters. - */ - public function delete($projectName, $zone, $poolName, Google_Service_Replicapool_PoolsDeleteRequest $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets information about a single replica pool. (pools.get) - * - * @param string $projectName - * The project ID for this replica pool. - * @param string $zone - * The zone for this replica pool. - * @param string $poolName - * The name of the replica pool for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Pool - */ - public function get($projectName, $zone, $poolName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapool_Pool"); - } - /** - * Inserts a new replica pool. (pools.insert) - * - * @param string $projectName - * The project ID for this replica pool. - * @param string $zone - * The zone for this replica pool. - * @param Google_Pool $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Pool - */ - public function insert($projectName, $zone, Google_Service_Replicapool_Pool $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Replicapool_Pool"); - } - /** - * List all replica pools. (pools.listPools) - * - * @param string $projectName - * The project ID for this request. - * @param string $zone - * The zone for this replica pool. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Set this to the nextPageToken value returned by a previous list request to obtain the next page - * of results from the previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: - * 50) - * @return Google_Service_Replicapool_PoolsListResponse - */ - public function listPools($projectName, $zone, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapool_PoolsListResponse"); - } - /** - * Resize a pool. This is an asynchronous operation, and multiple overlapping - * resize requests can be made. Replica Pools will use the information from the - * last resize request. (pools.resize) - * - * @param string $projectName - * The project ID for this replica pool. - * @param string $zone - * The zone for this replica pool. - * @param string $poolName - * The name of the replica pool for this request. - * @param array $optParams Optional parameters. - * - * @opt_param int numReplicas - * The desired number of replicas to resize to. If this number is larger than the existing number - * of replicas, new replicas will be added. If the number is smaller, then existing replicas will - * be deleted. - * @return Google_Service_Replicapool_Pool - */ - public function resize($projectName, $zone, $poolName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); - $params = array_merge($params, $optParams); - return $this->call('resize', array($params), "Google_Service_Replicapool_Pool"); - } - /** - * Update the template used by the pool. (pools.updatetemplate) - * - * @param string $projectName - * The project ID for this replica pool. - * @param string $zone - * The zone for this replica pool. - * @param string $poolName - * The name of the replica pool for this request. - * @param Google_Template $postBody - * @param array $optParams Optional parameters. - */ - public function updatetemplate($projectName, $zone, $poolName, Google_Service_Replicapool_Template $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updatetemplate', array($params)); - } + /** + * Deletes a replica pool. (pools.delete) + * + * @param string $projectName + * The project ID for this replica pool. + * @param string $zone + * The zone for this replica pool. + * @param string $poolName + * The name of the replica pool for this request. + * @param Google_PoolsDeleteRequest $postBody + * @param array $optParams Optional parameters. + */ + public function delete($projectName, $zone, $poolName, Google_Service_Replicapool_PoolsDeleteRequest $postBody, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets information about a single replica pool. (pools.get) + * + * @param string $projectName + * The project ID for this replica pool. + * @param string $zone + * The zone for this replica pool. + * @param string $poolName + * The name of the replica pool for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Pool + */ + public function get($projectName, $zone, $poolName, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Replicapool_Pool"); + } + + /** + * Inserts a new replica pool. (pools.insert) + * + * @param string $projectName + * The project ID for this replica pool. + * @param string $zone + * The zone for this replica pool. + * @param Google_Pool $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Pool + */ + public function insert($projectName, $zone, Google_Service_Replicapool_Pool $postBody, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Replicapool_Pool"); + } + + /** + * List all replica pools. (pools.listPools) + * + * @param string $projectName + * The project ID for this request. + * @param string $zone + * The zone for this replica pool. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Set this to the nextPageToken value returned by a previous list request to obtain the next page + * of results from the previous list request. + * @opt_param int maxResults + * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: + * 50) + * @return Google_Service_Replicapool_PoolsListResponse + */ + public function listPools($projectName, $zone, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Replicapool_PoolsListResponse"); + } + + /** + * Resize a pool. This is an asynchronous operation, and multiple overlapping + * resize requests can be made. Replica Pools will use the information from the + * last resize request. (pools.resize) + * + * @param string $projectName + * The project ID for this replica pool. + * @param string $zone + * The zone for this replica pool. + * @param string $poolName + * The name of the replica pool for this request. + * @param array $optParams Optional parameters. + * + * @opt_param int numReplicas + * The desired number of replicas to resize to. If this number is larger than the existing number + * of replicas, new replicas will be added. If the number is smaller, then existing replicas will + * be deleted. + * @return Google_Service_Replicapool_Pool + */ + public function resize($projectName, $zone, $poolName, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); + $params = array_merge($params, $optParams); + return $this->call('resize', array($params), "Google_Service_Replicapool_Pool"); + } + + /** + * Update the template used by the pool. (pools.updatetemplate) + * + * @param string $projectName + * The project ID for this replica pool. + * @param string $zone + * The zone for this replica pool. + * @param string $poolName + * The name of the replica pool for this request. + * @param Google_Template $postBody + * @param array $optParams Optional parameters. + */ + public function updatetemplate($projectName, $zone, $poolName, Google_Service_Replicapool_Template $postBody, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updatetemplate', array($params)); + } } /** @@ -447,1144 +443,947 @@ class Google_Service_Replicapool_Pools_Resource extends Google_Service_Resource * $replicas = $replicapoolService->replicas; * */ -class Google_Service_Replicapool_Replicas_Resource extends Google_Service_Resource -{ +class Google_Service_Replicapool_Replicas_Resource extends Google_Service_Resource { - /** - * Deletes a replica from the pool. (replicas.delete) - * - * @param string $projectName - * The project ID for this request. - * @param string $zone - * The zone where the replica lives. - * @param string $poolName - * The replica pool name for this request. - * @param string $replicaName - * The name of the replica for this request. - * @param Google_ReplicasDeleteRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Replica - */ - public function delete($projectName, $zone, $poolName, $replicaName, Google_Service_Replicapool_ReplicasDeleteRequest $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Replicapool_Replica"); - } - /** - * Gets information about a specific replica. (replicas.get) - * - * @param string $projectName - * The project ID for this request. - * @param string $zone - * The zone where the replica lives. - * @param string $poolName - * The replica pool name for this request. - * @param string $replicaName - * The name of the replica for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Replica - */ - public function get($projectName, $zone, $poolName, $replicaName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapool_Replica"); - } - /** - * Lists all replicas in a pool. (replicas.listReplicas) - * - * @param string $projectName - * The project ID for this request. - * @param string $zone - * The zone where the replica pool lives. - * @param string $poolName - * The replica pool name for this request. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Set this to the nextPageToken value returned by a previous list request to obtain the next page - * of results from the previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: - * 50) - * @return Google_Service_Replicapool_ReplicasListResponse - */ - public function listReplicas($projectName, $zone, $poolName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapool_ReplicasListResponse"); - } - /** - * Restarts a replica in a pool. (replicas.restart) - * - * @param string $projectName - * The project ID for this request. - * @param string $zone - * The zone where the replica lives. - * @param string $poolName - * The replica pool name for this request. - * @param string $replicaName - * The name of the replica for this request. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Replica - */ - public function restart($projectName, $zone, $poolName, $replicaName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName); - $params = array_merge($params, $optParams); - return $this->call('restart', array($params), "Google_Service_Replicapool_Replica"); - } + /** + * Deletes a replica from the pool. (replicas.delete) + * + * @param string $projectName + * The project ID for this request. + * @param string $zone + * The zone where the replica lives. + * @param string $poolName + * The replica pool name for this request. + * @param string $replicaName + * The name of the replica for this request. + * @param Google_ReplicasDeleteRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Replica + */ + public function delete($projectName, $zone, $poolName, $replicaName, Google_Service_Replicapool_ReplicasDeleteRequest $postBody, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Replicapool_Replica"); + } + + /** + * Gets information about a specific replica. (replicas.get) + * + * @param string $projectName + * The project ID for this request. + * @param string $zone + * The zone where the replica lives. + * @param string $poolName + * The replica pool name for this request. + * @param string $replicaName + * The name of the replica for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Replica + */ + public function get($projectName, $zone, $poolName, $replicaName, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Replicapool_Replica"); + } + + /** + * Lists all replicas in a pool. (replicas.listReplicas) + * + * @param string $projectName + * The project ID for this request. + * @param string $zone + * The zone where the replica pool lives. + * @param string $poolName + * The replica pool name for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Set this to the nextPageToken value returned by a previous list request to obtain the next page + * of results from the previous list request. + * @opt_param int maxResults + * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: + * 50) + * @return Google_Service_Replicapool_ReplicasListResponse + */ + public function listReplicas($projectName, $zone, $poolName, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Replicapool_ReplicasListResponse"); + } + + /** + * Restarts a replica in a pool. (replicas.restart) + * + * @param string $projectName + * The project ID for this request. + * @param string $zone + * The zone where the replica lives. + * @param string $poolName + * The replica pool name for this request. + * @param string $replicaName + * The name of the replica for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Replica + */ + public function restart($projectName, $zone, $poolName, $replicaName, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName); + $params = array_merge($params, $optParams); + return $this->call('restart', array($params), "Google_Service_Replicapool_Replica"); + } } +class Google_Service_Replicapool_AccessConfig extends Google_Model { + public $name; + public $natIp; + public $type; + public function setName($name) { + $this->name = $name; + } -class Google_Service_Replicapool_AccessConfig extends Google_Model -{ - public $name; - public $natIp; - public $type; + public function getName() { + return $this->name; + } - public function setName($name) - { - $this->name = $name; - } + public function setNatIp($natIp) { + $this->natIp = $natIp; + } - public function getName() - { - return $this->name; - } + public function getNatIp() { + return $this->natIp; + } - public function setNatIp($natIp) - { - $this->natIp = $natIp; - } + public function setType($type) { + $this->type = $type; + } - public function getNatIp() - { - return $this->natIp; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Replicapool_Action extends Google_Collection -{ - public $commands; - protected $envVariablesType = 'Google_Service_Replicapool_EnvVariable'; - protected $envVariablesDataType = 'array'; - public $timeoutMilliSeconds; +class Google_Service_Replicapool_Action extends Google_Collection { + public $commands; + protected $envVariablesType = 'Google_Service_Replicapool_EnvVariable'; + protected $envVariablesDataType = 'array'; + public $timeoutMilliSeconds; - public function setCommands($commands) - { - $this->commands = $commands; - } + public function setCommands($commands) { + $this->commands = $commands; + } - public function getCommands() - { - return $this->commands; - } + public function getCommands() { + return $this->commands; + } - public function setEnvVariables($envVariables) - { - $this->envVariables = $envVariables; - } + public function setEnvVariables($envVariables) { + $this->envVariables = $envVariables; + } - public function getEnvVariables() - { - return $this->envVariables; - } + public function getEnvVariables() { + return $this->envVariables; + } - public function setTimeoutMilliSeconds($timeoutMilliSeconds) - { - $this->timeoutMilliSeconds = $timeoutMilliSeconds; - } + public function setTimeoutMilliSeconds($timeoutMilliSeconds) { + $this->timeoutMilliSeconds = $timeoutMilliSeconds; + } - public function getTimeoutMilliSeconds() - { - return $this->timeoutMilliSeconds; - } + public function getTimeoutMilliSeconds() { + return $this->timeoutMilliSeconds; + } } -class Google_Service_Replicapool_DiskAttachment extends Google_Model -{ - public $deviceName; - public $index; +class Google_Service_Replicapool_DiskAttachment extends Google_Model { + public $deviceName; + public $index; - public function setDeviceName($deviceName) - { - $this->deviceName = $deviceName; - } + public function setDeviceName($deviceName) { + $this->deviceName = $deviceName; + } - public function getDeviceName() - { - return $this->deviceName; - } + public function getDeviceName() { + return $this->deviceName; + } - public function setIndex($index) - { - $this->index = $index; - } + public function setIndex($index) { + $this->index = $index; + } - public function getIndex() - { - return $this->index; - } + public function getIndex() { + return $this->index; + } } -class Google_Service_Replicapool_EnvVariable extends Google_Model -{ - public $hidden; - public $name; - public $value; +class Google_Service_Replicapool_EnvVariable extends Google_Model { + public $hidden; + public $name; + public $value; - public function setHidden($hidden) - { - $this->hidden = $hidden; - } + public function setHidden($hidden) { + $this->hidden = $hidden; + } - public function getHidden() - { - return $this->hidden; - } + public function getHidden() { + return $this->hidden; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Replicapool_ExistingDisk extends Google_Model -{ - protected $attachmentType = 'Google_Service_Replicapool_DiskAttachment'; - protected $attachmentDataType = ''; - public $source; +class Google_Service_Replicapool_ExistingDisk extends Google_Model { + protected $attachmentType = 'Google_Service_Replicapool_DiskAttachment'; + protected $attachmentDataType = ''; + public $source; - public function setAttachment(Google_Service_Replicapool_DiskAttachment $attachment) - { - $this->attachment = $attachment; - } + public function setAttachment(Google_Service_Replicapool_DiskAttachment $attachment) { + $this->attachment = $attachment; + } - public function getAttachment() - { - return $this->attachment; - } + public function getAttachment() { + return $this->attachment; + } - public function setSource($source) - { - $this->source = $source; - } + public function setSource($source) { + $this->source = $source; + } - public function getSource() - { - return $this->source; - } + public function getSource() { + return $this->source; + } } -class Google_Service_Replicapool_HealthCheck extends Google_Model -{ - public $checkIntervalSec; - public $description; - public $healthyThreshold; - public $host; - public $name; - public $path; - public $port; - public $timeoutSec; - public $unhealthyThreshold; +class Google_Service_Replicapool_HealthCheck extends Google_Model { + public $checkIntervalSec; + public $description; + public $healthyThreshold; + public $host; + public $name; + public $path; + public $port; + public $timeoutSec; + public $unhealthyThreshold; - public function setCheckIntervalSec($checkIntervalSec) - { - $this->checkIntervalSec = $checkIntervalSec; - } + public function setCheckIntervalSec($checkIntervalSec) { + $this->checkIntervalSec = $checkIntervalSec; + } - public function getCheckIntervalSec() - { - return $this->checkIntervalSec; - } + public function getCheckIntervalSec() { + return $this->checkIntervalSec; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setHealthyThreshold($healthyThreshold) - { - $this->healthyThreshold = $healthyThreshold; - } + public function setHealthyThreshold($healthyThreshold) { + $this->healthyThreshold = $healthyThreshold; + } - public function getHealthyThreshold() - { - return $this->healthyThreshold; - } + public function getHealthyThreshold() { + return $this->healthyThreshold; + } - public function setHost($host) - { - $this->host = $host; - } + public function setHost($host) { + $this->host = $host; + } - public function getHost() - { - return $this->host; - } + public function getHost() { + return $this->host; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setPath($path) - { - $this->path = $path; - } + public function setPath($path) { + $this->path = $path; + } - public function getPath() - { - return $this->path; - } + public function getPath() { + return $this->path; + } - public function setPort($port) - { - $this->port = $port; - } + public function setPort($port) { + $this->port = $port; + } - public function getPort() - { - return $this->port; - } + public function getPort() { + return $this->port; + } - public function setTimeoutSec($timeoutSec) - { - $this->timeoutSec = $timeoutSec; - } + public function setTimeoutSec($timeoutSec) { + $this->timeoutSec = $timeoutSec; + } - public function getTimeoutSec() - { - return $this->timeoutSec; - } + public function getTimeoutSec() { + return $this->timeoutSec; + } - public function setUnhealthyThreshold($unhealthyThreshold) - { - $this->unhealthyThreshold = $unhealthyThreshold; - } + public function setUnhealthyThreshold($unhealthyThreshold) { + $this->unhealthyThreshold = $unhealthyThreshold; + } - public function getUnhealthyThreshold() - { - return $this->unhealthyThreshold; - } + public function getUnhealthyThreshold() { + return $this->unhealthyThreshold; + } } -class Google_Service_Replicapool_Label extends Google_Model -{ - public $key; - public $value; +class Google_Service_Replicapool_Label extends Google_Model { + public $key; + public $value; - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Replicapool_Metadata extends Google_Collection -{ - public $fingerPrint; - protected $itemsType = 'Google_Service_Replicapool_MetadataItem'; - protected $itemsDataType = 'array'; +class Google_Service_Replicapool_Metadata extends Google_Collection { + public $fingerPrint; + protected $itemsType = 'Google_Service_Replicapool_MetadataItem'; + protected $itemsDataType = 'array'; - public function setFingerPrint($fingerPrint) - { - $this->fingerPrint = $fingerPrint; - } + public function setFingerPrint($fingerPrint) { + $this->fingerPrint = $fingerPrint; + } - public function getFingerPrint() - { - return $this->fingerPrint; - } + public function getFingerPrint() { + return $this->fingerPrint; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } } -class Google_Service_Replicapool_MetadataItem extends Google_Model -{ - public $key; - public $value; +class Google_Service_Replicapool_MetadataItem extends Google_Model { + public $key; + public $value; - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Replicapool_NetworkInterface extends Google_Collection -{ - protected $accessConfigsType = 'Google_Service_Replicapool_AccessConfig'; - protected $accessConfigsDataType = 'array'; - public $network; - public $networkIp; +class Google_Service_Replicapool_NetworkInterface extends Google_Collection { + protected $accessConfigsType = 'Google_Service_Replicapool_AccessConfig'; + protected $accessConfigsDataType = 'array'; + public $network; + public $networkIp; - public function setAccessConfigs($accessConfigs) - { - $this->accessConfigs = $accessConfigs; - } + public function setAccessConfigs($accessConfigs) { + $this->accessConfigs = $accessConfigs; + } - public function getAccessConfigs() - { - return $this->accessConfigs; - } + public function getAccessConfigs() { + return $this->accessConfigs; + } - public function setNetwork($network) - { - $this->network = $network; - } + public function setNetwork($network) { + $this->network = $network; + } - public function getNetwork() - { - return $this->network; - } + public function getNetwork() { + return $this->network; + } - public function setNetworkIp($networkIp) - { - $this->networkIp = $networkIp; - } + public function setNetworkIp($networkIp) { + $this->networkIp = $networkIp; + } - public function getNetworkIp() - { - return $this->networkIp; - } + public function getNetworkIp() { + return $this->networkIp; + } } -class Google_Service_Replicapool_NewDisk extends Google_Model -{ - protected $attachmentType = 'Google_Service_Replicapool_DiskAttachment'; - protected $attachmentDataType = ''; - public $autoDelete; - public $boot; - protected $initializeParamsType = 'Google_Service_Replicapool_NewDiskInitializeParams'; - protected $initializeParamsDataType = ''; +class Google_Service_Replicapool_NewDisk extends Google_Model { + protected $attachmentType = 'Google_Service_Replicapool_DiskAttachment'; + protected $attachmentDataType = ''; + public $autoDelete; + public $boot; + protected $initializeParamsType = 'Google_Service_Replicapool_NewDiskInitializeParams'; + protected $initializeParamsDataType = ''; - public function setAttachment(Google_Service_Replicapool_DiskAttachment $attachment) - { - $this->attachment = $attachment; - } + public function setAttachment(Google_Service_Replicapool_DiskAttachment $attachment) { + $this->attachment = $attachment; + } - public function getAttachment() - { - return $this->attachment; - } + public function getAttachment() { + return $this->attachment; + } - public function setAutoDelete($autoDelete) - { - $this->autoDelete = $autoDelete; - } + public function setAutoDelete($autoDelete) { + $this->autoDelete = $autoDelete; + } - public function getAutoDelete() - { - return $this->autoDelete; - } + public function getAutoDelete() { + return $this->autoDelete; + } - public function setBoot($boot) - { - $this->boot = $boot; - } + public function setBoot($boot) { + $this->boot = $boot; + } - public function getBoot() - { - return $this->boot; - } + public function getBoot() { + return $this->boot; + } - public function setInitializeParams(Google_Service_Replicapool_NewDiskInitializeParams $initializeParams) - { - $this->initializeParams = $initializeParams; - } + public function setInitializeParams(Google_Service_Replicapool_NewDiskInitializeParams $initializeParams) { + $this->initializeParams = $initializeParams; + } - public function getInitializeParams() - { - return $this->initializeParams; - } + public function getInitializeParams() { + return $this->initializeParams; + } } -class Google_Service_Replicapool_NewDiskInitializeParams extends Google_Model -{ - public $diskSizeGb; - public $sourceImage; +class Google_Service_Replicapool_NewDiskInitializeParams extends Google_Model { + public $diskSizeGb; + public $sourceImage; - public function setDiskSizeGb($diskSizeGb) - { - $this->diskSizeGb = $diskSizeGb; - } + public function setDiskSizeGb($diskSizeGb) { + $this->diskSizeGb = $diskSizeGb; + } - public function getDiskSizeGb() - { - return $this->diskSizeGb; - } + public function getDiskSizeGb() { + return $this->diskSizeGb; + } - public function setSourceImage($sourceImage) - { - $this->sourceImage = $sourceImage; - } + public function setSourceImage($sourceImage) { + $this->sourceImage = $sourceImage; + } - public function getSourceImage() - { - return $this->sourceImage; - } + public function getSourceImage() { + return $this->sourceImage; + } } -class Google_Service_Replicapool_Pool extends Google_Collection -{ - public $autoRestart; - public $baseInstanceName; - public $currentNumReplicas; - public $description; - protected $healthChecksType = 'Google_Service_Replicapool_HealthCheck'; - protected $healthChecksDataType = 'array'; - public $initialNumReplicas; - protected $labelsType = 'Google_Service_Replicapool_Label'; - protected $labelsDataType = 'array'; - public $name; - public $numReplicas; - public $resourceViews; - public $selfLink; - public $targetPool; - public $targetPools; - protected $templateType = 'Google_Service_Replicapool_Template'; - protected $templateDataType = ''; - public $type; +class Google_Service_Replicapool_Pool extends Google_Collection { + public $autoRestart; + public $baseInstanceName; + public $currentNumReplicas; + public $description; + protected $healthChecksType = 'Google_Service_Replicapool_HealthCheck'; + protected $healthChecksDataType = 'array'; + public $initialNumReplicas; + protected $labelsType = 'Google_Service_Replicapool_Label'; + protected $labelsDataType = 'array'; + public $name; + public $numReplicas; + public $resourceViews; + public $selfLink; + public $targetPool; + public $targetPools; + protected $templateType = 'Google_Service_Replicapool_Template'; + protected $templateDataType = ''; + public $type; - public function setAutoRestart($autoRestart) - { - $this->autoRestart = $autoRestart; - } + public function setAutoRestart($autoRestart) { + $this->autoRestart = $autoRestart; + } - public function getAutoRestart() - { - return $this->autoRestart; - } + public function getAutoRestart() { + return $this->autoRestart; + } - public function setBaseInstanceName($baseInstanceName) - { - $this->baseInstanceName = $baseInstanceName; - } + public function setBaseInstanceName($baseInstanceName) { + $this->baseInstanceName = $baseInstanceName; + } - public function getBaseInstanceName() - { - return $this->baseInstanceName; - } + public function getBaseInstanceName() { + return $this->baseInstanceName; + } - public function setCurrentNumReplicas($currentNumReplicas) - { - $this->currentNumReplicas = $currentNumReplicas; - } + public function setCurrentNumReplicas($currentNumReplicas) { + $this->currentNumReplicas = $currentNumReplicas; + } - public function getCurrentNumReplicas() - { - return $this->currentNumReplicas; - } + public function getCurrentNumReplicas() { + return $this->currentNumReplicas; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } + public function setHealthChecks($healthChecks) { + $this->healthChecks = $healthChecks; + } - public function getHealthChecks() - { - return $this->healthChecks; - } + public function getHealthChecks() { + return $this->healthChecks; + } - public function setInitialNumReplicas($initialNumReplicas) - { - $this->initialNumReplicas = $initialNumReplicas; - } + public function setInitialNumReplicas($initialNumReplicas) { + $this->initialNumReplicas = $initialNumReplicas; + } - public function getInitialNumReplicas() - { - return $this->initialNumReplicas; - } + public function getInitialNumReplicas() { + return $this->initialNumReplicas; + } - public function setLabels($labels) - { - $this->labels = $labels; - } + public function setLabels($labels) { + $this->labels = $labels; + } - public function getLabels() - { - return $this->labels; - } + public function getLabels() { + return $this->labels; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setNumReplicas($numReplicas) - { - $this->numReplicas = $numReplicas; - } + public function setNumReplicas($numReplicas) { + $this->numReplicas = $numReplicas; + } - public function getNumReplicas() - { - return $this->numReplicas; - } + public function getNumReplicas() { + return $this->numReplicas; + } - public function setResourceViews($resourceViews) - { - $this->resourceViews = $resourceViews; - } + public function setResourceViews($resourceViews) { + $this->resourceViews = $resourceViews; + } - public function getResourceViews() - { - return $this->resourceViews; - } + public function getResourceViews() { + return $this->resourceViews; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTargetPool($targetPool) - { - $this->targetPool = $targetPool; - } + public function setTargetPool($targetPool) { + $this->targetPool = $targetPool; + } - public function getTargetPool() - { - return $this->targetPool; - } + public function getTargetPool() { + return $this->targetPool; + } - public function setTargetPools($targetPools) - { - $this->targetPools = $targetPools; - } + public function setTargetPools($targetPools) { + $this->targetPools = $targetPools; + } - public function getTargetPools() - { - return $this->targetPools; - } + public function getTargetPools() { + return $this->targetPools; + } - public function setTemplate(Google_Service_Replicapool_Template $template) - { - $this->template = $template; - } + public function setTemplate(Google_Service_Replicapool_Template $template) { + $this->template = $template; + } - public function getTemplate() - { - return $this->template; - } + public function getTemplate() { + return $this->template; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Replicapool_PoolsDeleteRequest extends Google_Collection -{ - public $abandonInstances; +class Google_Service_Replicapool_PoolsDeleteRequest extends Google_Collection { + public $abandonInstances; - public function setAbandonInstances($abandonInstances) - { - $this->abandonInstances = $abandonInstances; - } + public function setAbandonInstances($abandonInstances) { + $this->abandonInstances = $abandonInstances; + } - public function getAbandonInstances() - { - return $this->abandonInstances; - } + public function getAbandonInstances() { + return $this->abandonInstances; + } } -class Google_Service_Replicapool_PoolsListResponse extends Google_Collection -{ - public $nextPageToken; - protected $resourcesType = 'Google_Service_Replicapool_Pool'; - protected $resourcesDataType = 'array'; +class Google_Service_Replicapool_PoolsListResponse extends Google_Collection { + public $nextPageToken; + protected $resourcesType = 'Google_Service_Replicapool_Pool'; + protected $resourcesDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setResources($resources) - { - $this->resources = $resources; - } + public function setResources($resources) { + $this->resources = $resources; + } - public function getResources() - { - return $this->resources; - } + public function getResources() { + return $this->resources; + } } -class Google_Service_Replicapool_Replica extends Google_Model -{ - public $name; - public $selfLink; - protected $statusType = 'Google_Service_Replicapool_ReplicaStatus'; - protected $statusDataType = ''; +class Google_Service_Replicapool_Replica extends Google_Model { + public $name; + public $selfLink; + protected $statusType = 'Google_Service_Replicapool_ReplicaStatus'; + protected $statusDataType = ''; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setStatus(Google_Service_Replicapool_ReplicaStatus $status) - { - $this->status = $status; - } + public function setStatus(Google_Service_Replicapool_ReplicaStatus $status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_Replicapool_ReplicaStatus extends Google_Model -{ - public $details; - public $state; - public $templateVersion; - public $vmLink; - public $vmStartTime; +class Google_Service_Replicapool_ReplicaStatus extends Google_Model { + public $details; + public $state; + public $templateVersion; + public $vmLink; + public $vmStartTime; - public function setDetails($details) - { - $this->details = $details; - } + public function setDetails($details) { + $this->details = $details; + } - public function getDetails() - { - return $this->details; - } + public function getDetails() { + return $this->details; + } - public function setState($state) - { - $this->state = $state; - } + public function setState($state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } - public function setTemplateVersion($templateVersion) - { - $this->templateVersion = $templateVersion; - } + public function setTemplateVersion($templateVersion) { + $this->templateVersion = $templateVersion; + } - public function getTemplateVersion() - { - return $this->templateVersion; - } + public function getTemplateVersion() { + return $this->templateVersion; + } - public function setVmLink($vmLink) - { - $this->vmLink = $vmLink; - } + public function setVmLink($vmLink) { + $this->vmLink = $vmLink; + } - public function getVmLink() - { - return $this->vmLink; - } + public function getVmLink() { + return $this->vmLink; + } - public function setVmStartTime($vmStartTime) - { - $this->vmStartTime = $vmStartTime; - } + public function setVmStartTime($vmStartTime) { + $this->vmStartTime = $vmStartTime; + } - public function getVmStartTime() - { - return $this->vmStartTime; - } + public function getVmStartTime() { + return $this->vmStartTime; + } } -class Google_Service_Replicapool_ReplicasDeleteRequest extends Google_Model -{ - public $abandonInstance; +class Google_Service_Replicapool_ReplicasDeleteRequest extends Google_Model { + public $abandonInstance; - public function setAbandonInstance($abandonInstance) - { - $this->abandonInstance = $abandonInstance; - } + public function setAbandonInstance($abandonInstance) { + $this->abandonInstance = $abandonInstance; + } - public function getAbandonInstance() - { - return $this->abandonInstance; - } + public function getAbandonInstance() { + return $this->abandonInstance; + } } -class Google_Service_Replicapool_ReplicasListResponse extends Google_Collection -{ - public $nextPageToken; - protected $resourcesType = 'Google_Service_Replicapool_Replica'; - protected $resourcesDataType = 'array'; +class Google_Service_Replicapool_ReplicasListResponse extends Google_Collection { + public $nextPageToken; + protected $resourcesType = 'Google_Service_Replicapool_Replica'; + protected $resourcesDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setResources($resources) - { - $this->resources = $resources; - } + public function setResources($resources) { + $this->resources = $resources; + } - public function getResources() - { - return $this->resources; - } + public function getResources() { + return $this->resources; + } } -class Google_Service_Replicapool_ServiceAccount extends Google_Collection -{ - public $email; - public $scopes; +class Google_Service_Replicapool_ServiceAccount extends Google_Collection { + public $email; + public $scopes; - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setScopes($scopes) - { - $this->scopes = $scopes; - } + public function setScopes($scopes) { + $this->scopes = $scopes; + } - public function getScopes() - { - return $this->scopes; - } + public function getScopes() { + return $this->scopes; + } } -class Google_Service_Replicapool_Tag extends Google_Collection -{ - public $fingerPrint; - public $items; +class Google_Service_Replicapool_Tag extends Google_Collection { + public $fingerPrint; + public $items; - public function setFingerPrint($fingerPrint) - { - $this->fingerPrint = $fingerPrint; - } + public function setFingerPrint($fingerPrint) { + $this->fingerPrint = $fingerPrint; + } - public function getFingerPrint() - { - return $this->fingerPrint; - } + public function getFingerPrint() { + return $this->fingerPrint; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } } -class Google_Service_Replicapool_Template extends Google_Collection -{ - protected $actionType = 'Google_Service_Replicapool_Action'; - protected $actionDataType = ''; - protected $healthChecksType = 'Google_Service_Replicapool_HealthCheck'; - protected $healthChecksDataType = 'array'; - public $version; - protected $vmParamsType = 'Google_Service_Replicapool_VmParams'; - protected $vmParamsDataType = ''; +class Google_Service_Replicapool_Template extends Google_Collection { + protected $actionType = 'Google_Service_Replicapool_Action'; + protected $actionDataType = ''; + protected $healthChecksType = 'Google_Service_Replicapool_HealthCheck'; + protected $healthChecksDataType = 'array'; + public $version; + protected $vmParamsType = 'Google_Service_Replicapool_VmParams'; + protected $vmParamsDataType = ''; - public function setAction(Google_Service_Replicapool_Action $action) - { - $this->action = $action; - } + public function setAction(Google_Service_Replicapool_Action $action) { + $this->action = $action; + } - public function getAction() - { - return $this->action; - } + public function getAction() { + return $this->action; + } - public function setHealthChecks($healthChecks) - { - $this->healthChecks = $healthChecks; - } + public function setHealthChecks($healthChecks) { + $this->healthChecks = $healthChecks; + } - public function getHealthChecks() - { - return $this->healthChecks; - } + public function getHealthChecks() { + return $this->healthChecks; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } - public function setVmParams(Google_Service_Replicapool_VmParams $vmParams) - { - $this->vmParams = $vmParams; - } + public function setVmParams(Google_Service_Replicapool_VmParams $vmParams) { + $this->vmParams = $vmParams; + } - public function getVmParams() - { - return $this->vmParams; - } + public function getVmParams() { + return $this->vmParams; + } } -class Google_Service_Replicapool_VmParams extends Google_Collection -{ - public $baseInstanceName; - public $canIpForward; - public $description; - protected $disksToAttachType = 'Google_Service_Replicapool_ExistingDisk'; - protected $disksToAttachDataType = 'array'; - protected $disksToCreateType = 'Google_Service_Replicapool_NewDisk'; - protected $disksToCreateDataType = 'array'; - public $machineType; - protected $metadataType = 'Google_Service_Replicapool_Metadata'; - protected $metadataDataType = ''; - protected $networkInterfacesType = 'Google_Service_Replicapool_NetworkInterface'; - protected $networkInterfacesDataType = 'array'; - public $onHostMaintenance; - protected $serviceAccountsType = 'Google_Service_Replicapool_ServiceAccount'; - protected $serviceAccountsDataType = 'array'; - protected $tagsType = 'Google_Service_Replicapool_Tag'; - protected $tagsDataType = ''; +class Google_Service_Replicapool_VmParams extends Google_Collection { + public $baseInstanceName; + public $canIpForward; + public $description; + protected $disksToAttachType = 'Google_Service_Replicapool_ExistingDisk'; + protected $disksToAttachDataType = 'array'; + protected $disksToCreateType = 'Google_Service_Replicapool_NewDisk'; + protected $disksToCreateDataType = 'array'; + public $machineType; + protected $metadataType = 'Google_Service_Replicapool_Metadata'; + protected $metadataDataType = ''; + protected $networkInterfacesType = 'Google_Service_Replicapool_NetworkInterface'; + protected $networkInterfacesDataType = 'array'; + public $onHostMaintenance; + protected $serviceAccountsType = 'Google_Service_Replicapool_ServiceAccount'; + protected $serviceAccountsDataType = 'array'; + protected $tagsType = 'Google_Service_Replicapool_Tag'; + protected $tagsDataType = ''; - public function setBaseInstanceName($baseInstanceName) - { - $this->baseInstanceName = $baseInstanceName; - } + public function setBaseInstanceName($baseInstanceName) { + $this->baseInstanceName = $baseInstanceName; + } - public function getBaseInstanceName() - { - return $this->baseInstanceName; - } + public function getBaseInstanceName() { + return $this->baseInstanceName; + } - public function setCanIpForward($canIpForward) - { - $this->canIpForward = $canIpForward; - } + public function setCanIpForward($canIpForward) { + $this->canIpForward = $canIpForward; + } - public function getCanIpForward() - { - return $this->canIpForward; - } + public function getCanIpForward() { + return $this->canIpForward; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setDisksToAttach($disksToAttach) - { - $this->disksToAttach = $disksToAttach; - } + public function setDisksToAttach($disksToAttach) { + $this->disksToAttach = $disksToAttach; + } - public function getDisksToAttach() - { - return $this->disksToAttach; - } + public function getDisksToAttach() { + return $this->disksToAttach; + } - public function setDisksToCreate($disksToCreate) - { - $this->disksToCreate = $disksToCreate; - } + public function setDisksToCreate($disksToCreate) { + $this->disksToCreate = $disksToCreate; + } - public function getDisksToCreate() - { - return $this->disksToCreate; - } + public function getDisksToCreate() { + return $this->disksToCreate; + } - public function setMachineType($machineType) - { - $this->machineType = $machineType; - } + public function setMachineType($machineType) { + $this->machineType = $machineType; + } - public function getMachineType() - { - return $this->machineType; - } + public function getMachineType() { + return $this->machineType; + } - public function setMetadata(Google_Service_Replicapool_Metadata $metadata) - { - $this->metadata = $metadata; - } + public function setMetadata(Google_Service_Replicapool_Metadata $metadata) { + $this->metadata = $metadata; + } - public function getMetadata() - { - return $this->metadata; - } + public function getMetadata() { + return $this->metadata; + } - public function setNetworkInterfaces($networkInterfaces) - { - $this->networkInterfaces = $networkInterfaces; - } + public function setNetworkInterfaces($networkInterfaces) { + $this->networkInterfaces = $networkInterfaces; + } - public function getNetworkInterfaces() - { - return $this->networkInterfaces; - } + public function getNetworkInterfaces() { + return $this->networkInterfaces; + } - public function setOnHostMaintenance($onHostMaintenance) - { - $this->onHostMaintenance = $onHostMaintenance; - } + public function setOnHostMaintenance($onHostMaintenance) { + $this->onHostMaintenance = $onHostMaintenance; + } - public function getOnHostMaintenance() - { - return $this->onHostMaintenance; - } + public function getOnHostMaintenance() { + return $this->onHostMaintenance; + } - public function setServiceAccounts($serviceAccounts) - { - $this->serviceAccounts = $serviceAccounts; - } + public function setServiceAccounts($serviceAccounts) { + $this->serviceAccounts = $serviceAccounts; + } - public function getServiceAccounts() - { - return $this->serviceAccounts; - } + public function getServiceAccounts() { + return $this->serviceAccounts; + } - public function setTags(Google_Service_Replicapool_Tag $tags) - { - $this->tags = $tags; - } + public function setTags(Google_Service_Replicapool_Tag $tags) { + $this->tags = $tags; + } - public function getTags() - { - return $this->tags; - } + public function getTags() { + return $this->tags; + } } diff --git a/oauth/Google/Service/Reports.php b/oauth/Google/Service/Reports.php index bf6cdd1..0bf21db 100644 --- a/oauth/Google/Service/Reports.php +++ b/oauth/Google/Service/Reports.php @@ -29,227 +29,225 @@ * * @author Google, Inc. */ -class Google_Service_Reports extends Google_Service -{ - /** View audit reports of Google Apps for your domain. */ - const ADMIN_REPORTS_AUDIT_READONLY = "https://www.googleapis.com/auth/admin.reports.audit.readonly"; - /** View usage reports of Google Apps for your domain. */ - const ADMIN_REPORTS_USAGE_READONLY = "https://www.googleapis.com/auth/admin.reports.usage.readonly"; +class Google_Service_Reports extends Google_Service { + /** View audit reports of Google Apps for your domain. */ + const ADMIN_REPORTS_AUDIT_READONLY = "https://www.googleapis.com/auth/admin.reports.audit.readonly"; + /** View usage reports of Google Apps for your domain. */ + const ADMIN_REPORTS_USAGE_READONLY = "https://www.googleapis.com/auth/admin.reports.usage.readonly"; - public $activities; - public $channels; - public $customerUsageReports; - public $userUsageReport; - + public $activities; + public $channels; + public $customerUsageReports; + public $userUsageReport; - /** - * Constructs the internal representation of the Reports service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'admin/reports/v1/'; - $this->version = 'reports_v1'; - $this->serviceName = 'admin'; - $this->activities = new Google_Service_Reports_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'list' => array( - 'path' => 'activity/users/{userKey}/applications/{applicationName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'applicationName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'actorIpAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'eventName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'watch' => array( - 'path' => 'activity/users/{userKey}/applications/{applicationName}/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'applicationName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'actorIpAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'eventName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_Reports_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'stop' => array( - 'path' => '/admin/reports_v1/channels/stop', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->customerUsageReports = new Google_Service_Reports_CustomerUsageReports_Resource( - $this, - $this->serviceName, - 'customerUsageReports', - array( - 'methods' => array( - 'get' => array( - 'path' => 'usage/dates/{date}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'date' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'parameters' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->userUsageReport = new Google_Service_Reports_UserUsageReport_Resource( - $this, - $this->serviceName, - 'userUsageReport', - array( - 'methods' => array( - 'get' => array( - 'path' => 'usage/users/{userKey}/dates/{date}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userKey' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'date' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'parameters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Reports service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'admin/reports/v1/'; + $this->version = 'reports_v1'; + $this->serviceName = 'admin'; + + $this->activities = new Google_Service_Reports_Activities_Resource( + $this, + $this->serviceName, + 'activities', + array( + 'methods' => array( + 'list' => array( + 'path' => 'activity/users/{userKey}/applications/{applicationName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'applicationName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'actorIpAddress' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'eventName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filters' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customerId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'watch' => array( + 'path' => 'activity/users/{userKey}/applications/{applicationName}/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'applicationName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'actorIpAddress' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'eventName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filters' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customerId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->channels = new Google_Service_Reports_Channels_Resource( + $this, + $this->serviceName, + 'channels', + array( + 'methods' => array( + 'stop' => array( + 'path' => '/admin/reports_v1/channels/stop', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->customerUsageReports = new Google_Service_Reports_CustomerUsageReports_Resource( + $this, + $this->serviceName, + 'customerUsageReports', + array( + 'methods' => array( + 'get' => array( + 'path' => 'usage/dates/{date}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'date' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customerId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'parameters' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->userUsageReport = new Google_Service_Reports_UserUsageReport_Resource( + $this, + $this->serviceName, + 'userUsageReport', + array( + 'methods' => array( + 'get' => array( + 'path' => 'usage/users/{userKey}/dates/{date}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userKey' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'date' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'parameters' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filters' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customerId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -261,81 +259,79 @@ class Google_Service_Reports extends Google_Service * $activities = $adminService->activities; * */ -class Google_Service_Reports_Activities_Resource extends Google_Service_Resource -{ +class Google_Service_Reports_Activities_Resource extends Google_Service_Resource { - /** - * Retrieves a list of activities for a specific customer and application. - * (activities.listActivities) - * - * @param string $userKey - * Represents the profile id or the user email for which the data should be filtered. When 'all' is - * specified as the userKey, it returns usageReports for all users. - * @param string $applicationName - * Application name for which the events are to be retrieved. - * @param array $optParams Optional parameters. - * - * @opt_param string startTime - * Return events which occured at or after this time. - * @opt_param string actorIpAddress - * IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses. - * @opt_param int maxResults - * Number of activity records to be shown in each page. - * @opt_param string eventName - * Name of the event being queried. - * @opt_param string pageToken - * Token to specify next page. - * @opt_param string filters - * Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 - * name][operator][parameter2 value],... - * @opt_param string endTime - * Return events which occured at or before this time. - * @opt_param string customerId - * Represents the customer for which the data is to be fetched. - * @return Google_Service_Reports_Activities - */ - public function listActivities($userKey, $applicationName, $optParams = array()) - { - $params = array('userKey' => $userKey, 'applicationName' => $applicationName); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Reports_Activities"); - } - /** - * Push changes to activities (activities.watch) - * - * @param string $userKey - * Represents the profile id or the user email for which the data should be filtered. When 'all' is - * specified as the userKey, it returns usageReports for all users. - * @param string $applicationName - * Application name for which the events are to be retrieved. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string startTime - * Return events which occured at or after this time. - * @opt_param string actorIpAddress - * IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses. - * @opt_param int maxResults - * Number of activity records to be shown in each page. - * @opt_param string eventName - * Name of the event being queried. - * @opt_param string pageToken - * Token to specify next page. - * @opt_param string filters - * Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 - * name][operator][parameter2 value],... - * @opt_param string endTime - * Return events which occured at or before this time. - * @opt_param string customerId - * Represents the customer for which the data is to be fetched. - * @return Google_Service_Reports_Channel - */ - public function watch($userKey, $applicationName, Google_Service_Reports_Channel $postBody, $optParams = array()) - { - $params = array('userKey' => $userKey, 'applicationName' => $applicationName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Reports_Channel"); - } + /** + * Retrieves a list of activities for a specific customer and application. + * (activities.listActivities) + * + * @param string $userKey + * Represents the profile id or the user email for which the data should be filtered. When 'all' is + * specified as the userKey, it returns usageReports for all users. + * @param string $applicationName + * Application name for which the events are to be retrieved. + * @param array $optParams Optional parameters. + * + * @opt_param string startTime + * Return events which occured at or after this time. + * @opt_param string actorIpAddress + * IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses. + * @opt_param int maxResults + * Number of activity records to be shown in each page. + * @opt_param string eventName + * Name of the event being queried. + * @opt_param string pageToken + * Token to specify next page. + * @opt_param string filters + * Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 + * name][operator][parameter2 value],... + * @opt_param string endTime + * Return events which occured at or before this time. + * @opt_param string customerId + * Represents the customer for which the data is to be fetched. + * @return Google_Service_Reports_Activities + */ + public function listActivities($userKey, $applicationName, $optParams = array()) { + $params = array('userKey' => $userKey, 'applicationName' => $applicationName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Reports_Activities"); + } + + /** + * Push changes to activities (activities.watch) + * + * @param string $userKey + * Represents the profile id or the user email for which the data should be filtered. When 'all' is + * specified as the userKey, it returns usageReports for all users. + * @param string $applicationName + * Application name for which the events are to be retrieved. + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string startTime + * Return events which occured at or after this time. + * @opt_param string actorIpAddress + * IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses. + * @opt_param int maxResults + * Number of activity records to be shown in each page. + * @opt_param string eventName + * Name of the event being queried. + * @opt_param string pageToken + * Token to specify next page. + * @opt_param string filters + * Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 + * name][operator][parameter2 value],... + * @opt_param string endTime + * Return events which occured at or before this time. + * @opt_param string customerId + * Represents the customer for which the data is to be fetched. + * @return Google_Service_Reports_Channel + */ + public function watch($userKey, $applicationName, Google_Service_Reports_Channel $postBody, $optParams = array()) { + $params = array('userKey' => $userKey, 'applicationName' => $applicationName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Reports_Channel"); + } } /** @@ -346,21 +342,19 @@ class Google_Service_Reports_Activities_Resource extends Google_Service_Resource * $channels = $adminService->channels; * */ -class Google_Service_Reports_Channels_Resource extends Google_Service_Resource -{ +class Google_Service_Reports_Channels_Resource extends Google_Service_Resource { - /** - * Stop watching resources through this channel (channels.stop) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - */ - public function stop(Google_Service_Reports_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } + /** + * Stop watching resources through this channel (channels.stop) + * + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + */ + public function stop(Google_Service_Reports_Channel $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('stop', array($params)); + } } /** @@ -371,32 +365,30 @@ class Google_Service_Reports_Channels_Resource extends Google_Service_Resource * $customerUsageReports = $adminService->customerUsageReports; * */ -class Google_Service_Reports_CustomerUsageReports_Resource extends Google_Service_Resource -{ +class Google_Service_Reports_CustomerUsageReports_Resource extends Google_Service_Resource { - /** - * Retrieves a report which is a collection of properties / statistics for a - * specific customer. (customerUsageReports.get) - * - * @param string $date - * Represents the date in yyyy-mm-dd format for which the data is to be fetched. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Token to specify next page. - * @opt_param string customerId - * Represents the customer for which the data is to be fetched. - * @opt_param string parameters - * Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, - * app_name2:param_name2. - * @return Google_Service_Reports_UsageReports - */ - public function get($date, $optParams = array()) - { - $params = array('date' => $date); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Reports_UsageReports"); - } + /** + * Retrieves a report which is a collection of properties / statistics for a + * specific customer. (customerUsageReports.get) + * + * @param string $date + * Represents the date in yyyy-mm-dd format for which the data is to be fetched. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Token to specify next page. + * @opt_param string customerId + * Represents the customer for which the data is to be fetched. + * @opt_param string parameters + * Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, + * app_name2:param_name2. + * @return Google_Service_Reports_UsageReports + */ + public function get($date, $optParams = array()) { + $params = array('date' => $date); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Reports_UsageReports"); + } } /** @@ -407,782 +399,641 @@ class Google_Service_Reports_CustomerUsageReports_Resource extends Google_Servic * $userUsageReport = $adminService->userUsageReport; * */ -class Google_Service_Reports_UserUsageReport_Resource extends Google_Service_Resource -{ +class Google_Service_Reports_UserUsageReport_Resource extends Google_Service_Resource { - /** - * Retrieves a report which is a collection of properties / statistics for a set - * of users. (userUsageReport.get) - * - * @param string $userKey - * Represents the profile id or the user email for which the data should be filtered. - * @param string $date - * Represents the date in yyyy-mm-dd format for which the data is to be fetched. - * @param array $optParams Optional parameters. - * - * @opt_param string parameters - * Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, - * app_name2:param_name2. - * @opt_param string maxResults - * Maximum number of results to return. Maximum allowed is 1000 - * @opt_param string pageToken - * Token to specify next page. - * @opt_param string filters - * Represents the set of filters including parameter operator value. - * @opt_param string customerId - * Represents the customer for which the data is to be fetched. - * @return Google_Service_Reports_UsageReports - */ - public function get($userKey, $date, $optParams = array()) - { - $params = array('userKey' => $userKey, 'date' => $date); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Reports_UsageReports"); - } + /** + * Retrieves a report which is a collection of properties / statistics for a set + * of users. (userUsageReport.get) + * + * @param string $userKey + * Represents the profile id or the user email for which the data should be filtered. + * @param string $date + * Represents the date in yyyy-mm-dd format for which the data is to be fetched. + * @param array $optParams Optional parameters. + * + * @opt_param string parameters + * Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, + * app_name2:param_name2. + * @opt_param string maxResults + * Maximum number of results to return. Maximum allowed is 1000 + * @opt_param string pageToken + * Token to specify next page. + * @opt_param string filters + * Represents the set of filters including parameter operator value. + * @opt_param string customerId + * Represents the customer for which the data is to be fetched. + * @return Google_Service_Reports_UsageReports + */ + public function get($userKey, $date, $optParams = array()) { + $params = array('userKey' => $userKey, 'date' => $date); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Reports_UsageReports"); + } } +class Google_Service_Reports_Activities extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Reports_Activity'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public function setEtag($etag) { + $this->etag = $etag; + } -class Google_Service_Reports_Activities extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Reports_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; + public function getEtag() { + return $this->etag; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setItems($items) { + $this->items = $items; + } - public function getEtag() - { - return $this->etag; - } + public function getItems() { + return $this->items; + } - public function setItems($items) - { - $this->items = $items; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getItems() - { - return $this->items; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Reports_Activity extends Google_Collection -{ - protected $actorType = 'Google_Service_Reports_ActivityActor'; - protected $actorDataType = ''; - public $etag; - protected $eventsType = 'Google_Service_Reports_ActivityEvents'; - protected $eventsDataType = 'array'; - protected $idType = 'Google_Service_Reports_ActivityId'; - protected $idDataType = ''; - public $ipAddress; - public $kind; - public $ownerDomain; +class Google_Service_Reports_Activity extends Google_Collection { + protected $actorType = 'Google_Service_Reports_ActivityActor'; + protected $actorDataType = ''; + public $etag; + protected $eventsType = 'Google_Service_Reports_ActivityEvents'; + protected $eventsDataType = 'array'; + protected $idType = 'Google_Service_Reports_ActivityId'; + protected $idDataType = ''; + public $ipAddress; + public $kind; + public $ownerDomain; - public function setActor(Google_Service_Reports_ActivityActor $actor) - { - $this->actor = $actor; - } + public function setActor(Google_Service_Reports_ActivityActor $actor) { + $this->actor = $actor; + } - public function getActor() - { - return $this->actor; - } + public function getActor() { + return $this->actor; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setEvents($events) - { - $this->events = $events; - } + public function setEvents($events) { + $this->events = $events; + } - public function getEvents() - { - return $this->events; - } + public function getEvents() { + return $this->events; + } - public function setId(Google_Service_Reports_ActivityId $id) - { - $this->id = $id; - } + public function setId(Google_Service_Reports_ActivityId $id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } + public function setIpAddress($ipAddress) { + $this->ipAddress = $ipAddress; + } - public function getIpAddress() - { - return $this->ipAddress; - } + public function getIpAddress() { + return $this->ipAddress; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOwnerDomain($ownerDomain) - { - $this->ownerDomain = $ownerDomain; - } + public function setOwnerDomain($ownerDomain) { + $this->ownerDomain = $ownerDomain; + } - public function getOwnerDomain() - { - return $this->ownerDomain; - } + public function getOwnerDomain() { + return $this->ownerDomain; + } } -class Google_Service_Reports_ActivityActor extends Google_Model -{ - public $callerType; - public $email; - public $key; - public $profileId; +class Google_Service_Reports_ActivityActor extends Google_Model { + public $callerType; + public $email; + public $key; + public $profileId; - public function setCallerType($callerType) - { - $this->callerType = $callerType; - } + public function setCallerType($callerType) { + $this->callerType = $callerType; + } - public function getCallerType() - { - return $this->callerType; - } + public function getCallerType() { + return $this->callerType; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } + public function setProfileId($profileId) { + $this->profileId = $profileId; + } - public function getProfileId() - { - return $this->profileId; - } + public function getProfileId() { + return $this->profileId; + } } -class Google_Service_Reports_ActivityEvents extends Google_Collection -{ - public $name; - protected $parametersType = 'Google_Service_Reports_ActivityEventsParameters'; - protected $parametersDataType = 'array'; - public $type; +class Google_Service_Reports_ActivityEvents extends Google_Collection { + public $name; + protected $parametersType = 'Google_Service_Reports_ActivityEventsParameters'; + protected $parametersDataType = 'array'; + public $type; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setParameters($parameters) - { - $this->parameters = $parameters; - } + public function setParameters($parameters) { + $this->parameters = $parameters; + } - public function getParameters() - { - return $this->parameters; - } + public function getParameters() { + return $this->parameters; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Reports_ActivityEventsParameters extends Google_Model -{ - public $boolValue; - public $intValue; - public $name; - public $value; +class Google_Service_Reports_ActivityEventsParameters extends Google_Model { + public $boolValue; + public $intValue; + public $name; + public $value; - public function setBoolValue($boolValue) - { - $this->boolValue = $boolValue; - } + public function setBoolValue($boolValue) { + $this->boolValue = $boolValue; + } - public function getBoolValue() - { - return $this->boolValue; - } + public function getBoolValue() { + return $this->boolValue; + } - public function setIntValue($intValue) - { - $this->intValue = $intValue; - } + public function setIntValue($intValue) { + $this->intValue = $intValue; + } - public function getIntValue() - { - return $this->intValue; - } + public function getIntValue() { + return $this->intValue; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Reports_ActivityId extends Google_Model -{ - public $applicationName; - public $customerId; - public $time; - public $uniqueQualifier; +class Google_Service_Reports_ActivityId extends Google_Model { + public $applicationName; + public $customerId; + public $time; + public $uniqueQualifier; - public function setApplicationName($applicationName) - { - $this->applicationName = $applicationName; - } + public function setApplicationName($applicationName) { + $this->applicationName = $applicationName; + } - public function getApplicationName() - { - return $this->applicationName; - } + public function getApplicationName() { + return $this->applicationName; + } - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } + public function setCustomerId($customerId) { + $this->customerId = $customerId; + } - public function getCustomerId() - { - return $this->customerId; - } + public function getCustomerId() { + return $this->customerId; + } - public function setTime($time) - { - $this->time = $time; - } + public function setTime($time) { + $this->time = $time; + } - public function getTime() - { - return $this->time; - } + public function getTime() { + return $this->time; + } - public function setUniqueQualifier($uniqueQualifier) - { - $this->uniqueQualifier = $uniqueQualifier; - } + public function setUniqueQualifier($uniqueQualifier) { + $this->uniqueQualifier = $uniqueQualifier; + } - public function getUniqueQualifier() - { - return $this->uniqueQualifier; - } + public function getUniqueQualifier() { + return $this->uniqueQualifier; + } } -class Google_Service_Reports_Channel extends Google_Model -{ - public $address; - public $expiration; - public $id; - public $kind; - public $params; - public $payload; - public $resourceId; - public $resourceUri; - public $token; - public $type; +class Google_Service_Reports_Channel extends Google_Model { + public $address; + public $expiration; + public $id; + public $kind; + public $params; + public $payload; + public $resourceId; + public $resourceUri; + public $token; + public $type; - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setExpiration($expiration) - { - $this->expiration = $expiration; - } + public function setExpiration($expiration) { + $this->expiration = $expiration; + } - public function getExpiration() - { - return $this->expiration; - } + public function getExpiration() { + return $this->expiration; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setParams($params) - { - $this->params = $params; - } + public function setParams($params) { + $this->params = $params; + } - public function getParams() - { - return $this->params; - } + public function getParams() { + return $this->params; + } - public function setPayload($payload) - { - $this->payload = $payload; - } + public function setPayload($payload) { + $this->payload = $payload; + } - public function getPayload() - { - return $this->payload; - } + public function getPayload() { + return $this->payload; + } - public function setResourceId($resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId($resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } - public function setResourceUri($resourceUri) - { - $this->resourceUri = $resourceUri; - } + public function setResourceUri($resourceUri) { + $this->resourceUri = $resourceUri; + } - public function getResourceUri() - { - return $this->resourceUri; - } + public function getResourceUri() { + return $this->resourceUri; + } - public function setToken($token) - { - $this->token = $token; - } + public function setToken($token) { + $this->token = $token; + } - public function getToken() - { - return $this->token; - } + public function getToken() { + return $this->token; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Reports_ChannelParams extends Google_Model -{ +class Google_Service_Reports_ChannelParams extends Google_Model { } -class Google_Service_Reports_UsageReport extends Google_Collection -{ - public $date; - protected $entityType = 'Google_Service_Reports_UsageReportEntity'; - protected $entityDataType = ''; - public $etag; - public $kind; - protected $parametersType = 'Google_Service_Reports_UsageReportParameters'; - protected $parametersDataType = 'array'; +class Google_Service_Reports_UsageReport extends Google_Collection { + public $date; + protected $entityType = 'Google_Service_Reports_UsageReportEntity'; + protected $entityDataType = ''; + public $etag; + public $kind; + protected $parametersType = 'Google_Service_Reports_UsageReportParameters'; + protected $parametersDataType = 'array'; - public function setDate($date) - { - $this->date = $date; - } + public function setDate($date) { + $this->date = $date; + } - public function getDate() - { - return $this->date; - } + public function getDate() { + return $this->date; + } - public function setEntity(Google_Service_Reports_UsageReportEntity $entity) - { - $this->entity = $entity; - } + public function setEntity(Google_Service_Reports_UsageReportEntity $entity) { + $this->entity = $entity; + } - public function getEntity() - { - return $this->entity; - } + public function getEntity() { + return $this->entity; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setParameters($parameters) - { - $this->parameters = $parameters; - } + public function setParameters($parameters) { + $this->parameters = $parameters; + } - public function getParameters() - { - return $this->parameters; - } + public function getParameters() { + return $this->parameters; + } } -class Google_Service_Reports_UsageReportEntity extends Google_Model -{ - public $customerId; - public $profileId; - public $type; - public $userEmail; +class Google_Service_Reports_UsageReportEntity extends Google_Model { + public $customerId; + public $profileId; + public $type; + public $userEmail; - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } + public function setCustomerId($customerId) { + $this->customerId = $customerId; + } - public function getCustomerId() - { - return $this->customerId; - } + public function getCustomerId() { + return $this->customerId; + } - public function setProfileId($profileId) - { - $this->profileId = $profileId; - } + public function setProfileId($profileId) { + $this->profileId = $profileId; + } - public function getProfileId() - { - return $this->profileId; - } + public function getProfileId() { + return $this->profileId; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setUserEmail($userEmail) - { - $this->userEmail = $userEmail; - } + public function setUserEmail($userEmail) { + $this->userEmail = $userEmail; + } - public function getUserEmail() - { - return $this->userEmail; - } + public function getUserEmail() { + return $this->userEmail; + } } -class Google_Service_Reports_UsageReportParameters extends Google_Collection -{ - public $boolValue; - public $datetimeValue; - public $intValue; - public $msgValue; - public $name; - public $stringValue; +class Google_Service_Reports_UsageReportParameters extends Google_Collection { + public $boolValue; + public $datetimeValue; + public $intValue; + public $msgValue; + public $name; + public $stringValue; - public function setBoolValue($boolValue) - { - $this->boolValue = $boolValue; - } + public function setBoolValue($boolValue) { + $this->boolValue = $boolValue; + } - public function getBoolValue() - { - return $this->boolValue; - } + public function getBoolValue() { + return $this->boolValue; + } - public function setDatetimeValue($datetimeValue) - { - $this->datetimeValue = $datetimeValue; - } + public function setDatetimeValue($datetimeValue) { + $this->datetimeValue = $datetimeValue; + } - public function getDatetimeValue() - { - return $this->datetimeValue; - } + public function getDatetimeValue() { + return $this->datetimeValue; + } - public function setIntValue($intValue) - { - $this->intValue = $intValue; - } + public function setIntValue($intValue) { + $this->intValue = $intValue; + } - public function getIntValue() - { - return $this->intValue; - } + public function getIntValue() { + return $this->intValue; + } - public function setMsgValue($msgValue) - { - $this->msgValue = $msgValue; - } + public function setMsgValue($msgValue) { + $this->msgValue = $msgValue; + } - public function getMsgValue() - { - return $this->msgValue; - } + public function getMsgValue() { + return $this->msgValue; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setStringValue($stringValue) - { - $this->stringValue = $stringValue; - } + public function setStringValue($stringValue) { + $this->stringValue = $stringValue; + } - public function getStringValue() - { - return $this->stringValue; - } + public function getStringValue() { + return $this->stringValue; + } } -class Google_Service_Reports_UsageReportParametersMsgValue extends Google_Model -{ +class Google_Service_Reports_UsageReportParametersMsgValue extends Google_Model { } -class Google_Service_Reports_UsageReports extends Google_Collection -{ - public $etag; - public $kind; - public $nextPageToken; - protected $usageReportsType = 'Google_Service_Reports_UsageReport'; - protected $usageReportsDataType = 'array'; - protected $warningsType = 'Google_Service_Reports_UsageReportsWarnings'; - protected $warningsDataType = 'array'; +class Google_Service_Reports_UsageReports extends Google_Collection { + public $etag; + public $kind; + public $nextPageToken; + protected $usageReportsType = 'Google_Service_Reports_UsageReport'; + protected $usageReportsDataType = 'array'; + protected $warningsType = 'Google_Service_Reports_UsageReportsWarnings'; + protected $warningsDataType = 'array'; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setUsageReports($usageReports) - { - $this->usageReports = $usageReports; - } + public function setUsageReports($usageReports) { + $this->usageReports = $usageReports; + } - public function getUsageReports() - { - return $this->usageReports; - } + public function getUsageReports() { + return $this->usageReports; + } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } + public function setWarnings($warnings) { + $this->warnings = $warnings; + } - public function getWarnings() - { - return $this->warnings; - } + public function getWarnings() { + return $this->warnings; + } } -class Google_Service_Reports_UsageReportsWarnings extends Google_Collection -{ - public $code; - protected $dataType = 'Google_Service_Reports_UsageReportsWarningsData'; - protected $dataDataType = 'array'; - public $message; +class Google_Service_Reports_UsageReportsWarnings extends Google_Collection { + public $code; + protected $dataType = 'Google_Service_Reports_UsageReportsWarningsData'; + protected $dataDataType = 'array'; + public $message; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setData($data) - { - $this->data = $data; - } + public function setData($data) { + $this->data = $data; + } - public function getData() - { - return $this->data; - } + public function getData() { + return $this->data; + } - public function setMessage($message) - { - $this->message = $message; - } + public function setMessage($message) { + $this->message = $message; + } - public function getMessage() - { - return $this->message; - } + public function getMessage() { + return $this->message; + } } -class Google_Service_Reports_UsageReportsWarningsData extends Google_Model -{ - public $key; - public $value; +class Google_Service_Reports_UsageReportsWarningsData extends Google_Model { + public $key; + public $value; - public function setKey($key) - { - $this->key = $key; - } + public function setKey($key) { + $this->key = $key; + } - public function getKey() - { - return $this->key; - } + public function getKey() { + return $this->key; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } diff --git a/oauth/Google/Service/Reseller.php b/oauth/Google/Service/Reseller.php index 8fb776b..c10f653 100644 --- a/oauth/Google/Service/Reseller.php +++ b/oauth/Google/Service/Reseller.php @@ -29,223 +29,221 @@ * * @author Google, Inc. */ -class Google_Service_Reseller extends Google_Service -{ - /** Manage users on your domain. */ - const APPS_ORDER = "https://www.googleapis.com/auth/apps.order"; - /** Manage users on your domain. */ - const APPS_ORDER_READONLY = "https://www.googleapis.com/auth/apps.order.readonly"; +class Google_Service_Reseller extends Google_Service { + /** Manage users on your domain. */ + const APPS_ORDER = "https://www.googleapis.com/auth/apps.order"; + /** Manage users on your domain. */ + const APPS_ORDER_READONLY = "https://www.googleapis.com/auth/apps.order.readonly"; - public $customers; - public $subscriptions; - + public $customers; + public $subscriptions; - /** - * Constructs the internal representation of the Reseller service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'apps/reseller/v1/'; - $this->version = 'v1'; - $this->serviceName = 'reseller'; - $this->customers = new Google_Service_Reseller_Customers_Resource( - $this, - $this->serviceName, - 'customers', - array( - 'methods' => array( - 'get' => array( - 'path' => 'customers/{customerId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customers', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerAuthToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'customers/{customerId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'customers/{customerId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->subscriptions = new Google_Service_Reseller_Subscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'changePlan' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'changeRenewalSettings' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'changeSeats' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeSeats', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'deletionType' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'customers/{customerId}/subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customerAuthToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'customerAuthToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'customerId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'customerNamePrefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'startPaidService' => array( - 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/startPaidService', - 'httpMethod' => 'POST', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'subscriptionId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Reseller service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'apps/reseller/v1/'; + $this->version = 'v1'; + $this->serviceName = 'reseller'; + + $this->customers = new Google_Service_Reseller_Customers_Resource( + $this, + $this->serviceName, + 'customers', + array( + 'methods' => array( + 'get' => array( + 'path' => 'customers/{customerId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'customers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customerAuthToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'customers/{customerId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'customers/{customerId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->subscriptions = new Google_Service_Reseller_Subscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'changePlan' => array( + 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'changeRenewalSettings' => array( + 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'changeSeats' => array( + 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeSeats', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deletionType' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'customers/{customerId}/subscriptions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customerAuthToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'customerAuthToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customerId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'customerNamePrefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'startPaidService' => array( + 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/startPaidService', + 'httpMethod' => 'POST', + 'parameters' => array( + 'customerId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'subscriptionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -257,73 +255,71 @@ class Google_Service_Reseller extends Google_Service * $customers = $resellerService->customers; * */ -class Google_Service_Reseller_Customers_Resource extends Google_Service_Resource -{ +class Google_Service_Reseller_Customers_Resource extends Google_Service_Resource { - /** - * Gets a customer resource if one exists and is owned by the reseller. - * (customers.get) - * - * @param string $customerId - * Id of the Customer - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Customer - */ - public function get($customerId, $optParams = array()) - { - $params = array('customerId' => $customerId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Reseller_Customer"); - } - /** - * Creates a customer resource if one does not already exist. (customers.insert) - * - * @param Google_Customer $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string customerAuthToken - * An auth token needed for inserting a customer for which domain already exists. Can be generated - * at https://www.google.com/a/cpanel//TransferToken. Optional. - * @return Google_Service_Reseller_Customer - */ - public function insert(Google_Service_Reseller_Customer $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Reseller_Customer"); - } - /** - * Update a customer resource if one it exists and is owned by the reseller. - * This method supports patch semantics. (customers.patch) - * - * @param string $customerId - * Id of the Customer - * @param Google_Customer $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Customer - */ - public function patch($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Reseller_Customer"); - } - /** - * Update a customer resource if one it exists and is owned by the reseller. - * (customers.update) - * - * @param string $customerId - * Id of the Customer - * @param Google_Customer $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Customer - */ - public function update($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Reseller_Customer"); - } + /** + * Gets a customer resource if one exists and is owned by the reseller. + * (customers.get) + * + * @param string $customerId + * Id of the Customer + * @param array $optParams Optional parameters. + * @return Google_Service_Reseller_Customer + */ + public function get($customerId, $optParams = array()) { + $params = array('customerId' => $customerId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Reseller_Customer"); + } + + /** + * Creates a customer resource if one does not already exist. (customers.insert) + * + * @param Google_Customer $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string customerAuthToken + * An auth token needed for inserting a customer for which domain already exists. Can be generated + * at https://www.google.com/a/cpanel//TransferToken. Optional. + * @return Google_Service_Reseller_Customer + */ + public function insert(Google_Service_Reseller_Customer $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Reseller_Customer"); + } + + /** + * Update a customer resource if one it exists and is owned by the reseller. + * This method supports patch semantics. (customers.patch) + * + * @param string $customerId + * Id of the Customer + * @param Google_Customer $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Reseller_Customer + */ + public function patch($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Reseller_Customer"); + } + + /** + * Update a customer resource if one it exists and is owned by the reseller. + * (customers.update) + * + * @param string $customerId + * Id of the Customer + * @param Google_Customer $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Reseller_Customer + */ + public function update($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Reseller_Customer"); + } } /** @@ -334,769 +330,652 @@ class Google_Service_Reseller_Customers_Resource extends Google_Service_Resource * $subscriptions = $resellerService->subscriptions; * */ -class Google_Service_Reseller_Subscriptions_Resource extends Google_Service_Resource -{ +class Google_Service_Reseller_Subscriptions_Resource extends Google_Service_Resource { - /** - * Changes the plan of a subscription (subscriptions.changePlan) - * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer - * @param Google_ChangePlanRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Subscription - */ - public function changePlan($customerId, $subscriptionId, Google_Service_Reseller_ChangePlanRequest $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('changePlan', array($params), "Google_Service_Reseller_Subscription"); - } - /** - * Changes the renewal settings of a subscription - * (subscriptions.changeRenewalSettings) - * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer - * @param Google_RenewalSettings $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Subscription - */ - public function changeRenewalSettings($customerId, $subscriptionId, Google_Service_Reseller_RenewalSettings $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('changeRenewalSettings', array($params), "Google_Service_Reseller_Subscription"); - } - /** - * Changes the seats configuration of a subscription (subscriptions.changeSeats) - * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer - * @param Google_Seats $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Subscription - */ - public function changeSeats($customerId, $subscriptionId, Google_Service_Reseller_Seats $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('changeSeats', array($params), "Google_Service_Reseller_Subscription"); - } - /** - * Cancels/Downgrades a subscription. (subscriptions.delete) - * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer - * @param string $deletionType - * Whether the subscription is to be fully cancelled or downgraded - * @param array $optParams Optional parameters. - */ - public function delete($customerId, $subscriptionId, $deletionType, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'deletionType' => $deletionType); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a subscription of the customer. (subscriptions.get) - * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Subscription - */ - public function get($customerId, $subscriptionId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Reseller_Subscription"); - } - /** - * Creates/Transfers a subscription for the customer. (subscriptions.insert) - * - * @param string $customerId - * Id of the Customer - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string customerAuthToken - * An auth token needed for transferring a subscription. Can be generated at - * https://www.google.com/a/cpanel/customer-domain/TransferToken. Optional. - * @return Google_Service_Reseller_Subscription - */ - public function insert($customerId, Google_Service_Reseller_Subscription $postBody, $optParams = array()) - { - $params = array('customerId' => $customerId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Reseller_Subscription"); - } - /** - * Lists subscriptions of a reseller, optionally filtered by a customer name - * prefix. (subscriptions.listSubscriptions) - * - * @param array $optParams Optional parameters. - * - * @opt_param string customerAuthToken - * An auth token needed if the customer is not a resold customer of this reseller. Can be generated - * at https://www.google.com/a/cpanel/customer-domain/TransferToken.Optional. - * @opt_param string pageToken - * Token to specify next page in the list - * @opt_param string customerId - * Id of the Customer - * @opt_param string maxResults - * Maximum number of results to return - * @opt_param string customerNamePrefix - * Prefix of the customer's domain name by which the subscriptions should be filtered. Optional - * @return Google_Service_Reseller_Subscriptions - */ - public function listSubscriptions($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Reseller_Subscriptions"); - } - /** - * Starts paid service of a trial subscription (subscriptions.startPaidService) - * - * @param string $customerId - * Id of the Customer - * @param string $subscriptionId - * Id of the subscription, which is unique for a customer - * @param array $optParams Optional parameters. - * @return Google_Service_Reseller_Subscription - */ - public function startPaidService($customerId, $subscriptionId, $optParams = array()) - { - $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); - $params = array_merge($params, $optParams); - return $this->call('startPaidService', array($params), "Google_Service_Reseller_Subscription"); - } + /** + * Changes the plan of a subscription (subscriptions.changePlan) + * + * @param string $customerId + * Id of the Customer + * @param string $subscriptionId + * Id of the subscription, which is unique for a customer + * @param Google_ChangePlanRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Reseller_Subscription + */ + public function changePlan($customerId, $subscriptionId, Google_Service_Reseller_ChangePlanRequest $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('changePlan', array($params), "Google_Service_Reseller_Subscription"); + } + + /** + * Changes the renewal settings of a subscription + * (subscriptions.changeRenewalSettings) + * + * @param string $customerId + * Id of the Customer + * @param string $subscriptionId + * Id of the subscription, which is unique for a customer + * @param Google_RenewalSettings $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Reseller_Subscription + */ + public function changeRenewalSettings($customerId, $subscriptionId, Google_Service_Reseller_RenewalSettings $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('changeRenewalSettings', array($params), "Google_Service_Reseller_Subscription"); + } + + /** + * Changes the seats configuration of a subscription (subscriptions.changeSeats) + * + * @param string $customerId + * Id of the Customer + * @param string $subscriptionId + * Id of the subscription, which is unique for a customer + * @param Google_Seats $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Reseller_Subscription + */ + public function changeSeats($customerId, $subscriptionId, Google_Service_Reseller_Seats $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('changeSeats', array($params), "Google_Service_Reseller_Subscription"); + } + + /** + * Cancels/Downgrades a subscription. (subscriptions.delete) + * + * @param string $customerId + * Id of the Customer + * @param string $subscriptionId + * Id of the subscription, which is unique for a customer + * @param string $deletionType + * Whether the subscription is to be fully cancelled or downgraded + * @param array $optParams Optional parameters. + */ + public function delete($customerId, $subscriptionId, $deletionType, $optParams = array()) { + $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'deletionType' => $deletionType); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets a subscription of the customer. (subscriptions.get) + * + * @param string $customerId + * Id of the Customer + * @param string $subscriptionId + * Id of the subscription, which is unique for a customer + * @param array $optParams Optional parameters. + * @return Google_Service_Reseller_Subscription + */ + public function get($customerId, $subscriptionId, $optParams = array()) { + $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Reseller_Subscription"); + } + + /** + * Creates/Transfers a subscription for the customer. (subscriptions.insert) + * + * @param string $customerId + * Id of the Customer + * @param Google_Subscription $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string customerAuthToken + * An auth token needed for transferring a subscription. Can be generated at + * https://www.google.com/a/cpanel/customer-domain/TransferToken. Optional. + * @return Google_Service_Reseller_Subscription + */ + public function insert($customerId, Google_Service_Reseller_Subscription $postBody, $optParams = array()) { + $params = array('customerId' => $customerId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Reseller_Subscription"); + } + + /** + * Lists subscriptions of a reseller, optionally filtered by a customer name + * prefix. (subscriptions.listSubscriptions) + * + * @param array $optParams Optional parameters. + * + * @opt_param string customerAuthToken + * An auth token needed if the customer is not a resold customer of this reseller. Can be generated + * at https://www.google.com/a/cpanel/customer-domain/TransferToken.Optional. + * @opt_param string pageToken + * Token to specify next page in the list + * @opt_param string customerId + * Id of the Customer + * @opt_param string maxResults + * Maximum number of results to return + * @opt_param string customerNamePrefix + * Prefix of the customer's domain name by which the subscriptions should be filtered. Optional + * @return Google_Service_Reseller_Subscriptions + */ + public function listSubscriptions($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Reseller_Subscriptions"); + } + + /** + * Starts paid service of a trial subscription (subscriptions.startPaidService) + * + * @param string $customerId + * Id of the Customer + * @param string $subscriptionId + * Id of the subscription, which is unique for a customer + * @param array $optParams Optional parameters. + * @return Google_Service_Reseller_Subscription + */ + public function startPaidService($customerId, $subscriptionId, $optParams = array()) { + $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId); + $params = array_merge($params, $optParams); + return $this->call('startPaidService', array($params), "Google_Service_Reseller_Subscription"); + } } +class Google_Service_Reseller_Address extends Google_Model { + public $addressLine1; + public $addressLine2; + public $addressLine3; + public $contactName; + public $countryCode; + public $kind; + public $locality; + public $organizationName; + public $postalCode; + public $region; + public function setAddressLine1($addressLine1) { + $this->addressLine1 = $addressLine1; + } -class Google_Service_Reseller_Address extends Google_Model -{ - public $addressLine1; - public $addressLine2; - public $addressLine3; - public $contactName; - public $countryCode; - public $kind; - public $locality; - public $organizationName; - public $postalCode; - public $region; + public function getAddressLine1() { + return $this->addressLine1; + } - public function setAddressLine1($addressLine1) - { - $this->addressLine1 = $addressLine1; - } + public function setAddressLine2($addressLine2) { + $this->addressLine2 = $addressLine2; + } - public function getAddressLine1() - { - return $this->addressLine1; - } + public function getAddressLine2() { + return $this->addressLine2; + } - public function setAddressLine2($addressLine2) - { - $this->addressLine2 = $addressLine2; - } + public function setAddressLine3($addressLine3) { + $this->addressLine3 = $addressLine3; + } - public function getAddressLine2() - { - return $this->addressLine2; - } + public function getAddressLine3() { + return $this->addressLine3; + } - public function setAddressLine3($addressLine3) - { - $this->addressLine3 = $addressLine3; - } + public function setContactName($contactName) { + $this->contactName = $contactName; + } - public function getAddressLine3() - { - return $this->addressLine3; - } + public function getContactName() { + return $this->contactName; + } - public function setContactName($contactName) - { - $this->contactName = $contactName; - } + public function setCountryCode($countryCode) { + $this->countryCode = $countryCode; + } - public function getContactName() - { - return $this->contactName; - } + public function getCountryCode() { + return $this->countryCode; + } - public function setCountryCode($countryCode) - { - $this->countryCode = $countryCode; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getCountryCode() - { - return $this->countryCode; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setLocality($locality) { + $this->locality = $locality; + } - public function getKind() - { - return $this->kind; - } + public function getLocality() { + return $this->locality; + } - public function setLocality($locality) - { - $this->locality = $locality; - } + public function setOrganizationName($organizationName) { + $this->organizationName = $organizationName; + } - public function getLocality() - { - return $this->locality; - } + public function getOrganizationName() { + return $this->organizationName; + } - public function setOrganizationName($organizationName) - { - $this->organizationName = $organizationName; - } + public function setPostalCode($postalCode) { + $this->postalCode = $postalCode; + } - public function getOrganizationName() - { - return $this->organizationName; - } + public function getPostalCode() { + return $this->postalCode; + } - public function setPostalCode($postalCode) - { - $this->postalCode = $postalCode; - } + public function setRegion($region) { + $this->region = $region; + } - public function getPostalCode() - { - return $this->postalCode; - } - - public function setRegion($region) - { - $this->region = $region; - } - - public function getRegion() - { - return $this->region; - } + public function getRegion() { + return $this->region; + } } -class Google_Service_Reseller_ChangePlanRequest extends Google_Model -{ - public $kind; - public $planName; - public $purchaseOrderId; - protected $seatsType = 'Google_Service_Reseller_Seats'; - protected $seatsDataType = ''; +class Google_Service_Reseller_ChangePlanRequest extends Google_Model { + public $kind; + public $planName; + public $purchaseOrderId; + protected $seatsType = 'Google_Service_Reseller_Seats'; + protected $seatsDataType = ''; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPlanName($planName) - { - $this->planName = $planName; - } + public function setPlanName($planName) { + $this->planName = $planName; + } - public function getPlanName() - { - return $this->planName; - } + public function getPlanName() { + return $this->planName; + } - public function setPurchaseOrderId($purchaseOrderId) - { - $this->purchaseOrderId = $purchaseOrderId; - } + public function setPurchaseOrderId($purchaseOrderId) { + $this->purchaseOrderId = $purchaseOrderId; + } - public function getPurchaseOrderId() - { - return $this->purchaseOrderId; - } + public function getPurchaseOrderId() { + return $this->purchaseOrderId; + } - public function setSeats(Google_Service_Reseller_Seats $seats) - { - $this->seats = $seats; - } + public function setSeats(Google_Service_Reseller_Seats $seats) { + $this->seats = $seats; + } - public function getSeats() - { - return $this->seats; - } + public function getSeats() { + return $this->seats; + } } -class Google_Service_Reseller_Customer extends Google_Model -{ - public $alternateEmail; - public $customerDomain; - public $customerId; - public $kind; - public $phoneNumber; - protected $postalAddressType = 'Google_Service_Reseller_Address'; - protected $postalAddressDataType = ''; - public $resourceUiUrl; +class Google_Service_Reseller_Customer extends Google_Model { + public $alternateEmail; + public $customerDomain; + public $customerId; + public $kind; + public $phoneNumber; + protected $postalAddressType = 'Google_Service_Reseller_Address'; + protected $postalAddressDataType = ''; + public $resourceUiUrl; - public function setAlternateEmail($alternateEmail) - { - $this->alternateEmail = $alternateEmail; - } + public function setAlternateEmail($alternateEmail) { + $this->alternateEmail = $alternateEmail; + } - public function getAlternateEmail() - { - return $this->alternateEmail; - } + public function getAlternateEmail() { + return $this->alternateEmail; + } - public function setCustomerDomain($customerDomain) - { - $this->customerDomain = $customerDomain; - } + public function setCustomerDomain($customerDomain) { + $this->customerDomain = $customerDomain; + } - public function getCustomerDomain() - { - return $this->customerDomain; - } + public function getCustomerDomain() { + return $this->customerDomain; + } - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } + public function setCustomerId($customerId) { + $this->customerId = $customerId; + } - public function getCustomerId() - { - return $this->customerId; - } + public function getCustomerId() { + return $this->customerId; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPhoneNumber($phoneNumber) - { - $this->phoneNumber = $phoneNumber; - } + public function setPhoneNumber($phoneNumber) { + $this->phoneNumber = $phoneNumber; + } - public function getPhoneNumber() - { - return $this->phoneNumber; - } + public function getPhoneNumber() { + return $this->phoneNumber; + } - public function setPostalAddress(Google_Service_Reseller_Address $postalAddress) - { - $this->postalAddress = $postalAddress; - } + public function setPostalAddress(Google_Service_Reseller_Address $postalAddress) { + $this->postalAddress = $postalAddress; + } - public function getPostalAddress() - { - return $this->postalAddress; - } + public function getPostalAddress() { + return $this->postalAddress; + } - public function setResourceUiUrl($resourceUiUrl) - { - $this->resourceUiUrl = $resourceUiUrl; - } + public function setResourceUiUrl($resourceUiUrl) { + $this->resourceUiUrl = $resourceUiUrl; + } - public function getResourceUiUrl() - { - return $this->resourceUiUrl; - } + public function getResourceUiUrl() { + return $this->resourceUiUrl; + } } -class Google_Service_Reseller_RenewalSettings extends Google_Model -{ - public $kind; - public $renewalType; +class Google_Service_Reseller_RenewalSettings extends Google_Model { + public $kind; + public $renewalType; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRenewalType($renewalType) - { - $this->renewalType = $renewalType; - } + public function setRenewalType($renewalType) { + $this->renewalType = $renewalType; + } - public function getRenewalType() - { - return $this->renewalType; - } + public function getRenewalType() { + return $this->renewalType; + } } -class Google_Service_Reseller_Seats extends Google_Model -{ - public $kind; - public $maximumNumberOfSeats; - public $numberOfSeats; +class Google_Service_Reseller_Seats extends Google_Model { + public $kind; + public $maximumNumberOfSeats; + public $numberOfSeats; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMaximumNumberOfSeats($maximumNumberOfSeats) - { - $this->maximumNumberOfSeats = $maximumNumberOfSeats; - } + public function setMaximumNumberOfSeats($maximumNumberOfSeats) { + $this->maximumNumberOfSeats = $maximumNumberOfSeats; + } - public function getMaximumNumberOfSeats() - { - return $this->maximumNumberOfSeats; - } + public function getMaximumNumberOfSeats() { + return $this->maximumNumberOfSeats; + } - public function setNumberOfSeats($numberOfSeats) - { - $this->numberOfSeats = $numberOfSeats; - } + public function setNumberOfSeats($numberOfSeats) { + $this->numberOfSeats = $numberOfSeats; + } - public function getNumberOfSeats() - { - return $this->numberOfSeats; - } + public function getNumberOfSeats() { + return $this->numberOfSeats; + } } -class Google_Service_Reseller_Subscription extends Google_Model -{ - public $creationTime; - public $customerId; - public $kind; - protected $planType = 'Google_Service_Reseller_SubscriptionPlan'; - protected $planDataType = ''; - public $purchaseOrderId; - protected $renewalSettingsType = 'Google_Service_Reseller_RenewalSettings'; - protected $renewalSettingsDataType = ''; - public $resourceUiUrl; - protected $seatsType = 'Google_Service_Reseller_Seats'; - protected $seatsDataType = ''; - public $skuId; - public $status; - public $subscriptionId; - protected $transferInfoType = 'Google_Service_Reseller_SubscriptionTransferInfo'; - protected $transferInfoDataType = ''; - protected $trialSettingsType = 'Google_Service_Reseller_SubscriptionTrialSettings'; - protected $trialSettingsDataType = ''; +class Google_Service_Reseller_Subscription extends Google_Model { + public $creationTime; + public $customerId; + public $kind; + protected $planType = 'Google_Service_Reseller_SubscriptionPlan'; + protected $planDataType = ''; + public $purchaseOrderId; + protected $renewalSettingsType = 'Google_Service_Reseller_RenewalSettings'; + protected $renewalSettingsDataType = ''; + public $resourceUiUrl; + protected $seatsType = 'Google_Service_Reseller_Seats'; + protected $seatsDataType = ''; + public $skuId; + public $status; + public $subscriptionId; + protected $transferInfoType = 'Google_Service_Reseller_SubscriptionTransferInfo'; + protected $transferInfoDataType = ''; + protected $trialSettingsType = 'Google_Service_Reseller_SubscriptionTrialSettings'; + protected $trialSettingsDataType = ''; - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } + public function setCustomerId($customerId) { + $this->customerId = $customerId; + } - public function getCustomerId() - { - return $this->customerId; - } + public function getCustomerId() { + return $this->customerId; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPlan(Google_Service_Reseller_SubscriptionPlan $plan) - { - $this->plan = $plan; - } + public function setPlan(Google_Service_Reseller_SubscriptionPlan $plan) { + $this->plan = $plan; + } - public function getPlan() - { - return $this->plan; - } + public function getPlan() { + return $this->plan; + } - public function setPurchaseOrderId($purchaseOrderId) - { - $this->purchaseOrderId = $purchaseOrderId; - } + public function setPurchaseOrderId($purchaseOrderId) { + $this->purchaseOrderId = $purchaseOrderId; + } - public function getPurchaseOrderId() - { - return $this->purchaseOrderId; - } + public function getPurchaseOrderId() { + return $this->purchaseOrderId; + } - public function setRenewalSettings(Google_Service_Reseller_RenewalSettings $renewalSettings) - { - $this->renewalSettings = $renewalSettings; - } + public function setRenewalSettings(Google_Service_Reseller_RenewalSettings $renewalSettings) { + $this->renewalSettings = $renewalSettings; + } - public function getRenewalSettings() - { - return $this->renewalSettings; - } + public function getRenewalSettings() { + return $this->renewalSettings; + } - public function setResourceUiUrl($resourceUiUrl) - { - $this->resourceUiUrl = $resourceUiUrl; - } + public function setResourceUiUrl($resourceUiUrl) { + $this->resourceUiUrl = $resourceUiUrl; + } - public function getResourceUiUrl() - { - return $this->resourceUiUrl; - } + public function getResourceUiUrl() { + return $this->resourceUiUrl; + } - public function setSeats(Google_Service_Reseller_Seats $seats) - { - $this->seats = $seats; - } + public function setSeats(Google_Service_Reseller_Seats $seats) { + $this->seats = $seats; + } - public function getSeats() - { - return $this->seats; - } + public function getSeats() { + return $this->seats; + } - public function setSkuId($skuId) - { - $this->skuId = $skuId; - } + public function setSkuId($skuId) { + $this->skuId = $skuId; + } - public function getSkuId() - { - return $this->skuId; - } + public function getSkuId() { + return $this->skuId; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setSubscriptionId($subscriptionId) - { - $this->subscriptionId = $subscriptionId; - } + public function setSubscriptionId($subscriptionId) { + $this->subscriptionId = $subscriptionId; + } - public function getSubscriptionId() - { - return $this->subscriptionId; - } + public function getSubscriptionId() { + return $this->subscriptionId; + } - public function setTransferInfo(Google_Service_Reseller_SubscriptionTransferInfo $transferInfo) - { - $this->transferInfo = $transferInfo; - } + public function setTransferInfo(Google_Service_Reseller_SubscriptionTransferInfo $transferInfo) { + $this->transferInfo = $transferInfo; + } - public function getTransferInfo() - { - return $this->transferInfo; - } + public function getTransferInfo() { + return $this->transferInfo; + } - public function setTrialSettings(Google_Service_Reseller_SubscriptionTrialSettings $trialSettings) - { - $this->trialSettings = $trialSettings; - } + public function setTrialSettings(Google_Service_Reseller_SubscriptionTrialSettings $trialSettings) { + $this->trialSettings = $trialSettings; + } - public function getTrialSettings() - { - return $this->trialSettings; - } + public function getTrialSettings() { + return $this->trialSettings; + } } -class Google_Service_Reseller_SubscriptionPlan extends Google_Model -{ - protected $commitmentIntervalType = 'Google_Service_Reseller_SubscriptionPlanCommitmentInterval'; - protected $commitmentIntervalDataType = ''; - public $isCommitmentPlan; - public $planName; +class Google_Service_Reseller_SubscriptionPlan extends Google_Model { + protected $commitmentIntervalType = 'Google_Service_Reseller_SubscriptionPlanCommitmentInterval'; + protected $commitmentIntervalDataType = ''; + public $isCommitmentPlan; + public $planName; - public function setCommitmentInterval(Google_Service_Reseller_SubscriptionPlanCommitmentInterval $commitmentInterval) - { - $this->commitmentInterval = $commitmentInterval; - } + public function setCommitmentInterval(Google_Service_Reseller_SubscriptionPlanCommitmentInterval $commitmentInterval) { + $this->commitmentInterval = $commitmentInterval; + } - public function getCommitmentInterval() - { - return $this->commitmentInterval; - } + public function getCommitmentInterval() { + return $this->commitmentInterval; + } - public function setIsCommitmentPlan($isCommitmentPlan) - { - $this->isCommitmentPlan = $isCommitmentPlan; - } + public function setIsCommitmentPlan($isCommitmentPlan) { + $this->isCommitmentPlan = $isCommitmentPlan; + } - public function getIsCommitmentPlan() - { - return $this->isCommitmentPlan; - } + public function getIsCommitmentPlan() { + return $this->isCommitmentPlan; + } - public function setPlanName($planName) - { - $this->planName = $planName; - } + public function setPlanName($planName) { + $this->planName = $planName; + } - public function getPlanName() - { - return $this->planName; - } + public function getPlanName() { + return $this->planName; + } } -class Google_Service_Reseller_SubscriptionPlanCommitmentInterval extends Google_Model -{ - public $endTime; - public $startTime; +class Google_Service_Reseller_SubscriptionPlanCommitmentInterval extends Google_Model { + public $endTime; + public $startTime; - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } + public function setEndTime($endTime) { + $this->endTime = $endTime; + } - public function getEndTime() - { - return $this->endTime; - } + public function getEndTime() { + return $this->endTime; + } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getStartTime() - { - return $this->startTime; - } + public function getStartTime() { + return $this->startTime; + } } -class Google_Service_Reseller_SubscriptionTransferInfo extends Google_Model -{ - public $minimumTransferableSeats; - public $transferabilityExpirationTime; +class Google_Service_Reseller_SubscriptionTransferInfo extends Google_Model { + public $minimumTransferableSeats; + public $transferabilityExpirationTime; - public function setMinimumTransferableSeats($minimumTransferableSeats) - { - $this->minimumTransferableSeats = $minimumTransferableSeats; - } + public function setMinimumTransferableSeats($minimumTransferableSeats) { + $this->minimumTransferableSeats = $minimumTransferableSeats; + } - public function getMinimumTransferableSeats() - { - return $this->minimumTransferableSeats; - } + public function getMinimumTransferableSeats() { + return $this->minimumTransferableSeats; + } - public function setTransferabilityExpirationTime($transferabilityExpirationTime) - { - $this->transferabilityExpirationTime = $transferabilityExpirationTime; - } + public function setTransferabilityExpirationTime($transferabilityExpirationTime) { + $this->transferabilityExpirationTime = $transferabilityExpirationTime; + } - public function getTransferabilityExpirationTime() - { - return $this->transferabilityExpirationTime; - } + public function getTransferabilityExpirationTime() { + return $this->transferabilityExpirationTime; + } } -class Google_Service_Reseller_SubscriptionTrialSettings extends Google_Model -{ - public $isInTrial; - public $trialEndTime; +class Google_Service_Reseller_SubscriptionTrialSettings extends Google_Model { + public $isInTrial; + public $trialEndTime; - public function setIsInTrial($isInTrial) - { - $this->isInTrial = $isInTrial; - } + public function setIsInTrial($isInTrial) { + $this->isInTrial = $isInTrial; + } - public function getIsInTrial() - { - return $this->isInTrial; - } + public function getIsInTrial() { + return $this->isInTrial; + } - public function setTrialEndTime($trialEndTime) - { - $this->trialEndTime = $trialEndTime; - } + public function setTrialEndTime($trialEndTime) { + $this->trialEndTime = $trialEndTime; + } - public function getTrialEndTime() - { - return $this->trialEndTime; - } + public function getTrialEndTime() { + return $this->trialEndTime; + } } -class Google_Service_Reseller_Subscriptions extends Google_Collection -{ - public $kind; - public $nextPageToken; - protected $subscriptionsType = 'Google_Service_Reseller_Subscription'; - protected $subscriptionsDataType = 'array'; +class Google_Service_Reseller_Subscriptions extends Google_Collection { + public $kind; + public $nextPageToken; + protected $subscriptionsType = 'Google_Service_Reseller_Subscription'; + protected $subscriptionsDataType = 'array'; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setSubscriptions($subscriptions) - { - $this->subscriptions = $subscriptions; - } + public function setSubscriptions($subscriptions) { + $this->subscriptions = $subscriptions; + } - public function getSubscriptions() - { - return $this->subscriptions; - } + public function getSubscriptions() { + return $this->subscriptions; + } } diff --git a/oauth/Google/Service/Resource.php b/oauth/Google/Service/Resource.php index d396907..ef1cf2d 100644 --- a/oauth/Google/Service/Resource.php +++ b/oauth/Google/Service/Resource.php @@ -31,180 +31,176 @@ require_once 'Google/Http/REST.php'; * @author Chirag Shah * */ -class Google_Service_Resource -{ - // Valid query parameters that work, but don't appear in discovery. - private $stackParameters = array( - 'alt' => array('type' => 'string', 'location' => 'query'), - 'fields' => array('type' => 'string', 'location' => 'query'), - 'trace' => array('type' => 'string', 'location' => 'query'), - 'userIp' => array('type' => 'string', 'location' => 'query'), - 'userip' => array('type' => 'string', 'location' => 'query'), - 'quotaUser' => array('type' => 'string', 'location' => 'query'), - 'data' => array('type' => 'string', 'location' => 'body'), - 'mimeType' => array('type' => 'string', 'location' => 'header'), - 'uploadType' => array('type' => 'string', 'location' => 'query'), - 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), - ); - - /** @var Google_Service $service */ - private $service; - - /** @var Google_Client $client */ - private $client; - - /** @var string $serviceName */ - private $serviceName; - - /** @var string $resourceName */ - private $resourceName; - - /** @var array $methods */ - private $methods; - - public function __construct($service, $serviceName, $resourceName, $resource) - { - $this->service = $service; - $this->client = $service->getClient(); - $this->serviceName = $serviceName; - $this->resourceName = $resourceName; - $this->methods = isset($resource['methods']) ? - $resource['methods'] : - array($resourceName => $resource); - } - - /** - * TODO(ianbarber): This function needs simplifying. - * @param $name - * @param $arguments - * @param $expected_class - optional, the expected class name - * @return Google_Http_Request|expected_class - * @throws Google_Exception - */ - public function call($name, $arguments, $expected_class = null) - { - if (! isset($this->methods[$name])) { - throw new Google_Exception( - "Unknown function: " . - "{$this->serviceName}->{$this->resourceName}->{$name}()" - ); - } - $method = $this->methods[$name]; - $parameters = $arguments[0]; - - // postBody is a special case since it's not defined in the discovery - // document as parameter, but we abuse the param entry for storing it. - $postBody = null; - if (isset($parameters['postBody'])) { - if ($parameters['postBody'] instanceof Google_Model) { - // In the cases the post body is an existing object, we want - // to use the smart method to create a simple object for - // for JSONification. - $parameters['postBody'] = $parameters['postBody']->toSimpleObject(); - } else if (is_object($parameters['postBody'])) { - // If the post body is another kind of object, we will try and - // wrangle it into a sensible format. - $parameters['postBody'] = - $this->convertToArrayAndStripNulls($parameters['postBody']); - } - $postBody = json_encode($parameters['postBody']); - unset($parameters['postBody']); - } - - // TODO(ianbarber): optParams here probably should have been - // handled already - this may well be redundant code. - if (isset($parameters['optParams'])) { - $optParams = $parameters['optParams']; - unset($parameters['optParams']); - $parameters = array_merge($parameters, $optParams); - } - - if (!isset($method['parameters'])) { - $method['parameters'] = array(); - } - - $method['parameters'] = array_merge( - $method['parameters'], - $this->stackParameters +class Google_Service_Resource { + // Valid query parameters that work, but don't appear in discovery. + private $stackParameters = array( + 'alt' => array('type' => 'string', 'location' => 'query'), + 'fields' => array('type' => 'string', 'location' => 'query'), + 'trace' => array('type' => 'string', 'location' => 'query'), + 'userIp' => array('type' => 'string', 'location' => 'query'), + 'userip' => array('type' => 'string', 'location' => 'query'), + 'quotaUser' => array('type' => 'string', 'location' => 'query'), + 'data' => array('type' => 'string', 'location' => 'body'), + 'mimeType' => array('type' => 'string', 'location' => 'header'), + 'uploadType' => array('type' => 'string', 'location' => 'query'), + 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), ); - foreach ($parameters as $key => $val) { - if ($key != 'postBody' && ! isset($method['parameters'][$key])) { - throw new Google_Exception("($name) unknown parameter: '$key'"); - } + + /** @var Google_Service $service */ + private $service; + + /** @var Google_Client $client */ + private $client; + + /** @var string $serviceName */ + private $serviceName; + + /** @var string $resourceName */ + private $resourceName; + + /** @var array $methods */ + private $methods; + + public function __construct($service, $serviceName, $resourceName, $resource) { + $this->service = $service; + $this->client = $service->getClient(); + $this->serviceName = $serviceName; + $this->resourceName = $resourceName; + $this->methods = isset($resource['methods']) ? + $resource['methods'] : + array($resourceName => $resource); } - foreach ($method['parameters'] as $paramName => $paramSpec) { - if (isset($paramSpec['required']) && - $paramSpec['required'] && - ! isset($parameters[$paramName]) - ) { - throw new Google_Exception("($name) missing required param: '$paramName'"); - } - if (isset($parameters[$paramName])) { - $value = $parameters[$paramName]; - $parameters[$paramName] = $paramSpec; - $parameters[$paramName]['value'] = $value; - unset($parameters[$paramName]['required']); - } else { - // Ensure we don't pass nulls. - unset($parameters[$paramName]); - } + /** + * TODO(ianbarber): This function needs simplifying. + * @param $name + * @param $arguments + * @param $expected_class - optional, the expected class name + * @return Google_Http_Request|expected_class + * @throws Google_Exception + */ + public function call($name, $arguments, $expected_class = null) { + if (!isset($this->methods[$name])) { + throw new Google_Exception( + "Unknown function: " . + "{$this->serviceName}->{$this->resourceName}->{$name}()" + ); + } + $method = $this->methods[$name]; + $parameters = $arguments[0]; + + // postBody is a special case since it's not defined in the discovery + // document as parameter, but we abuse the param entry for storing it. + $postBody = null; + if (isset($parameters['postBody'])) { + if ($parameters['postBody'] instanceof Google_Model) { + // In the cases the post body is an existing object, we want + // to use the smart method to create a simple object for + // for JSONification. + $parameters['postBody'] = $parameters['postBody']->toSimpleObject(); + } elseif (is_object($parameters['postBody'])) { + // If the post body is another kind of object, we will try and + // wrangle it into a sensible format. + $parameters['postBody'] = + $this->convertToArrayAndStripNulls($parameters['postBody']); + } + $postBody = json_encode($parameters['postBody']); + unset($parameters['postBody']); + } + + // TODO(ianbarber): optParams here probably should have been + // handled already - this may well be redundant code. + if (isset($parameters['optParams'])) { + $optParams = $parameters['optParams']; + unset($parameters['optParams']); + $parameters = array_merge($parameters, $optParams); + } + + if (!isset($method['parameters'])) { + $method['parameters'] = array(); + } + + $method['parameters'] = array_merge( + $method['parameters'], + $this->stackParameters + ); + foreach ($parameters as $key => $val) { + if ($key != 'postBody' && !isset($method['parameters'][$key])) { + throw new Google_Exception("($name) unknown parameter: '$key'"); + } + } + + foreach ($method['parameters'] as $paramName => $paramSpec) { + if (isset($paramSpec['required']) && + $paramSpec['required'] && + !isset($parameters[$paramName]) + ) { + throw new Google_Exception("($name) missing required param: '$paramName'"); + } + if (isset($parameters[$paramName])) { + $value = $parameters[$paramName]; + $parameters[$paramName] = $paramSpec; + $parameters[$paramName]['value'] = $value; + unset($parameters[$paramName]['required']); + } else { + // Ensure we don't pass nulls. + unset($parameters[$paramName]); + } + } + + $servicePath = $this->service->servicePath; + + $url = Google_Http_REST::createRequestUri( + $servicePath, + $method['path'], + $parameters + ); + $httpRequest = new Google_Http_Request( + $url, + $method['httpMethod'], + null, + $postBody + ); + $httpRequest->setBaseComponent($this->client->getBasePath()); + + if ($postBody) { + $contentTypeHeader = array(); + $contentTypeHeader['content-type'] = 'application/json; charset=UTF-8'; + $httpRequest->setRequestHeaders($contentTypeHeader); + $httpRequest->setPostBody($postBody); + } + + $httpRequest = $this->client->getAuth()->sign($httpRequest); + $httpRequest->setExpectedClass($expected_class); + + if (isset($parameters['data']) && + ($parameters['uploadType']['value'] == 'media' || $parameters['uploadType']['value'] == 'multipart')) { + // If we are doing a simple media upload, trigger that as a convenience. + $mfu = new Google_Http_MediaFileUpload( + $this->client, + $httpRequest, + isset($parameters['mimeType']) ? $parameters['mimeType']['value'] : 'application/octet-stream', + $parameters['data']['value'] + ); + } + + if ($this->client->shouldDefer()) { + // If we are in batch or upload mode, return the raw request. + return $httpRequest; + } + + return $this->client->execute($httpRequest); } - $servicePath = $this->service->servicePath; - - $url = Google_Http_REST::createRequestUri( - $servicePath, - $method['path'], - $parameters - ); - $httpRequest = new Google_Http_Request( - $url, - $method['httpMethod'], - null, - $postBody - ); - $httpRequest->setBaseComponent($this->client->getBasePath()); - - if ($postBody) { - $contentTypeHeader = array(); - $contentTypeHeader['content-type'] = 'application/json; charset=UTF-8'; - $httpRequest->setRequestHeaders($contentTypeHeader); - $httpRequest->setPostBody($postBody); + protected function convertToArrayAndStripNulls($o) { + $o = (array)$o; + foreach ($o as $k => $v) { + if ($v === null) { + unset($o[$k]); + } elseif (is_object($v) || is_array($v)) { + $o[$k] = $this->convertToArrayAndStripNulls($o[$k]); + } + } + return $o; } - - $httpRequest = $this->client->getAuth()->sign($httpRequest); - $httpRequest->setExpectedClass($expected_class); - - if (isset($parameters['data']) && - ($parameters['uploadType']['value'] == 'media' || $parameters['uploadType']['value'] == 'multipart')) { - // If we are doing a simple media upload, trigger that as a convenience. - $mfu = new Google_Http_MediaFileUpload( - $this->client, - $httpRequest, - isset($parameters['mimeType']) ? $parameters['mimeType']['value'] : 'application/octet-stream', - $parameters['data']['value'] - ); - } - - if ($this->client->shouldDefer()) { - // If we are in batch or upload mode, return the raw request. - return $httpRequest; - } - - return $this->client->execute($httpRequest); - } - - protected function convertToArrayAndStripNulls($o) - { - $o = (array) $o; - foreach ($o as $k => $v) { - if ($v === null) { - unset($o[$k]); - } elseif (is_object($v) || is_array($v)) { - $o[$k] = $this->convertToArrayAndStripNulls($o[$k]); - } - } - return $o; - } } diff --git a/oauth/Google/Service/Resourceviews.php b/oauth/Google/Service/Resourceviews.php index e3d8d1c..b09e5ef 100644 --- a/oauth/Google/Service/Resourceviews.php +++ b/oauth/Google/Service/Resourceviews.php @@ -29,348 +29,346 @@ * * @author Google, Inc. */ -class Google_Service_Resourceviews extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - /** View and manage your Google Compute Engine resources. */ - const COMPUTE = "https://www.googleapis.com/auth/compute"; - /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; - /** View and manage your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; - /** View your Google Cloud Platform management resources and deployment status information. */ - const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly"; +class Google_Service_Resourceviews extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage your Google Compute Engine resources. */ + const COMPUTE = "https://www.googleapis.com/auth/compute"; + /** View your Google Compute Engine resources. */ + const COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; + /** View and manage your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman"; + /** View your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly"; - public $regionViews; - public $zoneViews; - + public $regionViews; + public $zoneViews; - /** - * Constructs the internal representation of the Resourceviews service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'resourceviews/v1beta1/projects/'; - $this->version = 'v1beta1'; - $this->serviceName = 'resourceviews'; - $this->regionViews = new Google_Service_Resourceviews_RegionViews_Resource( - $this, - $this->serviceName, - 'regionViews', - array( - 'methods' => array( - 'addresources' => array( - 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/addResources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{projectName}/regions/{region}/resourceViews', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{projectName}/regions/{region}/resourceViews', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'listresources' => array( - 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/resources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'removeresources' => array( - 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/removeResources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->zoneViews = new Google_Service_Resourceviews_ZoneViews_Resource( - $this, - $this->serviceName, - 'zoneViews', - array( - 'methods' => array( - 'addresources' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/addResources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'listresources' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/resources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'removeresources' => array( - 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/removeResources', - 'httpMethod' => 'POST', - 'parameters' => array( - 'projectName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'resourceViewName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Resourceviews service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'resourceviews/v1beta1/projects/'; + $this->version = 'v1beta1'; + $this->serviceName = 'resourceviews'; + + $this->regionViews = new Google_Service_Resourceviews_RegionViews_Resource( + $this, + $this->serviceName, + 'regionViews', + array( + 'methods' => array( + 'addresources' => array( + 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/addResources', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceViewName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceViewName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceViewName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{projectName}/regions/{region}/resourceViews', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{projectName}/regions/{region}/resourceViews', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'listresources' => array( + 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/resources', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceViewName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'removeresources' => array( + 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/removeResources', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceViewName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->zoneViews = new Google_Service_Resourceviews_ZoneViews_Resource( + $this, + $this->serviceName, + 'zoneViews', + array( + 'methods' => array( + 'addresources' => array( + 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/addResources', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceViewName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceViewName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceViewName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{projectName}/zones/{zone}/resourceViews', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{projectName}/zones/{zone}/resourceViews', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'listresources' => array( + 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/resources', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceViewName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'removeresources' => array( + 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/removeResources', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resourceViewName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -382,145 +380,143 @@ class Google_Service_Resourceviews extends Google_Service * $regionViews = $resourceviewsService->regionViews; * */ -class Google_Service_Resourceviews_RegionViews_Resource extends Google_Service_Resource -{ +class Google_Service_Resourceviews_RegionViews_Resource extends Google_Service_Resource { - /** - * Add resources to the view. (regionViews.addresources) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param Google_RegionViewsAddResourcesRequest $postBody - * @param array $optParams Optional parameters. - */ - public function addresources($projectName, $region, $resourceViewName, Google_Service_Resourceviews_RegionViewsAddResourcesRequest $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addresources', array($params)); - } - /** - * Delete a resource view. (regionViews.delete) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param array $optParams Optional parameters. - */ - public function delete($projectName, $region, $resourceViewName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Get the information of a resource view. (regionViews.get) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_ResourceView - */ - public function get($projectName, $region, $resourceViewName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Resourceviews_ResourceView"); - } - /** - * Create a resource view. (regionViews.insert) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param Google_ResourceView $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_RegionViewsInsertResponse - */ - public function insert($projectName, $region, Google_Service_Resourceviews_ResourceView $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Resourceviews_RegionViewsInsertResponse"); - } - /** - * List resource views. (regionViews.listRegionViews) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: - * 5000) - * @return Google_Service_Resourceviews_RegionViewsListResponse - */ - public function listRegionViews($projectName, $region, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Resourceviews_RegionViewsListResponse"); - } - /** - * List the resources in the view. (regionViews.listresources) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: - * 5000) - * @return Google_Service_Resourceviews_RegionViewsListResourcesResponse - */ - public function listresources($projectName, $region, $resourceViewName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); - $params = array_merge($params, $optParams); - return $this->call('listresources', array($params), "Google_Service_Resourceviews_RegionViewsListResourcesResponse"); - } - /** - * Remove resources from the view. (regionViews.removeresources) - * - * @param string $projectName - * The project name of the resource view. - * @param string $region - * The region name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param Google_RegionViewsRemoveResourcesRequest $postBody - * @param array $optParams Optional parameters. - */ - public function removeresources($projectName, $region, $resourceViewName, Google_Service_Resourceviews_RegionViewsRemoveResourcesRequest $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeresources', array($params)); - } + /** + * Add resources to the view. (regionViews.addresources) + * + * @param string $projectName + * The project name of the resource view. + * @param string $region + * The region name of the resource view. + * @param string $resourceViewName + * The name of the resource view. + * @param Google_RegionViewsAddResourcesRequest $postBody + * @param array $optParams Optional parameters. + */ + public function addresources($projectName, $region, $resourceViewName, Google_Service_Resourceviews_RegionViewsAddResourcesRequest $postBody, $optParams = array()) { + $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addresources', array($params)); + } + + /** + * Delete a resource view. (regionViews.delete) + * + * @param string $projectName + * The project name of the resource view. + * @param string $region + * The region name of the resource view. + * @param string $resourceViewName + * The name of the resource view. + * @param array $optParams Optional parameters. + */ + public function delete($projectName, $region, $resourceViewName, $optParams = array()) { + $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Get the information of a resource view. (regionViews.get) + * + * @param string $projectName + * The project name of the resource view. + * @param string $region + * The region name of the resource view. + * @param string $resourceViewName + * The name of the resource view. + * @param array $optParams Optional parameters. + * @return Google_Service_Resourceviews_ResourceView + */ + public function get($projectName, $region, $resourceViewName, $optParams = array()) { + $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Resourceviews_ResourceView"); + } + + /** + * Create a resource view. (regionViews.insert) + * + * @param string $projectName + * The project name of the resource view. + * @param string $region + * The region name of the resource view. + * @param Google_ResourceView $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Resourceviews_RegionViewsInsertResponse + */ + public function insert($projectName, $region, Google_Service_Resourceviews_ResourceView $postBody, $optParams = array()) { + $params = array('projectName' => $projectName, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Resourceviews_RegionViewsInsertResponse"); + } + + /** + * List resource views. (regionViews.listRegionViews) + * + * @param string $projectName + * The project name of the resource view. + * @param string $region + * The region name of the resource view. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Specifies a nextPageToken returned by a previous list request. This token can be used to request + * the next page of results from a previous list request. + * @opt_param int maxResults + * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: + * 5000) + * @return Google_Service_Resourceviews_RegionViewsListResponse + */ + public function listRegionViews($projectName, $region, $optParams = array()) { + $params = array('projectName' => $projectName, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Resourceviews_RegionViewsListResponse"); + } + + /** + * List the resources in the view. (regionViews.listresources) + * + * @param string $projectName + * The project name of the resource view. + * @param string $region + * The region name of the resource view. + * @param string $resourceViewName + * The name of the resource view. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Specifies a nextPageToken returned by a previous list request. This token can be used to request + * the next page of results from a previous list request. + * @opt_param int maxResults + * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: + * 5000) + * @return Google_Service_Resourceviews_RegionViewsListResourcesResponse + */ + public function listresources($projectName, $region, $resourceViewName, $optParams = array()) { + $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName); + $params = array_merge($params, $optParams); + return $this->call('listresources', array($params), "Google_Service_Resourceviews_RegionViewsListResourcesResponse"); + } + + /** + * Remove resources from the view. (regionViews.removeresources) + * + * @param string $projectName + * The project name of the resource view. + * @param string $region + * The region name of the resource view. + * @param string $resourceViewName + * The name of the resource view. + * @param Google_RegionViewsRemoveResourcesRequest $postBody + * @param array $optParams Optional parameters. + */ + public function removeresources($projectName, $region, $resourceViewName, Google_Service_Resourceviews_RegionViewsRemoveResourcesRequest $postBody, $optParams = array()) { + $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeresources', array($params)); + } } /** @@ -531,485 +527,417 @@ class Google_Service_Resourceviews_RegionViews_Resource extends Google_Service_R * $zoneViews = $resourceviewsService->zoneViews; * */ -class Google_Service_Resourceviews_ZoneViews_Resource extends Google_Service_Resource -{ +class Google_Service_Resourceviews_ZoneViews_Resource extends Google_Service_Resource { - /** - * Add resources to the view. (zoneViews.addresources) - * - * @param string $projectName - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param Google_ZoneViewsAddResourcesRequest $postBody - * @param array $optParams Optional parameters. - */ - public function addresources($projectName, $zone, $resourceViewName, Google_Service_Resourceviews_ZoneViewsAddResourcesRequest $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('addresources', array($params)); - } - /** - * Delete a resource view. (zoneViews.delete) - * - * @param string $projectName - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param array $optParams Optional parameters. - */ - public function delete($projectName, $zone, $resourceViewName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Get the information of a zonal resource view. (zoneViews.get) - * - * @param string $projectName - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_ResourceView - */ - public function get($projectName, $zone, $resourceViewName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Resourceviews_ResourceView"); - } - /** - * Create a resource view. (zoneViews.insert) - * - * @param string $projectName - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param Google_ResourceView $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Resourceviews_ZoneViewsInsertResponse - */ - public function insert($projectName, $zone, Google_Service_Resourceviews_ResourceView $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Resourceviews_ZoneViewsInsertResponse"); - } - /** - * List resource views. (zoneViews.listZoneViews) - * - * @param string $projectName - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: - * 5000) - * @return Google_Service_Resourceviews_ZoneViewsListResponse - */ - public function listZoneViews($projectName, $zone, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Resourceviews_ZoneViewsListResponse"); - } - /** - * List the resources of the resource view. (zoneViews.listresources) - * - * @param string $projectName - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Specifies a nextPageToken returned by a previous list request. This token can be used to request - * the next page of results from a previous list request. - * @opt_param int maxResults - * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: - * 5000) - * @return Google_Service_Resourceviews_ZoneViewsListResourcesResponse - */ - public function listresources($projectName, $zone, $resourceViewName, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); - $params = array_merge($params, $optParams); - return $this->call('listresources', array($params), "Google_Service_Resourceviews_ZoneViewsListResourcesResponse"); - } - /** - * Remove resources from the view. (zoneViews.removeresources) - * - * @param string $projectName - * The project name of the resource view. - * @param string $zone - * The zone name of the resource view. - * @param string $resourceViewName - * The name of the resource view. - * @param Google_ZoneViewsRemoveResourcesRequest $postBody - * @param array $optParams Optional parameters. - */ - public function removeresources($projectName, $zone, $resourceViewName, Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest $postBody, $optParams = array()) - { - $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeresources', array($params)); - } + /** + * Add resources to the view. (zoneViews.addresources) + * + * @param string $projectName + * The project name of the resource view. + * @param string $zone + * The zone name of the resource view. + * @param string $resourceViewName + * The name of the resource view. + * @param Google_ZoneViewsAddResourcesRequest $postBody + * @param array $optParams Optional parameters. + */ + public function addresources($projectName, $zone, $resourceViewName, Google_Service_Resourceviews_ZoneViewsAddResourcesRequest $postBody, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addresources', array($params)); + } + + /** + * Delete a resource view. (zoneViews.delete) + * + * @param string $projectName + * The project name of the resource view. + * @param string $zone + * The zone name of the resource view. + * @param string $resourceViewName + * The name of the resource view. + * @param array $optParams Optional parameters. + */ + public function delete($projectName, $zone, $resourceViewName, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Get the information of a zonal resource view. (zoneViews.get) + * + * @param string $projectName + * The project name of the resource view. + * @param string $zone + * The zone name of the resource view. + * @param string $resourceViewName + * The name of the resource view. + * @param array $optParams Optional parameters. + * @return Google_Service_Resourceviews_ResourceView + */ + public function get($projectName, $zone, $resourceViewName, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Resourceviews_ResourceView"); + } + + /** + * Create a resource view. (zoneViews.insert) + * + * @param string $projectName + * The project name of the resource view. + * @param string $zone + * The zone name of the resource view. + * @param Google_ResourceView $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Resourceviews_ZoneViewsInsertResponse + */ + public function insert($projectName, $zone, Google_Service_Resourceviews_ResourceView $postBody, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Resourceviews_ZoneViewsInsertResponse"); + } + + /** + * List resource views. (zoneViews.listZoneViews) + * + * @param string $projectName + * The project name of the resource view. + * @param string $zone + * The zone name of the resource view. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Specifies a nextPageToken returned by a previous list request. This token can be used to request + * the next page of results from a previous list request. + * @opt_param int maxResults + * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: + * 5000) + * @return Google_Service_Resourceviews_ZoneViewsListResponse + */ + public function listZoneViews($projectName, $zone, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Resourceviews_ZoneViewsListResponse"); + } + + /** + * List the resources of the resource view. (zoneViews.listresources) + * + * @param string $projectName + * The project name of the resource view. + * @param string $zone + * The zone name of the resource view. + * @param string $resourceViewName + * The name of the resource view. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Specifies a nextPageToken returned by a previous list request. This token can be used to request + * the next page of results from a previous list request. + * @opt_param int maxResults + * Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: + * 5000) + * @return Google_Service_Resourceviews_ZoneViewsListResourcesResponse + */ + public function listresources($projectName, $zone, $resourceViewName, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName); + $params = array_merge($params, $optParams); + return $this->call('listresources', array($params), "Google_Service_Resourceviews_ZoneViewsListResourcesResponse"); + } + + /** + * Remove resources from the view. (zoneViews.removeresources) + * + * @param string $projectName + * The project name of the resource view. + * @param string $zone + * The zone name of the resource view. + * @param string $resourceViewName + * The name of the resource view. + * @param Google_ZoneViewsRemoveResourcesRequest $postBody + * @param array $optParams Optional parameters. + */ + public function removeresources($projectName, $zone, $resourceViewName, Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest $postBody, $optParams = array()) { + $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeresources', array($params)); + } } +class Google_Service_Resourceviews_Label extends Google_Model { + public $key; + public $value; + public function setKey($key) { + $this->key = $key; + } -class Google_Service_Resourceviews_Label extends Google_Model -{ - public $key; - public $value; + public function getKey() { + return $this->key; + } - public function setKey($key) - { - $this->key = $key; - } + public function setValue($value) { + $this->value = $value; + } - public function getKey() - { - return $this->key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_Resourceviews_RegionViewsAddResourcesRequest extends Google_Collection -{ - public $resources; +class Google_Service_Resourceviews_RegionViewsAddResourcesRequest extends Google_Collection { + public $resources; - public function setResources($resources) - { - $this->resources = $resources; - } + public function setResources($resources) { + $this->resources = $resources; + } - public function getResources() - { - return $this->resources; - } + public function getResources() { + return $this->resources; + } } -class Google_Service_Resourceviews_RegionViewsInsertResponse extends Google_Model -{ - protected $resourceType = 'Google_Service_Resourceviews_ResourceView'; - protected $resourceDataType = ''; +class Google_Service_Resourceviews_RegionViewsInsertResponse extends Google_Model { + protected $resourceType = 'Google_Service_Resourceviews_ResourceView'; + protected $resourceDataType = ''; - public function setResource(Google_Service_Resourceviews_ResourceView $resource) - { - $this->resource = $resource; - } + public function setResource(Google_Service_Resourceviews_ResourceView $resource) { + $this->resource = $resource; + } - public function getResource() - { - return $this->resource; - } + public function getResource() { + return $this->resource; + } } -class Google_Service_Resourceviews_RegionViewsListResourcesResponse extends Google_Collection -{ - public $members; - public $nextPageToken; +class Google_Service_Resourceviews_RegionViewsListResourcesResponse extends Google_Collection { + public $members; + public $nextPageToken; - public function setMembers($members) - { - $this->members = $members; - } + public function setMembers($members) { + $this->members = $members; + } - public function getMembers() - { - return $this->members; - } + public function getMembers() { + return $this->members; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Resourceviews_RegionViewsListResponse extends Google_Collection -{ - public $nextPageToken; - protected $resourceViewsType = 'Google_Service_Resourceviews_ResourceView'; - protected $resourceViewsDataType = 'array'; +class Google_Service_Resourceviews_RegionViewsListResponse extends Google_Collection { + public $nextPageToken; + protected $resourceViewsType = 'Google_Service_Resourceviews_ResourceView'; + protected $resourceViewsDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setResourceViews($resourceViews) - { - $this->resourceViews = $resourceViews; - } + public function setResourceViews($resourceViews) { + $this->resourceViews = $resourceViews; + } - public function getResourceViews() - { - return $this->resourceViews; - } + public function getResourceViews() { + return $this->resourceViews; + } } -class Google_Service_Resourceviews_RegionViewsRemoveResourcesRequest extends Google_Collection -{ - public $resources; +class Google_Service_Resourceviews_RegionViewsRemoveResourcesRequest extends Google_Collection { + public $resources; - public function setResources($resources) - { - $this->resources = $resources; - } + public function setResources($resources) { + $this->resources = $resources; + } - public function getResources() - { - return $this->resources; - } + public function getResources() { + return $this->resources; + } } -class Google_Service_Resourceviews_ResourceView extends Google_Collection -{ - public $creationTime; - public $description; - public $id; - public $kind; - protected $labelsType = 'Google_Service_Resourceviews_Label'; - protected $labelsDataType = 'array'; - public $lastModified; - public $members; - public $name; - public $numMembers; - public $selfLink; +class Google_Service_Resourceviews_ResourceView extends Google_Collection { + public $creationTime; + public $description; + public $id; + public $kind; + protected $labelsType = 'Google_Service_Resourceviews_Label'; + protected $labelsDataType = 'array'; + public $lastModified; + public $members; + public $name; + public $numMembers; + public $selfLink; - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } - public function getCreationTime() - { - return $this->creationTime; - } + public function getCreationTime() { + return $this->creationTime; + } - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLabels($labels) - { - $this->labels = $labels; - } + public function setLabels($labels) { + $this->labels = $labels; + } - public function getLabels() - { - return $this->labels; - } + public function getLabels() { + return $this->labels; + } - public function setLastModified($lastModified) - { - $this->lastModified = $lastModified; - } + public function setLastModified($lastModified) { + $this->lastModified = $lastModified; + } - public function getLastModified() - { - return $this->lastModified; - } + public function getLastModified() { + return $this->lastModified; + } - public function setMembers($members) - { - $this->members = $members; - } + public function setMembers($members) { + $this->members = $members; + } - public function getMembers() - { - return $this->members; - } + public function getMembers() { + return $this->members; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setNumMembers($numMembers) - { - $this->numMembers = $numMembers; - } + public function setNumMembers($numMembers) { + $this->numMembers = $numMembers; + } - public function getNumMembers() - { - return $this->numMembers; - } + public function getNumMembers() { + return $this->numMembers; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Resourceviews_ZoneViewsAddResourcesRequest extends Google_Collection -{ - public $resources; +class Google_Service_Resourceviews_ZoneViewsAddResourcesRequest extends Google_Collection { + public $resources; - public function setResources($resources) - { - $this->resources = $resources; - } + public function setResources($resources) { + $this->resources = $resources; + } - public function getResources() - { - return $this->resources; - } + public function getResources() { + return $this->resources; + } } -class Google_Service_Resourceviews_ZoneViewsInsertResponse extends Google_Model -{ - protected $resourceType = 'Google_Service_Resourceviews_ResourceView'; - protected $resourceDataType = ''; +class Google_Service_Resourceviews_ZoneViewsInsertResponse extends Google_Model { + protected $resourceType = 'Google_Service_Resourceviews_ResourceView'; + protected $resourceDataType = ''; - public function setResource(Google_Service_Resourceviews_ResourceView $resource) - { - $this->resource = $resource; - } + public function setResource(Google_Service_Resourceviews_ResourceView $resource) { + $this->resource = $resource; + } - public function getResource() - { - return $this->resource; - } + public function getResource() { + return $this->resource; + } } -class Google_Service_Resourceviews_ZoneViewsListResourcesResponse extends Google_Collection -{ - public $members; - public $nextPageToken; +class Google_Service_Resourceviews_ZoneViewsListResourcesResponse extends Google_Collection { + public $members; + public $nextPageToken; - public function setMembers($members) - { - $this->members = $members; - } + public function setMembers($members) { + $this->members = $members; + } - public function getMembers() - { - return $this->members; - } + public function getMembers() { + return $this->members; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Resourceviews_ZoneViewsListResponse extends Google_Collection -{ - public $nextPageToken; - protected $resourceViewsType = 'Google_Service_Resourceviews_ResourceView'; - protected $resourceViewsDataType = 'array'; +class Google_Service_Resourceviews_ZoneViewsListResponse extends Google_Collection { + public $nextPageToken; + protected $resourceViewsType = 'Google_Service_Resourceviews_ResourceView'; + protected $resourceViewsDataType = 'array'; - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setResourceViews($resourceViews) - { - $this->resourceViews = $resourceViews; - } + public function setResourceViews($resourceViews) { + $this->resourceViews = $resourceViews; + } - public function getResourceViews() - { - return $this->resourceViews; - } + public function getResourceViews() { + return $this->resourceViews; + } } -class Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest extends Google_Collection -{ - public $resources; +class Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest extends Google_Collection { + public $resources; - public function setResources($resources) - { - $this->resources = $resources; - } + public function setResources($resources) { + $this->resources = $resources; + } - public function getResources() - { - return $this->resources; - } + public function getResources() { + return $this->resources; + } } diff --git a/oauth/Google/Service/SQLAdmin.php b/oauth/Google/Service/SQLAdmin.php index d5417e9..c043bd6 100644 --- a/oauth/Google/Service/SQLAdmin.php +++ b/oauth/Google/Service/SQLAdmin.php @@ -29,472 +29,470 @@ * * @author Google, Inc. */ -class Google_Service_SQLAdmin extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your Google SQL Service instances. */ - const SQLSERVICE_ADMIN = "https://www.googleapis.com/auth/sqlservice.admin"; +class Google_Service_SQLAdmin extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** Manage your Google SQL Service instances. */ + const SQLSERVICE_ADMIN = "https://www.googleapis.com/auth/sqlservice.admin"; - public $backupRuns; - public $flags; - public $instances; - public $operations; - public $sslCerts; - public $tiers; - + public $backupRuns; + public $flags; + public $instances; + public $operations; + public $sslCerts; + public $tiers; - /** - * Constructs the internal representation of the SQLAdmin service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'sql/v1beta3/'; - $this->version = 'v1beta3'; - $this->serviceName = 'sqladmin'; - $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( - $this, - $this->serviceName, - 'backupRuns', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backupConfiguration' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dueTime' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backupConfiguration' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->flags = new Google_Service_SQLAdmin_Flags_Resource( - $this, - $this->serviceName, - 'flags', - array( - 'methods' => array( - 'list' => array( - 'path' => 'flags', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->instances = new Google_Service_SQLAdmin_Instances_Resource( - $this, - $this->serviceName, - 'instances', - array( - 'methods' => array( - 'clone' => array( - 'path' => 'projects/{project}/instances/clone', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'projects/{project}/instances/{instance}/export', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'projects/{project}/instances/{instance}/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetSslConfig' => array( - 'path' => 'projects/{project}/instances/{instance}/resetSslConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restart' => array( - 'path' => 'projects/{project}/instances/{instance}/restart', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restoreBackup' => array( - 'path' => 'projects/{project}/instances/{instance}/restoreBackup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'backupConfiguration' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'dueTime' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setRootPassword' => array( - 'path' => 'projects/{project}/instances/{instance}/setRootPassword', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operations = new Google_Service_SQLAdmin_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->sslCerts = new Google_Service_SQLAdmin_SslCerts_Resource( - $this, - $this->serviceName, - 'sslCerts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tiers = new Google_Service_SQLAdmin_Tiers_Resource( - $this, - $this->serviceName, - 'tiers', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects/{project}/tiers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the SQLAdmin service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'sql/v1beta3/'; + $this->version = 'v1beta3'; + $this->serviceName = 'sqladmin'; + + $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( + $this, + $this->serviceName, + 'backupRuns', + array( + 'methods' => array( + 'get' => array( + 'path' => 'projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backupConfiguration' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dueTime' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'projects/{project}/instances/{instance}/backupRuns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backupConfiguration' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->flags = new Google_Service_SQLAdmin_Flags_Resource( + $this, + $this->serviceName, + 'flags', + array( + 'methods' => array( + 'list' => array( + 'path' => 'flags', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->instances = new Google_Service_SQLAdmin_Instances_Resource( + $this, + $this->serviceName, + 'instances', + array( + 'methods' => array( + 'clone' => array( + 'path' => 'projects/{project}/instances/clone', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'export' => array( + 'path' => 'projects/{project}/instances/{instance}/export', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'import' => array( + 'path' => 'projects/{project}/instances/{instance}/import', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'projects/{project}/instances', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'projects/{project}/instances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'resetSslConfig' => array( + 'path' => 'projects/{project}/instances/{instance}/resetSslConfig', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'restart' => array( + 'path' => 'projects/{project}/instances/{instance}/restart', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'restoreBackup' => array( + 'path' => 'projects/{project}/instances/{instance}/restoreBackup', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backupConfiguration' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'dueTime' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'setRootPassword' => array( + 'path' => 'projects/{project}/instances/{instance}/setRootPassword', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operations = new Google_Service_SQLAdmin_Operations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'projects/{project}/instances/{instance}/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'projects/{project}/instances/{instance}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->sslCerts = new Google_Service_SQLAdmin_SslCerts_Resource( + $this, + $this->serviceName, + 'sslCerts', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sha1Fingerprint' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sha1Fingerprint' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->tiers = new Google_Service_SQLAdmin_Tiers_Resource( + $this, + $this->serviceName, + 'tiers', + array( + 'methods' => array( + 'list' => array( + 'path' => 'projects/{project}/tiers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -506,57 +504,55 @@ class Google_Service_SQLAdmin extends Google_Service * $backupRuns = $sqladminService->backupRuns; * */ -class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resource -{ +class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resource { - /** - * Retrieves a resource containing information about a backup run. - * (backupRuns.get) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $backupConfiguration - * Identifier for the backup configuration. This gets generated automatically when a backup - * configuration is created. - * @param string $dueTime - * The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_BackupRun - */ - public function get($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun"); - } - /** - * Lists all backup runs associated with a given instance and configuration in - * the reverse chronological order of the enqueued time. - * (backupRuns.listBackupRuns) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $backupConfiguration - * Identifier for the backup configuration. This gets generated automatically when a backup - * configuration is created. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. - * @opt_param int maxResults - * Maximum number of backup runs per response. - * @return Google_Service_SQLAdmin_BackupRunsListResponse - */ - public function listBackupRuns($project, $instance, $backupConfiguration, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse"); - } + /** + * Retrieves a resource containing information about a backup run. + * (backupRuns.get) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param string $backupConfiguration + * Identifier for the backup configuration. This gets generated automatically when a backup + * configuration is created. + * @param string $dueTime + * The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_BackupRun + */ + public function get($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun"); + } + + /** + * Lists all backup runs associated with a given instance and configuration in + * the reverse chronological order of the enqueued time. + * (backupRuns.listBackupRuns) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param string $backupConfiguration + * Identifier for the backup configuration. This gets generated automatically when a backup + * configuration is created. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A previously-returned page token representing part of the larger set of results to view. + * @opt_param int maxResults + * Maximum number of backup runs per response. + * @return Google_Service_SQLAdmin_BackupRunsListResponse + */ + public function listBackupRuns($project, $instance, $backupConfiguration, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse"); + } } /** @@ -567,22 +563,20 @@ class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resourc * $flags = $sqladminService->flags; * */ -class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource -{ +class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource { - /** - * List all available database flags for Google Cloud SQL instances. - * (flags.listFlags) - * - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_FlagsListResponse - */ - public function listFlags($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse"); - } + /** + * List all available database flags for Google Cloud SQL instances. + * (flags.listFlags) + * + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_FlagsListResponse + */ + public function listFlags($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse"); + } } /** @@ -593,241 +587,239 @@ class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource * $instances = $sqladminService->instances; * */ -class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource -{ +class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource { - /** - * Creates a Cloud SQL instance as a clone of the source instance. - * (instances.cloneInstances) - * - * @param string $project - * Project ID of the source as well as the clone Cloud SQL instance. - * @param Google_InstancesCloneRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesCloneResponse - */ - public function cloneInstances($project, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('clone', array($params), "Google_Service_SQLAdmin_InstancesCloneResponse"); - } - /** - * Deletes a Cloud SQL instance. (instances.delete) - * - * @param string $project - * Project ID of the project that contains the instance to be deleted. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesDeleteResponse - */ - public function delete($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_InstancesDeleteResponse"); - } - /** - * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a - * MySQL dump file. (instances.export) - * - * @param string $project - * Project ID of the project that contains the instance to be exported. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param Google_InstancesExportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesExportResponse - */ - public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_SQLAdmin_InstancesExportResponse"); - } - /** - * Retrieves a resource containing information about a Cloud SQL instance. - * (instances.get) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Database instance ID. This does not include the project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_DatabaseInstance - */ - public function get($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance"); - } - /** - * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud - * Storage. (instances.import) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param Google_InstancesImportRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesImportResponse - */ - public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_SQLAdmin_InstancesImportResponse"); - } - /** - * Creates a new Cloud SQL instance. (instances.insert) - * - * @param string $project - * Project ID of the project to which the newly created Cloud SQL instances should belong. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesInsertResponse - */ - public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_InstancesInsertResponse"); - } - /** - * Lists instances under a given project in the alphabetical order of the - * instance name. (instances.listInstances) - * - * @param string $project - * Project ID of the project for which to list Cloud SQL instances. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. - * @opt_param string maxResults - * The maximum number of results to return per response. - * @return Google_Service_SQLAdmin_InstancesListResponse - */ - public function listInstances($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse"); - } - /** - * Updates settings of a Cloud SQL instance. Caution: This is not a partial - * update, so you must include values for all the settings that you want to - * retain. For partial updates, use patch.. This method supports patch - * semantics. (instances.patch) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesUpdateResponse - */ - public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse"); - } - /** - * Deletes all client certificates and generates a new server SSL certificate - * for the instance. The changes will not take effect until the instance is - * restarted. Existing instances without a server certificate will need to call - * this once to set a server certificate. (instances.resetSslConfig) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesResetSslConfigResponse - */ - public function resetSslConfig($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_InstancesResetSslConfigResponse"); - } - /** - * Restarts a Cloud SQL instance. (instances.restart) - * - * @param string $project - * Project ID of the project that contains the instance to be restarted. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesRestartResponse - */ - public function restart($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('restart', array($params), "Google_Service_SQLAdmin_InstancesRestartResponse"); - } - /** - * Restores a backup of a Cloud SQL instance. (instances.restoreBackup) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $backupConfiguration - * The identifier of the backup configuration. This gets generated automatically when a backup - * configuration is created. - * @param string $dueTime - * The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesRestoreBackupResponse - */ - public function restoreBackup($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); - $params = array_merge($params, $optParams); - return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_InstancesRestoreBackupResponse"); - } - /** - * Sets the password for the root user. (instances.setRootPassword) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param Google_InstanceSetRootPasswordRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesSetRootPasswordResponse - */ - public function setRootPassword($project, $instance, Google_Service_SQLAdmin_InstanceSetRootPasswordRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setRootPassword', array($params), "Google_Service_SQLAdmin_InstancesSetRootPasswordResponse"); - } - /** - * Updates settings of a Cloud SQL instance. Caution: This is not a partial - * update, so you must include values for all the settings that you want to - * retain. For partial updates, use patch. (instances.update) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param Google_DatabaseInstance $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesUpdateResponse - */ - public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse"); - } + /** + * Creates a Cloud SQL instance as a clone of the source instance. + * (instances.cloneInstances) + * + * @param string $project + * Project ID of the source as well as the clone Cloud SQL instance. + * @param Google_InstancesCloneRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesCloneResponse + */ + public function cloneInstances($project, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('clone', array($params), "Google_Service_SQLAdmin_InstancesCloneResponse"); + } + + /** + * Deletes a Cloud SQL instance. (instances.delete) + * + * @param string $project + * Project ID of the project that contains the instance to be deleted. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesDeleteResponse + */ + public function delete($project, $instance, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_InstancesDeleteResponse"); + } + + /** + * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a + * MySQL dump file. (instances.export) + * + * @param string $project + * Project ID of the project that contains the instance to be exported. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param Google_InstancesExportRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesExportResponse + */ + public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('export', array($params), "Google_Service_SQLAdmin_InstancesExportResponse"); + } + + /** + * Retrieves a resource containing information about a Cloud SQL instance. + * (instances.get) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Database instance ID. This does not include the project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_DatabaseInstance + */ + public function get($project, $instance, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance"); + } + + /** + * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud + * Storage. (instances.import) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param Google_InstancesImportRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesImportResponse + */ + public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('import', array($params), "Google_Service_SQLAdmin_InstancesImportResponse"); + } + + /** + * Creates a new Cloud SQL instance. (instances.insert) + * + * @param string $project + * Project ID of the project to which the newly created Cloud SQL instances should belong. + * @param Google_DatabaseInstance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesInsertResponse + */ + public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_InstancesInsertResponse"); + } + + /** + * Lists instances under a given project in the alphabetical order of the + * instance name. (instances.listInstances) + * + * @param string $project + * Project ID of the project for which to list Cloud SQL instances. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A previously-returned page token representing part of the larger set of results to view. + * @opt_param string maxResults + * The maximum number of results to return per response. + * @return Google_Service_SQLAdmin_InstancesListResponse + */ + public function listInstances($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse"); + } + + /** + * Updates settings of a Cloud SQL instance. Caution: This is not a partial + * update, so you must include values for all the settings that you want to + * retain. For partial updates, use patch.. This method supports patch + * semantics. (instances.patch) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param Google_DatabaseInstance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesUpdateResponse + */ + public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse"); + } + + /** + * Deletes all client certificates and generates a new server SSL certificate + * for the instance. The changes will not take effect until the instance is + * restarted. Existing instances without a server certificate will need to call + * this once to set a server certificate. (instances.resetSslConfig) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesResetSslConfigResponse + */ + public function resetSslConfig($project, $instance, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_InstancesResetSslConfigResponse"); + } + + /** + * Restarts a Cloud SQL instance. (instances.restart) + * + * @param string $project + * Project ID of the project that contains the instance to be restarted. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesRestartResponse + */ + public function restart($project, $instance, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('restart', array($params), "Google_Service_SQLAdmin_InstancesRestartResponse"); + } + + /** + * Restores a backup of a Cloud SQL instance. (instances.restoreBackup) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param string $backupConfiguration + * The identifier of the backup configuration. This gets generated automatically when a backup + * configuration is created. + * @param string $dueTime + * The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesRestoreBackupResponse + */ + public function restoreBackup($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); + $params = array_merge($params, $optParams); + return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_InstancesRestoreBackupResponse"); + } + + /** + * Sets the password for the root user. (instances.setRootPassword) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param Google_InstanceSetRootPasswordRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesSetRootPasswordResponse + */ + public function setRootPassword($project, $instance, Google_Service_SQLAdmin_InstanceSetRootPasswordRequest $postBody, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setRootPassword', array($params), "Google_Service_SQLAdmin_InstancesSetRootPasswordResponse"); + } + + /** + * Updates settings of a Cloud SQL instance. Caution: This is not a partial + * update, so you must include values for all the settings that you want to + * retain. For partial updates, use patch. (instances.update) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param Google_DatabaseInstance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesUpdateResponse + */ + public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse"); + } } /** @@ -838,51 +830,49 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource * $operations = $sqladminService->operations; * */ -class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resource -{ +class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resource { - /** - * Retrieves an instance operation that has been performed on an instance. - * (operations.get) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $operation - * Instance operation ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstanceOperation - */ - public function get($project, $instance, $operation, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_InstanceOperation"); - } - /** - * Lists all instance operations that have been performed on the given Cloud SQL - * instance in the reverse chronological order of the start time. - * (operations.listOperations) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults - * Maximum number of operations per response. - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. - * @return Google_Service_SQLAdmin_OperationsListResponse - */ - public function listOperations($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_OperationsListResponse"); - } + /** + * Retrieves an instance operation that has been performed on an instance. + * (operations.get) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param string $operation + * Instance operation ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstanceOperation + */ + public function get($project, $instance, $operation, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_SQLAdmin_InstanceOperation"); + } + + /** + * Lists all instance operations that have been performed on the given Cloud SQL + * instance in the reverse chronological order of the start time. + * (operations.listOperations) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults + * Maximum number of operations per response. + * @opt_param string pageToken + * A previously-returned page token representing part of the larger set of results to view. + * @return Google_Service_SQLAdmin_OperationsListResponse + */ + public function listOperations($project, $instance, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_OperationsListResponse"); + } } /** @@ -893,84 +883,82 @@ class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resourc * $sslCerts = $sqladminService->sslCerts; * */ -class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource -{ +class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource { - /** - * Deletes the SSL certificate. The change will not take effect until the - * instance is restarted. (sslCerts.delete) - * - * @param string $project - * Project ID of the project that contains the instance to be deleted. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $sha1Fingerprint - * Sha1 FingerPrint. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCertsDeleteResponse - */ - public function delete($project, $instance, $sha1Fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_SslCertsDeleteResponse"); - } - /** - * Retrieves a particular SSL certificate. Does not include the private key - * (required for usage). The private key must be saved from the response to - * initial creation. (sslCerts.get) - * - * @param string $project - * Project ID of the project that contains the instance. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param string $sha1Fingerprint - * Sha1 FingerPrint. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCert - */ - public function get($project, $instance, $sha1Fingerprint, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert"); - } - /** - * Creates an SSL certificate and returns it along with the private key and - * server certificate authority. The new certificate will not be usable until - * the instance is restarted. (sslCerts.insert) - * - * @param string $project - * Project ID of the project to which the newly created Cloud SQL instances should belong. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param Google_SslCertsInsertRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCertsInsertResponse - */ - public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse"); - } - /** - * Lists all of the current SSL certificates for the instance. - * (sslCerts.listSslCerts) - * - * @param string $project - * Project ID of the project for which to list Cloud SQL instances. - * @param string $instance - * Cloud SQL instance ID. This does not include the project ID. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCertsListResponse - */ - public function listSslCerts($project, $instance, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_SslCertsListResponse"); - } + /** + * Deletes the SSL certificate. The change will not take effect until the + * instance is restarted. (sslCerts.delete) + * + * @param string $project + * Project ID of the project that contains the instance to be deleted. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param string $sha1Fingerprint + * Sha1 FingerPrint. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_SslCertsDeleteResponse + */ + public function delete($project, $instance, $sha1Fingerprint, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_SslCertsDeleteResponse"); + } + + /** + * Retrieves a particular SSL certificate. Does not include the private key + * (required for usage). The private key must be saved from the response to + * initial creation. (sslCerts.get) + * + * @param string $project + * Project ID of the project that contains the instance. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param string $sha1Fingerprint + * Sha1 FingerPrint. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_SslCert + */ + public function get($project, $instance, $sha1Fingerprint, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert"); + } + + /** + * Creates an SSL certificate and returns it along with the private key and + * server certificate authority. The new certificate will not be usable until + * the instance is restarted. (sslCerts.insert) + * + * @param string $project + * Project ID of the project to which the newly created Cloud SQL instances should belong. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param Google_SslCertsInsertRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_SslCertsInsertResponse + */ + public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse"); + } + + /** + * Lists all of the current SSL certificates for the instance. + * (sslCerts.listSslCerts) + * + * @param string $project + * Project ID of the project for which to list Cloud SQL instances. + * @param string $instance + * Cloud SQL instance ID. This does not include the project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_SslCertsListResponse + */ + public function listSslCerts($project, $instance, $optParams = array()) { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_SslCertsListResponse"); + } } /** @@ -981,1802 +969,1468 @@ class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource * $tiers = $sqladminService->tiers; * */ -class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource -{ +class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource { - /** - * Lists all available service tiers for Google Cloud SQL, for example D1, D2. - * For related information, see Pricing. (tiers.listTiers) - * - * @param string $project - * Project ID of the project for which to list tiers. - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_TiersListResponse - */ - public function listTiers($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SQLAdmin_TiersListResponse"); - } + /** + * Lists all available service tiers for Google Cloud SQL, for example D1, D2. + * For related information, see Pricing. (tiers.listTiers) + * + * @param string $project + * Project ID of the project for which to list tiers. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_TiersListResponse + */ + public function listTiers($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_TiersListResponse"); + } } +class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model { + public $binaryLogEnabled; + public $enabled; + public $id; + public $kind; + public $startTime; + public function setBinaryLogEnabled($binaryLogEnabled) { + $this->binaryLogEnabled = $binaryLogEnabled; + } -class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model -{ - public $binaryLogEnabled; - public $enabled; - public $id; - public $kind; - public $startTime; + public function getBinaryLogEnabled() { + return $this->binaryLogEnabled; + } - public function setBinaryLogEnabled($binaryLogEnabled) - { - $this->binaryLogEnabled = $binaryLogEnabled; - } + public function setEnabled($enabled) { + $this->enabled = $enabled; + } - public function getBinaryLogEnabled() - { - return $this->binaryLogEnabled; - } + public function getEnabled() { + return $this->enabled; + } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } + public function setId($id) { + $this->id = $id; + } - public function getEnabled() - { - return $this->enabled; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getKind() - { - return $this->kind; - } - - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - - public function getStartTime() - { - return $this->startTime; - } + public function getStartTime() { + return $this->startTime; + } } -class Google_Service_SQLAdmin_BackupRun extends Google_Model -{ - public $backupConfiguration; - public $dueTime; - public $endTime; - public $enqueuedTime; - protected $errorType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorDataType = ''; - public $instance; - public $kind; - public $startTime; - public $status; +class Google_Service_SQLAdmin_BackupRun extends Google_Model { + public $backupConfiguration; + public $dueTime; + public $endTime; + public $enqueuedTime; + protected $errorType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorDataType = ''; + public $instance; + public $kind; + public $startTime; + public $status; - public function setBackupConfiguration($backupConfiguration) - { - $this->backupConfiguration = $backupConfiguration; - } + public function setBackupConfiguration($backupConfiguration) { + $this->backupConfiguration = $backupConfiguration; + } - public function getBackupConfiguration() - { - return $this->backupConfiguration; - } + public function getBackupConfiguration() { + return $this->backupConfiguration; + } - public function setDueTime($dueTime) - { - $this->dueTime = $dueTime; - } + public function setDueTime($dueTime) { + $this->dueTime = $dueTime; + } - public function getDueTime() - { - return $this->dueTime; - } + public function getDueTime() { + return $this->dueTime; + } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } + public function setEndTime($endTime) { + $this->endTime = $endTime; + } - public function getEndTime() - { - return $this->endTime; - } + public function getEndTime() { + return $this->endTime; + } - public function setEnqueuedTime($enqueuedTime) - { - $this->enqueuedTime = $enqueuedTime; - } + public function setEnqueuedTime($enqueuedTime) { + $this->enqueuedTime = $enqueuedTime; + } - public function getEnqueuedTime() - { - return $this->enqueuedTime; - } + public function getEnqueuedTime() { + return $this->enqueuedTime; + } - public function setError(Google_Service_SQLAdmin_OperationError $error) - { - $this->error = $error; - } + public function setError(Google_Service_SQLAdmin_OperationError $error) { + $this->error = $error; + } - public function getError() - { - return $this->error; - } + public function getError() { + return $this->error; + } - public function setInstance($instance) - { - $this->instance = $instance; - } + public function setInstance($instance) { + $this->instance = $instance; + } - public function getInstance() - { - return $this->instance; - } + public function getInstance() { + return $this->instance; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getStartTime() - { - return $this->startTime; - } + public function getStartTime() { + return $this->startTime; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_SQLAdmin_BackupRun'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_SQLAdmin_BackupRun'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model -{ - public $binLogFileName; - public $binLogPosition; - public $kind; +class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model { + public $binLogFileName; + public $binLogPosition; + public $kind; - public function setBinLogFileName($binLogFileName) - { - $this->binLogFileName = $binLogFileName; - } + public function setBinLogFileName($binLogFileName) { + $this->binLogFileName = $binLogFileName; + } - public function getBinLogFileName() - { - return $this->binLogFileName; - } + public function getBinLogFileName() { + return $this->binLogFileName; + } - public function setBinLogPosition($binLogPosition) - { - $this->binLogPosition = $binLogPosition; - } + public function setBinLogPosition($binLogPosition) { + $this->binLogPosition = $binLogPosition; + } - public function getBinLogPosition() - { - return $this->binLogPosition; - } + public function getBinLogPosition() { + return $this->binLogPosition; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_SQLAdmin_CloneContext extends Google_Model -{ - protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates'; - protected $binLogCoordinatesDataType = ''; - public $destinationInstanceName; - public $kind; - public $sourceInstanceName; +class Google_Service_SQLAdmin_CloneContext extends Google_Model { + protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates'; + protected $binLogCoordinatesDataType = ''; + public $destinationInstanceName; + public $kind; + public $sourceInstanceName; - public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates) - { - $this->binLogCoordinates = $binLogCoordinates; - } + public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates) { + $this->binLogCoordinates = $binLogCoordinates; + } - public function getBinLogCoordinates() - { - return $this->binLogCoordinates; - } + public function getBinLogCoordinates() { + return $this->binLogCoordinates; + } - public function setDestinationInstanceName($destinationInstanceName) - { - $this->destinationInstanceName = $destinationInstanceName; - } + public function setDestinationInstanceName($destinationInstanceName) { + $this->destinationInstanceName = $destinationInstanceName; + } - public function getDestinationInstanceName() - { - return $this->destinationInstanceName; - } + public function getDestinationInstanceName() { + return $this->destinationInstanceName; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSourceInstanceName($sourceInstanceName) - { - $this->sourceInstanceName = $sourceInstanceName; - } + public function setSourceInstanceName($sourceInstanceName) { + $this->sourceInstanceName = $sourceInstanceName; + } - public function getSourceInstanceName() - { - return $this->sourceInstanceName; - } + public function getSourceInstanceName() { + return $this->sourceInstanceName; + } } -class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model -{ - public $name; - public $value; +class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model { + public $name; + public $value; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setValue($value) - { - $this->value = $value; - } + public function setValue($value) { + $this->value = $value; + } - public function getValue() - { - return $this->value; - } + public function getValue() { + return $this->value; + } } -class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection -{ - public $currentDiskSize; - public $databaseVersion; - public $etag; - public $instance; - protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; - protected $ipAddressesDataType = 'array'; - public $kind; - public $maxDiskSize; - public $project; - public $region; - protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; - protected $serverCaCertDataType = ''; - protected $settingsType = 'Google_Service_SQLAdmin_Settings'; - protected $settingsDataType = ''; - public $state; +class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection { + public $currentDiskSize; + public $databaseVersion; + public $etag; + public $instance; + protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; + protected $ipAddressesDataType = 'array'; + public $kind; + public $maxDiskSize; + public $project; + public $region; + protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; + protected $serverCaCertDataType = ''; + protected $settingsType = 'Google_Service_SQLAdmin_Settings'; + protected $settingsDataType = ''; + public $state; - public function setCurrentDiskSize($currentDiskSize) - { - $this->currentDiskSize = $currentDiskSize; - } + public function setCurrentDiskSize($currentDiskSize) { + $this->currentDiskSize = $currentDiskSize; + } - public function getCurrentDiskSize() - { - return $this->currentDiskSize; - } + public function getCurrentDiskSize() { + return $this->currentDiskSize; + } - public function setDatabaseVersion($databaseVersion) - { - $this->databaseVersion = $databaseVersion; - } + public function setDatabaseVersion($databaseVersion) { + $this->databaseVersion = $databaseVersion; + } - public function getDatabaseVersion() - { - return $this->databaseVersion; - } + public function getDatabaseVersion() { + return $this->databaseVersion; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setInstance($instance) - { - $this->instance = $instance; - } + public function setInstance($instance) { + $this->instance = $instance; + } - public function getInstance() - { - return $this->instance; - } + public function getInstance() { + return $this->instance; + } - public function setIpAddresses($ipAddresses) - { - $this->ipAddresses = $ipAddresses; - } + public function setIpAddresses($ipAddresses) { + $this->ipAddresses = $ipAddresses; + } - public function getIpAddresses() - { - return $this->ipAddresses; - } + public function getIpAddresses() { + return $this->ipAddresses; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMaxDiskSize($maxDiskSize) - { - $this->maxDiskSize = $maxDiskSize; - } + public function setMaxDiskSize($maxDiskSize) { + $this->maxDiskSize = $maxDiskSize; + } - public function getMaxDiskSize() - { - return $this->maxDiskSize; - } + public function getMaxDiskSize() { + return $this->maxDiskSize; + } - public function setProject($project) - { - $this->project = $project; - } + public function setProject($project) { + $this->project = $project; + } - public function getProject() - { - return $this->project; - } + public function getProject() { + return $this->project; + } - public function setRegion($region) - { - $this->region = $region; - } + public function setRegion($region) { + $this->region = $region; + } - public function getRegion() - { - return $this->region; - } + public function getRegion() { + return $this->region; + } - public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) - { - $this->serverCaCert = $serverCaCert; - } + public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) { + $this->serverCaCert = $serverCaCert; + } - public function getServerCaCert() - { - return $this->serverCaCert; - } + public function getServerCaCert() { + return $this->serverCaCert; + } - public function setSettings(Google_Service_SQLAdmin_Settings $settings) - { - $this->settings = $settings; - } + public function setSettings(Google_Service_SQLAdmin_Settings $settings) { + $this->settings = $settings; + } - public function getSettings() - { - return $this->settings; - } + public function getSettings() { + return $this->settings; + } - public function setState($state) - { - $this->state = $state; - } + public function setState($state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } } -class Google_Service_SQLAdmin_ExportContext extends Google_Collection -{ - public $database; - public $kind; - public $table; - public $uri; +class Google_Service_SQLAdmin_ExportContext extends Google_Collection { + public $database; + public $kind; + public $table; + public $uri; - public function setDatabase($database) - { - $this->database = $database; - } + public function setDatabase($database) { + $this->database = $database; + } - public function getDatabase() - { - return $this->database; - } + public function getDatabase() { + return $this->database; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setTable($table) - { - $this->table = $table; - } + public function setTable($table) { + $this->table = $table; + } - public function getTable() - { - return $this->table; - } + public function getTable() { + return $this->table; + } - public function setUri($uri) - { - $this->uri = $uri; - } + public function setUri($uri) { + $this->uri = $uri; + } - public function getUri() - { - return $this->uri; - } + public function getUri() { + return $this->uri; + } } -class Google_Service_SQLAdmin_Flag extends Google_Collection -{ - public $allowedStringValues; - public $appliesTo; - public $kind; - public $maxValue; - public $minValue; - public $name; - public $type; +class Google_Service_SQLAdmin_Flag extends Google_Collection { + public $allowedStringValues; + public $appliesTo; + public $kind; + public $maxValue; + public $minValue; + public $name; + public $type; - public function setAllowedStringValues($allowedStringValues) - { - $this->allowedStringValues = $allowedStringValues; - } + public function setAllowedStringValues($allowedStringValues) { + $this->allowedStringValues = $allowedStringValues; + } - public function getAllowedStringValues() - { - return $this->allowedStringValues; - } + public function getAllowedStringValues() { + return $this->allowedStringValues; + } - public function setAppliesTo($appliesTo) - { - $this->appliesTo = $appliesTo; - } + public function setAppliesTo($appliesTo) { + $this->appliesTo = $appliesTo; + } - public function getAppliesTo() - { - return $this->appliesTo; - } + public function getAppliesTo() { + return $this->appliesTo; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMaxValue($maxValue) - { - $this->maxValue = $maxValue; - } + public function setMaxValue($maxValue) { + $this->maxValue = $maxValue; + } - public function getMaxValue() - { - return $this->maxValue; - } + public function getMaxValue() { + return $this->maxValue; + } - public function setMinValue($minValue) - { - $this->minValue = $minValue; - } + public function setMinValue($minValue) { + $this->minValue = $minValue; + } - public function getMinValue() - { - return $this->minValue; - } + public function getMinValue() { + return $this->minValue; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_SQLAdmin_Flag'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_SQLAdmin_Flag'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_SQLAdmin_ImportContext extends Google_Collection -{ - public $database; - public $kind; - public $uri; +class Google_Service_SQLAdmin_ImportContext extends Google_Collection { + public $database; + public $kind; + public $uri; - public function setDatabase($database) - { - $this->database = $database; - } + public function setDatabase($database) { + $this->database = $database; + } - public function getDatabase() - { - return $this->database; - } + public function getDatabase() { + return $this->database; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setUri($uri) - { - $this->uri = $uri; - } + public function setUri($uri) { + $this->uri = $uri; + } - public function getUri() - { - return $this->uri; - } + public function getUri() { + return $this->uri; + } } -class Google_Service_SQLAdmin_InstanceOperation extends Google_Collection -{ - public $endTime; - public $enqueuedTime; - protected $errorType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorDataType = 'array'; - protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; - protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; - public $instance; - public $kind; - public $operation; - public $operationType; - public $startTime; - public $state; - public $userEmailAddress; +class Google_Service_SQLAdmin_InstanceOperation extends Google_Collection { + public $endTime; + public $enqueuedTime; + protected $errorType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorDataType = 'array'; + protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; + protected $exportContextDataType = ''; + protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; + protected $importContextDataType = ''; + public $instance; + public $kind; + public $operation; + public $operationType; + public $startTime; + public $state; + public $userEmailAddress; - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } + public function setEndTime($endTime) { + $this->endTime = $endTime; + } - public function getEndTime() - { - return $this->endTime; - } + public function getEndTime() { + return $this->endTime; + } - public function setEnqueuedTime($enqueuedTime) - { - $this->enqueuedTime = $enqueuedTime; - } + public function setEnqueuedTime($enqueuedTime) { + $this->enqueuedTime = $enqueuedTime; + } - public function getEnqueuedTime() - { - return $this->enqueuedTime; - } + public function getEnqueuedTime() { + return $this->enqueuedTime; + } - public function setError($error) - { - $this->error = $error; - } + public function setError($error) { + $this->error = $error; + } - public function getError() - { - return $this->error; - } + public function getError() { + return $this->error; + } - public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } + public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) { + $this->exportContext = $exportContext; + } - public function getExportContext() - { - return $this->exportContext; - } + public function getExportContext() { + return $this->exportContext; + } - public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } + public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) { + $this->importContext = $importContext; + } - public function getImportContext() - { - return $this->importContext; - } + public function getImportContext() { + return $this->importContext; + } - public function setInstance($instance) - { - $this->instance = $instance; - } + public function setInstance($instance) { + $this->instance = $instance; + } - public function getInstance() - { - return $this->instance; - } + public function getInstance() { + return $this->instance; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } + public function setOperationType($operationType) { + $this->operationType = $operationType; + } - public function getOperationType() - { - return $this->operationType; - } + public function getOperationType() { + return $this->operationType; + } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getStartTime() - { - return $this->startTime; - } + public function getStartTime() { + return $this->startTime; + } - public function setState($state) - { - $this->state = $state; - } + public function setState($state) { + $this->state = $state; + } - public function getState() - { - return $this->state; - } + public function getState() { + return $this->state; + } - public function setUserEmailAddress($userEmailAddress) - { - $this->userEmailAddress = $userEmailAddress; - } + public function setUserEmailAddress($userEmailAddress) { + $this->userEmailAddress = $userEmailAddress; + } - public function getUserEmailAddress() - { - return $this->userEmailAddress; - } + public function getUserEmailAddress() { + return $this->userEmailAddress; + } } -class Google_Service_SQLAdmin_InstanceSetRootPasswordRequest extends Google_Model -{ - protected $setRootPasswordContextType = 'Google_Service_SQLAdmin_SetRootPasswordContext'; - protected $setRootPasswordContextDataType = ''; +class Google_Service_SQLAdmin_InstanceSetRootPasswordRequest extends Google_Model { + protected $setRootPasswordContextType = 'Google_Service_SQLAdmin_SetRootPasswordContext'; + protected $setRootPasswordContextDataType = ''; - public function setSetRootPasswordContext(Google_Service_SQLAdmin_SetRootPasswordContext $setRootPasswordContext) - { - $this->setRootPasswordContext = $setRootPasswordContext; - } + public function setSetRootPasswordContext(Google_Service_SQLAdmin_SetRootPasswordContext $setRootPasswordContext) { + $this->setRootPasswordContext = $setRootPasswordContext; + } - public function getSetRootPasswordContext() - { - return $this->setRootPasswordContext; - } + public function getSetRootPasswordContext() { + return $this->setRootPasswordContext; + } } -class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model -{ - protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext'; - protected $cloneContextDataType = ''; +class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model { + protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext'; + protected $cloneContextDataType = ''; - public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext) - { - $this->cloneContext = $cloneContext; - } + public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext) { + $this->cloneContext = $cloneContext; + } - public function getCloneContext() - { - return $this->cloneContext; - } + public function getCloneContext() { + return $this->cloneContext; + } } -class Google_Service_SQLAdmin_InstancesCloneResponse extends Google_Model -{ - public $kind; - public $operation; +class Google_Service_SQLAdmin_InstancesCloneResponse extends Google_Model { + public $kind; + public $operation; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } } -class Google_Service_SQLAdmin_InstancesDeleteResponse extends Google_Model -{ - public $kind; - public $operation; +class Google_Service_SQLAdmin_InstancesDeleteResponse extends Google_Model { + public $kind; + public $operation; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } } -class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model -{ - protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; +class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model { + protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; + protected $exportContextDataType = ''; - public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } + public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) { + $this->exportContext = $exportContext; + } - public function getExportContext() - { - return $this->exportContext; - } + public function getExportContext() { + return $this->exportContext; + } } -class Google_Service_SQLAdmin_InstancesExportResponse extends Google_Model -{ - public $kind; - public $operation; +class Google_Service_SQLAdmin_InstancesExportResponse extends Google_Model { + public $kind; + public $operation; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } } -class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model -{ - protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; +class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model { + protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; + protected $importContextDataType = ''; - public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } + public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) { + $this->importContext = $importContext; + } - public function getImportContext() - { - return $this->importContext; - } + public function getImportContext() { + return $this->importContext; + } } -class Google_Service_SQLAdmin_InstancesImportResponse extends Google_Model -{ - public $kind; - public $operation; +class Google_Service_SQLAdmin_InstancesImportResponse extends Google_Model { + public $kind; + public $operation; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } } -class Google_Service_SQLAdmin_InstancesInsertResponse extends Google_Model -{ - public $kind; - public $operation; +class Google_Service_SQLAdmin_InstancesInsertResponse extends Google_Model { + public $kind; + public $operation; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } } -class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_SQLAdmin_InstancesResetSslConfigResponse extends Google_Model -{ - public $kind; - public $operation; +class Google_Service_SQLAdmin_InstancesResetSslConfigResponse extends Google_Model { + public $kind; + public $operation; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } } -class Google_Service_SQLAdmin_InstancesRestartResponse extends Google_Model -{ - public $kind; - public $operation; +class Google_Service_SQLAdmin_InstancesRestartResponse extends Google_Model { + public $kind; + public $operation; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } } -class Google_Service_SQLAdmin_InstancesRestoreBackupResponse extends Google_Model -{ - public $kind; - public $operation; +class Google_Service_SQLAdmin_InstancesRestoreBackupResponse extends Google_Model { + public $kind; + public $operation; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } } -class Google_Service_SQLAdmin_InstancesSetRootPasswordResponse extends Google_Model -{ - public $kind; - public $operation; +class Google_Service_SQLAdmin_InstancesSetRootPasswordResponse extends Google_Model { + public $kind; + public $operation; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } } -class Google_Service_SQLAdmin_InstancesUpdateResponse extends Google_Model -{ - public $kind; - public $operation; +class Google_Service_SQLAdmin_InstancesUpdateResponse extends Google_Model { + public $kind; + public $operation; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } } -class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection -{ - public $authorizedNetworks; - public $enabled; - public $requireSsl; +class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection { + public $authorizedNetworks; + public $enabled; + public $requireSsl; - public function setAuthorizedNetworks($authorizedNetworks) - { - $this->authorizedNetworks = $authorizedNetworks; - } + public function setAuthorizedNetworks($authorizedNetworks) { + $this->authorizedNetworks = $authorizedNetworks; + } - public function getAuthorizedNetworks() - { - return $this->authorizedNetworks; - } + public function getAuthorizedNetworks() { + return $this->authorizedNetworks; + } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } + public function setEnabled($enabled) { + $this->enabled = $enabled; + } - public function getEnabled() - { - return $this->enabled; - } + public function getEnabled() { + return $this->enabled; + } - public function setRequireSsl($requireSsl) - { - $this->requireSsl = $requireSsl; - } + public function setRequireSsl($requireSsl) { + $this->requireSsl = $requireSsl; + } - public function getRequireSsl() - { - return $this->requireSsl; - } + public function getRequireSsl() { + return $this->requireSsl; + } } -class Google_Service_SQLAdmin_IpMapping extends Google_Model -{ - public $ipAddress; - public $timeToRetire; +class Google_Service_SQLAdmin_IpMapping extends Google_Model { + public $ipAddress; + public $timeToRetire; - public function setIpAddress($ipAddress) - { - $this->ipAddress = $ipAddress; - } + public function setIpAddress($ipAddress) { + $this->ipAddress = $ipAddress; + } - public function getIpAddress() - { - return $this->ipAddress; - } + public function getIpAddress() { + return $this->ipAddress; + } - public function setTimeToRetire($timeToRetire) - { - $this->timeToRetire = $timeToRetire; - } + public function setTimeToRetire($timeToRetire) { + $this->timeToRetire = $timeToRetire; + } - public function getTimeToRetire() - { - return $this->timeToRetire; - } + public function getTimeToRetire() { + return $this->timeToRetire; + } } -class Google_Service_SQLAdmin_LocationPreference extends Google_Model -{ - public $followGaeApplication; - public $kind; - public $zone; +class Google_Service_SQLAdmin_LocationPreference extends Google_Model { + public $followGaeApplication; + public $kind; + public $zone; - public function setFollowGaeApplication($followGaeApplication) - { - $this->followGaeApplication = $followGaeApplication; - } + public function setFollowGaeApplication($followGaeApplication) { + $this->followGaeApplication = $followGaeApplication; + } - public function getFollowGaeApplication() - { - return $this->followGaeApplication; - } + public function getFollowGaeApplication() { + return $this->followGaeApplication; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setZone($zone) - { - $this->zone = $zone; - } + public function setZone($zone) { + $this->zone = $zone; + } - public function getZone() - { - return $this->zone; - } + public function getZone() { + return $this->zone; + } } -class Google_Service_SQLAdmin_OperationError extends Google_Model -{ - public $code; - public $kind; +class Google_Service_SQLAdmin_OperationError extends Google_Model { + public $code; + public $kind; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_SQLAdmin_InstanceOperation'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_SQLAdmin_InstanceOperation'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_SQLAdmin_SetRootPasswordContext extends Google_Model -{ - public $kind; - public $password; +class Google_Service_SQLAdmin_SetRootPasswordContext extends Google_Model { + public $kind; + public $password; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setPassword($password) - { - $this->password = $password; - } + public function setPassword($password) { + $this->password = $password; + } - public function getPassword() - { - return $this->password; - } + public function getPassword() { + return $this->password; + } } -class Google_Service_SQLAdmin_Settings extends Google_Collection -{ - public $activationPolicy; - public $authorizedGaeApplications; - protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; - protected $backupConfigurationDataType = 'array'; - protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; - protected $databaseFlagsDataType = 'array'; - protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration'; - protected $ipConfigurationDataType = ''; - public $kind; - protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference'; - protected $locationPreferenceDataType = ''; - public $pricingPlan; - public $replicationType; - public $settingsVersion; - public $tier; +class Google_Service_SQLAdmin_Settings extends Google_Collection { + public $activationPolicy; + public $authorizedGaeApplications; + protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; + protected $backupConfigurationDataType = 'array'; + protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; + protected $databaseFlagsDataType = 'array'; + protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration'; + protected $ipConfigurationDataType = ''; + public $kind; + protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference'; + protected $locationPreferenceDataType = ''; + public $pricingPlan; + public $replicationType; + public $settingsVersion; + public $tier; - public function setActivationPolicy($activationPolicy) - { - $this->activationPolicy = $activationPolicy; - } + public function setActivationPolicy($activationPolicy) { + $this->activationPolicy = $activationPolicy; + } - public function getActivationPolicy() - { - return $this->activationPolicy; - } + public function getActivationPolicy() { + return $this->activationPolicy; + } - public function setAuthorizedGaeApplications($authorizedGaeApplications) - { - $this->authorizedGaeApplications = $authorizedGaeApplications; - } + public function setAuthorizedGaeApplications($authorizedGaeApplications) { + $this->authorizedGaeApplications = $authorizedGaeApplications; + } - public function getAuthorizedGaeApplications() - { - return $this->authorizedGaeApplications; - } + public function getAuthorizedGaeApplications() { + return $this->authorizedGaeApplications; + } - public function setBackupConfiguration($backupConfiguration) - { - $this->backupConfiguration = $backupConfiguration; - } + public function setBackupConfiguration($backupConfiguration) { + $this->backupConfiguration = $backupConfiguration; + } - public function getBackupConfiguration() - { - return $this->backupConfiguration; - } + public function getBackupConfiguration() { + return $this->backupConfiguration; + } - public function setDatabaseFlags($databaseFlags) - { - $this->databaseFlags = $databaseFlags; - } + public function setDatabaseFlags($databaseFlags) { + $this->databaseFlags = $databaseFlags; + } - public function getDatabaseFlags() - { - return $this->databaseFlags; - } + public function getDatabaseFlags() { + return $this->databaseFlags; + } - public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration) - { - $this->ipConfiguration = $ipConfiguration; - } + public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration) { + $this->ipConfiguration = $ipConfiguration; + } - public function getIpConfiguration() - { - return $this->ipConfiguration; - } + public function getIpConfiguration() { + return $this->ipConfiguration; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference) - { - $this->locationPreference = $locationPreference; - } + public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference) { + $this->locationPreference = $locationPreference; + } - public function getLocationPreference() - { - return $this->locationPreference; - } + public function getLocationPreference() { + return $this->locationPreference; + } - public function setPricingPlan($pricingPlan) - { - $this->pricingPlan = $pricingPlan; - } + public function setPricingPlan($pricingPlan) { + $this->pricingPlan = $pricingPlan; + } - public function getPricingPlan() - { - return $this->pricingPlan; - } + public function getPricingPlan() { + return $this->pricingPlan; + } - public function setReplicationType($replicationType) - { - $this->replicationType = $replicationType; - } + public function setReplicationType($replicationType) { + $this->replicationType = $replicationType; + } - public function getReplicationType() - { - return $this->replicationType; - } + public function getReplicationType() { + return $this->replicationType; + } - public function setSettingsVersion($settingsVersion) - { - $this->settingsVersion = $settingsVersion; - } + public function setSettingsVersion($settingsVersion) { + $this->settingsVersion = $settingsVersion; + } - public function getSettingsVersion() - { - return $this->settingsVersion; - } + public function getSettingsVersion() { + return $this->settingsVersion; + } - public function setTier($tier) - { - $this->tier = $tier; - } + public function setTier($tier) { + $this->tier = $tier; + } - public function getTier() - { - return $this->tier; - } + public function getTier() { + return $this->tier; + } } -class Google_Service_SQLAdmin_SslCert extends Google_Model -{ - public $cert; - public $certSerialNumber; - public $commonName; - public $createTime; - public $expirationTime; - public $instance; - public $kind; - public $sha1Fingerprint; +class Google_Service_SQLAdmin_SslCert extends Google_Model { + public $cert; + public $certSerialNumber; + public $commonName; + public $createTime; + public $expirationTime; + public $instance; + public $kind; + public $sha1Fingerprint; - public function setCert($cert) - { - $this->cert = $cert; - } + public function setCert($cert) { + $this->cert = $cert; + } - public function getCert() - { - return $this->cert; - } + public function getCert() { + return $this->cert; + } - public function setCertSerialNumber($certSerialNumber) - { - $this->certSerialNumber = $certSerialNumber; - } + public function setCertSerialNumber($certSerialNumber) { + $this->certSerialNumber = $certSerialNumber; + } - public function getCertSerialNumber() - { - return $this->certSerialNumber; - } + public function getCertSerialNumber() { + return $this->certSerialNumber; + } - public function setCommonName($commonName) - { - $this->commonName = $commonName; - } + public function setCommonName($commonName) { + $this->commonName = $commonName; + } - public function getCommonName() - { - return $this->commonName; - } + public function getCommonName() { + return $this->commonName; + } - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } + public function setCreateTime($createTime) { + $this->createTime = $createTime; + } - public function getCreateTime() - { - return $this->createTime; - } + public function getCreateTime() { + return $this->createTime; + } - public function setExpirationTime($expirationTime) - { - $this->expirationTime = $expirationTime; - } + public function setExpirationTime($expirationTime) { + $this->expirationTime = $expirationTime; + } - public function getExpirationTime() - { - return $this->expirationTime; - } + public function getExpirationTime() { + return $this->expirationTime; + } - public function setInstance($instance) - { - $this->instance = $instance; - } + public function setInstance($instance) { + $this->instance = $instance; + } - public function getInstance() - { - return $this->instance; - } + public function getInstance() { + return $this->instance; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSha1Fingerprint($sha1Fingerprint) - { - $this->sha1Fingerprint = $sha1Fingerprint; - } + public function setSha1Fingerprint($sha1Fingerprint) { + $this->sha1Fingerprint = $sha1Fingerprint; + } - public function getSha1Fingerprint() - { - return $this->sha1Fingerprint; - } + public function getSha1Fingerprint() { + return $this->sha1Fingerprint; + } } -class Google_Service_SQLAdmin_SslCertDetail extends Google_Model -{ - protected $certInfoType = 'Google_Service_SQLAdmin_SslCert'; - protected $certInfoDataType = ''; - public $certPrivateKey; +class Google_Service_SQLAdmin_SslCertDetail extends Google_Model { + protected $certInfoType = 'Google_Service_SQLAdmin_SslCert'; + protected $certInfoDataType = ''; + public $certPrivateKey; - public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo) - { - $this->certInfo = $certInfo; - } + public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo) { + $this->certInfo = $certInfo; + } - public function getCertInfo() - { - return $this->certInfo; - } + public function getCertInfo() { + return $this->certInfo; + } - public function setCertPrivateKey($certPrivateKey) - { - $this->certPrivateKey = $certPrivateKey; - } + public function setCertPrivateKey($certPrivateKey) { + $this->certPrivateKey = $certPrivateKey; + } - public function getCertPrivateKey() - { - return $this->certPrivateKey; - } + public function getCertPrivateKey() { + return $this->certPrivateKey; + } } -class Google_Service_SQLAdmin_SslCertsDeleteResponse extends Google_Model -{ - public $kind; - public $operation; +class Google_Service_SQLAdmin_SslCertsDeleteResponse extends Google_Model { + public $kind; + public $operation; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setOperation($operation) - { - $this->operation = $operation; - } + public function setOperation($operation) { + $this->operation = $operation; + } - public function getOperation() - { - return $this->operation; - } + public function getOperation() { + return $this->operation; + } } -class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model -{ - public $commonName; +class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model { + public $commonName; - public function setCommonName($commonName) - { - $this->commonName = $commonName; - } + public function setCommonName($commonName) { + $this->commonName = $commonName; + } - public function getCommonName() - { - return $this->commonName; - } + public function getCommonName() { + return $this->commonName; + } } -class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model -{ - protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail'; - protected $clientCertDataType = ''; - public $kind; - protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; - protected $serverCaCertDataType = ''; +class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model { + protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail'; + protected $clientCertDataType = ''; + public $kind; + protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; + protected $serverCaCertDataType = ''; - public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert) - { - $this->clientCert = $clientCert; - } + public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert) { + $this->clientCert = $clientCert; + } - public function getClientCert() - { - return $this->clientCert; - } + public function getClientCert() { + return $this->clientCert; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) - { - $this->serverCaCert = $serverCaCert; - } + public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) { + $this->serverCaCert = $serverCaCert; + } - public function getServerCaCert() - { - return $this->serverCaCert; - } + public function getServerCaCert() { + return $this->serverCaCert; + } } -class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_SQLAdmin_SslCert'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_SQLAdmin_SslCert'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_SQLAdmin_Tier extends Google_Collection -{ - public $diskQuota; - public $rAM; - public $kind; - public $region; - public $tier; +class Google_Service_SQLAdmin_Tier extends Google_Collection { + public $diskQuota; + public $rAM; + public $kind; + public $region; + public $tier; - public function setDiskQuota($diskQuota) - { - $this->diskQuota = $diskQuota; - } + public function setDiskQuota($diskQuota) { + $this->diskQuota = $diskQuota; + } - public function getDiskQuota() - { - return $this->diskQuota; - } + public function getDiskQuota() { + return $this->diskQuota; + } - public function setRAM($rAM) - { - $this->rAM = $rAM; - } + public function setRAM($rAM) { + $this->rAM = $rAM; + } - public function getRAM() - { - return $this->rAM; - } + public function getRAM() { + return $this->rAM; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRegion($region) - { - $this->region = $region; - } + public function setRegion($region) { + $this->region = $region; + } - public function getRegion() - { - return $this->region; - } + public function getRegion() { + return $this->region; + } - public function setTier($tier) - { - $this->tier = $tier; - } + public function setTier($tier) { + $this->tier = $tier; + } - public function getTier() - { - return $this->tier; - } + public function getTier() { + return $this->tier; + } } -class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_SQLAdmin_Tier'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_SQLAdmin_Tier'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } diff --git a/oauth/Google/Service/ShoppingContent.php b/oauth/Google/Service/ShoppingContent.php index d1c71d1..e981ed4 100644 --- a/oauth/Google/Service/ShoppingContent.php +++ b/oauth/Google/Service/ShoppingContent.php @@ -29,481 +29,479 @@ * * @author Google, Inc. */ -class Google_Service_ShoppingContent extends Google_Service -{ - /** Manage your product listings and accounts for Google Shopping. */ - const CONTENT = "https://www.googleapis.com/auth/content"; +class Google_Service_ShoppingContent extends Google_Service { + /** Manage your product listings and accounts for Google Shopping. */ + const CONTENT = "https://www.googleapis.com/auth/content"; - public $accounts; - public $accountstatuses; - public $datafeeds; - public $datafeedstatuses; - public $inventory; - public $products; - public $productstatuses; - + public $accounts; + public $accountstatuses; + public $datafeeds; + public $datafeedstatuses; + public $inventory; + public $products; + public $productstatuses; - /** - * Constructs the internal representation of the ShoppingContent service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'content/v2/'; - $this->version = 'v2'; - $this->serviceName = 'content'; - $this->accounts = new Google_Service_ShoppingContent_Accounts_Resource( - $this, - $this->serviceName, - 'accounts', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'accounts/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{merchantId}/accounts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/accounts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->accountstatuses = new Google_Service_ShoppingContent_Accountstatuses_Resource( - $this, - $this->serviceName, - 'accountstatuses', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'accountstatuses/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => '{merchantId}/accountstatuses/{accountId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/accountstatuses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->datafeeds = new Google_Service_ShoppingContent_Datafeeds_Resource( - $this, - $this->serviceName, - 'datafeeds', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'datafeeds/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{merchantId}/datafeeds', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/datafeeds', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->datafeedstatuses = new Google_Service_ShoppingContent_Datafeedstatuses_Resource( - $this, - $this->serviceName, - 'datafeedstatuses', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'datafeedstatuses/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => '{merchantId}/datafeedstatuses/{datafeedId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/datafeedstatuses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->inventory = new Google_Service_ShoppingContent_Inventory_Resource( - $this, - $this->serviceName, - 'inventory', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'inventory/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'set' => array( - 'path' => '{merchantId}/inventory/{storeCode}/products/{productId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'storeCode' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->products = new Google_Service_ShoppingContent_Products_Resource( - $this, - $this->serviceName, - 'products', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'products/batch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'delete' => array( - 'path' => '{merchantId}/products/{productId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'get' => array( - 'path' => '{merchantId}/products/{productId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{merchantId}/products', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => '{merchantId}/products', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->productstatuses = new Google_Service_ShoppingContent_Productstatuses_Resource( - $this, - $this->serviceName, - 'productstatuses', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'productstatuses/batch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => '{merchantId}/productstatuses/{productId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{merchantId}/productstatuses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the ShoppingContent service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'content/v2/'; + $this->version = 'v2'; + $this->serviceName = 'content'; + + $this->accounts = new Google_Service_ShoppingContent_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'accounts/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'delete' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{merchantId}/accounts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{merchantId}/accounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{merchantId}/accounts/{accountId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accountstatuses = new Google_Service_ShoppingContent_Accountstatuses_Resource( + $this, + $this->serviceName, + 'accountstatuses', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'accountstatuses/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'get' => array( + 'path' => '{merchantId}/accountstatuses/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{merchantId}/accountstatuses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->datafeeds = new Google_Service_ShoppingContent_Datafeeds_Resource( + $this, + $this->serviceName, + 'datafeeds', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'datafeeds/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'delete' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{merchantId}/datafeeds', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{merchantId}/datafeeds', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{merchantId}/datafeeds/{datafeedId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->datafeedstatuses = new Google_Service_ShoppingContent_Datafeedstatuses_Resource( + $this, + $this->serviceName, + 'datafeedstatuses', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'datafeedstatuses/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'get' => array( + 'path' => '{merchantId}/datafeedstatuses/{datafeedId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'datafeedId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{merchantId}/datafeedstatuses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->inventory = new Google_Service_ShoppingContent_Inventory_Resource( + $this, + $this->serviceName, + 'inventory', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'inventory/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'set' => array( + 'path' => '{merchantId}/inventory/{storeCode}/products/{productId}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'storeCode' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->products = new Google_Service_ShoppingContent_Products_Resource( + $this, + $this->serviceName, + 'products', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'products/batch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'delete' => array( + 'path' => '{merchantId}/products/{productId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'get' => array( + 'path' => '{merchantId}/products/{productId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{merchantId}/products', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => '{merchantId}/products', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->productstatuses = new Google_Service_ShoppingContent_Productstatuses_Resource( + $this, + $this->serviceName, + 'productstatuses', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'productstatuses/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'get' => array( + 'path' => '{merchantId}/productstatuses/{productId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => '{merchantId}/productstatuses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } } @@ -515,124 +513,122 @@ class Google_Service_ShoppingContent extends Google_Service * $accounts = $contentService->accounts; * */ -class Google_Service_ShoppingContent_Accounts_Resource extends Google_Service_Resource -{ +class Google_Service_ShoppingContent_Accounts_Resource extends Google_Service_Resource { - /** - * Retrieves, inserts, updates, and deletes multiple Merchant Center - * (sub-)accounts in a single request. (accounts.custombatch) - * - * @param Google_AccountsCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_AccountsCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_AccountsCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountsCustomBatchResponse"); - } - /** - * Deletes a Merchant Center sub-account. (accounts.delete) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. - * @param array $optParams Optional parameters. - */ - public function delete($merchantId, $accountId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a Merchant Center account. (accounts.get) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Account - */ - public function get($merchantId, $accountId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_Account"); - } - /** - * Creates a Merchant Center sub-account. (accounts.insert) - * - * @param string $merchantId - * The ID of the managing account. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Account - */ - public function insert($merchantId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_ShoppingContent_Account"); - } - /** - * Lists the sub-accounts in your Merchant Center account. - * (accounts.listAccounts) - * - * @param string $merchantId - * The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of accounts to return in the response, used for paging. - * @return Google_Service_ShoppingContent_AccountsListResponse - */ - public function listAccounts($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountsListResponse"); - } - /** - * Updates a Merchant Center account. This method supports patch semantics. - * (accounts.patch) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Account - */ - public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_Account"); - } - /** - * Updates a Merchant Center account. (accounts.update) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. - * @param Google_Account $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Account - */ - public function update($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_ShoppingContent_Account"); - } + /** + * Retrieves, inserts, updates, and deletes multiple Merchant Center + * (sub-)accounts in a single request. (accounts.custombatch) + * + * @param Google_AccountsCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountsCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_AccountsCustomBatchRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountsCustomBatchResponse"); + } + + /** + * Deletes a Merchant Center sub-account. (accounts.delete) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param array $optParams Optional parameters. + */ + public function delete($merchantId, $accountId, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a Merchant Center account. (accounts.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Account + */ + public function get($merchantId, $accountId, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_Account"); + } + + /** + * Creates a Merchant Center sub-account. (accounts.insert) + * + * @param string $merchantId + * The ID of the managing account. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Account + */ + public function insert($merchantId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_ShoppingContent_Account"); + } + + /** + * Lists the sub-accounts in your Merchant Center account. + * (accounts.listAccounts) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of accounts to return in the response, used for paging. + * @return Google_Service_ShoppingContent_AccountsListResponse + */ + public function listAccounts($merchantId, $optParams = array()) { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountsListResponse"); + } + + /** + * Updates a Merchant Center account. This method supports patch semantics. + * (accounts.patch) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Account + */ + public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ShoppingContent_Account"); + } + + /** + * Updates a Merchant Center account. (accounts.update) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Account + */ + public function update($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_ShoppingContent_Account"); + } } /** @@ -643,58 +639,56 @@ class Google_Service_ShoppingContent_Accounts_Resource extends Google_Service_Re * $accountstatuses = $contentService->accountstatuses; * */ -class Google_Service_ShoppingContent_Accountstatuses_Resource extends Google_Service_Resource -{ +class Google_Service_ShoppingContent_Accountstatuses_Resource extends Google_Service_Resource { - /** - * (accountstatuses.custombatch) - * - * @param Google_AccountstatusesCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse"); - } - /** - * Retrieves the status of a Merchant Center account. (accountstatuses.get) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $accountId - * The ID of the account. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_AccountStatus - */ - public function get($merchantId, $accountId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountStatus"); - } - /** - * Lists the statuses of the sub-accounts in your Merchant Center account. - * (accountstatuses.listAccountstatuses) - * - * @param string $merchantId - * The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of account statuses to return in the response, used for paging. - * @return Google_Service_ShoppingContent_AccountstatusesListResponse - */ - public function listAccountstatuses($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountstatusesListResponse"); - } + /** + * (accountstatuses.custombatch) + * + * @param Google_AccountstatusesCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse"); + } + + /** + * Retrieves the status of a Merchant Center account. (accountstatuses.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $accountId + * The ID of the account. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountStatus + */ + public function get($merchantId, $accountId, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountStatus"); + } + + /** + * Lists the statuses of the sub-accounts in your Merchant Center account. + * (accountstatuses.listAccountstatuses) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of account statuses to return in the response, used for paging. + * @return Google_Service_ShoppingContent_AccountstatusesListResponse + */ + public function listAccountstatuses($merchantId, $optParams = array()) { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountstatusesListResponse"); + } } /** @@ -705,118 +699,116 @@ class Google_Service_ShoppingContent_Accountstatuses_Resource extends Google_Ser * $datafeeds = $contentService->datafeeds; * */ -class Google_Service_ShoppingContent_Datafeeds_Resource extends Google_Service_Resource -{ +class Google_Service_ShoppingContent_Datafeeds_Resource extends Google_Service_Resource { - /** - * (datafeeds.custombatch) - * - * @param Google_DatafeedsCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_DatafeedsCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedsCustomBatchResponse"); - } - /** - * Deletes a datafeed from your Merchant Center account. (datafeeds.delete) - * - * @param string $merchantId - * - * @param string $datafeedId - * - * @param array $optParams Optional parameters. - */ - public function delete($merchantId, $datafeedId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a datafeed from your Merchant Center account. (datafeeds.get) - * - * @param string $merchantId - * - * @param string $datafeedId - * - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Datafeed - */ - public function get($merchantId, $datafeedId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_Datafeed"); - } - /** - * Registers a datafeed with your Merchant Center account. (datafeeds.insert) - * - * @param string $merchantId - * - * @param Google_Datafeed $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Datafeed - */ - public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_ShoppingContent_Datafeed"); - } - /** - * Lists the datafeeds in your Merchant Center account. - * (datafeeds.listDatafeeds) - * - * @param string $merchantId - * - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_DatafeedsListResponse - */ - public function listDatafeeds($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedsListResponse"); - } - /** - * Updates a datafeed of your Merchant Center account. This method supports - * patch semantics. (datafeeds.patch) - * - * @param string $merchantId - * - * @param string $datafeedId - * - * @param Google_Datafeed $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Datafeed - */ - public function patch($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_Datafeed"); - } - /** - * Updates a datafeed of your Merchant Center account. (datafeeds.update) - * - * @param string $merchantId - * - * @param string $datafeedId - * - * @param Google_Datafeed $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Datafeed - */ - public function update($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_ShoppingContent_Datafeed"); - } + /** + * (datafeeds.custombatch) + * + * @param Google_DatafeedsCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedsCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedsCustomBatchResponse"); + } + + /** + * Deletes a datafeed from your Merchant Center account. (datafeeds.delete) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param array $optParams Optional parameters. + */ + public function delete($merchantId, $datafeedId, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a datafeed from your Merchant Center account. (datafeeds.get) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Datafeed + */ + public function get($merchantId, $datafeedId, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_Datafeed"); + } + + /** + * Registers a datafeed with your Merchant Center account. (datafeeds.insert) + * + * @param string $merchantId + * + * @param Google_Datafeed $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Datafeed + */ + public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_ShoppingContent_Datafeed"); + } + + /** + * Lists the datafeeds in your Merchant Center account. + * (datafeeds.listDatafeeds) + * + * @param string $merchantId + * + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedsListResponse + */ + public function listDatafeeds($merchantId, $optParams = array()) { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedsListResponse"); + } + + /** + * Updates a datafeed of your Merchant Center account. This method supports + * patch semantics. (datafeeds.patch) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param Google_Datafeed $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Datafeed + */ + public function patch($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ShoppingContent_Datafeed"); + } + + /** + * Updates a datafeed of your Merchant Center account. (datafeeds.update) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param Google_Datafeed $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Datafeed + */ + public function update($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_ShoppingContent_Datafeed"); + } } /** @@ -827,54 +819,52 @@ class Google_Service_ShoppingContent_Datafeeds_Resource extends Google_Service_R * $datafeedstatuses = $contentService->datafeedstatuses; * */ -class Google_Service_ShoppingContent_Datafeedstatuses_Resource extends Google_Service_Resource -{ +class Google_Service_ShoppingContent_Datafeedstatuses_Resource extends Google_Service_Resource { - /** - * (datafeedstatuses.custombatch) - * - * @param Google_DatafeedstatusesCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse"); - } - /** - * Retrieves the status of a datafeed from your Merchant Center account. - * (datafeedstatuses.get) - * - * @param string $merchantId - * - * @param string $datafeedId - * - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_DatafeedStatus - */ - public function get($merchantId, $datafeedId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_DatafeedStatus"); - } - /** - * Lists the statuses of the datafeeds in your Merchant Center account. - * (datafeedstatuses.listDatafeedstatuses) - * - * @param string $merchantId - * - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_DatafeedstatusesListResponse - */ - public function listDatafeedstatuses($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedstatusesListResponse"); - } + /** + * (datafeedstatuses.custombatch) + * + * @param Google_DatafeedstatusesCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse"); + } + + /** + * Retrieves the status of a datafeed from your Merchant Center account. + * (datafeedstatuses.get) + * + * @param string $merchantId + * + * @param string $datafeedId + * + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedStatus + */ + public function get($merchantId, $datafeedId, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_DatafeedStatus"); + } + + /** + * Lists the statuses of the datafeeds in your Merchant Center account. + * (datafeedstatuses.listDatafeedstatuses) + * + * @param string $merchantId + * + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_DatafeedstatusesListResponse + */ + public function listDatafeedstatuses($merchantId, $optParams = array()) { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedstatusesListResponse"); + } } /** @@ -885,44 +875,42 @@ class Google_Service_ShoppingContent_Datafeedstatuses_Resource extends Google_Se * $inventory = $contentService->inventory; * */ -class Google_Service_ShoppingContent_Inventory_Resource extends Google_Service_Resource -{ +class Google_Service_ShoppingContent_Inventory_Resource extends Google_Service_Resource { - /** - * Updates price and availability for multiple products or stores in a single - * request. (inventory.custombatch) - * - * @param Google_InventoryCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_InventoryCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_InventoryCustomBatchResponse"); - } - /** - * Updates price and availability of a product in your Merchant Center account. - * (inventory.set) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $storeCode - * The code of the store for which to update price and availability. Use online to update price and - * availability of an online product. - * @param string $productId - * The ID of the product for which to update price and availability. - * @param Google_InventorySetRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_InventorySetResponse - */ - public function set($merchantId, $storeCode, $productId, Google_Service_ShoppingContent_InventorySetRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'storeCode' => $storeCode, 'productId' => $productId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('set', array($params), "Google_Service_ShoppingContent_InventorySetResponse"); - } + /** + * Updates price and availability for multiple products or stores in a single + * request. (inventory.custombatch) + * + * @param Google_InventoryCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_InventoryCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_InventoryCustomBatchResponse"); + } + + /** + * Updates price and availability of a product in your Merchant Center account. + * (inventory.set) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $storeCode + * The code of the store for which to update price and availability. Use online to update price and + * availability of an online product. + * @param string $productId + * The ID of the product for which to update price and availability. + * @param Google_InventorySetRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_InventorySetResponse + */ + public function set($merchantId, $storeCode, $productId, Google_Service_ShoppingContent_InventorySetRequest $postBody, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'storeCode' => $storeCode, 'productId' => $productId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('set', array($params), "Google_Service_ShoppingContent_InventorySetResponse"); + } } /** @@ -933,97 +921,95 @@ class Google_Service_ShoppingContent_Inventory_Resource extends Google_Service_R * $products = $contentService->products; * */ -class Google_Service_ShoppingContent_Products_Resource extends Google_Service_Resource -{ +class Google_Service_ShoppingContent_Products_Resource extends Google_Service_Resource { - /** - * Retrieves, inserts, and deletes multiple products in a single request. - * (products.custombatch) - * - * @param Google_ProductsCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun - * Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_ProductsCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_ProductsCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductsCustomBatchResponse"); - } - /** - * Deletes a product from your Merchant Center account. (products.delete) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $productId - * The ID of the product. - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun - * Flag to run the request in dry-run mode. - */ - public function delete($merchantId, $productId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves a product from your Merchant Center account. (products.get) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $productId - * The ID of the product. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_Product - */ - public function get($merchantId, $productId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_Product"); - } - /** - * Uploads a product to your Merchant Center account. (products.insert) - * - * @param string $merchantId - * The ID of the managing account. - * @param Google_Product $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun - * Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_Product - */ - public function insert($merchantId, Google_Service_ShoppingContent_Product $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_ShoppingContent_Product"); - } - /** - * Lists the products in your Merchant Center account. (products.listProducts) - * - * @param string $merchantId - * The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of products to return in the response, used for paging. - * @return Google_Service_ShoppingContent_ProductsListResponse - */ - public function listProducts($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_ProductsListResponse"); - } + /** + * Retrieves, inserts, and deletes multiple products in a single request. + * (products.custombatch) + * + * @param Google_ProductsCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun + * Flag to run the request in dry-run mode. + * @return Google_Service_ShoppingContent_ProductsCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_ProductsCustomBatchRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductsCustomBatchResponse"); + } + + /** + * Deletes a product from your Merchant Center account. (products.delete) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $productId + * The ID of the product. + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun + * Flag to run the request in dry-run mode. + */ + public function delete($merchantId, $productId, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves a product from your Merchant Center account. (products.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $productId + * The ID of the product. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_Product + */ + public function get($merchantId, $productId, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_Product"); + } + + /** + * Uploads a product to your Merchant Center account. (products.insert) + * + * @param string $merchantId + * The ID of the managing account. + * @param Google_Product $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun + * Flag to run the request in dry-run mode. + * @return Google_Service_ShoppingContent_Product + */ + public function insert($merchantId, Google_Service_ShoppingContent_Product $postBody, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_ShoppingContent_Product"); + } + + /** + * Lists the products in your Merchant Center account. (products.listProducts) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of products to return in the response, used for paging. + * @return Google_Service_ShoppingContent_ProductsListResponse + */ + public function listProducts($merchantId, $optParams = array()) { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_ProductsListResponse"); + } } /** @@ -1034,3409 +1020,2791 @@ class Google_Service_ShoppingContent_Products_Resource extends Google_Service_Re * $productstatuses = $contentService->productstatuses; * */ -class Google_Service_ShoppingContent_Productstatuses_Resource extends Google_Service_Resource -{ - - /** - * Gets the statuses of multiple products in a single request. - * (productstatuses.custombatch) - * - * @param Google_ProductstatusesCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse"); - } - /** - * Gets the status of a product from your Merchant Center account. - * (productstatuses.get) - * - * @param string $merchantId - * The ID of the managing account. - * @param string $productId - * The ID of the product. - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_ProductStatus - */ - public function get($merchantId, $productId, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'productId' => $productId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ShoppingContent_ProductStatus"); - } - /** - * Lists the statuses of the products in your Merchant Center account. - * (productstatuses.listProductstatuses) - * - * @param string $merchantId - * The ID of the managing account. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * The token returned by the previous request. - * @opt_param string maxResults - * The maximum number of product statuses to return in the response, used for paging. - * @return Google_Service_ShoppingContent_ProductstatusesListResponse - */ - public function listProductstatuses($merchantId, $optParams = array()) - { - $params = array('merchantId' => $merchantId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_ShoppingContent_ProductstatusesListResponse"); - } -} - - - - -class Google_Service_ShoppingContent_Account extends Google_Collection -{ - public $adultContent; - protected $adwordsLinksType = 'Google_Service_ShoppingContent_AccountAdwordsLink'; - protected $adwordsLinksDataType = 'array'; - public $id; - public $kind; - public $name; - public $reviewsUrl; - public $sellerId; - protected $usersType = 'Google_Service_ShoppingContent_AccountUser'; - protected $usersDataType = 'array'; - public $websiteUrl; - - public function setAdultContent($adultContent) - { - $this->adultContent = $adultContent; - } - - public function getAdultContent() - { - return $this->adultContent; - } - - public function setAdwordsLinks($adwordsLinks) - { - $this->adwordsLinks = $adwordsLinks; - } - - public function getAdwordsLinks() - { - return $this->adwordsLinks; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setReviewsUrl($reviewsUrl) - { - $this->reviewsUrl = $reviewsUrl; - } - - public function getReviewsUrl() - { - return $this->reviewsUrl; - } - - public function setSellerId($sellerId) - { - $this->sellerId = $sellerId; - } - - public function getSellerId() - { - return $this->sellerId; - } - - public function setUsers($users) - { - $this->users = $users; - } - - public function getUsers() - { - return $this->users; - } - - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - - public function getWebsiteUrl() - { - return $this->websiteUrl; - } -} - -class Google_Service_ShoppingContent_AccountAdwordsLink extends Google_Model -{ - public $adwordsId; - public $status; - - public function setAdwordsId($adwordsId) - { - $this->adwordsId = $adwordsId; - } - - public function getAdwordsId() - { - return $this->adwordsId; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_ShoppingContent_AccountStatus extends Google_Collection -{ - public $accountId; - protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue'; - protected $dataQualityIssuesDataType = 'array'; - public $kind; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setDataQualityIssues($dataQualityIssues) - { - $this->dataQualityIssues = $dataQualityIssues; - } - - public function getDataQualityIssues() - { - return $this->dataQualityIssues; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection -{ - public $country; - public $displayedValue; - protected $exampleItemsType = 'Google_Service_ShoppingContent_AccountStatusExampleItem'; - protected $exampleItemsDataType = 'array'; - public $id; - public $lastChecked; - public $numItems; - public $severity; - public $submittedValue; - - public function setCountry($country) - { - $this->country = $country; - } - - public function getCountry() - { - return $this->country; - } - - public function setDisplayedValue($displayedValue) - { - $this->displayedValue = $displayedValue; - } - - public function getDisplayedValue() - { - return $this->displayedValue; - } - - public function setExampleItems($exampleItems) - { - $this->exampleItems = $exampleItems; - } - - public function getExampleItems() - { - return $this->exampleItems; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setLastChecked($lastChecked) - { - $this->lastChecked = $lastChecked; - } - - public function getLastChecked() - { - return $this->lastChecked; - } - - public function setNumItems($numItems) - { - $this->numItems = $numItems; - } - - public function getNumItems() - { - return $this->numItems; - } - - public function setSeverity($severity) - { - $this->severity = $severity; - } - - public function getSeverity() - { - return $this->severity; - } - - public function setSubmittedValue($submittedValue) - { - $this->submittedValue = $submittedValue; - } - - public function getSubmittedValue() - { - return $this->submittedValue; - } -} - -class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model -{ - public $itemId; - public $link; - public $submittedValue; - public $title; - public $valueOnLandingPage; - - public function setItemId($itemId) - { - $this->itemId = $itemId; - } - - public function getItemId() - { - return $this->itemId; - } - - public function setLink($link) - { - $this->link = $link; - } - - public function getLink() - { - return $this->link; - } - - public function setSubmittedValue($submittedValue) - { - $this->submittedValue = $submittedValue; - } - - public function getSubmittedValue() - { - return $this->submittedValue; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setValueOnLandingPage($valueOnLandingPage) - { - $this->valueOnLandingPage = $valueOnLandingPage; - } - - public function getValueOnLandingPage() - { - return $this->valueOnLandingPage; - } -} - -class Google_Service_ShoppingContent_AccountUser extends Google_Model -{ - public $admin; - public $emailAddress; - - public function setAdmin($admin) - { - $this->admin = $admin; - } - - public function getAdmin() - { - return $this->admin; - } - - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - - public function getEmailAddress() - { - return $this->emailAddress; - } -} - -class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model -{ - protected $accountType = 'Google_Service_ShoppingContent_Account'; - protected $accountDataType = ''; - public $accountId; - public $batchId; - public $merchantId; - public $method; - - public function setAccount(Google_Service_ShoppingContent_Account $account) - { - $this->account = $account; - } - - public function getAccount() - { - return $this->account; - } - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model -{ - protected $accountType = 'Google_Service_ShoppingContent_Account'; - protected $accountDataType = ''; - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - public $kind; - - public function setAccount(Google_Service_ShoppingContent_Account $account) - { - $this->account = $account; - } - - public function getAccount() - { - return $this->account; - } - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_Account'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model -{ - public $accountId; - public $batchId; - public $merchantId; - public $method; - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - - public function getAccountId() - { - return $this->accountId; - } - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model -{ - protected $accountStatusType = 'Google_Service_ShoppingContent_AccountStatus'; - protected $accountStatusDataType = ''; - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - - public function setAccountStatus(Google_Service_ShoppingContent_AccountStatus $accountStatus) - { - $this->accountStatus = $accountStatus; - } - - public function getAccountStatus() - { - return $this->accountStatus; - } - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_Datafeed extends Google_Collection -{ - public $attributeLanguage; - public $contentLanguage; - public $contentType; - protected $fetchScheduleType = 'Google_Service_ShoppingContent_DatafeedFetchSchedule'; - protected $fetchScheduleDataType = ''; - public $fileName; - protected $formatType = 'Google_Service_ShoppingContent_DatafeedFormat'; - protected $formatDataType = ''; - public $id; - public $intendedDestinations; - public $kind; - public $name; - public $targetCountry; - - public function setAttributeLanguage($attributeLanguage) - { - $this->attributeLanguage = $attributeLanguage; - } - - public function getAttributeLanguage() - { - return $this->attributeLanguage; - } - - public function setContentLanguage($contentLanguage) - { - $this->contentLanguage = $contentLanguage; - } - - public function getContentLanguage() - { - return $this->contentLanguage; - } - - public function setContentType($contentType) - { - $this->contentType = $contentType; - } - - public function getContentType() - { - return $this->contentType; - } - - public function setFetchSchedule(Google_Service_ShoppingContent_DatafeedFetchSchedule $fetchSchedule) - { - $this->fetchSchedule = $fetchSchedule; - } - - public function getFetchSchedule() - { - return $this->fetchSchedule; - } - - public function setFileName($fileName) - { - $this->fileName = $fileName; - } - - public function getFileName() - { - return $this->fileName; - } - - public function setFormat(Google_Service_ShoppingContent_DatafeedFormat $format) - { - $this->format = $format; - } - - public function getFormat() - { - return $this->format; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setIntendedDestinations($intendedDestinations) - { - $this->intendedDestinations = $intendedDestinations; - } - - public function getIntendedDestinations() - { - return $this->intendedDestinations; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setTargetCountry($targetCountry) - { - $this->targetCountry = $targetCountry; - } - - public function getTargetCountry() - { - return $this->targetCountry; - } -} - -class Google_Service_ShoppingContent_DatafeedFetchSchedule extends Google_Model -{ - public $dayOfMonth; - public $fetchUrl; - public $hour; - public $password; - public $timeZone; - public $username; - public $weekday; - - public function setDayOfMonth($dayOfMonth) - { - $this->dayOfMonth = $dayOfMonth; - } - - public function getDayOfMonth() - { - return $this->dayOfMonth; - } - - public function setFetchUrl($fetchUrl) - { - $this->fetchUrl = $fetchUrl; - } - - public function getFetchUrl() - { - return $this->fetchUrl; - } - - public function setHour($hour) - { - $this->hour = $hour; - } - - public function getHour() - { - return $this->hour; - } - - public function setPassword($password) - { - $this->password = $password; - } - - public function getPassword() - { - return $this->password; - } - - public function setTimeZone($timeZone) - { - $this->timeZone = $timeZone; - } - - public function getTimeZone() - { - return $this->timeZone; - } - - public function setUsername($username) - { - $this->username = $username; - } - - public function getUsername() - { - return $this->username; - } - - public function setWeekday($weekday) - { - $this->weekday = $weekday; - } - - public function getWeekday() - { - return $this->weekday; - } -} - -class Google_Service_ShoppingContent_DatafeedFormat extends Google_Model -{ - public $columnDelimiter; - public $fileEncoding; - public $quotingMode; - - public function setColumnDelimiter($columnDelimiter) - { - $this->columnDelimiter = $columnDelimiter; - } - - public function getColumnDelimiter() - { - return $this->columnDelimiter; - } - - public function setFileEncoding($fileEncoding) - { - $this->fileEncoding = $fileEncoding; - } - - public function getFileEncoding() - { - return $this->fileEncoding; - } - - public function setQuotingMode($quotingMode) - { - $this->quotingMode = $quotingMode; - } - - public function getQuotingMode() - { - return $this->quotingMode; - } -} - -class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection -{ - public $datafeedId; - protected $errorsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; - protected $errorsDataType = 'array'; - public $itemsTotal; - public $itemsValid; - public $kind; - public $processingStatus; - protected $warningsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; - protected $warningsDataType = 'array'; - - public function setDatafeedId($datafeedId) - { - $this->datafeedId = $datafeedId; - } - - public function getDatafeedId() - { - return $this->datafeedId; - } - - public function setErrors($errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setItemsTotal($itemsTotal) - { - $this->itemsTotal = $itemsTotal; - } - - public function getItemsTotal() - { - return $this->itemsTotal; - } - - public function setItemsValid($itemsValid) - { - $this->itemsValid = $itemsValid; - } - - public function getItemsValid() - { - return $this->itemsValid; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - - public function getProcessingStatus() - { - return $this->processingStatus; - } - - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_ShoppingContent_DatafeedStatusError extends Google_Collection -{ - public $code; - public $count; - protected $examplesType = 'Google_Service_ShoppingContent_DatafeedStatusExample'; - protected $examplesDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setCount($count) - { - $this->count = $count; - } - - public function getCount() - { - return $this->count; - } - - public function setExamples($examples) - { - $this->examples = $examples; - } - - public function getExamples() - { - return $this->examples; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_ShoppingContent_DatafeedStatusExample extends Google_Model -{ - public $itemId; - public $lineNumber; - public $value; - - public function setItemId($itemId) - { - $this->itemId = $itemId; - } - - public function getItemId() - { - return $this->itemId; - } - - public function setLineNumber($lineNumber) - { - $this->lineNumber = $lineNumber; - } - - public function getLineNumber() - { - return $this->lineNumber; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_DatafeedsCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry extends Google_Model -{ - public $batchId; - protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed'; - protected $datafeedDataType = ''; - public $datafeedId; - public $merchantId; - public $method; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) - { - $this->datafeed = $datafeed; - } - - public function getDatafeed() - { - return $this->datafeed; - } - - public function setDatafeedId($datafeedId) - { - $this->datafeedId = $datafeedId; - } - - public function getDatafeedId() - { - return $this->datafeedId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_ShoppingContent_DatafeedsCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed'; - protected $datafeedDataType = ''; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) - { - $this->datafeed = $datafeed; - } - - public function getDatafeed() - { - return $this->datafeed; - } - - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collection -{ - public $kind; - protected $resourcesType = 'Google_Service_ShoppingContent_Datafeed'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry extends Google_Model -{ - public $batchId; - public $datafeedId; - public $merchantId; - public $method; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeedId($datafeedId) - { - $this->datafeedId = $datafeedId; - } - - public function getDatafeedId() - { - return $this->datafeedId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $datafeedStatusType = 'Google_Service_ShoppingContent_DatafeedStatus'; - protected $datafeedStatusDataType = ''; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setDatafeedStatus(Google_Service_ShoppingContent_DatafeedStatus $datafeedStatus) - { - $this->datafeedStatus = $datafeedStatus; - } - - public function getDatafeedStatus() - { - return $this->datafeedStatus; - } - - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } -} - -class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google_Collection -{ - public $kind; - protected $resourcesType = 'Google_Service_ShoppingContent_DatafeedStatus'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_Error extends Google_Model -{ - public $domain; - public $message; - public $reason; - - public function setDomain($domain) - { - $this->domain = $domain; - } - - public function getDomain() - { - return $this->domain; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } - - public function setReason($reason) - { - $this->reason = $reason; - } - - public function getReason() - { - return $this->reason; - } -} - -class Google_Service_ShoppingContent_Errors extends Google_Collection -{ - public $code; - protected $errorsType = 'Google_Service_ShoppingContent_Error'; - protected $errorsDataType = 'array'; - public $message; - - public function setCode($code) - { - $this->code = $code; - } - - public function getCode() - { - return $this->code; - } - - public function setErrors($errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function getMessage() - { - return $this->message; - } -} - -class Google_Service_ShoppingContent_Inventory extends Google_Model -{ - public $availability; - public $kind; - protected $priceType = 'Google_Service_ShoppingContent_Price'; - protected $priceDataType = ''; - public $quantity; - protected $salePriceType = 'Google_Service_ShoppingContent_Price'; - protected $salePriceDataType = ''; - public $salePriceEffectiveDate; - - public function setAvailability($availability) - { - $this->availability = $availability; - } - - public function getAvailability() - { - return $this->availability; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - - public function getPrice() - { - return $this->price; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function getQuantity() - { - return $this->quantity; - } - - public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) - { - $this->salePrice = $salePrice; - } - - public function getSalePrice() - { - return $this->salePrice; - } - - public function setSalePriceEffectiveDate($salePriceEffectiveDate) - { - $this->salePriceEffectiveDate = $salePriceEffectiveDate; - } - - public function getSalePriceEffectiveDate() - { - return $this->salePriceEffectiveDate; - } -} - -class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Google_Model -{ - public $batchId; - protected $inventoryType = 'Google_Service_ShoppingContent_Inventory'; - protected $inventoryDataType = ''; - public $merchantId; - public $productId; - public $storeCode; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setInventory(Google_Service_ShoppingContent_Inventory $inventory) - { - $this->inventory = $inventory; - } - - public function getInventory() - { - return $this->inventory; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setProductId($productId) - { - $this->productId = $productId; - } - - public function getProductId() - { - return $this->productId; - } - - public function setStoreCode($storeCode) - { - $this->storeCode = $storeCode; - } - - public function getStoreCode() - { - return $this->storeCode; - } -} - -class Google_Service_ShoppingContent_InventoryCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - public $kind; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_InventorySetRequest extends Google_Model -{ - public $availability; - protected $priceType = 'Google_Service_ShoppingContent_Price'; - protected $priceDataType = ''; - public $quantity; - protected $salePriceType = 'Google_Service_ShoppingContent_Price'; - protected $salePriceDataType = ''; - public $salePriceEffectiveDate; - - public function setAvailability($availability) - { - $this->availability = $availability; - } - - public function getAvailability() - { - return $this->availability; - } - - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - - public function getPrice() - { - return $this->price; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function getQuantity() - { - return $this->quantity; - } - - public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) - { - $this->salePrice = $salePrice; - } - - public function getSalePrice() - { - return $this->salePrice; - } - - public function setSalePriceEffectiveDate($salePriceEffectiveDate) - { - $this->salePriceEffectiveDate = $salePriceEffectiveDate; - } - - public function getSalePriceEffectiveDate() - { - return $this->salePriceEffectiveDate; - } -} - -class Google_Service_ShoppingContent_InventorySetResponse extends Google_Model -{ - public $kind; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_LoyaltyPoints extends Google_Model -{ - public $name; - public $pointsValue; - public $ratio; - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setPointsValue($pointsValue) - { - $this->pointsValue = $pointsValue; - } - - public function getPointsValue() - { - return $this->pointsValue; - } - - public function setRatio($ratio) - { - $this->ratio = $ratio; - } - - public function getRatio() - { - return $this->ratio; - } -} - -class Google_Service_ShoppingContent_Price extends Google_Model -{ - public $currency; - public $value; - - public function setCurrency($currency) - { - $this->currency = $currency; - } - - public function getCurrency() - { - return $this->currency; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_Product extends Google_Collection -{ - public $additionalImageLinks; - public $adult; - public $adwordsGrouping; - public $adwordsLabels; - public $adwordsRedirect; - public $ageGroup; - public $availability; - public $availabilityDate; - public $brand; - public $channel; - public $color; - public $condition; - public $contentLanguage; - protected $customAttributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; - protected $customAttributesDataType = 'array'; - protected $customGroupsType = 'Google_Service_ShoppingContent_ProductCustomGroup'; - protected $customGroupsDataType = 'array'; - public $customLabel0; - public $customLabel1; - public $customLabel2; - public $customLabel3; - public $customLabel4; - public $description; - protected $destinationsType = 'Google_Service_ShoppingContent_ProductDestination'; - protected $destinationsDataType = 'array'; - public $energyEfficiencyClass; - public $expirationDate; - public $gender; - public $googleProductCategory; - public $gtin; - public $id; - public $identifierExists; - public $imageLink; - protected $installmentType = 'Google_Service_ShoppingContent_ProductInstallment'; - protected $installmentDataType = ''; - public $isBundle; - public $itemGroupId; - public $kind; - public $link; - protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints'; - protected $loyaltyPointsDataType = ''; - public $material; - public $merchantMultipackQuantity; - public $mobileLink; - public $mpn; - public $offerId; - public $onlineOnly; - public $pattern; - protected $priceType = 'Google_Service_ShoppingContent_Price'; - protected $priceDataType = ''; - public $productType; - protected $salePriceType = 'Google_Service_ShoppingContent_Price'; - protected $salePriceDataType = ''; - public $salePriceEffectiveDate; - protected $shippingType = 'Google_Service_ShoppingContent_ProductShipping'; - protected $shippingDataType = 'array'; - protected $shippingWeightType = 'Google_Service_ShoppingContent_ProductShippingWeight'; - protected $shippingWeightDataType = ''; - public $sizeSystem; - public $sizeType; - public $sizes; - public $targetCountry; - protected $taxesType = 'Google_Service_ShoppingContent_ProductTax'; - protected $taxesDataType = 'array'; - public $title; - public $unitPricingBaseMeasure; - public $unitPricingMeasure; - public $validatedDestinations; - protected $warningsType = 'Google_Service_ShoppingContent_Error'; - protected $warningsDataType = 'array'; - - public function setAdditionalImageLinks($additionalImageLinks) - { - $this->additionalImageLinks = $additionalImageLinks; - } - - public function getAdditionalImageLinks() - { - return $this->additionalImageLinks; - } - - public function setAdult($adult) - { - $this->adult = $adult; - } - - public function getAdult() - { - return $this->adult; - } - - public function setAdwordsGrouping($adwordsGrouping) - { - $this->adwordsGrouping = $adwordsGrouping; - } - - public function getAdwordsGrouping() - { - return $this->adwordsGrouping; - } - - public function setAdwordsLabels($adwordsLabels) - { - $this->adwordsLabels = $adwordsLabels; - } - - public function getAdwordsLabels() - { - return $this->adwordsLabels; - } - - public function setAdwordsRedirect($adwordsRedirect) - { - $this->adwordsRedirect = $adwordsRedirect; - } - - public function getAdwordsRedirect() - { - return $this->adwordsRedirect; - } - - public function setAgeGroup($ageGroup) - { - $this->ageGroup = $ageGroup; - } - - public function getAgeGroup() - { - return $this->ageGroup; - } - - public function setAvailability($availability) - { - $this->availability = $availability; - } - - public function getAvailability() - { - return $this->availability; - } - - public function setAvailabilityDate($availabilityDate) - { - $this->availabilityDate = $availabilityDate; - } - - public function getAvailabilityDate() - { - return $this->availabilityDate; - } - - public function setBrand($brand) - { - $this->brand = $brand; - } - - public function getBrand() - { - return $this->brand; - } - - public function setChannel($channel) - { - $this->channel = $channel; - } - - public function getChannel() - { - return $this->channel; - } - - public function setColor($color) - { - $this->color = $color; - } - - public function getColor() - { - return $this->color; - } - - public function setCondition($condition) - { - $this->condition = $condition; - } - - public function getCondition() - { - return $this->condition; - } - - public function setContentLanguage($contentLanguage) - { - $this->contentLanguage = $contentLanguage; - } - - public function getContentLanguage() - { - return $this->contentLanguage; - } - - public function setCustomAttributes($customAttributes) - { - $this->customAttributes = $customAttributes; - } - - public function getCustomAttributes() - { - return $this->customAttributes; - } - - public function setCustomGroups($customGroups) - { - $this->customGroups = $customGroups; - } - - public function getCustomGroups() - { - return $this->customGroups; - } - - public function setCustomLabel0($customLabel0) - { - $this->customLabel0 = $customLabel0; - } - - public function getCustomLabel0() - { - return $this->customLabel0; - } - - public function setCustomLabel1($customLabel1) - { - $this->customLabel1 = $customLabel1; - } - - public function getCustomLabel1() - { - return $this->customLabel1; - } - - public function setCustomLabel2($customLabel2) - { - $this->customLabel2 = $customLabel2; - } - - public function getCustomLabel2() - { - return $this->customLabel2; - } - - public function setCustomLabel3($customLabel3) - { - $this->customLabel3 = $customLabel3; - } - - public function getCustomLabel3() - { - return $this->customLabel3; - } - - public function setCustomLabel4($customLabel4) - { - $this->customLabel4 = $customLabel4; - } - - public function getCustomLabel4() - { - return $this->customLabel4; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setDestinations($destinations) - { - $this->destinations = $destinations; - } - - public function getDestinations() - { - return $this->destinations; - } - - public function setEnergyEfficiencyClass($energyEfficiencyClass) - { - $this->energyEfficiencyClass = $energyEfficiencyClass; - } - - public function getEnergyEfficiencyClass() - { - return $this->energyEfficiencyClass; - } - - public function setExpirationDate($expirationDate) - { - $this->expirationDate = $expirationDate; - } - - public function getExpirationDate() - { - return $this->expirationDate; - } - - public function setGender($gender) - { - $this->gender = $gender; - } - - public function getGender() - { - return $this->gender; - } - - public function setGoogleProductCategory($googleProductCategory) - { - $this->googleProductCategory = $googleProductCategory; - } - - public function getGoogleProductCategory() - { - return $this->googleProductCategory; - } - - public function setGtin($gtin) - { - $this->gtin = $gtin; - } - - public function getGtin() - { - return $this->gtin; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setIdentifierExists($identifierExists) - { - $this->identifierExists = $identifierExists; - } - - public function getIdentifierExists() - { - return $this->identifierExists; - } - - public function setImageLink($imageLink) - { - $this->imageLink = $imageLink; - } - - public function getImageLink() - { - return $this->imageLink; - } - - public function setInstallment(Google_Service_ShoppingContent_ProductInstallment $installment) - { - $this->installment = $installment; - } - - public function getInstallment() - { - return $this->installment; - } - - public function setIsBundle($isBundle) - { - $this->isBundle = $isBundle; - } - - public function getIsBundle() - { - return $this->isBundle; - } - - public function setItemGroupId($itemGroupId) - { - $this->itemGroupId = $itemGroupId; - } - - public function getItemGroupId() - { - return $this->itemGroupId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLink($link) - { - $this->link = $link; - } - - public function getLink() - { - return $this->link; - } - - public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints) - { - $this->loyaltyPoints = $loyaltyPoints; - } - - public function getLoyaltyPoints() - { - return $this->loyaltyPoints; - } - - public function setMaterial($material) - { - $this->material = $material; - } - - public function getMaterial() - { - return $this->material; - } - - public function setMerchantMultipackQuantity($merchantMultipackQuantity) - { - $this->merchantMultipackQuantity = $merchantMultipackQuantity; - } - - public function getMerchantMultipackQuantity() - { - return $this->merchantMultipackQuantity; - } - - public function setMobileLink($mobileLink) - { - $this->mobileLink = $mobileLink; - } - - public function getMobileLink() - { - return $this->mobileLink; - } - - public function setMpn($mpn) - { - $this->mpn = $mpn; - } - - public function getMpn() - { - return $this->mpn; - } - - public function setOfferId($offerId) - { - $this->offerId = $offerId; - } - - public function getOfferId() - { - return $this->offerId; - } - - public function setOnlineOnly($onlineOnly) - { - $this->onlineOnly = $onlineOnly; - } - - public function getOnlineOnly() - { - return $this->onlineOnly; - } - - public function setPattern($pattern) - { - $this->pattern = $pattern; - } - - public function getPattern() - { - return $this->pattern; - } - - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - - public function getPrice() - { - return $this->price; - } - - public function setProductType($productType) - { - $this->productType = $productType; - } - - public function getProductType() - { - return $this->productType; - } - - public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) - { - $this->salePrice = $salePrice; - } - - public function getSalePrice() - { - return $this->salePrice; - } - - public function setSalePriceEffectiveDate($salePriceEffectiveDate) - { - $this->salePriceEffectiveDate = $salePriceEffectiveDate; - } - - public function getSalePriceEffectiveDate() - { - return $this->salePriceEffectiveDate; - } - - public function setShipping($shipping) - { - $this->shipping = $shipping; - } - - public function getShipping() - { - return $this->shipping; - } - - public function setShippingWeight(Google_Service_ShoppingContent_ProductShippingWeight $shippingWeight) - { - $this->shippingWeight = $shippingWeight; - } - - public function getShippingWeight() - { - return $this->shippingWeight; - } - - public function setSizeSystem($sizeSystem) - { - $this->sizeSystem = $sizeSystem; - } - - public function getSizeSystem() - { - return $this->sizeSystem; - } - - public function setSizeType($sizeType) - { - $this->sizeType = $sizeType; - } - - public function getSizeType() - { - return $this->sizeType; - } - - public function setSizes($sizes) - { - $this->sizes = $sizes; - } - - public function getSizes() - { - return $this->sizes; - } - - public function setTargetCountry($targetCountry) - { - $this->targetCountry = $targetCountry; - } - - public function getTargetCountry() - { - return $this->targetCountry; - } - - public function setTaxes($taxes) - { - $this->taxes = $taxes; - } - - public function getTaxes() - { - return $this->taxes; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setUnitPricingBaseMeasure($unitPricingBaseMeasure) - { - $this->unitPricingBaseMeasure = $unitPricingBaseMeasure; - } - - public function getUnitPricingBaseMeasure() - { - return $this->unitPricingBaseMeasure; - } - - public function setUnitPricingMeasure($unitPricingMeasure) - { - $this->unitPricingMeasure = $unitPricingMeasure; - } - - public function getUnitPricingMeasure() - { - return $this->unitPricingMeasure; - } - - public function setValidatedDestinations($validatedDestinations) - { - $this->validatedDestinations = $validatedDestinations; - } - - public function getValidatedDestinations() - { - return $this->validatedDestinations; - } - - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model -{ - public $name; - public $type; - public $unit; - public $value; - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setUnit($unit) - { - $this->unit = $unit; - } - - public function getUnit() - { - return $this->unit; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_ProductCustomGroup extends Google_Collection -{ - protected $attributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; - protected $attributesDataType = 'array'; - public $name; - - public function setAttributes($attributes) - { - $this->attributes = $attributes; - } - - public function getAttributes() - { - return $this->attributes; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } -} - -class Google_Service_ShoppingContent_ProductDestination extends Google_Model -{ - public $destinationName; - public $intention; - - public function setDestinationName($destinationName) - { - $this->destinationName = $destinationName; - } - - public function getDestinationName() - { - return $this->destinationName; - } - - public function setIntention($intention) - { - $this->intention = $intention; - } - - public function getIntention() - { - return $this->intention; - } -} - -class Google_Service_ShoppingContent_ProductInstallment extends Google_Model -{ - protected $amountType = 'Google_Service_ShoppingContent_Price'; - protected $amountDataType = ''; - public $months; - - public function setAmount(Google_Service_ShoppingContent_Price $amount) - { - $this->amount = $amount; - } - - public function getAmount() - { - return $this->amount; - } - - public function setMonths($months) - { - $this->months = $months; - } - - public function getMonths() - { - return $this->months; - } -} - -class Google_Service_ShoppingContent_ProductShipping extends Google_Model -{ - public $country; - protected $priceType = 'Google_Service_ShoppingContent_Price'; - protected $priceDataType = ''; - public $region; - public $service; - - public function setCountry($country) - { - $this->country = $country; - } - - public function getCountry() - { - return $this->country; - } - - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - - public function getPrice() - { - return $this->price; - } - - public function setRegion($region) - { - $this->region = $region; - } - - public function getRegion() - { - return $this->region; - } - - public function setService($service) - { - $this->service = $service; - } - - public function getService() - { - return $this->service; - } -} - -class Google_Service_ShoppingContent_ProductShippingWeight extends Google_Model -{ - public $unit; - public $value; - - public function setUnit($unit) - { - $this->unit = $unit; - } - - public function getUnit() - { - return $this->unit; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } -} - -class Google_Service_ShoppingContent_ProductStatus extends Google_Collection -{ - protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_ProductStatusDataQualityIssue'; - protected $dataQualityIssuesDataType = 'array'; - protected $destinationStatusesType = 'Google_Service_ShoppingContent_ProductStatusDestinationStatus'; - protected $destinationStatusesDataType = 'array'; - public $kind; - public $link; - public $productId; - public $title; - - public function setDataQualityIssues($dataQualityIssues) - { - $this->dataQualityIssues = $dataQualityIssues; - } - - public function getDataQualityIssues() - { - return $this->dataQualityIssues; - } - - public function setDestinationStatuses($destinationStatuses) - { - $this->destinationStatuses = $destinationStatuses; - } - - public function getDestinationStatuses() - { - return $this->destinationStatuses; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLink($link) - { - $this->link = $link; - } - - public function getLink() - { - return $this->link; - } - - public function setProductId($productId) - { - $this->productId = $productId; - } - - public function getProductId() - { - return $this->productId; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } -} - -class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Google_Model -{ - public $detail; - public $fetchStatus; - public $id; - public $location; - public $timestamp; - public $valueOnLandingPage; - public $valueProvided; - - public function setDetail($detail) - { - $this->detail = $detail; - } - - public function getDetail() - { - return $this->detail; - } - - public function setFetchStatus($fetchStatus) - { - $this->fetchStatus = $fetchStatus; - } - - public function getFetchStatus() - { - return $this->fetchStatus; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setLocation($location) - { - $this->location = $location; - } - - public function getLocation() - { - return $this->location; - } - - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - - public function getTimestamp() - { - return $this->timestamp; - } - - public function setValueOnLandingPage($valueOnLandingPage) - { - $this->valueOnLandingPage = $valueOnLandingPage; - } - - public function getValueOnLandingPage() - { - return $this->valueOnLandingPage; - } - - public function setValueProvided($valueProvided) - { - $this->valueProvided = $valueProvided; - } - - public function getValueProvided() - { - return $this->valueProvided; - } -} - -class Google_Service_ShoppingContent_ProductStatusDestinationStatus extends Google_Model -{ - public $approvalStatus; - public $destination; - public $intention; - - public function setApprovalStatus($approvalStatus) - { - $this->approvalStatus = $approvalStatus; - } - - public function getApprovalStatus() - { - return $this->approvalStatus; - } - - public function setDestination($destination) - { - $this->destination = $destination; - } - - public function getDestination() - { - return $this->destination; - } - - public function setIntention($intention) - { - $this->intention = $intention; - } - - public function getIntention() - { - return $this->intention; - } -} - -class Google_Service_ShoppingContent_ProductTax extends Google_Model -{ - public $country; - public $rate; - public $region; - public $taxShip; - - public function setCountry($country) - { - $this->country = $country; - } - - public function getCountry() - { - return $this->country; - } - - public function setRate($rate) - { - $this->rate = $rate; - } - - public function getRate() - { - return $this->rate; - } - - public function setRegion($region) - { - $this->region = $region; - } - - public function getRegion() - { - return $this->region; - } - - public function setTaxShip($taxShip) - { - $this->taxShip = $taxShip; - } - - public function getTaxShip() - { - return $this->taxShip; - } -} - -class Google_Service_ShoppingContent_ProductsCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry extends Google_Model -{ - public $batchId; - public $merchantId; - public $method; - protected $productType = 'Google_Service_ShoppingContent_Product'; - protected $productDataType = ''; - public $productId; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } - - public function setProduct(Google_Service_ShoppingContent_Product $product) - { - $this->product = $product; - } - - public function getProduct() - { - return $this->product; - } - - public function setProductId($productId) - { - $this->productId = $productId; - } - - public function getProductId() - { - return $this->productId; - } -} - -class Google_Service_ShoppingContent_ProductsCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - public $kind; - protected $productType = 'Google_Service_ShoppingContent_Product'; - protected $productDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setProduct(Google_Service_ShoppingContent_Product $product) - { - $this->product = $product; - } - - public function getProduct() - { - return $this->product; - } -} - -class Google_Service_ShoppingContent_ProductsListResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_Product'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } -} - -class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } -} - -class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry extends Google_Model -{ - public $batchId; - public $merchantId; - public $method; - public $productId; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - - public function getMerchantId() - { - return $this->merchantId; - } - - public function setMethod($method) - { - $this->method = $method; - } - - public function getMethod() - { - return $this->method; - } - - public function setProductId($productId) - { - $this->productId = $productId; - } - - public function getProductId() - { - return $this->productId; - } -} - -class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse extends Google_Collection -{ - protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; - public $kind; - - public function setEntries($entries) - { - $this->entries = $entries; - } - - public function getEntries() - { - return $this->entries; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } -} - -class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry extends Google_Model -{ - public $batchId; - protected $errorsType = 'Google_Service_ShoppingContent_Errors'; - protected $errorsDataType = ''; - public $kind; - protected $productStatusType = 'Google_Service_ShoppingContent_ProductStatus'; - protected $productStatusDataType = ''; - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function getBatchId() - { - return $this->batchId; - } - - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - - public function getErrors() - { - return $this->errors; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setProductStatus(Google_Service_ShoppingContent_ProductStatus $productStatus) - { - $this->productStatus = $productStatus; - } - - public function getProductStatus() - { - return $this->productStatus; - } -} - -class Google_Service_ShoppingContent_ProductstatusesListResponse extends Google_Collection -{ - public $kind; - public $nextPageToken; - protected $resourcesType = 'Google_Service_ShoppingContent_ProductStatus'; - protected $resourcesDataType = 'array'; - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setResources($resources) - { - $this->resources = $resources; - } - - public function getResources() - { - return $this->resources; - } +class Google_Service_ShoppingContent_Productstatuses_Resource extends Google_Service_Resource { + + /** + * Gets the statuses of multiple products in a single request. + * (productstatuses.custombatch) + * + * @param Google_ProductstatusesCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse"); + } + + /** + * Gets the status of a product from your Merchant Center account. + * (productstatuses.get) + * + * @param string $merchantId + * The ID of the managing account. + * @param string $productId + * The ID of the product. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_ProductStatus + */ + public function get($merchantId, $productId, $optParams = array()) { + $params = array('merchantId' => $merchantId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_ProductStatus"); + } + + /** + * Lists the statuses of the products in your Merchant Center account. + * (productstatuses.listProductstatuses) + * + * @param string $merchantId + * The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * The token returned by the previous request. + * @opt_param string maxResults + * The maximum number of product statuses to return in the response, used for paging. + * @return Google_Service_ShoppingContent_ProductstatusesListResponse + */ + public function listProductstatuses($merchantId, $optParams = array()) { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_ProductstatusesListResponse"); + } +} + + +class Google_Service_ShoppingContent_Account extends Google_Collection { + public $adultContent; + protected $adwordsLinksType = 'Google_Service_ShoppingContent_AccountAdwordsLink'; + protected $adwordsLinksDataType = 'array'; + public $id; + public $kind; + public $name; + public $reviewsUrl; + public $sellerId; + protected $usersType = 'Google_Service_ShoppingContent_AccountUser'; + protected $usersDataType = 'array'; + public $websiteUrl; + + public function setAdultContent($adultContent) { + $this->adultContent = $adultContent; + } + + public function getAdultContent() { + return $this->adultContent; + } + + public function setAdwordsLinks($adwordsLinks) { + $this->adwordsLinks = $adwordsLinks; + } + + public function getAdwordsLinks() { + return $this->adwordsLinks; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setReviewsUrl($reviewsUrl) { + $this->reviewsUrl = $reviewsUrl; + } + + public function getReviewsUrl() { + return $this->reviewsUrl; + } + + public function setSellerId($sellerId) { + $this->sellerId = $sellerId; + } + + public function getSellerId() { + return $this->sellerId; + } + + public function setUsers($users) { + $this->users = $users; + } + + public function getUsers() { + return $this->users; + } + + public function setWebsiteUrl($websiteUrl) { + $this->websiteUrl = $websiteUrl; + } + + public function getWebsiteUrl() { + return $this->websiteUrl; + } +} + +class Google_Service_ShoppingContent_AccountAdwordsLink extends Google_Model { + public $adwordsId; + public $status; + + public function setAdwordsId($adwordsId) { + $this->adwordsId = $adwordsId; + } + + public function getAdwordsId() { + return $this->adwordsId; + } + + public function setStatus($status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } +} + +class Google_Service_ShoppingContent_AccountStatus extends Google_Collection { + public $accountId; + protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue'; + protected $dataQualityIssuesDataType = 'array'; + public $kind; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setDataQualityIssues($dataQualityIssues) { + $this->dataQualityIssues = $dataQualityIssues; + } + + public function getDataQualityIssues() { + return $this->dataQualityIssues; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection { + public $country; + public $displayedValue; + protected $exampleItemsType = 'Google_Service_ShoppingContent_AccountStatusExampleItem'; + protected $exampleItemsDataType = 'array'; + public $id; + public $lastChecked; + public $numItems; + public $severity; + public $submittedValue; + + public function setCountry($country) { + $this->country = $country; + } + + public function getCountry() { + return $this->country; + } + + public function setDisplayedValue($displayedValue) { + $this->displayedValue = $displayedValue; + } + + public function getDisplayedValue() { + return $this->displayedValue; + } + + public function setExampleItems($exampleItems) { + $this->exampleItems = $exampleItems; + } + + public function getExampleItems() { + return $this->exampleItems; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setLastChecked($lastChecked) { + $this->lastChecked = $lastChecked; + } + + public function getLastChecked() { + return $this->lastChecked; + } + + public function setNumItems($numItems) { + $this->numItems = $numItems; + } + + public function getNumItems() { + return $this->numItems; + } + + public function setSeverity($severity) { + $this->severity = $severity; + } + + public function getSeverity() { + return $this->severity; + } + + public function setSubmittedValue($submittedValue) { + $this->submittedValue = $submittedValue; + } + + public function getSubmittedValue() { + return $this->submittedValue; + } +} + +class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model { + public $itemId; + public $link; + public $submittedValue; + public $title; + public $valueOnLandingPage; + + public function setItemId($itemId) { + $this->itemId = $itemId; + } + + public function getItemId() { + return $this->itemId; + } + + public function setLink($link) { + $this->link = $link; + } + + public function getLink() { + return $this->link; + } + + public function setSubmittedValue($submittedValue) { + $this->submittedValue = $submittedValue; + } + + public function getSubmittedValue() { + return $this->submittedValue; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setValueOnLandingPage($valueOnLandingPage) { + $this->valueOnLandingPage = $valueOnLandingPage; + } + + public function getValueOnLandingPage() { + return $this->valueOnLandingPage; + } +} + +class Google_Service_ShoppingContent_AccountUser extends Google_Model { + public $admin; + public $emailAddress; + + public function setAdmin($admin) { + $this->admin = $admin; + } + + public function getAdmin() { + return $this->admin; + } + + public function setEmailAddress($emailAddress) { + $this->emailAddress = $emailAddress; + } + + public function getEmailAddress() { + return $this->emailAddress; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model { + protected $accountType = 'Google_Service_ShoppingContent_Account'; + protected $accountDataType = ''; + public $accountId; + public $batchId; + public $merchantId; + public $method; + + public function setAccount(Google_Service_ShoppingContent_Account $account) { + $this->account = $account; + } + + public function getAccount() { + return $this->account; + } + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setMerchantId($merchantId) { + $this->merchantId = $merchantId; + } + + public function getMerchantId() { + return $this->merchantId; + } + + public function setMethod($method) { + $this->method = $method; + } + + public function getMethod() { + return $this->method; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model { + protected $accountType = 'Google_Service_ShoppingContent_Account'; + protected $accountDataType = ''; + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; + + public function setAccount(Google_Service_ShoppingContent_Account $account) { + $this->account = $account; + } + + public function getAccount() { + return $this->account; + } + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) { + $this->errors = $errors; + } + + public function getErrors() { + return $this->errors; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection { + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_Account'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setResources($resources) { + $this->resources = $resources; + } + + public function getResources() { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model { + public $accountId; + public $batchId; + public $merchantId; + public $method; + + public function setAccountId($accountId) { + $this->accountId = $accountId; + } + + public function getAccountId() { + return $this->accountId; + } + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setMerchantId($merchantId) { + $this->merchantId = $merchantId; + } + + public function getMerchantId() { + return $this->merchantId; + } + + public function setMethod($method) { + $this->method = $method; + } + + public function getMethod() { + return $this->method; + } +} + +class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model { + protected $accountStatusType = 'Google_Service_ShoppingContent_AccountStatus'; + protected $accountStatusDataType = ''; + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + + public function setAccountStatus(Google_Service_ShoppingContent_AccountStatus $accountStatus) { + $this->accountStatus = $accountStatus; + } + + public function getAccountStatus() { + return $this->accountStatus; + } + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) { + $this->errors = $errors; + } + + public function getErrors() { + return $this->errors; + } +} + +class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection { + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setResources($resources) { + $this->resources = $resources; + } + + public function getResources() { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_Datafeed extends Google_Collection { + public $attributeLanguage; + public $contentLanguage; + public $contentType; + protected $fetchScheduleType = 'Google_Service_ShoppingContent_DatafeedFetchSchedule'; + protected $fetchScheduleDataType = ''; + public $fileName; + protected $formatType = 'Google_Service_ShoppingContent_DatafeedFormat'; + protected $formatDataType = ''; + public $id; + public $intendedDestinations; + public $kind; + public $name; + public $targetCountry; + + public function setAttributeLanguage($attributeLanguage) { + $this->attributeLanguage = $attributeLanguage; + } + + public function getAttributeLanguage() { + return $this->attributeLanguage; + } + + public function setContentLanguage($contentLanguage) { + $this->contentLanguage = $contentLanguage; + } + + public function getContentLanguage() { + return $this->contentLanguage; + } + + public function setContentType($contentType) { + $this->contentType = $contentType; + } + + public function getContentType() { + return $this->contentType; + } + + public function setFetchSchedule(Google_Service_ShoppingContent_DatafeedFetchSchedule $fetchSchedule) { + $this->fetchSchedule = $fetchSchedule; + } + + public function getFetchSchedule() { + return $this->fetchSchedule; + } + + public function setFileName($fileName) { + $this->fileName = $fileName; + } + + public function getFileName() { + return $this->fileName; + } + + public function setFormat(Google_Service_ShoppingContent_DatafeedFormat $format) { + $this->format = $format; + } + + public function getFormat() { + return $this->format; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setIntendedDestinations($intendedDestinations) { + $this->intendedDestinations = $intendedDestinations; + } + + public function getIntendedDestinations() { + return $this->intendedDestinations; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setTargetCountry($targetCountry) { + $this->targetCountry = $targetCountry; + } + + public function getTargetCountry() { + return $this->targetCountry; + } +} + +class Google_Service_ShoppingContent_DatafeedFetchSchedule extends Google_Model { + public $dayOfMonth; + public $fetchUrl; + public $hour; + public $password; + public $timeZone; + public $username; + public $weekday; + + public function setDayOfMonth($dayOfMonth) { + $this->dayOfMonth = $dayOfMonth; + } + + public function getDayOfMonth() { + return $this->dayOfMonth; + } + + public function setFetchUrl($fetchUrl) { + $this->fetchUrl = $fetchUrl; + } + + public function getFetchUrl() { + return $this->fetchUrl; + } + + public function setHour($hour) { + $this->hour = $hour; + } + + public function getHour() { + return $this->hour; + } + + public function setPassword($password) { + $this->password = $password; + } + + public function getPassword() { + return $this->password; + } + + public function setTimeZone($timeZone) { + $this->timeZone = $timeZone; + } + + public function getTimeZone() { + return $this->timeZone; + } + + public function setUsername($username) { + $this->username = $username; + } + + public function getUsername() { + return $this->username; + } + + public function setWeekday($weekday) { + $this->weekday = $weekday; + } + + public function getWeekday() { + return $this->weekday; + } +} + +class Google_Service_ShoppingContent_DatafeedFormat extends Google_Model { + public $columnDelimiter; + public $fileEncoding; + public $quotingMode; + + public function setColumnDelimiter($columnDelimiter) { + $this->columnDelimiter = $columnDelimiter; + } + + public function getColumnDelimiter() { + return $this->columnDelimiter; + } + + public function setFileEncoding($fileEncoding) { + $this->fileEncoding = $fileEncoding; + } + + public function getFileEncoding() { + return $this->fileEncoding; + } + + public function setQuotingMode($quotingMode) { + $this->quotingMode = $quotingMode; + } + + public function getQuotingMode() { + return $this->quotingMode; + } +} + +class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection { + public $datafeedId; + protected $errorsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; + protected $errorsDataType = 'array'; + public $itemsTotal; + public $itemsValid; + public $kind; + public $processingStatus; + protected $warningsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; + protected $warningsDataType = 'array'; + + public function setDatafeedId($datafeedId) { + $this->datafeedId = $datafeedId; + } + + public function getDatafeedId() { + return $this->datafeedId; + } + + public function setErrors($errors) { + $this->errors = $errors; + } + + public function getErrors() { + return $this->errors; + } + + public function setItemsTotal($itemsTotal) { + $this->itemsTotal = $itemsTotal; + } + + public function getItemsTotal() { + return $this->itemsTotal; + } + + public function setItemsValid($itemsValid) { + $this->itemsValid = $itemsValid; + } + + public function getItemsValid() { + return $this->itemsValid; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setProcessingStatus($processingStatus) { + $this->processingStatus = $processingStatus; + } + + public function getProcessingStatus() { + return $this->processingStatus; + } + + public function setWarnings($warnings) { + $this->warnings = $warnings; + } + + public function getWarnings() { + return $this->warnings; + } +} + +class Google_Service_ShoppingContent_DatafeedStatusError extends Google_Collection { + public $code; + public $count; + protected $examplesType = 'Google_Service_ShoppingContent_DatafeedStatusExample'; + protected $examplesDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setCount($count) { + $this->count = $count; + } + + public function getCount() { + return $this->count; + } + + public function setExamples($examples) { + $this->examples = $examples; + } + + public function getExamples() { + return $this->examples; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_ShoppingContent_DatafeedStatusExample extends Google_Model { + public $itemId; + public $lineNumber; + public $value; + + public function setItemId($itemId) { + $this->itemId = $itemId; + } + + public function getItemId() { + return $this->itemId; + } + + public function setLineNumber($lineNumber) { + $this->lineNumber = $lineNumber; + } + + public function getLineNumber() { + return $this->lineNumber; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_ShoppingContent_DatafeedsCustomBatchRequest extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry extends Google_Model { + public $batchId; + protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed'; + protected $datafeedDataType = ''; + public $datafeedId; + public $merchantId; + public $method; + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) { + $this->datafeed = $datafeed; + } + + public function getDatafeed() { + return $this->datafeed; + } + + public function setDatafeedId($datafeedId) { + $this->datafeedId = $datafeedId; + } + + public function getDatafeedId() { + return $this->datafeedId; + } + + public function setMerchantId($merchantId) { + $this->merchantId = $merchantId; + } + + public function getMerchantId() { + return $this->merchantId; + } + + public function setMethod($method) { + $this->method = $method; + } + + public function getMethod() { + return $this->method; + } +} + +class Google_Service_ShoppingContent_DatafeedsCustomBatchResponse extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry extends Google_Model { + public $batchId; + protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed'; + protected $datafeedDataType = ''; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed) { + $this->datafeed = $datafeed; + } + + public function getDatafeed() { + return $this->datafeed; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) { + $this->errors = $errors; + } + + public function getErrors() { + return $this->errors; + } +} + +class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collection { + public $kind; + protected $resourcesType = 'Google_Service_ShoppingContent_Datafeed'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setResources($resources) { + $this->resources = $resources; + } + + public function getResources() { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry extends Google_Model { + public $batchId; + public $datafeedId; + public $merchantId; + public $method; + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setDatafeedId($datafeedId) { + $this->datafeedId = $datafeedId; + } + + public function getDatafeedId() { + return $this->datafeedId; + } + + public function setMerchantId($merchantId) { + $this->merchantId = $merchantId; + } + + public function getMerchantId() { + return $this->merchantId; + } + + public function setMethod($method) { + $this->method = $method; + } + + public function getMethod() { + return $this->method; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry extends Google_Model { + public $batchId; + protected $datafeedStatusType = 'Google_Service_ShoppingContent_DatafeedStatus'; + protected $datafeedStatusDataType = ''; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setDatafeedStatus(Google_Service_ShoppingContent_DatafeedStatus $datafeedStatus) { + $this->datafeedStatus = $datafeedStatus; + } + + public function getDatafeedStatus() { + return $this->datafeedStatus; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) { + $this->errors = $errors; + } + + public function getErrors() { + return $this->errors; + } +} + +class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google_Collection { + public $kind; + protected $resourcesType = 'Google_Service_ShoppingContent_DatafeedStatus'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setResources($resources) { + $this->resources = $resources; + } + + public function getResources() { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_Error extends Google_Model { + public $domain; + public $message; + public $reason; + + public function setDomain($domain) { + $this->domain = $domain; + } + + public function getDomain() { + return $this->domain; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } + + public function setReason($reason) { + $this->reason = $reason; + } + + public function getReason() { + return $this->reason; + } +} + +class Google_Service_ShoppingContent_Errors extends Google_Collection { + public $code; + protected $errorsType = 'Google_Service_ShoppingContent_Error'; + protected $errorsDataType = 'array'; + public $message; + + public function setCode($code) { + $this->code = $code; + } + + public function getCode() { + return $this->code; + } + + public function setErrors($errors) { + $this->errors = $errors; + } + + public function getErrors() { + return $this->errors; + } + + public function setMessage($message) { + $this->message = $message; + } + + public function getMessage() { + return $this->message; + } +} + +class Google_Service_ShoppingContent_Inventory extends Google_Model { + public $availability; + public $kind; + protected $priceType = 'Google_Service_ShoppingContent_Price'; + protected $priceDataType = ''; + public $quantity; + protected $salePriceType = 'Google_Service_ShoppingContent_Price'; + protected $salePriceDataType = ''; + public $salePriceEffectiveDate; + + public function setAvailability($availability) { + $this->availability = $availability; + } + + public function getAvailability() { + return $this->availability; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPrice(Google_Service_ShoppingContent_Price $price) { + $this->price = $price; + } + + public function getPrice() { + return $this->price; + } + + public function setQuantity($quantity) { + $this->quantity = $quantity; + } + + public function getQuantity() { + return $this->quantity; + } + + public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) { + $this->salePrice = $salePrice; + } + + public function getSalePrice() { + return $this->salePrice; + } + + public function setSalePriceEffectiveDate($salePriceEffectiveDate) { + $this->salePriceEffectiveDate = $salePriceEffectiveDate; + } + + public function getSalePriceEffectiveDate() { + return $this->salePriceEffectiveDate; + } +} + +class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Google_Model { + public $batchId; + protected $inventoryType = 'Google_Service_ShoppingContent_Inventory'; + protected $inventoryDataType = ''; + public $merchantId; + public $productId; + public $storeCode; + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setInventory(Google_Service_ShoppingContent_Inventory $inventory) { + $this->inventory = $inventory; + } + + public function getInventory() { + return $this->inventory; + } + + public function setMerchantId($merchantId) { + $this->merchantId = $merchantId; + } + + public function getMerchantId() { + return $this->merchantId; + } + + public function setProductId($productId) { + $this->productId = $productId; + } + + public function getProductId() { + return $this->productId; + } + + public function setStoreCode($storeCode) { + $this->storeCode = $storeCode; + } + + public function getStoreCode() { + return $this->storeCode; + } +} + +class Google_Service_ShoppingContent_InventoryCustomBatchResponse extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry extends Google_Model { + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) { + $this->errors = $errors; + } + + public function getErrors() { + return $this->errors; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_InventorySetRequest extends Google_Model { + public $availability; + protected $priceType = 'Google_Service_ShoppingContent_Price'; + protected $priceDataType = ''; + public $quantity; + protected $salePriceType = 'Google_Service_ShoppingContent_Price'; + protected $salePriceDataType = ''; + public $salePriceEffectiveDate; + + public function setAvailability($availability) { + $this->availability = $availability; + } + + public function getAvailability() { + return $this->availability; + } + + public function setPrice(Google_Service_ShoppingContent_Price $price) { + $this->price = $price; + } + + public function getPrice() { + return $this->price; + } + + public function setQuantity($quantity) { + $this->quantity = $quantity; + } + + public function getQuantity() { + return $this->quantity; + } + + public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) { + $this->salePrice = $salePrice; + } + + public function getSalePrice() { + return $this->salePrice; + } + + public function setSalePriceEffectiveDate($salePriceEffectiveDate) { + $this->salePriceEffectiveDate = $salePriceEffectiveDate; + } + + public function getSalePriceEffectiveDate() { + return $this->salePriceEffectiveDate; + } +} + +class Google_Service_ShoppingContent_InventorySetResponse extends Google_Model { + public $kind; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_LoyaltyPoints extends Google_Model { + public $name; + public $pointsValue; + public $ratio; + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setPointsValue($pointsValue) { + $this->pointsValue = $pointsValue; + } + + public function getPointsValue() { + return $this->pointsValue; + } + + public function setRatio($ratio) { + $this->ratio = $ratio; + } + + public function getRatio() { + return $this->ratio; + } +} + +class Google_Service_ShoppingContent_Price extends Google_Model { + public $currency; + public $value; + + public function setCurrency($currency) { + $this->currency = $currency; + } + + public function getCurrency() { + return $this->currency; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_ShoppingContent_Product extends Google_Collection { + public $additionalImageLinks; + public $adult; + public $adwordsGrouping; + public $adwordsLabels; + public $adwordsRedirect; + public $ageGroup; + public $availability; + public $availabilityDate; + public $brand; + public $channel; + public $color; + public $condition; + public $contentLanguage; + protected $customAttributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; + protected $customAttributesDataType = 'array'; + protected $customGroupsType = 'Google_Service_ShoppingContent_ProductCustomGroup'; + protected $customGroupsDataType = 'array'; + public $customLabel0; + public $customLabel1; + public $customLabel2; + public $customLabel3; + public $customLabel4; + public $description; + protected $destinationsType = 'Google_Service_ShoppingContent_ProductDestination'; + protected $destinationsDataType = 'array'; + public $energyEfficiencyClass; + public $expirationDate; + public $gender; + public $googleProductCategory; + public $gtin; + public $id; + public $identifierExists; + public $imageLink; + protected $installmentType = 'Google_Service_ShoppingContent_ProductInstallment'; + protected $installmentDataType = ''; + public $isBundle; + public $itemGroupId; + public $kind; + public $link; + protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints'; + protected $loyaltyPointsDataType = ''; + public $material; + public $merchantMultipackQuantity; + public $mobileLink; + public $mpn; + public $offerId; + public $onlineOnly; + public $pattern; + protected $priceType = 'Google_Service_ShoppingContent_Price'; + protected $priceDataType = ''; + public $productType; + protected $salePriceType = 'Google_Service_ShoppingContent_Price'; + protected $salePriceDataType = ''; + public $salePriceEffectiveDate; + protected $shippingType = 'Google_Service_ShoppingContent_ProductShipping'; + protected $shippingDataType = 'array'; + protected $shippingWeightType = 'Google_Service_ShoppingContent_ProductShippingWeight'; + protected $shippingWeightDataType = ''; + public $sizeSystem; + public $sizeType; + public $sizes; + public $targetCountry; + protected $taxesType = 'Google_Service_ShoppingContent_ProductTax'; + protected $taxesDataType = 'array'; + public $title; + public $unitPricingBaseMeasure; + public $unitPricingMeasure; + public $validatedDestinations; + protected $warningsType = 'Google_Service_ShoppingContent_Error'; + protected $warningsDataType = 'array'; + + public function setAdditionalImageLinks($additionalImageLinks) { + $this->additionalImageLinks = $additionalImageLinks; + } + + public function getAdditionalImageLinks() { + return $this->additionalImageLinks; + } + + public function setAdult($adult) { + $this->adult = $adult; + } + + public function getAdult() { + return $this->adult; + } + + public function setAdwordsGrouping($adwordsGrouping) { + $this->adwordsGrouping = $adwordsGrouping; + } + + public function getAdwordsGrouping() { + return $this->adwordsGrouping; + } + + public function setAdwordsLabels($adwordsLabels) { + $this->adwordsLabels = $adwordsLabels; + } + + public function getAdwordsLabels() { + return $this->adwordsLabels; + } + + public function setAdwordsRedirect($adwordsRedirect) { + $this->adwordsRedirect = $adwordsRedirect; + } + + public function getAdwordsRedirect() { + return $this->adwordsRedirect; + } + + public function setAgeGroup($ageGroup) { + $this->ageGroup = $ageGroup; + } + + public function getAgeGroup() { + return $this->ageGroup; + } + + public function setAvailability($availability) { + $this->availability = $availability; + } + + public function getAvailability() { + return $this->availability; + } + + public function setAvailabilityDate($availabilityDate) { + $this->availabilityDate = $availabilityDate; + } + + public function getAvailabilityDate() { + return $this->availabilityDate; + } + + public function setBrand($brand) { + $this->brand = $brand; + } + + public function getBrand() { + return $this->brand; + } + + public function setChannel($channel) { + $this->channel = $channel; + } + + public function getChannel() { + return $this->channel; + } + + public function setColor($color) { + $this->color = $color; + } + + public function getColor() { + return $this->color; + } + + public function setCondition($condition) { + $this->condition = $condition; + } + + public function getCondition() { + return $this->condition; + } + + public function setContentLanguage($contentLanguage) { + $this->contentLanguage = $contentLanguage; + } + + public function getContentLanguage() { + return $this->contentLanguage; + } + + public function setCustomAttributes($customAttributes) { + $this->customAttributes = $customAttributes; + } + + public function getCustomAttributes() { + return $this->customAttributes; + } + + public function setCustomGroups($customGroups) { + $this->customGroups = $customGroups; + } + + public function getCustomGroups() { + return $this->customGroups; + } + + public function setCustomLabel0($customLabel0) { + $this->customLabel0 = $customLabel0; + } + + public function getCustomLabel0() { + return $this->customLabel0; + } + + public function setCustomLabel1($customLabel1) { + $this->customLabel1 = $customLabel1; + } + + public function getCustomLabel1() { + return $this->customLabel1; + } + + public function setCustomLabel2($customLabel2) { + $this->customLabel2 = $customLabel2; + } + + public function getCustomLabel2() { + return $this->customLabel2; + } + + public function setCustomLabel3($customLabel3) { + $this->customLabel3 = $customLabel3; + } + + public function getCustomLabel3() { + return $this->customLabel3; + } + + public function setCustomLabel4($customLabel4) { + $this->customLabel4 = $customLabel4; + } + + public function getCustomLabel4() { + return $this->customLabel4; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setDestinations($destinations) { + $this->destinations = $destinations; + } + + public function getDestinations() { + return $this->destinations; + } + + public function setEnergyEfficiencyClass($energyEfficiencyClass) { + $this->energyEfficiencyClass = $energyEfficiencyClass; + } + + public function getEnergyEfficiencyClass() { + return $this->energyEfficiencyClass; + } + + public function setExpirationDate($expirationDate) { + $this->expirationDate = $expirationDate; + } + + public function getExpirationDate() { + return $this->expirationDate; + } + + public function setGender($gender) { + $this->gender = $gender; + } + + public function getGender() { + return $this->gender; + } + + public function setGoogleProductCategory($googleProductCategory) { + $this->googleProductCategory = $googleProductCategory; + } + + public function getGoogleProductCategory() { + return $this->googleProductCategory; + } + + public function setGtin($gtin) { + $this->gtin = $gtin; + } + + public function getGtin() { + return $this->gtin; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setIdentifierExists($identifierExists) { + $this->identifierExists = $identifierExists; + } + + public function getIdentifierExists() { + return $this->identifierExists; + } + + public function setImageLink($imageLink) { + $this->imageLink = $imageLink; + } + + public function getImageLink() { + return $this->imageLink; + } + + public function setInstallment(Google_Service_ShoppingContent_ProductInstallment $installment) { + $this->installment = $installment; + } + + public function getInstallment() { + return $this->installment; + } + + public function setIsBundle($isBundle) { + $this->isBundle = $isBundle; + } + + public function getIsBundle() { + return $this->isBundle; + } + + public function setItemGroupId($itemGroupId) { + $this->itemGroupId = $itemGroupId; + } + + public function getItemGroupId() { + return $this->itemGroupId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLink($link) { + $this->link = $link; + } + + public function getLink() { + return $this->link; + } + + public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints) { + $this->loyaltyPoints = $loyaltyPoints; + } + + public function getLoyaltyPoints() { + return $this->loyaltyPoints; + } + + public function setMaterial($material) { + $this->material = $material; + } + + public function getMaterial() { + return $this->material; + } + + public function setMerchantMultipackQuantity($merchantMultipackQuantity) { + $this->merchantMultipackQuantity = $merchantMultipackQuantity; + } + + public function getMerchantMultipackQuantity() { + return $this->merchantMultipackQuantity; + } + + public function setMobileLink($mobileLink) { + $this->mobileLink = $mobileLink; + } + + public function getMobileLink() { + return $this->mobileLink; + } + + public function setMpn($mpn) { + $this->mpn = $mpn; + } + + public function getMpn() { + return $this->mpn; + } + + public function setOfferId($offerId) { + $this->offerId = $offerId; + } + + public function getOfferId() { + return $this->offerId; + } + + public function setOnlineOnly($onlineOnly) { + $this->onlineOnly = $onlineOnly; + } + + public function getOnlineOnly() { + return $this->onlineOnly; + } + + public function setPattern($pattern) { + $this->pattern = $pattern; + } + + public function getPattern() { + return $this->pattern; + } + + public function setPrice(Google_Service_ShoppingContent_Price $price) { + $this->price = $price; + } + + public function getPrice() { + return $this->price; + } + + public function setProductType($productType) { + $this->productType = $productType; + } + + public function getProductType() { + return $this->productType; + } + + public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) { + $this->salePrice = $salePrice; + } + + public function getSalePrice() { + return $this->salePrice; + } + + public function setSalePriceEffectiveDate($salePriceEffectiveDate) { + $this->salePriceEffectiveDate = $salePriceEffectiveDate; + } + + public function getSalePriceEffectiveDate() { + return $this->salePriceEffectiveDate; + } + + public function setShipping($shipping) { + $this->shipping = $shipping; + } + + public function getShipping() { + return $this->shipping; + } + + public function setShippingWeight(Google_Service_ShoppingContent_ProductShippingWeight $shippingWeight) { + $this->shippingWeight = $shippingWeight; + } + + public function getShippingWeight() { + return $this->shippingWeight; + } + + public function setSizeSystem($sizeSystem) { + $this->sizeSystem = $sizeSystem; + } + + public function getSizeSystem() { + return $this->sizeSystem; + } + + public function setSizeType($sizeType) { + $this->sizeType = $sizeType; + } + + public function getSizeType() { + return $this->sizeType; + } + + public function setSizes($sizes) { + $this->sizes = $sizes; + } + + public function getSizes() { + return $this->sizes; + } + + public function setTargetCountry($targetCountry) { + $this->targetCountry = $targetCountry; + } + + public function getTargetCountry() { + return $this->targetCountry; + } + + public function setTaxes($taxes) { + $this->taxes = $taxes; + } + + public function getTaxes() { + return $this->taxes; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setUnitPricingBaseMeasure($unitPricingBaseMeasure) { + $this->unitPricingBaseMeasure = $unitPricingBaseMeasure; + } + + public function getUnitPricingBaseMeasure() { + return $this->unitPricingBaseMeasure; + } + + public function setUnitPricingMeasure($unitPricingMeasure) { + $this->unitPricingMeasure = $unitPricingMeasure; + } + + public function getUnitPricingMeasure() { + return $this->unitPricingMeasure; + } + + public function setValidatedDestinations($validatedDestinations) { + $this->validatedDestinations = $validatedDestinations; + } + + public function getValidatedDestinations() { + return $this->validatedDestinations; + } + + public function setWarnings($warnings) { + $this->warnings = $warnings; + } + + public function getWarnings() { + return $this->warnings; + } +} + +class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model { + public $name; + public $type; + public $unit; + public $value; + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setUnit($unit) { + $this->unit = $unit; + } + + public function getUnit() { + return $this->unit; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_ShoppingContent_ProductCustomGroup extends Google_Collection { + protected $attributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; + protected $attributesDataType = 'array'; + public $name; + + public function setAttributes($attributes) { + $this->attributes = $attributes; + } + + public function getAttributes() { + return $this->attributes; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } +} + +class Google_Service_ShoppingContent_ProductDestination extends Google_Model { + public $destinationName; + public $intention; + + public function setDestinationName($destinationName) { + $this->destinationName = $destinationName; + } + + public function getDestinationName() { + return $this->destinationName; + } + + public function setIntention($intention) { + $this->intention = $intention; + } + + public function getIntention() { + return $this->intention; + } +} + +class Google_Service_ShoppingContent_ProductInstallment extends Google_Model { + protected $amountType = 'Google_Service_ShoppingContent_Price'; + protected $amountDataType = ''; + public $months; + + public function setAmount(Google_Service_ShoppingContent_Price $amount) { + $this->amount = $amount; + } + + public function getAmount() { + return $this->amount; + } + + public function setMonths($months) { + $this->months = $months; + } + + public function getMonths() { + return $this->months; + } +} + +class Google_Service_ShoppingContent_ProductShipping extends Google_Model { + public $country; + protected $priceType = 'Google_Service_ShoppingContent_Price'; + protected $priceDataType = ''; + public $region; + public $service; + + public function setCountry($country) { + $this->country = $country; + } + + public function getCountry() { + return $this->country; + } + + public function setPrice(Google_Service_ShoppingContent_Price $price) { + $this->price = $price; + } + + public function getPrice() { + return $this->price; + } + + public function setRegion($region) { + $this->region = $region; + } + + public function getRegion() { + return $this->region; + } + + public function setService($service) { + $this->service = $service; + } + + public function getService() { + return $this->service; + } +} + +class Google_Service_ShoppingContent_ProductShippingWeight extends Google_Model { + public $unit; + public $value; + + public function setUnit($unit) { + $this->unit = $unit; + } + + public function getUnit() { + return $this->unit; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } +} + +class Google_Service_ShoppingContent_ProductStatus extends Google_Collection { + protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_ProductStatusDataQualityIssue'; + protected $dataQualityIssuesDataType = 'array'; + protected $destinationStatusesType = 'Google_Service_ShoppingContent_ProductStatusDestinationStatus'; + protected $destinationStatusesDataType = 'array'; + public $kind; + public $link; + public $productId; + public $title; + + public function setDataQualityIssues($dataQualityIssues) { + $this->dataQualityIssues = $dataQualityIssues; + } + + public function getDataQualityIssues() { + return $this->dataQualityIssues; + } + + public function setDestinationStatuses($destinationStatuses) { + $this->destinationStatuses = $destinationStatuses; + } + + public function getDestinationStatuses() { + return $this->destinationStatuses; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLink($link) { + $this->link = $link; + } + + public function getLink() { + return $this->link; + } + + public function setProductId($productId) { + $this->productId = $productId; + } + + public function getProductId() { + return $this->productId; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } +} + +class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Google_Model { + public $detail; + public $fetchStatus; + public $id; + public $location; + public $timestamp; + public $valueOnLandingPage; + public $valueProvided; + + public function setDetail($detail) { + $this->detail = $detail; + } + + public function getDetail() { + return $this->detail; + } + + public function setFetchStatus($fetchStatus) { + $this->fetchStatus = $fetchStatus; + } + + public function getFetchStatus() { + return $this->fetchStatus; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setLocation($location) { + $this->location = $location; + } + + public function getLocation() { + return $this->location; + } + + public function setTimestamp($timestamp) { + $this->timestamp = $timestamp; + } + + public function getTimestamp() { + return $this->timestamp; + } + + public function setValueOnLandingPage($valueOnLandingPage) { + $this->valueOnLandingPage = $valueOnLandingPage; + } + + public function getValueOnLandingPage() { + return $this->valueOnLandingPage; + } + + public function setValueProvided($valueProvided) { + $this->valueProvided = $valueProvided; + } + + public function getValueProvided() { + return $this->valueProvided; + } +} + +class Google_Service_ShoppingContent_ProductStatusDestinationStatus extends Google_Model { + public $approvalStatus; + public $destination; + public $intention; + + public function setApprovalStatus($approvalStatus) { + $this->approvalStatus = $approvalStatus; + } + + public function getApprovalStatus() { + return $this->approvalStatus; + } + + public function setDestination($destination) { + $this->destination = $destination; + } + + public function getDestination() { + return $this->destination; + } + + public function setIntention($intention) { + $this->intention = $intention; + } + + public function getIntention() { + return $this->intention; + } +} + +class Google_Service_ShoppingContent_ProductTax extends Google_Model { + public $country; + public $rate; + public $region; + public $taxShip; + + public function setCountry($country) { + $this->country = $country; + } + + public function getCountry() { + return $this->country; + } + + public function setRate($rate) { + $this->rate = $rate; + } + + public function getRate() { + return $this->rate; + } + + public function setRegion($region) { + $this->region = $region; + } + + public function getRegion() { + return $this->region; + } + + public function setTaxShip($taxShip) { + $this->taxShip = $taxShip; + } + + public function getTaxShip() { + return $this->taxShip; + } +} + +class Google_Service_ShoppingContent_ProductsCustomBatchRequest extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry extends Google_Model { + public $batchId; + public $merchantId; + public $method; + protected $productType = 'Google_Service_ShoppingContent_Product'; + protected $productDataType = ''; + public $productId; + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setMerchantId($merchantId) { + $this->merchantId = $merchantId; + } + + public function getMerchantId() { + return $this->merchantId; + } + + public function setMethod($method) { + $this->method = $method; + } + + public function getMethod() { + return $this->method; + } + + public function setProduct(Google_Service_ShoppingContent_Product $product) { + $this->product = $product; + } + + public function getProduct() { + return $this->product; + } + + public function setProductId($productId) { + $this->productId = $productId; + } + + public function getProductId() { + return $this->productId; + } +} + +class Google_Service_ShoppingContent_ProductsCustomBatchResponse extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry extends Google_Model { + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; + protected $productType = 'Google_Service_ShoppingContent_Product'; + protected $productDataType = ''; + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) { + $this->errors = $errors; + } + + public function getErrors() { + return $this->errors; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setProduct(Google_Service_ShoppingContent_Product $product) { + $this->product = $product; + } + + public function getProduct() { + return $this->product; + } +} + +class Google_Service_ShoppingContent_ProductsListResponse extends Google_Collection { + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_Product'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setResources($resources) { + $this->resources = $resources; + } + + public function getResources() { + return $this->resources; + } +} + +class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry extends Google_Model { + public $batchId; + public $merchantId; + public $method; + public $productId; + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setMerchantId($merchantId) { + $this->merchantId = $merchantId; + } + + public function getMerchantId() { + return $this->merchantId; + } + + public function setMethod($method) { + $this->method = $method; + } + + public function getMethod() { + return $this->method; + } + + public function setProductId($productId) { + $this->productId = $productId; + } + + public function getProductId() { + return $this->productId; + } +} + +class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse extends Google_Collection { + protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + public function setEntries($entries) { + $this->entries = $entries; + } + + public function getEntries() { + return $this->entries; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry extends Google_Model { + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; + protected $productStatusType = 'Google_Service_ShoppingContent_ProductStatus'; + protected $productStatusDataType = ''; + + public function setBatchId($batchId) { + $this->batchId = $batchId; + } + + public function getBatchId() { + return $this->batchId; + } + + public function setErrors(Google_Service_ShoppingContent_Errors $errors) { + $this->errors = $errors; + } + + public function getErrors() { + return $this->errors; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setProductStatus(Google_Service_ShoppingContent_ProductStatus $productStatus) { + $this->productStatus = $productStatus; + } + + public function getProductStatus() { + return $this->productStatus; + } +} + +class Google_Service_ShoppingContent_ProductstatusesListResponse extends Google_Collection { + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_ProductStatus'; + protected $resourcesDataType = 'array'; + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setResources($resources) { + $this->resources = $resources; + } + + public function getResources() { + return $this->resources; + } } diff --git a/oauth/Google/Service/SiteVerification.php b/oauth/Google/Service/SiteVerification.php index 59beccb..bd4ad05 100644 --- a/oauth/Google/Service/SiteVerification.php +++ b/oauth/Google/Service/SiteVerification.php @@ -29,97 +29,95 @@ * * @author Google, Inc. */ -class Google_Service_SiteVerification extends Google_Service -{ - /** Manage the list of sites and domains you control. */ - const SITEVERIFICATION = "https://www.googleapis.com/auth/siteverification"; - /** Manage your new site verifications with Google. */ - const SITEVERIFICATION_VERIFY_ONLY = "https://www.googleapis.com/auth/siteverification.verify_only"; +class Google_Service_SiteVerification extends Google_Service { + /** Manage the list of sites and domains you control. */ + const SITEVERIFICATION = "https://www.googleapis.com/auth/siteverification"; + /** Manage your new site verifications with Google. */ + const SITEVERIFICATION_VERIFY_ONLY = "https://www.googleapis.com/auth/siteverification.verify_only"; - public $webResource; - + public $webResource; - /** - * Constructs the internal representation of the SiteVerification service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'siteVerification/v1/'; - $this->version = 'v1'; - $this->serviceName = 'siteVerification'; - $this->webResource = new Google_Service_SiteVerification_WebResource_Resource( - $this, - $this->serviceName, - 'webResource', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'webResource/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'webResource/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getToken' => array( - 'path' => 'token', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'insert' => array( - 'path' => 'webResource', - 'httpMethod' => 'POST', - 'parameters' => array( - 'verificationMethod' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'webResource', - 'httpMethod' => 'GET', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'webResource/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'webResource/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the SiteVerification service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'siteVerification/v1/'; + $this->version = 'v1'; + $this->serviceName = 'siteVerification'; + + $this->webResource = new Google_Service_SiteVerification_WebResource_Resource( + $this, + $this->serviceName, + 'webResource', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'webResource/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'webResource/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'getToken' => array( + 'path' => 'token', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'insert' => array( + 'path' => 'webResource', + 'httpMethod' => 'POST', + 'parameters' => array( + 'verificationMethod' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'webResource', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), 'patch' => array( + 'path' => 'webResource/{id}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'webResource/{id}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -131,269 +129,235 @@ class Google_Service_SiteVerification extends Google_Service * $webResource = $siteVerificationService->webResource; * */ -class Google_Service_SiteVerification_WebResource_Resource extends Google_Service_Resource -{ +class Google_Service_SiteVerification_WebResource_Resource extends Google_Service_Resource { - /** - * Relinquish ownership of a website or domain. (webResource.delete) - * - * @param string $id - * The id of a verified site or domain. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Get the most current data for a website or domain. (webResource.get) - * - * @param string $id - * The id of a verified site or domain. - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource - */ - public function get($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); - } - /** - * Get a verification token for placing on a website or domain. - * (webResource.getToken) - * - * @param Google_SiteVerificationWebResourceGettokenRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse - */ - public function getToken(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getToken', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse"); - } - /** - * Attempt verification of a website or domain. (webResource.insert) - * - * @param string $verificationMethod - * The method to use for verifying a site or domain. - * @param Google_SiteVerificationWebResourceResource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource - */ - public function insert($verificationMethod, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) - { - $params = array('verificationMethod' => $verificationMethod, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); - } - /** - * Get the list of your verified websites and domains. - * (webResource.listWebResource) - * - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceListResponse - */ - public function listWebResource($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceListResponse"); - } - /** - * Modify the list of owners for your website or domain. This method supports - * patch semantics. (webResource.patch) - * - * @param string $id - * The id of a verified site or domain. - * @param Google_SiteVerificationWebResourceResource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource - */ - public function patch($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); - } - /** - * Modify the list of owners for your website or domain. (webResource.update) - * - * @param string $id - * The id of a verified site or domain. - * @param Google_SiteVerificationWebResourceResource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource - */ - public function update($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) - { - $params = array('id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); - } + /** + * Relinquish ownership of a website or domain. (webResource.delete) + * + * @param string $id + * The id of a verified site or domain. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Get the most current data for a website or domain. (webResource.get) + * + * @param string $id + * The id of a verified site or domain. + * @param array $optParams Optional parameters. + * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource + */ + public function get($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); + } + + /** + * Get a verification token for placing on a website or domain. + * (webResource.getToken) + * + * @param Google_SiteVerificationWebResourceGettokenRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse + */ + public function getToken(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getToken', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse"); + } + + /** + * Attempt verification of a website or domain. (webResource.insert) + * + * @param string $verificationMethod + * The method to use for verifying a site or domain. + * @param Google_SiteVerificationWebResourceResource $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource + */ + public function insert($verificationMethod, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) { + $params = array('verificationMethod' => $verificationMethod, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); + } + + /** + * Get the list of your verified websites and domains. + * (webResource.listWebResource) + * + * @param array $optParams Optional parameters. + * @return Google_Service_SiteVerification_SiteVerificationWebResourceListResponse + */ + public function listWebResource($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceListResponse"); + } + + /** + * Modify the list of owners for your website or domain. This method supports + * patch semantics. (webResource.patch) + * + * @param string $id + * The id of a verified site or domain. + * @param Google_SiteVerificationWebResourceResource $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource + */ + public function patch($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); + } + + /** + * Modify the list of owners for your website or domain. (webResource.update) + * + * @param string $id + * The id of a verified site or domain. + * @param Google_SiteVerificationWebResourceResource $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource + */ + public function update($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) { + $params = array('id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); + } } +class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest extends Google_Model { + protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite'; + protected $siteDataType = ''; + public $verificationMethod; + public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite $site) { + $this->site = $site; + } -class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest extends Google_Model -{ - protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite'; - protected $siteDataType = ''; - public $verificationMethod; + public function getSite() { + return $this->site; + } - public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite $site) - { - $this->site = $site; - } + public function setVerificationMethod($verificationMethod) { + $this->verificationMethod = $verificationMethod; + } - public function getSite() - { - return $this->site; - } - - public function setVerificationMethod($verificationMethod) - { - $this->verificationMethod = $verificationMethod; - } - - public function getVerificationMethod() - { - return $this->verificationMethod; - } + public function getVerificationMethod() { + return $this->verificationMethod; + } } -class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite extends Google_Model -{ - public $identifier; - public $type; +class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite extends Google_Model { + public $identifier; + public $type; - public function setIdentifier($identifier) - { - $this->identifier = $identifier; - } + public function setIdentifier($identifier) { + $this->identifier = $identifier; + } - public function getIdentifier() - { - return $this->identifier; - } + public function getIdentifier() { + return $this->identifier; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse extends Google_Model -{ - public $method; - public $token; +class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse extends Google_Model { + public $method; + public $token; - public function setMethod($method) - { - $this->method = $method; - } + public function setMethod($method) { + $this->method = $method; + } - public function getMethod() - { - return $this->method; - } + public function getMethod() { + return $this->method; + } - public function setToken($token) - { - $this->token = $token; - } + public function setToken($token) { + $this->token = $token; + } - public function getToken() - { - return $this->token; - } + public function getToken() { + return $this->token; + } } -class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse extends Google_Collection -{ - protected $itemsType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResource'; - protected $itemsDataType = 'array'; +class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse extends Google_Collection { + protected $itemsType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResource'; + protected $itemsDataType = 'array'; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } } -class Google_Service_SiteVerification_SiteVerificationWebResourceResource extends Google_Collection -{ - public $id; - public $owners; - protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite'; - protected $siteDataType = ''; +class Google_Service_SiteVerification_SiteVerificationWebResourceResource extends Google_Collection { + public $id; + public $owners; + protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite'; + protected $siteDataType = ''; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setOwners($owners) - { - $this->owners = $owners; - } + public function setOwners($owners) { + $this->owners = $owners; + } - public function getOwners() - { - return $this->owners; - } + public function getOwners() { + return $this->owners; + } - public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite $site) - { - $this->site = $site; - } + public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite $site) { + $this->site = $site; + } - public function getSite() - { - return $this->site; - } + public function getSite() { + return $this->site; + } } -class Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite extends Google_Model -{ - public $identifier; - public $type; +class Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite extends Google_Model { + public $identifier; + public $type; - public function setIdentifier($identifier) - { - $this->identifier = $identifier; - } + public function setIdentifier($identifier) { + $this->identifier = $identifier; + } - public function getIdentifier() - { - return $this->identifier; - } + public function getIdentifier() { + return $this->identifier; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } diff --git a/oauth/Google/Service/Spectrum.php b/oauth/Google/Service/Spectrum.php index 21e1005..bb96eb9 100644 --- a/oauth/Google/Service/Spectrum.php +++ b/oauth/Google/Service/Spectrum.php @@ -29,60 +29,58 @@ * * @author Google, Inc. */ -class Google_Service_Spectrum extends Google_Service -{ +class Google_Service_Spectrum extends Google_Service { - public $paws; - + public $paws; - /** - * Constructs the internal representation of the Spectrum service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'spectrum/v1explorer/paws/'; - $this->version = 'v1explorer'; - $this->serviceName = 'spectrum'; - $this->paws = new Google_Service_Spectrum_Paws_Resource( - $this, - $this->serviceName, - 'paws', - array( - 'methods' => array( - 'getSpectrum' => array( - 'path' => 'getSpectrum', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'getSpectrumBatch' => array( - 'path' => 'getSpectrumBatch', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'init' => array( - 'path' => 'init', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'notifySpectrumUse' => array( - 'path' => 'notifySpectrumUse', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'register' => array( - 'path' => 'register', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'verifyDevice' => array( - 'path' => 'verifyDevice', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Spectrum service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'spectrum/v1explorer/paws/'; + $this->version = 'v1explorer'; + $this->serviceName = 'spectrum'; + + $this->paws = new Google_Service_Spectrum_Paws_Resource( + $this, + $this->serviceName, + 'paws', + array( + 'methods' => array( + 'getSpectrum' => array( + 'path' => 'getSpectrum', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'getSpectrumBatch' => array( + 'path' => 'getSpectrumBatch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'init' => array( + 'path' => 'init', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'notifySpectrumUse' => array( + 'path' => 'notifySpectrumUse', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'register' => array( + 'path' => 'register', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'verifyDevice' => array( + 'path' => 'verifyDevice', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } } @@ -94,1780 +92,1471 @@ class Google_Service_Spectrum extends Google_Service * $paws = $spectrumService->paws; * */ -class Google_Service_Spectrum_Paws_Resource extends Google_Service_Resource -{ +class Google_Service_Spectrum_Paws_Resource extends Google_Service_Resource { - /** - * Requests information about the available spectrum for a device at a location. - * Requests from a fixed-mode device must include owner information so the - * device can be registered with the database. (paws.getSpectrum) - * - * @param Google_PawsGetSpectrumRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsGetSpectrumResponse - */ - public function getSpectrum(Google_Service_Spectrum_PawsGetSpectrumRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getSpectrum', array($params), "Google_Service_Spectrum_PawsGetSpectrumResponse"); - } - /** - * The Google Spectrum Database does not support batch requests, so this method - * always yields an UNIMPLEMENTED error. (paws.getSpectrumBatch) - * - * @param Google_PawsGetSpectrumBatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsGetSpectrumBatchResponse - */ - public function getSpectrumBatch(Google_Service_Spectrum_PawsGetSpectrumBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('getSpectrumBatch', array($params), "Google_Service_Spectrum_PawsGetSpectrumBatchResponse"); - } - /** - * Initializes the connection between a white space device and the database. - * (paws.init) - * - * @param Google_PawsInitRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsInitResponse - */ - public function init(Google_Service_Spectrum_PawsInitRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('init', array($params), "Google_Service_Spectrum_PawsInitResponse"); - } - /** - * Notifies the database that the device has selected certain frequency ranges - * for transmission. Only to be invoked when required by the regulator. The - * Google Spectrum Database does not operate in domains that require - * notification, so this always yields an UNIMPLEMENTED error. - * (paws.notifySpectrumUse) - * - * @param Google_PawsNotifySpectrumUseRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsNotifySpectrumUseResponse - */ - public function notifySpectrumUse(Google_Service_Spectrum_PawsNotifySpectrumUseRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('notifySpectrumUse', array($params), "Google_Service_Spectrum_PawsNotifySpectrumUseResponse"); - } - /** - * The Google Spectrum Database implements registration in the getSpectrum - * method. As such this always returns an UNIMPLEMENTED error. (paws.register) - * - * @param Google_PawsRegisterRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsRegisterResponse - */ - public function register(Google_Service_Spectrum_PawsRegisterRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('register', array($params), "Google_Service_Spectrum_PawsRegisterResponse"); - } - /** - * Validates a device for white space use in accordance with regulatory rules. - * The Google Spectrum Database does not support master/slave configurations, so - * this always yields an UNIMPLEMENTED error. (paws.verifyDevice) - * - * @param Google_PawsVerifyDeviceRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Spectrum_PawsVerifyDeviceResponse - */ - public function verifyDevice(Google_Service_Spectrum_PawsVerifyDeviceRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('verifyDevice', array($params), "Google_Service_Spectrum_PawsVerifyDeviceResponse"); - } + /** + * Requests information about the available spectrum for a device at a location. + * Requests from a fixed-mode device must include owner information so the + * device can be registered with the database. (paws.getSpectrum) + * + * @param Google_PawsGetSpectrumRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Spectrum_PawsGetSpectrumResponse + */ + public function getSpectrum(Google_Service_Spectrum_PawsGetSpectrumRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getSpectrum', array($params), "Google_Service_Spectrum_PawsGetSpectrumResponse"); + } + + /** + * The Google Spectrum Database does not support batch requests, so this method + * always yields an UNIMPLEMENTED error. (paws.getSpectrumBatch) + * + * @param Google_PawsGetSpectrumBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Spectrum_PawsGetSpectrumBatchResponse + */ + public function getSpectrumBatch(Google_Service_Spectrum_PawsGetSpectrumBatchRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getSpectrumBatch', array($params), "Google_Service_Spectrum_PawsGetSpectrumBatchResponse"); + } + + /** + * Initializes the connection between a white space device and the database. + * (paws.init) + * + * @param Google_PawsInitRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Spectrum_PawsInitResponse + */ + public function init(Google_Service_Spectrum_PawsInitRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('init', array($params), "Google_Service_Spectrum_PawsInitResponse"); + } + + /** + * Notifies the database that the device has selected certain frequency ranges + * for transmission. Only to be invoked when required by the regulator. The + * Google Spectrum Database does not operate in domains that require + * notification, so this always yields an UNIMPLEMENTED error. + * (paws.notifySpectrumUse) + * + * @param Google_PawsNotifySpectrumUseRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Spectrum_PawsNotifySpectrumUseResponse + */ + public function notifySpectrumUse(Google_Service_Spectrum_PawsNotifySpectrumUseRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('notifySpectrumUse', array($params), "Google_Service_Spectrum_PawsNotifySpectrumUseResponse"); + } + + /** + * The Google Spectrum Database implements registration in the getSpectrum + * method. As such this always returns an UNIMPLEMENTED error. (paws.register) + * + * @param Google_PawsRegisterRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Spectrum_PawsRegisterResponse + */ + public function register(Google_Service_Spectrum_PawsRegisterRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('register', array($params), "Google_Service_Spectrum_PawsRegisterResponse"); + } + + /** + * Validates a device for white space use in accordance with regulatory rules. + * The Google Spectrum Database does not support master/slave configurations, so + * this always yields an UNIMPLEMENTED error. (paws.verifyDevice) + * + * @param Google_PawsVerifyDeviceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Spectrum_PawsVerifyDeviceResponse + */ + public function verifyDevice(Google_Service_Spectrum_PawsVerifyDeviceRequest $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('verifyDevice', array($params), "Google_Service_Spectrum_PawsVerifyDeviceResponse"); + } } +class Google_Service_Spectrum_AntennaCharacteristics extends Google_Model { + public $height; + public $heightType; + public $heightUncertainty; + public function setHeight($height) { + $this->height = $height; + } -class Google_Service_Spectrum_AntennaCharacteristics extends Google_Model -{ - public $height; - public $heightType; - public $heightUncertainty; + public function getHeight() { + return $this->height; + } - public function setHeight($height) - { - $this->height = $height; - } + public function setHeightType($heightType) { + $this->heightType = $heightType; + } - public function getHeight() - { - return $this->height; - } + public function getHeightType() { + return $this->heightType; + } - public function setHeightType($heightType) - { - $this->heightType = $heightType; - } + public function setHeightUncertainty($heightUncertainty) { + $this->heightUncertainty = $heightUncertainty; + } - public function getHeightType() - { - return $this->heightType; - } - - public function setHeightUncertainty($heightUncertainty) - { - $this->heightUncertainty = $heightUncertainty; - } - - public function getHeightUncertainty() - { - return $this->heightUncertainty; - } + public function getHeightUncertainty() { + return $this->heightUncertainty; + } } -class Google_Service_Spectrum_DatabaseSpec extends Google_Model -{ - public $name; - public $uri; +class Google_Service_Spectrum_DatabaseSpec extends Google_Model { + public $name; + public $uri; - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setUri($uri) - { - $this->uri = $uri; - } + public function setUri($uri) { + $this->uri = $uri; + } - public function getUri() - { - return $this->uri; - } + public function getUri() { + return $this->uri; + } } -class Google_Service_Spectrum_DbUpdateSpec extends Google_Collection -{ - protected $databasesType = 'Google_Service_Spectrum_DatabaseSpec'; - protected $databasesDataType = 'array'; +class Google_Service_Spectrum_DbUpdateSpec extends Google_Collection { + protected $databasesType = 'Google_Service_Spectrum_DatabaseSpec'; + protected $databasesDataType = 'array'; - public function setDatabases($databases) - { - $this->databases = $databases; - } + public function setDatabases($databases) { + $this->databases = $databases; + } - public function getDatabases() - { - return $this->databases; - } + public function getDatabases() { + return $this->databases; + } } -class Google_Service_Spectrum_DeviceCapabilities extends Google_Collection -{ - protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; - protected $frequencyRangesDataType = 'array'; +class Google_Service_Spectrum_DeviceCapabilities extends Google_Collection { + protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; + protected $frequencyRangesDataType = 'array'; - public function setFrequencyRanges($frequencyRanges) - { - $this->frequencyRanges = $frequencyRanges; - } + public function setFrequencyRanges($frequencyRanges) { + $this->frequencyRanges = $frequencyRanges; + } - public function getFrequencyRanges() - { - return $this->frequencyRanges; - } + public function getFrequencyRanges() { + return $this->frequencyRanges; + } } -class Google_Service_Spectrum_DeviceDescriptor extends Google_Collection -{ - public $etsiEnDeviceCategory; - public $etsiEnDeviceEmissionsClass; - public $etsiEnDeviceType; - public $etsiEnTechnologyId; - public $fccId; - public $fccTvbdDeviceType; - public $manufacturerId; - public $modelId; - public $rulesetIds; - public $serialNumber; +class Google_Service_Spectrum_DeviceDescriptor extends Google_Collection { + public $etsiEnDeviceCategory; + public $etsiEnDeviceEmissionsClass; + public $etsiEnDeviceType; + public $etsiEnTechnologyId; + public $fccId; + public $fccTvbdDeviceType; + public $manufacturerId; + public $modelId; + public $rulesetIds; + public $serialNumber; - public function setEtsiEnDeviceCategory($etsiEnDeviceCategory) - { - $this->etsiEnDeviceCategory = $etsiEnDeviceCategory; - } + public function setEtsiEnDeviceCategory($etsiEnDeviceCategory) { + $this->etsiEnDeviceCategory = $etsiEnDeviceCategory; + } - public function getEtsiEnDeviceCategory() - { - return $this->etsiEnDeviceCategory; - } + public function getEtsiEnDeviceCategory() { + return $this->etsiEnDeviceCategory; + } - public function setEtsiEnDeviceEmissionsClass($etsiEnDeviceEmissionsClass) - { - $this->etsiEnDeviceEmissionsClass = $etsiEnDeviceEmissionsClass; - } + public function setEtsiEnDeviceEmissionsClass($etsiEnDeviceEmissionsClass) { + $this->etsiEnDeviceEmissionsClass = $etsiEnDeviceEmissionsClass; + } - public function getEtsiEnDeviceEmissionsClass() - { - return $this->etsiEnDeviceEmissionsClass; - } + public function getEtsiEnDeviceEmissionsClass() { + return $this->etsiEnDeviceEmissionsClass; + } - public function setEtsiEnDeviceType($etsiEnDeviceType) - { - $this->etsiEnDeviceType = $etsiEnDeviceType; - } + public function setEtsiEnDeviceType($etsiEnDeviceType) { + $this->etsiEnDeviceType = $etsiEnDeviceType; + } - public function getEtsiEnDeviceType() - { - return $this->etsiEnDeviceType; - } + public function getEtsiEnDeviceType() { + return $this->etsiEnDeviceType; + } - public function setEtsiEnTechnologyId($etsiEnTechnologyId) - { - $this->etsiEnTechnologyId = $etsiEnTechnologyId; - } + public function setEtsiEnTechnologyId($etsiEnTechnologyId) { + $this->etsiEnTechnologyId = $etsiEnTechnologyId; + } - public function getEtsiEnTechnologyId() - { - return $this->etsiEnTechnologyId; - } + public function getEtsiEnTechnologyId() { + return $this->etsiEnTechnologyId; + } - public function setFccId($fccId) - { - $this->fccId = $fccId; - } + public function setFccId($fccId) { + $this->fccId = $fccId; + } - public function getFccId() - { - return $this->fccId; - } + public function getFccId() { + return $this->fccId; + } - public function setFccTvbdDeviceType($fccTvbdDeviceType) - { - $this->fccTvbdDeviceType = $fccTvbdDeviceType; - } + public function setFccTvbdDeviceType($fccTvbdDeviceType) { + $this->fccTvbdDeviceType = $fccTvbdDeviceType; + } - public function getFccTvbdDeviceType() - { - return $this->fccTvbdDeviceType; - } + public function getFccTvbdDeviceType() { + return $this->fccTvbdDeviceType; + } - public function setManufacturerId($manufacturerId) - { - $this->manufacturerId = $manufacturerId; - } + public function setManufacturerId($manufacturerId) { + $this->manufacturerId = $manufacturerId; + } - public function getManufacturerId() - { - return $this->manufacturerId; - } + public function getManufacturerId() { + return $this->manufacturerId; + } - public function setModelId($modelId) - { - $this->modelId = $modelId; - } + public function setModelId($modelId) { + $this->modelId = $modelId; + } - public function getModelId() - { - return $this->modelId; - } + public function getModelId() { + return $this->modelId; + } - public function setRulesetIds($rulesetIds) - { - $this->rulesetIds = $rulesetIds; - } + public function setRulesetIds($rulesetIds) { + $this->rulesetIds = $rulesetIds; + } - public function getRulesetIds() - { - return $this->rulesetIds; - } + public function getRulesetIds() { + return $this->rulesetIds; + } - public function setSerialNumber($serialNumber) - { - $this->serialNumber = $serialNumber; - } + public function setSerialNumber($serialNumber) { + $this->serialNumber = $serialNumber; + } - public function getSerialNumber() - { - return $this->serialNumber; - } + public function getSerialNumber() { + return $this->serialNumber; + } } -class Google_Service_Spectrum_DeviceOwner extends Google_Model -{ - protected $operatorType = 'Google_Service_Spectrum_Vcard'; - protected $operatorDataType = ''; - protected $ownerType = 'Google_Service_Spectrum_Vcard'; - protected $ownerDataType = ''; +class Google_Service_Spectrum_DeviceOwner extends Google_Model { + protected $operatorType = 'Google_Service_Spectrum_Vcard'; + protected $operatorDataType = ''; + protected $ownerType = 'Google_Service_Spectrum_Vcard'; + protected $ownerDataType = ''; - public function setOperator(Google_Service_Spectrum_Vcard $operator) - { - $this->operator = $operator; - } + public function setOperator(Google_Service_Spectrum_Vcard $operator) { + $this->operator = $operator; + } - public function getOperator() - { - return $this->operator; - } + public function getOperator() { + return $this->operator; + } - public function setOwner(Google_Service_Spectrum_Vcard $owner) - { - $this->owner = $owner; - } + public function setOwner(Google_Service_Spectrum_Vcard $owner) { + $this->owner = $owner; + } - public function getOwner() - { - return $this->owner; - } + public function getOwner() { + return $this->owner; + } } -class Google_Service_Spectrum_DeviceValidity extends Google_Model -{ - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - public $isValid; - public $reason; +class Google_Service_Spectrum_DeviceValidity extends Google_Model { + protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; + protected $deviceDescDataType = ''; + public $isValid; + public $reason; - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } + public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { + $this->deviceDesc = $deviceDesc; + } - public function getDeviceDesc() - { - return $this->deviceDesc; - } + public function getDeviceDesc() { + return $this->deviceDesc; + } - public function setIsValid($isValid) - { - $this->isValid = $isValid; - } + public function setIsValid($isValid) { + $this->isValid = $isValid; + } - public function getIsValid() - { - return $this->isValid; - } + public function getIsValid() { + return $this->isValid; + } - public function setReason($reason) - { - $this->reason = $reason; - } + public function setReason($reason) { + $this->reason = $reason; + } - public function getReason() - { - return $this->reason; - } + public function getReason() { + return $this->reason; + } } -class Google_Service_Spectrum_EventTime extends Google_Model -{ - public $startTime; - public $stopTime; +class Google_Service_Spectrum_EventTime extends Google_Model { + public $startTime; + public $stopTime; - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getStartTime() - { - return $this->startTime; - } + public function getStartTime() { + return $this->startTime; + } - public function setStopTime($stopTime) - { - $this->stopTime = $stopTime; - } + public function setStopTime($stopTime) { + $this->stopTime = $stopTime; + } - public function getStopTime() - { - return $this->stopTime; - } + public function getStopTime() { + return $this->stopTime; + } } -class Google_Service_Spectrum_FrequencyRange extends Google_Model -{ - public $channelId; - public $maxPowerDBm; - public $startHz; - public $stopHz; +class Google_Service_Spectrum_FrequencyRange extends Google_Model { + public $channelId; + public $maxPowerDBm; + public $startHz; + public $stopHz; - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } + public function setChannelId($channelId) { + $this->channelId = $channelId; + } - public function getChannelId() - { - return $this->channelId; - } + public function getChannelId() { + return $this->channelId; + } - public function setMaxPowerDBm($maxPowerDBm) - { - $this->maxPowerDBm = $maxPowerDBm; - } + public function setMaxPowerDBm($maxPowerDBm) { + $this->maxPowerDBm = $maxPowerDBm; + } - public function getMaxPowerDBm() - { - return $this->maxPowerDBm; - } + public function getMaxPowerDBm() { + return $this->maxPowerDBm; + } - public function setStartHz($startHz) - { - $this->startHz = $startHz; - } + public function setStartHz($startHz) { + $this->startHz = $startHz; + } - public function getStartHz() - { - return $this->startHz; - } + public function getStartHz() { + return $this->startHz; + } - public function setStopHz($stopHz) - { - $this->stopHz = $stopHz; - } + public function setStopHz($stopHz) { + $this->stopHz = $stopHz; + } - public function getStopHz() - { - return $this->stopHz; - } + public function getStopHz() { + return $this->stopHz; + } } -class Google_Service_Spectrum_GeoLocation extends Google_Model -{ - public $confidence; - protected $pointType = 'Google_Service_Spectrum_GeoLocationEllipse'; - protected $pointDataType = ''; - protected $regionType = 'Google_Service_Spectrum_GeoLocationPolygon'; - protected $regionDataType = ''; +class Google_Service_Spectrum_GeoLocation extends Google_Model { + public $confidence; + protected $pointType = 'Google_Service_Spectrum_GeoLocationEllipse'; + protected $pointDataType = ''; + protected $regionType = 'Google_Service_Spectrum_GeoLocationPolygon'; + protected $regionDataType = ''; - public function setConfidence($confidence) - { - $this->confidence = $confidence; - } + public function setConfidence($confidence) { + $this->confidence = $confidence; + } - public function getConfidence() - { - return $this->confidence; - } + public function getConfidence() { + return $this->confidence; + } - public function setPoint(Google_Service_Spectrum_GeoLocationEllipse $point) - { - $this->point = $point; - } + public function setPoint(Google_Service_Spectrum_GeoLocationEllipse $point) { + $this->point = $point; + } - public function getPoint() - { - return $this->point; - } + public function getPoint() { + return $this->point; + } - public function setRegion(Google_Service_Spectrum_GeoLocationPolygon $region) - { - $this->region = $region; - } + public function setRegion(Google_Service_Spectrum_GeoLocationPolygon $region) { + $this->region = $region; + } - public function getRegion() - { - return $this->region; - } + public function getRegion() { + return $this->region; + } } -class Google_Service_Spectrum_GeoLocationEllipse extends Google_Model -{ - protected $centerType = 'Google_Service_Spectrum_GeoLocationPoint'; - protected $centerDataType = ''; - public $orientation; - public $semiMajorAxis; - public $semiMinorAxis; +class Google_Service_Spectrum_GeoLocationEllipse extends Google_Model { + protected $centerType = 'Google_Service_Spectrum_GeoLocationPoint'; + protected $centerDataType = ''; + public $orientation; + public $semiMajorAxis; + public $semiMinorAxis; - public function setCenter(Google_Service_Spectrum_GeoLocationPoint $center) - { - $this->center = $center; - } + public function setCenter(Google_Service_Spectrum_GeoLocationPoint $center) { + $this->center = $center; + } - public function getCenter() - { - return $this->center; - } + public function getCenter() { + return $this->center; + } - public function setOrientation($orientation) - { - $this->orientation = $orientation; - } + public function setOrientation($orientation) { + $this->orientation = $orientation; + } - public function getOrientation() - { - return $this->orientation; - } + public function getOrientation() { + return $this->orientation; + } - public function setSemiMajorAxis($semiMajorAxis) - { - $this->semiMajorAxis = $semiMajorAxis; - } + public function setSemiMajorAxis($semiMajorAxis) { + $this->semiMajorAxis = $semiMajorAxis; + } - public function getSemiMajorAxis() - { - return $this->semiMajorAxis; - } + public function getSemiMajorAxis() { + return $this->semiMajorAxis; + } - public function setSemiMinorAxis($semiMinorAxis) - { - $this->semiMinorAxis = $semiMinorAxis; - } + public function setSemiMinorAxis($semiMinorAxis) { + $this->semiMinorAxis = $semiMinorAxis; + } - public function getSemiMinorAxis() - { - return $this->semiMinorAxis; - } + public function getSemiMinorAxis() { + return $this->semiMinorAxis; + } } -class Google_Service_Spectrum_GeoLocationPoint extends Google_Model -{ - public $latitude; - public $longitude; +class Google_Service_Spectrum_GeoLocationPoint extends Google_Model { + public $latitude; + public $longitude; - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } + public function setLatitude($latitude) { + $this->latitude = $latitude; + } - public function getLatitude() - { - return $this->latitude; - } + public function getLatitude() { + return $this->latitude; + } - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } + public function setLongitude($longitude) { + $this->longitude = $longitude; + } - public function getLongitude() - { - return $this->longitude; - } + public function getLongitude() { + return $this->longitude; + } } -class Google_Service_Spectrum_GeoLocationPolygon extends Google_Collection -{ - protected $exteriorType = 'Google_Service_Spectrum_GeoLocationPoint'; - protected $exteriorDataType = 'array'; +class Google_Service_Spectrum_GeoLocationPolygon extends Google_Collection { + protected $exteriorType = 'Google_Service_Spectrum_GeoLocationPoint'; + protected $exteriorDataType = 'array'; - public function setExterior($exterior) - { - $this->exterior = $exterior; - } + public function setExterior($exterior) { + $this->exterior = $exterior; + } - public function getExterior() - { - return $this->exterior; - } + public function getExterior() { + return $this->exterior; + } } -class Google_Service_Spectrum_GeoSpectrumSchedule extends Google_Collection -{ - protected $locationType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationDataType = ''; - protected $spectrumSchedulesType = 'Google_Service_Spectrum_SpectrumSchedule'; - protected $spectrumSchedulesDataType = 'array'; +class Google_Service_Spectrum_GeoSpectrumSchedule extends Google_Collection { + protected $locationType = 'Google_Service_Spectrum_GeoLocation'; + protected $locationDataType = ''; + protected $spectrumSchedulesType = 'Google_Service_Spectrum_SpectrumSchedule'; + protected $spectrumSchedulesDataType = 'array'; - public function setLocation(Google_Service_Spectrum_GeoLocation $location) - { - $this->location = $location; - } + public function setLocation(Google_Service_Spectrum_GeoLocation $location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setSpectrumSchedules($spectrumSchedules) - { - $this->spectrumSchedules = $spectrumSchedules; - } + public function setSpectrumSchedules($spectrumSchedules) { + $this->spectrumSchedules = $spectrumSchedules; + } - public function getSpectrumSchedules() - { - return $this->spectrumSchedules; - } + public function getSpectrumSchedules() { + return $this->spectrumSchedules; + } } -class Google_Service_Spectrum_PawsGetSpectrumBatchRequest extends Google_Collection -{ - protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; - protected $antennaDataType = ''; - protected $capabilitiesType = 'Google_Service_Spectrum_DeviceCapabilities'; - protected $capabilitiesDataType = ''; - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $locationsType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationsDataType = 'array'; - protected $masterDeviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $masterDeviceDescDataType = ''; - protected $ownerType = 'Google_Service_Spectrum_DeviceOwner'; - protected $ownerDataType = ''; - public $requestType; - public $type; - public $version; +class Google_Service_Spectrum_PawsGetSpectrumBatchRequest extends Google_Collection { + protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; + protected $antennaDataType = ''; + protected $capabilitiesType = 'Google_Service_Spectrum_DeviceCapabilities'; + protected $capabilitiesDataType = ''; + protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; + protected $deviceDescDataType = ''; + protected $locationsType = 'Google_Service_Spectrum_GeoLocation'; + protected $locationsDataType = 'array'; + protected $masterDeviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; + protected $masterDeviceDescDataType = ''; + protected $ownerType = 'Google_Service_Spectrum_DeviceOwner'; + protected $ownerDataType = ''; + public $requestType; + public $type; + public $version; - public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) - { - $this->antenna = $antenna; - } + public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) { + $this->antenna = $antenna; + } - public function getAntenna() - { - return $this->antenna; - } + public function getAntenna() { + return $this->antenna; + } - public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capabilities) - { - $this->capabilities = $capabilities; - } + public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capabilities) { + $this->capabilities = $capabilities; + } - public function getCapabilities() - { - return $this->capabilities; - } + public function getCapabilities() { + return $this->capabilities; + } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } + public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { + $this->deviceDesc = $deviceDesc; + } - public function getDeviceDesc() - { - return $this->deviceDesc; - } + public function getDeviceDesc() { + return $this->deviceDesc; + } - public function setLocations($locations) - { - $this->locations = $locations; - } + public function setLocations($locations) { + $this->locations = $locations; + } - public function getLocations() - { - return $this->locations; - } + public function getLocations() { + return $this->locations; + } - public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $masterDeviceDesc) - { - $this->masterDeviceDesc = $masterDeviceDesc; - } + public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $masterDeviceDesc) { + $this->masterDeviceDesc = $masterDeviceDesc; + } - public function getMasterDeviceDesc() - { - return $this->masterDeviceDesc; - } + public function getMasterDeviceDesc() { + return $this->masterDeviceDesc; + } - public function setOwner(Google_Service_Spectrum_DeviceOwner $owner) - { - $this->owner = $owner; - } + public function setOwner(Google_Service_Spectrum_DeviceOwner $owner) { + $this->owner = $owner; + } - public function getOwner() - { - return $this->owner; - } + public function getOwner() { + return $this->owner; + } - public function setRequestType($requestType) - { - $this->requestType = $requestType; - } + public function setRequestType($requestType) { + $this->requestType = $requestType; + } - public function getRequestType() - { - return $this->requestType; - } + public function getRequestType() { + return $this->requestType; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_PawsGetSpectrumBatchResponse extends Google_Collection -{ - protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; - protected $databaseChangeDataType = ''; - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $geoSpectrumSchedulesType = 'Google_Service_Spectrum_GeoSpectrumSchedule'; - protected $geoSpectrumSchedulesDataType = 'array'; - public $kind; - public $maxContiguousBwHz; - public $maxTotalBwHz; - public $needsSpectrumReport; - protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo'; - protected $rulesetInfoDataType = ''; - public $timestamp; - public $type; - public $version; +class Google_Service_Spectrum_PawsGetSpectrumBatchResponse extends Google_Collection { + protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; + protected $databaseChangeDataType = ''; + protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; + protected $deviceDescDataType = ''; + protected $geoSpectrumSchedulesType = 'Google_Service_Spectrum_GeoSpectrumSchedule'; + protected $geoSpectrumSchedulesDataType = 'array'; + public $kind; + public $maxContiguousBwHz; + public $maxTotalBwHz; + public $needsSpectrumReport; + protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo'; + protected $rulesetInfoDataType = ''; + public $timestamp; + public $type; + public $version; - public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) - { - $this->databaseChange = $databaseChange; - } + public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) { + $this->databaseChange = $databaseChange; + } - public function getDatabaseChange() - { - return $this->databaseChange; - } + public function getDatabaseChange() { + return $this->databaseChange; + } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } + public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { + $this->deviceDesc = $deviceDesc; + } - public function getDeviceDesc() - { - return $this->deviceDesc; - } + public function getDeviceDesc() { + return $this->deviceDesc; + } - public function setGeoSpectrumSchedules($geoSpectrumSchedules) - { - $this->geoSpectrumSchedules = $geoSpectrumSchedules; - } + public function setGeoSpectrumSchedules($geoSpectrumSchedules) { + $this->geoSpectrumSchedules = $geoSpectrumSchedules; + } - public function getGeoSpectrumSchedules() - { - return $this->geoSpectrumSchedules; - } + public function getGeoSpectrumSchedules() { + return $this->geoSpectrumSchedules; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMaxContiguousBwHz($maxContiguousBwHz) - { - $this->maxContiguousBwHz = $maxContiguousBwHz; - } + public function setMaxContiguousBwHz($maxContiguousBwHz) { + $this->maxContiguousBwHz = $maxContiguousBwHz; + } - public function getMaxContiguousBwHz() - { - return $this->maxContiguousBwHz; - } + public function getMaxContiguousBwHz() { + return $this->maxContiguousBwHz; + } - public function setMaxTotalBwHz($maxTotalBwHz) - { - $this->maxTotalBwHz = $maxTotalBwHz; - } + public function setMaxTotalBwHz($maxTotalBwHz) { + $this->maxTotalBwHz = $maxTotalBwHz; + } - public function getMaxTotalBwHz() - { - return $this->maxTotalBwHz; - } + public function getMaxTotalBwHz() { + return $this->maxTotalBwHz; + } - public function setNeedsSpectrumReport($needsSpectrumReport) - { - $this->needsSpectrumReport = $needsSpectrumReport; - } + public function setNeedsSpectrumReport($needsSpectrumReport) { + $this->needsSpectrumReport = $needsSpectrumReport; + } - public function getNeedsSpectrumReport() - { - return $this->needsSpectrumReport; - } + public function getNeedsSpectrumReport() { + return $this->needsSpectrumReport; + } - public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) - { - $this->rulesetInfo = $rulesetInfo; - } + public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) { + $this->rulesetInfo = $rulesetInfo; + } - public function getRulesetInfo() - { - return $this->rulesetInfo; - } + public function getRulesetInfo() { + return $this->rulesetInfo; + } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } + public function setTimestamp($timestamp) { + $this->timestamp = $timestamp; + } - public function getTimestamp() - { - return $this->timestamp; - } + public function getTimestamp() { + return $this->timestamp; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_PawsGetSpectrumRequest extends Google_Model -{ - protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; - protected $antennaDataType = ''; - protected $capabilitiesType = 'Google_Service_Spectrum_DeviceCapabilities'; - protected $capabilitiesDataType = ''; - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $locationType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationDataType = ''; - protected $masterDeviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $masterDeviceDescDataType = ''; - protected $ownerType = 'Google_Service_Spectrum_DeviceOwner'; - protected $ownerDataType = ''; - public $requestType; - public $type; - public $version; +class Google_Service_Spectrum_PawsGetSpectrumRequest extends Google_Model { + protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; + protected $antennaDataType = ''; + protected $capabilitiesType = 'Google_Service_Spectrum_DeviceCapabilities'; + protected $capabilitiesDataType = ''; + protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; + protected $deviceDescDataType = ''; + protected $locationType = 'Google_Service_Spectrum_GeoLocation'; + protected $locationDataType = ''; + protected $masterDeviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; + protected $masterDeviceDescDataType = ''; + protected $ownerType = 'Google_Service_Spectrum_DeviceOwner'; + protected $ownerDataType = ''; + public $requestType; + public $type; + public $version; - public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) - { - $this->antenna = $antenna; - } + public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) { + $this->antenna = $antenna; + } - public function getAntenna() - { - return $this->antenna; - } + public function getAntenna() { + return $this->antenna; + } - public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capabilities) - { - $this->capabilities = $capabilities; - } + public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capabilities) { + $this->capabilities = $capabilities; + } - public function getCapabilities() - { - return $this->capabilities; - } + public function getCapabilities() { + return $this->capabilities; + } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } + public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { + $this->deviceDesc = $deviceDesc; + } - public function getDeviceDesc() - { - return $this->deviceDesc; - } + public function getDeviceDesc() { + return $this->deviceDesc; + } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) - { - $this->location = $location; - } + public function setLocation(Google_Service_Spectrum_GeoLocation $location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $masterDeviceDesc) - { - $this->masterDeviceDesc = $masterDeviceDesc; - } + public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $masterDeviceDesc) { + $this->masterDeviceDesc = $masterDeviceDesc; + } - public function getMasterDeviceDesc() - { - return $this->masterDeviceDesc; - } + public function getMasterDeviceDesc() { + return $this->masterDeviceDesc; + } - public function setOwner(Google_Service_Spectrum_DeviceOwner $owner) - { - $this->owner = $owner; - } + public function setOwner(Google_Service_Spectrum_DeviceOwner $owner) { + $this->owner = $owner; + } - public function getOwner() - { - return $this->owner; - } + public function getOwner() { + return $this->owner; + } - public function setRequestType($requestType) - { - $this->requestType = $requestType; - } + public function setRequestType($requestType) { + $this->requestType = $requestType; + } - public function getRequestType() - { - return $this->requestType; - } + public function getRequestType() { + return $this->requestType; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_PawsGetSpectrumResponse extends Google_Collection -{ - protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; - protected $databaseChangeDataType = ''; - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - public $kind; - public $maxContiguousBwHz; - public $maxTotalBwHz; - public $needsSpectrumReport; - protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo'; - protected $rulesetInfoDataType = ''; - protected $spectrumSchedulesType = 'Google_Service_Spectrum_SpectrumSchedule'; - protected $spectrumSchedulesDataType = 'array'; - public $timestamp; - public $type; - public $version; +class Google_Service_Spectrum_PawsGetSpectrumResponse extends Google_Collection { + protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; + protected $databaseChangeDataType = ''; + protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; + protected $deviceDescDataType = ''; + public $kind; + public $maxContiguousBwHz; + public $maxTotalBwHz; + public $needsSpectrumReport; + protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo'; + protected $rulesetInfoDataType = ''; + protected $spectrumSchedulesType = 'Google_Service_Spectrum_SpectrumSchedule'; + protected $spectrumSchedulesDataType = 'array'; + public $timestamp; + public $type; + public $version; - public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) - { - $this->databaseChange = $databaseChange; - } + public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) { + $this->databaseChange = $databaseChange; + } - public function getDatabaseChange() - { - return $this->databaseChange; - } + public function getDatabaseChange() { + return $this->databaseChange; + } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } + public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { + $this->deviceDesc = $deviceDesc; + } - public function getDeviceDesc() - { - return $this->deviceDesc; - } + public function getDeviceDesc() { + return $this->deviceDesc; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMaxContiguousBwHz($maxContiguousBwHz) - { - $this->maxContiguousBwHz = $maxContiguousBwHz; - } + public function setMaxContiguousBwHz($maxContiguousBwHz) { + $this->maxContiguousBwHz = $maxContiguousBwHz; + } - public function getMaxContiguousBwHz() - { - return $this->maxContiguousBwHz; - } + public function getMaxContiguousBwHz() { + return $this->maxContiguousBwHz; + } - public function setMaxTotalBwHz($maxTotalBwHz) - { - $this->maxTotalBwHz = $maxTotalBwHz; - } + public function setMaxTotalBwHz($maxTotalBwHz) { + $this->maxTotalBwHz = $maxTotalBwHz; + } - public function getMaxTotalBwHz() - { - return $this->maxTotalBwHz; - } + public function getMaxTotalBwHz() { + return $this->maxTotalBwHz; + } - public function setNeedsSpectrumReport($needsSpectrumReport) - { - $this->needsSpectrumReport = $needsSpectrumReport; - } + public function setNeedsSpectrumReport($needsSpectrumReport) { + $this->needsSpectrumReport = $needsSpectrumReport; + } - public function getNeedsSpectrumReport() - { - return $this->needsSpectrumReport; - } + public function getNeedsSpectrumReport() { + return $this->needsSpectrumReport; + } - public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) - { - $this->rulesetInfo = $rulesetInfo; - } + public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) { + $this->rulesetInfo = $rulesetInfo; + } - public function getRulesetInfo() - { - return $this->rulesetInfo; - } + public function getRulesetInfo() { + return $this->rulesetInfo; + } - public function setSpectrumSchedules($spectrumSchedules) - { - $this->spectrumSchedules = $spectrumSchedules; - } + public function setSpectrumSchedules($spectrumSchedules) { + $this->spectrumSchedules = $spectrumSchedules; + } - public function getSpectrumSchedules() - { - return $this->spectrumSchedules; - } + public function getSpectrumSchedules() { + return $this->spectrumSchedules; + } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } + public function setTimestamp($timestamp) { + $this->timestamp = $timestamp; + } - public function getTimestamp() - { - return $this->timestamp; - } + public function getTimestamp() { + return $this->timestamp; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_PawsInitRequest extends Google_Model -{ - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $locationType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationDataType = ''; - public $type; - public $version; +class Google_Service_Spectrum_PawsInitRequest extends Google_Model { + protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; + protected $deviceDescDataType = ''; + protected $locationType = 'Google_Service_Spectrum_GeoLocation'; + protected $locationDataType = ''; + public $type; + public $version; - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } + public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { + $this->deviceDesc = $deviceDesc; + } - public function getDeviceDesc() - { - return $this->deviceDesc; - } + public function getDeviceDesc() { + return $this->deviceDesc; + } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) - { - $this->location = $location; - } + public function setLocation(Google_Service_Spectrum_GeoLocation $location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_PawsInitResponse extends Google_Model -{ - protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; - protected $databaseChangeDataType = ''; - public $kind; - protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo'; - protected $rulesetInfoDataType = ''; - public $type; - public $version; +class Google_Service_Spectrum_PawsInitResponse extends Google_Model { + protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; + protected $databaseChangeDataType = ''; + public $kind; + protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo'; + protected $rulesetInfoDataType = ''; + public $type; + public $version; - public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) - { - $this->databaseChange = $databaseChange; - } + public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) { + $this->databaseChange = $databaseChange; + } - public function getDatabaseChange() - { - return $this->databaseChange; - } + public function getDatabaseChange() { + return $this->databaseChange; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) - { - $this->rulesetInfo = $rulesetInfo; - } + public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo) { + $this->rulesetInfo = $rulesetInfo; + } - public function getRulesetInfo() - { - return $this->rulesetInfo; - } + public function getRulesetInfo() { + return $this->rulesetInfo; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_PawsNotifySpectrumUseRequest extends Google_Collection -{ - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $locationType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationDataType = ''; - protected $spectraType = 'Google_Service_Spectrum_SpectrumMessage'; - protected $spectraDataType = 'array'; - public $type; - public $version; +class Google_Service_Spectrum_PawsNotifySpectrumUseRequest extends Google_Collection { + protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; + protected $deviceDescDataType = ''; + protected $locationType = 'Google_Service_Spectrum_GeoLocation'; + protected $locationDataType = ''; + protected $spectraType = 'Google_Service_Spectrum_SpectrumMessage'; + protected $spectraDataType = 'array'; + public $type; + public $version; - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } + public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { + $this->deviceDesc = $deviceDesc; + } - public function getDeviceDesc() - { - return $this->deviceDesc; - } + public function getDeviceDesc() { + return $this->deviceDesc; + } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) - { - $this->location = $location; - } + public function setLocation(Google_Service_Spectrum_GeoLocation $location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setSpectra($spectra) - { - $this->spectra = $spectra; - } + public function setSpectra($spectra) { + $this->spectra = $spectra; + } - public function getSpectra() - { - return $this->spectra; - } + public function getSpectra() { + return $this->spectra; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_PawsNotifySpectrumUseResponse extends Google_Model -{ - public $kind; - public $type; - public $version; +class Google_Service_Spectrum_PawsNotifySpectrumUseResponse extends Google_Model { + public $kind; + public $type; + public $version; - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_PawsRegisterRequest extends Google_Model -{ - protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; - protected $antennaDataType = ''; - protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescDataType = ''; - protected $deviceOwnerType = 'Google_Service_Spectrum_DeviceOwner'; - protected $deviceOwnerDataType = ''; - protected $locationType = 'Google_Service_Spectrum_GeoLocation'; - protected $locationDataType = ''; - public $type; - public $version; +class Google_Service_Spectrum_PawsRegisterRequest extends Google_Model { + protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics'; + protected $antennaDataType = ''; + protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor'; + protected $deviceDescDataType = ''; + protected $deviceOwnerType = 'Google_Service_Spectrum_DeviceOwner'; + protected $deviceOwnerDataType = ''; + protected $locationType = 'Google_Service_Spectrum_GeoLocation'; + protected $locationDataType = ''; + public $type; + public $version; - public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) - { - $this->antenna = $antenna; - } + public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna) { + $this->antenna = $antenna; + } - public function getAntenna() - { - return $this->antenna; - } + public function getAntenna() { + return $this->antenna; + } - public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) - { - $this->deviceDesc = $deviceDesc; - } + public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc) { + $this->deviceDesc = $deviceDesc; + } - public function getDeviceDesc() - { - return $this->deviceDesc; - } + public function getDeviceDesc() { + return $this->deviceDesc; + } - public function setDeviceOwner(Google_Service_Spectrum_DeviceOwner $deviceOwner) - { - $this->deviceOwner = $deviceOwner; - } + public function setDeviceOwner(Google_Service_Spectrum_DeviceOwner $deviceOwner) { + $this->deviceOwner = $deviceOwner; + } - public function getDeviceOwner() - { - return $this->deviceOwner; - } + public function getDeviceOwner() { + return $this->deviceOwner; + } - public function setLocation(Google_Service_Spectrum_GeoLocation $location) - { - $this->location = $location; - } + public function setLocation(Google_Service_Spectrum_GeoLocation $location) { + $this->location = $location; + } - public function getLocation() - { - return $this->location; - } + public function getLocation() { + return $this->location; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_PawsRegisterResponse extends Google_Model -{ - protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; - protected $databaseChangeDataType = ''; - public $kind; - public $type; - public $version; +class Google_Service_Spectrum_PawsRegisterResponse extends Google_Model { + protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; + protected $databaseChangeDataType = ''; + public $kind; + public $type; + public $version; - public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) - { - $this->databaseChange = $databaseChange; - } + public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) { + $this->databaseChange = $databaseChange; + } - public function getDatabaseChange() - { - return $this->databaseChange; - } + public function getDatabaseChange() { + return $this->databaseChange; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_PawsVerifyDeviceRequest extends Google_Collection -{ - protected $deviceDescsType = 'Google_Service_Spectrum_DeviceDescriptor'; - protected $deviceDescsDataType = 'array'; - public $type; - public $version; +class Google_Service_Spectrum_PawsVerifyDeviceRequest extends Google_Collection { + protected $deviceDescsType = 'Google_Service_Spectrum_DeviceDescriptor'; + protected $deviceDescsDataType = 'array'; + public $type; + public $version; - public function setDeviceDescs($deviceDescs) - { - $this->deviceDescs = $deviceDescs; - } + public function setDeviceDescs($deviceDescs) { + $this->deviceDescs = $deviceDescs; + } - public function getDeviceDescs() - { - return $this->deviceDescs; - } + public function getDeviceDescs() { + return $this->deviceDescs; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_PawsVerifyDeviceResponse extends Google_Collection -{ - protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; - protected $databaseChangeDataType = ''; - protected $deviceValiditiesType = 'Google_Service_Spectrum_DeviceValidity'; - protected $deviceValiditiesDataType = 'array'; - public $kind; - public $type; - public $version; +class Google_Service_Spectrum_PawsVerifyDeviceResponse extends Google_Collection { + protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec'; + protected $databaseChangeDataType = ''; + protected $deviceValiditiesType = 'Google_Service_Spectrum_DeviceValidity'; + protected $deviceValiditiesDataType = 'array'; + public $kind; + public $type; + public $version; - public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) - { - $this->databaseChange = $databaseChange; - } + public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange) { + $this->databaseChange = $databaseChange; + } - public function getDatabaseChange() - { - return $this->databaseChange; - } + public function getDatabaseChange() { + return $this->databaseChange; + } - public function setDeviceValidities($deviceValidities) - { - $this->deviceValidities = $deviceValidities; - } + public function setDeviceValidities($deviceValidities) { + $this->deviceValidities = $deviceValidities; + } - public function getDeviceValidities() - { - return $this->deviceValidities; - } + public function getDeviceValidities() { + return $this->deviceValidities; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } - public function setVersion($version) - { - $this->version = $version; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Spectrum_RulesetInfo extends Google_Collection -{ - public $authority; - public $maxLocationChange; - public $maxPollingSecs; - public $rulesetIds; +class Google_Service_Spectrum_RulesetInfo extends Google_Collection { + public $authority; + public $maxLocationChange; + public $maxPollingSecs; + public $rulesetIds; - public function setAuthority($authority) - { - $this->authority = $authority; - } + public function setAuthority($authority) { + $this->authority = $authority; + } - public function getAuthority() - { - return $this->authority; - } + public function getAuthority() { + return $this->authority; + } - public function setMaxLocationChange($maxLocationChange) - { - $this->maxLocationChange = $maxLocationChange; - } + public function setMaxLocationChange($maxLocationChange) { + $this->maxLocationChange = $maxLocationChange; + } - public function getMaxLocationChange() - { - return $this->maxLocationChange; - } + public function getMaxLocationChange() { + return $this->maxLocationChange; + } - public function setMaxPollingSecs($maxPollingSecs) - { - $this->maxPollingSecs = $maxPollingSecs; - } + public function setMaxPollingSecs($maxPollingSecs) { + $this->maxPollingSecs = $maxPollingSecs; + } - public function getMaxPollingSecs() - { - return $this->maxPollingSecs; - } + public function getMaxPollingSecs() { + return $this->maxPollingSecs; + } - public function setRulesetIds($rulesetIds) - { - $this->rulesetIds = $rulesetIds; - } + public function setRulesetIds($rulesetIds) { + $this->rulesetIds = $rulesetIds; + } - public function getRulesetIds() - { - return $this->rulesetIds; - } + public function getRulesetIds() { + return $this->rulesetIds; + } } -class Google_Service_Spectrum_SpectrumMessage extends Google_Collection -{ - public $bandwidth; - protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; - protected $frequencyRangesDataType = 'array'; +class Google_Service_Spectrum_SpectrumMessage extends Google_Collection { + public $bandwidth; + protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange'; + protected $frequencyRangesDataType = 'array'; - public function setBandwidth($bandwidth) - { - $this->bandwidth = $bandwidth; - } + public function setBandwidth($bandwidth) { + $this->bandwidth = $bandwidth; + } - public function getBandwidth() - { - return $this->bandwidth; - } + public function getBandwidth() { + return $this->bandwidth; + } - public function setFrequencyRanges($frequencyRanges) - { - $this->frequencyRanges = $frequencyRanges; - } + public function setFrequencyRanges($frequencyRanges) { + $this->frequencyRanges = $frequencyRanges; + } - public function getFrequencyRanges() - { - return $this->frequencyRanges; - } + public function getFrequencyRanges() { + return $this->frequencyRanges; + } } -class Google_Service_Spectrum_SpectrumSchedule extends Google_Collection -{ - protected $eventTimeType = 'Google_Service_Spectrum_EventTime'; - protected $eventTimeDataType = ''; - protected $spectraType = 'Google_Service_Spectrum_SpectrumMessage'; - protected $spectraDataType = 'array'; +class Google_Service_Spectrum_SpectrumSchedule extends Google_Collection { + protected $eventTimeType = 'Google_Service_Spectrum_EventTime'; + protected $eventTimeDataType = ''; + protected $spectraType = 'Google_Service_Spectrum_SpectrumMessage'; + protected $spectraDataType = 'array'; - public function setEventTime(Google_Service_Spectrum_EventTime $eventTime) - { - $this->eventTime = $eventTime; - } + public function setEventTime(Google_Service_Spectrum_EventTime $eventTime) { + $this->eventTime = $eventTime; + } - public function getEventTime() - { - return $this->eventTime; - } + public function getEventTime() { + return $this->eventTime; + } - public function setSpectra($spectra) - { - $this->spectra = $spectra; - } + public function setSpectra($spectra) { + $this->spectra = $spectra; + } - public function getSpectra() - { - return $this->spectra; - } + public function getSpectra() { + return $this->spectra; + } } -class Google_Service_Spectrum_Vcard extends Google_Model -{ - protected $adrType = 'Google_Service_Spectrum_VcardAddress'; - protected $adrDataType = ''; - protected $emailType = 'Google_Service_Spectrum_VcardTypedText'; - protected $emailDataType = ''; - public $fn; - protected $orgType = 'Google_Service_Spectrum_VcardTypedText'; - protected $orgDataType = ''; - protected $telType = 'Google_Service_Spectrum_VcardTelephone'; - protected $telDataType = ''; +class Google_Service_Spectrum_Vcard extends Google_Model { + protected $adrType = 'Google_Service_Spectrum_VcardAddress'; + protected $adrDataType = ''; + protected $emailType = 'Google_Service_Spectrum_VcardTypedText'; + protected $emailDataType = ''; + public $fn; + protected $orgType = 'Google_Service_Spectrum_VcardTypedText'; + protected $orgDataType = ''; + protected $telType = 'Google_Service_Spectrum_VcardTelephone'; + protected $telDataType = ''; - public function setAdr(Google_Service_Spectrum_VcardAddress $adr) - { - $this->adr = $adr; - } + public function setAdr(Google_Service_Spectrum_VcardAddress $adr) { + $this->adr = $adr; + } - public function getAdr() - { - return $this->adr; - } + public function getAdr() { + return $this->adr; + } - public function setEmail(Google_Service_Spectrum_VcardTypedText $email) - { - $this->email = $email; - } + public function setEmail(Google_Service_Spectrum_VcardTypedText $email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setFn($fn) - { - $this->fn = $fn; - } + public function setFn($fn) { + $this->fn = $fn; + } - public function getFn() - { - return $this->fn; - } + public function getFn() { + return $this->fn; + } - public function setOrg(Google_Service_Spectrum_VcardTypedText $org) - { - $this->org = $org; - } + public function setOrg(Google_Service_Spectrum_VcardTypedText $org) { + $this->org = $org; + } - public function getOrg() - { - return $this->org; - } + public function getOrg() { + return $this->org; + } - public function setTel(Google_Service_Spectrum_VcardTelephone $tel) - { - $this->tel = $tel; - } + public function setTel(Google_Service_Spectrum_VcardTelephone $tel) { + $this->tel = $tel; + } - public function getTel() - { - return $this->tel; - } + public function getTel() { + return $this->tel; + } } -class Google_Service_Spectrum_VcardAddress extends Google_Model -{ - public $code; - public $country; - public $locality; - public $pobox; - public $region; - public $street; +class Google_Service_Spectrum_VcardAddress extends Google_Model { + public $code; + public $country; + public $locality; + public $pobox; + public $region; + public $street; - public function setCode($code) - { - $this->code = $code; - } + public function setCode($code) { + $this->code = $code; + } - public function getCode() - { - return $this->code; - } + public function getCode() { + return $this->code; + } - public function setCountry($country) - { - $this->country = $country; - } + public function setCountry($country) { + $this->country = $country; + } - public function getCountry() - { - return $this->country; - } + public function getCountry() { + return $this->country; + } - public function setLocality($locality) - { - $this->locality = $locality; - } + public function setLocality($locality) { + $this->locality = $locality; + } - public function getLocality() - { - return $this->locality; - } + public function getLocality() { + return $this->locality; + } - public function setPobox($pobox) - { - $this->pobox = $pobox; - } + public function setPobox($pobox) { + $this->pobox = $pobox; + } - public function getPobox() - { - return $this->pobox; - } + public function getPobox() { + return $this->pobox; + } - public function setRegion($region) - { - $this->region = $region; - } + public function setRegion($region) { + $this->region = $region; + } - public function getRegion() - { - return $this->region; - } + public function getRegion() { + return $this->region; + } - public function setStreet($street) - { - $this->street = $street; - } + public function setStreet($street) { + $this->street = $street; + } - public function getStreet() - { - return $this->street; - } + public function getStreet() { + return $this->street; + } } -class Google_Service_Spectrum_VcardTelephone extends Google_Model -{ - public $uri; +class Google_Service_Spectrum_VcardTelephone extends Google_Model { + public $uri; - public function setUri($uri) - { - $this->uri = $uri; - } + public function setUri($uri) { + $this->uri = $uri; + } - public function getUri() - { - return $this->uri; - } + public function getUri() { + return $this->uri; + } } -class Google_Service_Spectrum_VcardTypedText extends Google_Model -{ - public $text; +class Google_Service_Spectrum_VcardTypedText extends Google_Model { + public $text; - public function setText($text) - { - $this->text = $text; - } + public function setText($text) { + $this->text = $text; + } - public function getText() - { - return $this->text; - } + public function getText() { + return $this->text; + } } diff --git a/oauth/Google/Service/Storage.php b/oauth/Google/Service/Storage.php index ff432b4..347cb43 100644 --- a/oauth/Google/Service/Storage.php +++ b/oauth/Google/Service/Storage.php @@ -29,900 +29,898 @@ * * @author Google, Inc. */ -class Google_Service_Storage extends Google_Service -{ - /** Manage your data and permissions in Google Cloud Storage. */ - const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; - /** View your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; +class Google_Service_Storage extends Google_Service { + /** Manage your data and permissions in Google Cloud Storage. */ + const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; + /** View your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; + /** Manage your data in Google Cloud Storage. */ + const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; - public $bucketAccessControls; - public $buckets; - public $channels; - public $defaultObjectAccessControls; - public $objectAccessControls; - public $objects; - + public $bucketAccessControls; + public $buckets; + public $channels; + public $defaultObjectAccessControls; + public $objectAccessControls; + public $objects; - /** - * Constructs the internal representation of the Storage service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'storage/v1/'; - $this->version = 'v1'; - $this->serviceName = 'storage'; - $this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource( - $this, - $this->serviceName, - 'bucketAccessControls', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'b/{bucket}/acl/{entity}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'b/{bucket}/acl/{entity}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'b/{bucket}/acl', - 'httpMethod' => 'POST', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'b/{bucket}/acl', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'b/{bucket}/acl/{entity}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'b/{bucket}/acl/{entity}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->buckets = new Google_Service_Storage_Buckets_Resource( - $this, - $this->serviceName, - 'buckets', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'b/{bucket}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'b/{bucket}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'b', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'b', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'b/{bucket}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'b/{bucket}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_Storage_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'stop' => array( - 'path' => 'channels/stop', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource( - $this, - $this->serviceName, - 'defaultObjectAccessControls', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'b/{bucket}/defaultObjectAcl', - 'httpMethod' => 'POST', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'b/{bucket}/defaultObjectAcl', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource( - $this, - $this->serviceName, - 'objectAccessControls', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'b/{bucket}/o/{object}/acl/{entity}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'b/{bucket}/o/{object}/acl/{entity}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'b/{bucket}/o/{object}/acl', - 'httpMethod' => 'POST', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'b/{bucket}/o/{object}/acl', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'b/{bucket}/o/{object}/acl/{entity}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'b/{bucket}/o/{object}/acl/{entity}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'entity' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->objects = new Google_Service_Storage_Objects_Resource( - $this, - $this->serviceName, - 'objects', - array( - 'methods' => array( - 'compose' => array( - 'path' => 'b/{destinationBucket}/o/{destinationObject}/compose', - 'httpMethod' => 'POST', - 'parameters' => array( - 'destinationBucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destinationObject' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'destinationPredefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'copy' => array( - 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'sourceBucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sourceObject' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destinationBucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'destinationObject' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifSourceGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifSourceMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sourceGeneration' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'destinationPredefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifSourceGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifSourceMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => 'b/{bucket}/o/{object}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'get' => array( - 'path' => 'b/{bucket}/o/{object}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'b/{bucket}/o', - 'httpMethod' => 'POST', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'contentEncoding' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'b/{bucket}/o', - 'httpMethod' => 'GET', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'versions' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'prefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'delimiter' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'b/{bucket}/o/{object}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'b/{bucket}/o/{object}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'object' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'predefinedAcl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'generation' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifGenerationMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'ifMetagenerationNotMatch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'watchAll' => array( - 'path' => 'b/{bucket}/o/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'bucket' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'versions' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'prefix' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'delimiter' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Storage service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'storage/v1/'; + $this->version = 'v1'; + $this->serviceName = 'storage'; + + $this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource( + $this, + $this->serviceName, + 'bucketAccessControls', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'b/{bucket}/acl/{entity}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'b/{bucket}/acl/{entity}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'b/{bucket}/acl', + 'httpMethod' => 'POST', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'b/{bucket}/acl', + 'httpMethod' => 'GET', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => 'b/{bucket}/acl/{entity}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'b/{bucket}/acl/{entity}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->buckets = new Google_Service_Storage_Buckets_Resource( + $this, + $this->serviceName, + 'buckets', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'b/{bucket}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'get' => array( + 'path' => 'b/{bucket}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'b', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'predefinedAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'b', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), 'patch' => array( + 'path' => 'b/{bucket}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'predefinedAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => 'b/{bucket}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'predefinedAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->channels = new Google_Service_Storage_Channels_Resource( + $this, + $this->serviceName, + 'channels', + array( + 'methods' => array( + 'stop' => array( + 'path' => 'channels/stop', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource( + $this, + $this->serviceName, + 'defaultObjectAccessControls', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'b/{bucket}/defaultObjectAcl', + 'httpMethod' => 'POST', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'b/{bucket}/defaultObjectAcl', + 'httpMethod' => 'GET', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'b/{bucket}/defaultObjectAcl/{entity}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource( + $this, + $this->serviceName, + 'objectAccessControls', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'b/{bucket}/o/{object}/acl/{entity}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'object' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'generation' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'get' => array( + 'path' => 'b/{bucket}/o/{object}/acl/{entity}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'object' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'generation' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'b/{bucket}/o/{object}/acl', + 'httpMethod' => 'POST', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'object' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'generation' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'b/{bucket}/o/{object}/acl', + 'httpMethod' => 'GET', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'object' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'generation' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'b/{bucket}/o/{object}/acl/{entity}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'object' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'generation' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => 'b/{bucket}/o/{object}/acl/{entity}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'object' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entity' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'generation' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->objects = new Google_Service_Storage_Objects_Resource( + $this, + $this->serviceName, + 'objects', + array( + 'methods' => array( + 'compose' => array( + 'path' => 'b/{destinationBucket}/o/{destinationObject}/compose', + 'httpMethod' => 'POST', + 'parameters' => array( + 'destinationBucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'destinationObject' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ifGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'destinationPredefinedAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'copy' => array( + 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'sourceBucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sourceObject' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'destinationBucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'destinationObject' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ifSourceGenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifSourceMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sourceGeneration' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'destinationPredefinedAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifSourceGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifSourceMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'delete' => array( + 'path' => 'b/{bucket}/o/{object}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'object' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ifGenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'generation' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'get' => array( + 'path' => 'b/{bucket}/o/{object}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'object' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ifGenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'generation' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'b/{bucket}/o', + 'httpMethod' => 'POST', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'predefinedAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentEncoding' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'b/{bucket}/o', + 'httpMethod' => 'GET', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'versions' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'prefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'delimiter' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'b/{bucket}/o/{object}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'object' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'predefinedAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'generation' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => 'b/{bucket}/o/{object}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'object' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'predefinedAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'generation' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'watchAll' => array( + 'path' => 'b/{bucket}/o/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'bucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'versions' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'prefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'delimiter' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -934,112 +932,110 @@ class Google_Service_Storage extends Google_Service * $bucketAccessControls = $storageService->bucketAccessControls; * */ -class Google_Service_Storage_BucketAccessControls_Resource extends Google_Service_Resource -{ +class Google_Service_Storage_BucketAccessControls_Resource extends Google_Service_Resource { - /** - * Permanently deletes the ACL entry for the specified entity on the specified - * bucket. (bucketAccessControls.delete) - * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param array $optParams Optional parameters. - */ - public function delete($bucket, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns the ACL entry for the specified entity on the specified bucket. - * (bucketAccessControls.get) - * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_BucketAccessControl - */ - public function get($bucket, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl"); - } - /** - * Creates a new ACL entry on the specified bucket. - * (bucketAccessControls.insert) - * - * @param string $bucket - * Name of a bucket. - * @param Google_BucketAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_BucketAccessControl - */ - public function insert($bucket, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl"); - } - /** - * Retrieves ACL entries on the specified bucket. - * (bucketAccessControls.listBucketAccessControls) - * - * @param string $bucket - * Name of a bucket. - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_BucketAccessControls - */ - public function listBucketAccessControls($bucket, $optParams = array()) - { - $params = array('bucket' => $bucket); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls"); - } - /** - * Updates an ACL entry on the specified bucket. This method supports patch - * semantics. (bucketAccessControls.patch) - * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param Google_BucketAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_BucketAccessControl - */ - public function patch($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl"); - } - /** - * Updates an ACL entry on the specified bucket. (bucketAccessControls.update) - * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param Google_BucketAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_BucketAccessControl - */ - public function update($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Storage_BucketAccessControl"); - } + /** + * Permanently deletes the ACL entry for the specified entity on the specified + * bucket. (bucketAccessControls.delete) + * + * @param string $bucket + * Name of a bucket. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param array $optParams Optional parameters. + */ + public function delete($bucket, $entity, $optParams = array()) { + $params = array('bucket' => $bucket, 'entity' => $entity); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns the ACL entry for the specified entity on the specified bucket. + * (bucketAccessControls.get) + * + * @param string $bucket + * Name of a bucket. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param array $optParams Optional parameters. + * @return Google_Service_Storage_BucketAccessControl + */ + public function get($bucket, $entity, $optParams = array()) { + $params = array('bucket' => $bucket, 'entity' => $entity); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl"); + } + + /** + * Creates a new ACL entry on the specified bucket. + * (bucketAccessControls.insert) + * + * @param string $bucket + * Name of a bucket. + * @param Google_BucketAccessControl $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Storage_BucketAccessControl + */ + public function insert($bucket, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl"); + } + + /** + * Retrieves ACL entries on the specified bucket. + * (bucketAccessControls.listBucketAccessControls) + * + * @param string $bucket + * Name of a bucket. + * @param array $optParams Optional parameters. + * @return Google_Service_Storage_BucketAccessControls + */ + public function listBucketAccessControls($bucket, $optParams = array()) { + $params = array('bucket' => $bucket); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls"); + } + + /** + * Updates an ACL entry on the specified bucket. This method supports patch + * semantics. (bucketAccessControls.patch) + * + * @param string $bucket + * Name of a bucket. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param Google_BucketAccessControl $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Storage_BucketAccessControl + */ + public function patch($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl"); + } + + /** + * Updates an ACL entry on the specified bucket. (bucketAccessControls.update) + * + * @param string $bucket + * Name of a bucket. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param Google_BucketAccessControl $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Storage_BucketAccessControl + */ + public function update($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Storage_BucketAccessControl"); + } } /** @@ -1050,144 +1046,142 @@ class Google_Service_Storage_BucketAccessControls_Resource extends Google_Servic * $buckets = $storageService->buckets; * */ -class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource -{ +class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource { - /** - * Permanently deletes an empty bucket. (buckets.delete) - * - * @param string $bucket - * Name of a bucket. - * @param array $optParams Optional parameters. - * - * @opt_param string ifMetagenerationMatch - * If set, only deletes the bucket if its metageneration matches this value. - * @opt_param string ifMetagenerationNotMatch - * If set, only deletes the bucket if its metageneration does not match this value. - */ - public function delete($bucket, $optParams = array()) - { - $params = array('bucket' => $bucket); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns metadata for the specified bucket. (buckets.get) - * - * @param string $bucket - * Name of a bucket. - * @param array $optParams Optional parameters. - * - * @opt_param string ifMetagenerationMatch - * Makes the return of the bucket metadata conditional on whether the bucket's current - * metageneration matches the given value. - * @opt_param string ifMetagenerationNotMatch - * Makes the return of the bucket metadata conditional on whether the bucket's current - * metageneration does not match the given value. - * @opt_param string projection - * Set of properties to return. Defaults to noAcl. - * @return Google_Service_Storage_Bucket - */ - public function get($bucket, $optParams = array()) - { - $params = array('bucket' => $bucket); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storage_Bucket"); - } - /** - * Creates a new bucket. (buckets.insert) - * - * @param string $project - * A valid API project identifier. - * @param Google_Bucket $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this bucket. - * @opt_param string projection - * Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or - * defaultObjectAcl properties, when it defaults to full. - * @return Google_Service_Storage_Bucket - */ - public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array()) - { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Storage_Bucket"); - } - /** - * Retrieves a list of buckets for a given project. (buckets.listBuckets) - * - * @param string $project - * A valid API project identifier. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. - * @opt_param string projection - * Set of properties to return. Defaults to noAcl. - * @opt_param string maxResults - * Maximum number of buckets to return. - * @return Google_Service_Storage_Buckets - */ - public function listBuckets($project, $optParams = array()) - { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Storage_Buckets"); - } - /** - * Updates a bucket. This method supports patch semantics. (buckets.patch) - * - * @param string $bucket - * Name of a bucket. - * @param Google_Bucket $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string ifMetagenerationMatch - * Makes the return of the bucket metadata conditional on whether the bucket's current - * metageneration matches the given value. - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this bucket. - * @opt_param string ifMetagenerationNotMatch - * Makes the return of the bucket metadata conditional on whether the bucket's current - * metageneration does not match the given value. - * @opt_param string projection - * Set of properties to return. Defaults to full. - * @return Google_Service_Storage_Bucket - */ - public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Storage_Bucket"); - } - /** - * Updates a bucket. (buckets.update) - * - * @param string $bucket - * Name of a bucket. - * @param Google_Bucket $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string ifMetagenerationMatch - * Makes the return of the bucket metadata conditional on whether the bucket's current - * metageneration matches the given value. - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this bucket. - * @opt_param string ifMetagenerationNotMatch - * Makes the return of the bucket metadata conditional on whether the bucket's current - * metageneration does not match the given value. - * @opt_param string projection - * Set of properties to return. Defaults to full. - * @return Google_Service_Storage_Bucket - */ - public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Storage_Bucket"); - } + /** + * Permanently deletes an empty bucket. (buckets.delete) + * + * @param string $bucket + * Name of a bucket. + * @param array $optParams Optional parameters. + * + * @opt_param string ifMetagenerationMatch + * If set, only deletes the bucket if its metageneration matches this value. + * @opt_param string ifMetagenerationNotMatch + * If set, only deletes the bucket if its metageneration does not match this value. + */ + public function delete($bucket, $optParams = array()) { + $params = array('bucket' => $bucket); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns metadata for the specified bucket. (buckets.get) + * + * @param string $bucket + * Name of a bucket. + * @param array $optParams Optional parameters. + * + * @opt_param string ifMetagenerationMatch + * Makes the return of the bucket metadata conditional on whether the bucket's current + * metageneration matches the given value. + * @opt_param string ifMetagenerationNotMatch + * Makes the return of the bucket metadata conditional on whether the bucket's current + * metageneration does not match the given value. + * @opt_param string projection + * Set of properties to return. Defaults to noAcl. + * @return Google_Service_Storage_Bucket + */ + public function get($bucket, $optParams = array()) { + $params = array('bucket' => $bucket); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Storage_Bucket"); + } + + /** + * Creates a new bucket. (buckets.insert) + * + * @param string $project + * A valid API project identifier. + * @param Google_Bucket $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string predefinedAcl + * Apply a predefined set of access controls to this bucket. + * @opt_param string projection + * Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or + * defaultObjectAcl properties, when it defaults to full. + * @return Google_Service_Storage_Bucket + */ + public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array()) { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Storage_Bucket"); + } + + /** + * Retrieves a list of buckets for a given project. (buckets.listBuckets) + * + * @param string $project + * A valid API project identifier. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * A previously-returned page token representing part of the larger set of results to view. + * @opt_param string projection + * Set of properties to return. Defaults to noAcl. + * @opt_param string maxResults + * Maximum number of buckets to return. + * @return Google_Service_Storage_Buckets + */ + public function listBuckets($project, $optParams = array()) { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Storage_Buckets"); + } + + /** + * Updates a bucket. This method supports patch semantics. (buckets.patch) + * + * @param string $bucket + * Name of a bucket. + * @param Google_Bucket $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string ifMetagenerationMatch + * Makes the return of the bucket metadata conditional on whether the bucket's current + * metageneration matches the given value. + * @opt_param string predefinedAcl + * Apply a predefined set of access controls to this bucket. + * @opt_param string ifMetagenerationNotMatch + * Makes the return of the bucket metadata conditional on whether the bucket's current + * metageneration does not match the given value. + * @opt_param string projection + * Set of properties to return. Defaults to full. + * @return Google_Service_Storage_Bucket + */ + public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Storage_Bucket"); + } + + /** + * Updates a bucket. (buckets.update) + * + * @param string $bucket + * Name of a bucket. + * @param Google_Bucket $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string ifMetagenerationMatch + * Makes the return of the bucket metadata conditional on whether the bucket's current + * metageneration matches the given value. + * @opt_param string predefinedAcl + * Apply a predefined set of access controls to this bucket. + * @opt_param string ifMetagenerationNotMatch + * Makes the return of the bucket metadata conditional on whether the bucket's current + * metageneration does not match the given value. + * @opt_param string projection + * Set of properties to return. Defaults to full. + * @return Google_Service_Storage_Bucket + */ + public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Storage_Bucket"); + } } /** @@ -1198,21 +1192,19 @@ class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource * $channels = $storageService->channels; * */ -class Google_Service_Storage_Channels_Resource extends Google_Service_Resource -{ +class Google_Service_Storage_Channels_Resource extends Google_Service_Resource { - /** - * Stop watching resources through this channel (channels.stop) - * - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - */ - public function stop(Google_Service_Storage_Channel $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } + /** + * Stop watching resources through this channel (channels.stop) + * + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + */ + public function stop(Google_Service_Storage_Channel $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('stop', array($params)); + } } /** @@ -1223,120 +1215,118 @@ class Google_Service_Storage_Channels_Resource extends Google_Service_Resource * $defaultObjectAccessControls = $storageService->defaultObjectAccessControls; * */ -class Google_Service_Storage_DefaultObjectAccessControls_Resource extends Google_Service_Resource -{ +class Google_Service_Storage_DefaultObjectAccessControls_Resource extends Google_Service_Resource { - /** - * Permanently deletes the default object ACL entry for the specified entity on - * the specified bucket. (defaultObjectAccessControls.delete) - * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param array $optParams Optional parameters. - */ - public function delete($bucket, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns the default object ACL entry for the specified entity on the - * specified bucket. (defaultObjectAccessControls.get) - * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_ObjectAccessControl - */ - public function get($bucket, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - /** - * Creates a new default object ACL entry on the specified bucket. - * (defaultObjectAccessControls.insert) - * - * @param string $bucket - * Name of a bucket. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_ObjectAccessControl - */ - public function insert($bucket, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - /** - * Retrieves default object ACL entries on the specified bucket. - * (defaultObjectAccessControls.listDefaultObjectAccessControls) - * - * @param string $bucket - * Name of a bucket. - * @param array $optParams Optional parameters. - * - * @opt_param string ifMetagenerationMatch - * If present, only return default ACL listing if the bucket's current metageneration matches this - * value. - * @opt_param string ifMetagenerationNotMatch - * If present, only return default ACL listing if the bucket's current metageneration does not - * match the given value. - * @return Google_Service_Storage_ObjectAccessControls - */ - public function listDefaultObjectAccessControls($bucket, $optParams = array()) - { - $params = array('bucket' => $bucket); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); - } - /** - * Updates a default object ACL entry on the specified bucket. This method - * supports patch semantics. (defaultObjectAccessControls.patch) - * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_ObjectAccessControl - */ - public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - /** - * Updates a default object ACL entry on the specified bucket. - * (defaultObjectAccessControls.update) - * - * @param string $bucket - * Name of a bucket. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Storage_ObjectAccessControl - */ - public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl"); - } + /** + * Permanently deletes the default object ACL entry for the specified entity on + * the specified bucket. (defaultObjectAccessControls.delete) + * + * @param string $bucket + * Name of a bucket. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param array $optParams Optional parameters. + */ + public function delete($bucket, $entity, $optParams = array()) { + $params = array('bucket' => $bucket, 'entity' => $entity); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns the default object ACL entry for the specified entity on the + * specified bucket. (defaultObjectAccessControls.get) + * + * @param string $bucket + * Name of a bucket. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param array $optParams Optional parameters. + * @return Google_Service_Storage_ObjectAccessControl + */ + public function get($bucket, $entity, $optParams = array()) { + $params = array('bucket' => $bucket, 'entity' => $entity); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); + } + + /** + * Creates a new default object ACL entry on the specified bucket. + * (defaultObjectAccessControls.insert) + * + * @param string $bucket + * Name of a bucket. + * @param Google_ObjectAccessControl $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Storage_ObjectAccessControl + */ + public function insert($bucket, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); + } + + /** + * Retrieves default object ACL entries on the specified bucket. + * (defaultObjectAccessControls.listDefaultObjectAccessControls) + * + * @param string $bucket + * Name of a bucket. + * @param array $optParams Optional parameters. + * + * @opt_param string ifMetagenerationMatch + * If present, only return default ACL listing if the bucket's current metageneration matches this + * value. + * @opt_param string ifMetagenerationNotMatch + * If present, only return default ACL listing if the bucket's current metageneration does not + * match the given value. + * @return Google_Service_Storage_ObjectAccessControls + */ + public function listDefaultObjectAccessControls($bucket, $optParams = array()) { + $params = array('bucket' => $bucket); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); + } + + /** + * Updates a default object ACL entry on the specified bucket. This method + * supports patch semantics. (defaultObjectAccessControls.patch) + * + * @param string $bucket + * Name of a bucket. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param Google_ObjectAccessControl $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Storage_ObjectAccessControl + */ + public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); + } + + /** + * Updates a default object ACL entry on the specified bucket. + * (defaultObjectAccessControls.update) + * + * @param string $bucket + * Name of a bucket. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param Google_ObjectAccessControl $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Storage_ObjectAccessControl + */ + public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl"); + } } /** @@ -1347,148 +1337,146 @@ class Google_Service_Storage_DefaultObjectAccessControls_Resource extends Google * $objectAccessControls = $storageService->objectAccessControls; * */ -class Google_Service_Storage_ObjectAccessControls_Resource extends Google_Service_Resource -{ +class Google_Service_Storage_ObjectAccessControls_Resource extends Google_Service_Resource { - /** - * Permanently deletes the ACL entry for the specified entity on the specified - * object. (objectAccessControls.delete) - * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param array $optParams Optional parameters. - * - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - */ - public function delete($bucket, $object, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns the ACL entry for the specified entity on the specified object. - * (objectAccessControls.get) - * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param array $optParams Optional parameters. - * - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - * @return Google_Service_Storage_ObjectAccessControl - */ - public function get($bucket, $object, $entity, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - /** - * Creates a new ACL entry on the specified object. - * (objectAccessControls.insert) - * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - * @return Google_Service_Storage_ObjectAccessControl - */ - public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - /** - * Retrieves ACL entries on the specified object. - * (objectAccessControls.listObjectAccessControls) - * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. - * @param array $optParams Optional parameters. - * - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - * @return Google_Service_Storage_ObjectAccessControls - */ - public function listObjectAccessControls($bucket, $object, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); - } - /** - * Updates an ACL entry on the specified object. This method supports patch - * semantics. (objectAccessControls.patch) - * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - * @return Google_Service_Storage_ObjectAccessControl - */ - public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); - } - /** - * Updates an ACL entry on the specified object. (objectAccessControls.update) - * - * @param string $bucket - * Name of a bucket. - * @param string $object - * Name of the object. - * @param string $entity - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- - * emailAddress, allUsers, or allAuthenticatedUsers. - * @param Google_ObjectAccessControl $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - * @return Google_Service_Storage_ObjectAccessControl - */ - public function update($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl"); - } + /** + * Permanently deletes the ACL entry for the specified entity on the specified + * object. (objectAccessControls.delete) + * + * @param string $bucket + * Name of a bucket. + * @param string $object + * Name of the object. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param array $optParams Optional parameters. + * + * @opt_param string generation + * If present, selects a specific revision of this object (as opposed to the latest version, the + * default). + */ + public function delete($bucket, $object, $entity, $optParams = array()) { + $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns the ACL entry for the specified entity on the specified object. + * (objectAccessControls.get) + * + * @param string $bucket + * Name of a bucket. + * @param string $object + * Name of the object. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param array $optParams Optional parameters. + * + * @opt_param string generation + * If present, selects a specific revision of this object (as opposed to the latest version, the + * default). + * @return Google_Service_Storage_ObjectAccessControl + */ + public function get($bucket, $object, $entity, $optParams = array()) { + $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); + } + + /** + * Creates a new ACL entry on the specified object. + * (objectAccessControls.insert) + * + * @param string $bucket + * Name of a bucket. + * @param string $object + * Name of the object. + * @param Google_ObjectAccessControl $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string generation + * If present, selects a specific revision of this object (as opposed to the latest version, the + * default). + * @return Google_Service_Storage_ObjectAccessControl + */ + public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); + } + + /** + * Retrieves ACL entries on the specified object. + * (objectAccessControls.listObjectAccessControls) + * + * @param string $bucket + * Name of a bucket. + * @param string $object + * Name of the object. + * @param array $optParams Optional parameters. + * + * @opt_param string generation + * If present, selects a specific revision of this object (as opposed to the latest version, the + * default). + * @return Google_Service_Storage_ObjectAccessControls + */ + public function listObjectAccessControls($bucket, $object, $optParams = array()) { + $params = array('bucket' => $bucket, 'object' => $object); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); + } + + /** + * Updates an ACL entry on the specified object. This method supports patch + * semantics. (objectAccessControls.patch) + * + * @param string $bucket + * Name of a bucket. + * @param string $object + * Name of the object. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param Google_ObjectAccessControl $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string generation + * If present, selects a specific revision of this object (as opposed to the latest version, the + * default). + * @return Google_Service_Storage_ObjectAccessControl + */ + public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); + } + + /** + * Updates an ACL entry on the specified object. (objectAccessControls.update) + * + * @param string $bucket + * Name of a bucket. + * @param string $object + * Name of the object. + * @param string $entity + * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group- + * emailAddress, allUsers, or allAuthenticatedUsers. + * @param Google_ObjectAccessControl $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string generation + * If present, selects a specific revision of this object (as opposed to the latest version, the + * default). + * @return Google_Service_Storage_ObjectAccessControl + */ + public function update($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl"); + } } /** @@ -1499,1776 +1487,1508 @@ class Google_Service_Storage_ObjectAccessControls_Resource extends Google_Servic * $objects = $storageService->objects; * */ -class Google_Service_Storage_Objects_Resource extends Google_Service_Resource -{ +class Google_Service_Storage_Objects_Resource extends Google_Service_Resource { - /** - * Concatenates a list of existing objects into a new object in the same bucket. - * (objects.compose) - * - * @param string $destinationBucket - * Name of the bucket in which to store the new object. - * @param string $destinationObject - * Name of the new object. - * @param Google_ComposeRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's current generation matches the given - * value. - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string destinationPredefinedAcl - * Apply a predefined set of access controls to the destination object. - * @return Google_Service_Storage_StorageObject - */ - public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array()) - { - $params = array('destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('compose', array($params), "Google_Service_Storage_StorageObject"); - } - /** - * Copies an object to a specified location. Optionally overrides metadata. - * (objects.copy) - * - * @param string $sourceBucket - * Name of the bucket in which to find the source object. - * @param string $sourceObject - * Name of the source object. - * @param string $destinationBucket - * Name of the bucket in which to store the new object. Overrides the provided object metadata's - * bucket value, if any. - * @param string $destinationObject - * Name of the new object. Required when the object metadata is not otherwise provided. Overrides - * the object metadata's name value, if any. - * @param Google_StorageObject $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string ifSourceGenerationNotMatch - * Makes the operation conditional on whether the source object's generation does not match the - * given value. - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the destination object's current generation does not - * match the given value. - * @opt_param string ifSourceMetagenerationNotMatch - * Makes the operation conditional on whether the source object's current metageneration does not - * match the given value. - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the destination object's current metageneration - * matches the given value. - * @opt_param string sourceGeneration - * If present, selects a specific revision of the source object (as opposed to the latest version, - * the default). - * @opt_param string destinationPredefinedAcl - * Apply a predefined set of access controls to the destination object. - * @opt_param string ifSourceGenerationMatch - * Makes the operation conditional on whether the source object's generation matches the given - * value. - * @opt_param string ifSourceMetagenerationMatch - * Makes the operation conditional on whether the source object's current metageneration matches - * the given value. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the destination object's current generation matches - * the given value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the destination object's current metageneration does - * not match the given value. - * @opt_param string projection - * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl - * property, when it defaults to full. - * @return Google_Service_Storage_StorageObject - */ - public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array()) - { - $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('copy', array($params), "Google_Service_Storage_StorageObject"); - } - /** - * Deletes an object and its metadata. Deletions are permanent if versioning is - * not enabled for the bucket, or if the generation parameter is used. - * (objects.delete) - * - * @param string $bucket - * Name of the bucket in which the object resides. - * @param string $object - * Name of the object. - * @param array $optParams Optional parameters. - * - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the object's current generation does not match the - * given value. - * @opt_param string generation - * If present, permanently deletes a specific revision of this object (as opposed to the latest - * version, the default). - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's current generation matches the given - * value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the object's current metageneration does not match - * the given value. - */ - public function delete($bucket, $object, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves objects or their metadata. (objects.get) - * - * @param string $bucket - * Name of the bucket in which the object resides. - * @param string $object - * Name of the object. - * @param array $optParams Optional parameters. - * - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the object's generation does not match the given - * value. - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's generation matches the given value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the object's current metageneration does not match - * the given value. - * @opt_param string projection - * Set of properties to return. Defaults to noAcl. - * @return Google_Service_Storage_StorageObject - */ - public function get($bucket, $object, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Storage_StorageObject"); - } - /** - * Stores a new object and metadata. (objects.insert) - * - * @param string $bucket - * Name of the bucket in which to store the new object. Overrides the provided object metadata's - * bucket value, if any. - * @param Google_StorageObject $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this object. - * @opt_param string projection - * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl - * property, when it defaults to full. - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the object's current generation does not match the - * given value. - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string contentEncoding - * If set, sets the contentEncoding property of the final object to this value. Setting this - * parameter is equivalent to setting the contentEncoding metadata property. This can be useful - * when uploading an object with uploadType=media to indicate the encoding of the content being - * uploaded. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's current generation matches the given - * value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the object's current metageneration does not match - * the given value. - * @opt_param string name - * Name of the object. Required when the object metadata is not otherwise provided. Overrides the - * object metadata's name value, if any. - * @return Google_Service_Storage_StorageObject - */ - public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Storage_StorageObject"); - } - /** - * Retrieves a list of objects matching the criteria. (objects.listObjects) - * - * @param string $bucket - * Name of the bucket in which to look for objects. - * @param array $optParams Optional parameters. - * - * @opt_param string projection - * Set of properties to return. Defaults to noAcl. - * @opt_param bool versions - * If true, lists all versions of a file as distinct results. - * @opt_param string prefix - * Filter results to objects whose names begin with this prefix. - * @opt_param string maxResults - * Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total - * results may be returned than requested. - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. - * @opt_param string delimiter - * Returns results in a directory-like mode. items will contain only objects whose names, aside - * from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain - * delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate - * prefixes are omitted. - * @return Google_Service_Storage_Objects - */ - public function listObjects($bucket, $optParams = array()) - { - $params = array('bucket' => $bucket); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Storage_Objects"); - } - /** - * Updates an object's metadata. This method supports patch semantics. - * (objects.patch) - * - * @param string $bucket - * Name of the bucket in which the object resides. - * @param string $object - * Name of the object. - * @param Google_StorageObject $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this object. - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the object's current generation does not match the - * given value. - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's current generation matches the given - * value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the object's current metageneration does not match - * the given value. - * @opt_param string projection - * Set of properties to return. Defaults to full. - * @return Google_Service_Storage_StorageObject - */ - public function patch($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Storage_StorageObject"); - } - /** - * Updates an object's metadata. (objects.update) - * - * @param string $bucket - * Name of the bucket in which the object resides. - * @param string $object - * Name of the object. - * @param Google_StorageObject $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string predefinedAcl - * Apply a predefined set of access controls to this object. - * @opt_param string ifGenerationNotMatch - * Makes the operation conditional on whether the object's current generation does not match the - * given value. - * @opt_param string generation - * If present, selects a specific revision of this object (as opposed to the latest version, the - * default). - * @opt_param string ifMetagenerationMatch - * Makes the operation conditional on whether the object's current metageneration matches the given - * value. - * @opt_param string ifGenerationMatch - * Makes the operation conditional on whether the object's current generation matches the given - * value. - * @opt_param string ifMetagenerationNotMatch - * Makes the operation conditional on whether the object's current metageneration does not match - * the given value. - * @opt_param string projection - * Set of properties to return. Defaults to full. - * @return Google_Service_Storage_StorageObject - */ - public function update($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Storage_StorageObject"); - } - /** - * Watch for changes on all objects in a bucket. (objects.watchAll) - * - * @param string $bucket - * Name of the bucket in which to look for objects. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string projection - * Set of properties to return. Defaults to noAcl. - * @opt_param bool versions - * If true, lists all versions of a file as distinct results. - * @opt_param string prefix - * Filter results to objects whose names begin with this prefix. - * @opt_param string maxResults - * Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total - * results may be returned than requested. - * @opt_param string pageToken - * A previously-returned page token representing part of the larger set of results to view. - * @opt_param string delimiter - * Returns results in a directory-like mode. items will contain only objects whose names, aside - * from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain - * delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate - * prefixes are omitted. - * @return Google_Service_Storage_Channel - */ - public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $optParams = array()) - { - $params = array('bucket' => $bucket, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watchAll', array($params), "Google_Service_Storage_Channel"); - } + /** + * Concatenates a list of existing objects into a new object in the same bucket. + * (objects.compose) + * + * @param string $destinationBucket + * Name of the bucket in which to store the new object. + * @param string $destinationObject + * Name of the new object. + * @param Google_ComposeRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string ifGenerationMatch + * Makes the operation conditional on whether the object's current generation matches the given + * value. + * @opt_param string ifMetagenerationMatch + * Makes the operation conditional on whether the object's current metageneration matches the given + * value. + * @opt_param string destinationPredefinedAcl + * Apply a predefined set of access controls to the destination object. + * @return Google_Service_Storage_StorageObject + */ + public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array()) { + $params = array('destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('compose', array($params), "Google_Service_Storage_StorageObject"); + } + + /** + * Copies an object to a specified location. Optionally overrides metadata. + * (objects.copy) + * + * @param string $sourceBucket + * Name of the bucket in which to find the source object. + * @param string $sourceObject + * Name of the source object. + * @param string $destinationBucket + * Name of the bucket in which to store the new object. Overrides the provided object metadata's + * bucket value, if any. + * @param string $destinationObject + * Name of the new object. Required when the object metadata is not otherwise provided. Overrides + * the object metadata's name value, if any. + * @param Google_StorageObject $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string ifSourceGenerationNotMatch + * Makes the operation conditional on whether the source object's generation does not match the + * given value. + * @opt_param string ifGenerationNotMatch + * Makes the operation conditional on whether the destination object's current generation does not + * match the given value. + * @opt_param string ifSourceMetagenerationNotMatch + * Makes the operation conditional on whether the source object's current metageneration does not + * match the given value. + * @opt_param string ifMetagenerationMatch + * Makes the operation conditional on whether the destination object's current metageneration + * matches the given value. + * @opt_param string sourceGeneration + * If present, selects a specific revision of the source object (as opposed to the latest version, + * the default). + * @opt_param string destinationPredefinedAcl + * Apply a predefined set of access controls to the destination object. + * @opt_param string ifSourceGenerationMatch + * Makes the operation conditional on whether the source object's generation matches the given + * value. + * @opt_param string ifSourceMetagenerationMatch + * Makes the operation conditional on whether the source object's current metageneration matches + * the given value. + * @opt_param string ifGenerationMatch + * Makes the operation conditional on whether the destination object's current generation matches + * the given value. + * @opt_param string ifMetagenerationNotMatch + * Makes the operation conditional on whether the destination object's current metageneration does + * not match the given value. + * @opt_param string projection + * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl + * property, when it defaults to full. + * @return Google_Service_Storage_StorageObject + */ + public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array()) { + $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('copy', array($params), "Google_Service_Storage_StorageObject"); + } + + /** + * Deletes an object and its metadata. Deletions are permanent if versioning is + * not enabled for the bucket, or if the generation parameter is used. + * (objects.delete) + * + * @param string $bucket + * Name of the bucket in which the object resides. + * @param string $object + * Name of the object. + * @param array $optParams Optional parameters. + * + * @opt_param string ifGenerationNotMatch + * Makes the operation conditional on whether the object's current generation does not match the + * given value. + * @opt_param string generation + * If present, permanently deletes a specific revision of this object (as opposed to the latest + * version, the default). + * @opt_param string ifMetagenerationMatch + * Makes the operation conditional on whether the object's current metageneration matches the given + * value. + * @opt_param string ifGenerationMatch + * Makes the operation conditional on whether the object's current generation matches the given + * value. + * @opt_param string ifMetagenerationNotMatch + * Makes the operation conditional on whether the object's current metageneration does not match + * the given value. + */ + public function delete($bucket, $object, $optParams = array()) { + $params = array('bucket' => $bucket, 'object' => $object); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves objects or their metadata. (objects.get) + * + * @param string $bucket + * Name of the bucket in which the object resides. + * @param string $object + * Name of the object. + * @param array $optParams Optional parameters. + * + * @opt_param string ifGenerationNotMatch + * Makes the operation conditional on whether the object's generation does not match the given + * value. + * @opt_param string generation + * If present, selects a specific revision of this object (as opposed to the latest version, the + * default). + * @opt_param string ifMetagenerationMatch + * Makes the operation conditional on whether the object's current metageneration matches the given + * value. + * @opt_param string ifGenerationMatch + * Makes the operation conditional on whether the object's generation matches the given value. + * @opt_param string ifMetagenerationNotMatch + * Makes the operation conditional on whether the object's current metageneration does not match + * the given value. + * @opt_param string projection + * Set of properties to return. Defaults to noAcl. + * @return Google_Service_Storage_StorageObject + */ + public function get($bucket, $object, $optParams = array()) { + $params = array('bucket' => $bucket, 'object' => $object); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Storage_StorageObject"); + } + + /** + * Stores a new object and metadata. (objects.insert) + * + * @param string $bucket + * Name of the bucket in which to store the new object. Overrides the provided object metadata's + * bucket value, if any. + * @param Google_StorageObject $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string predefinedAcl + * Apply a predefined set of access controls to this object. + * @opt_param string projection + * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl + * property, when it defaults to full. + * @opt_param string ifGenerationNotMatch + * Makes the operation conditional on whether the object's current generation does not match the + * given value. + * @opt_param string ifMetagenerationMatch + * Makes the operation conditional on whether the object's current metageneration matches the given + * value. + * @opt_param string contentEncoding + * If set, sets the contentEncoding property of the final object to this value. Setting this + * parameter is equivalent to setting the contentEncoding metadata property. This can be useful + * when uploading an object with uploadType=media to indicate the encoding of the content being + * uploaded. + * @opt_param string ifGenerationMatch + * Makes the operation conditional on whether the object's current generation matches the given + * value. + * @opt_param string ifMetagenerationNotMatch + * Makes the operation conditional on whether the object's current metageneration does not match + * the given value. + * @opt_param string name + * Name of the object. Required when the object metadata is not otherwise provided. Overrides the + * object metadata's name value, if any. + * @return Google_Service_Storage_StorageObject + */ + public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Storage_StorageObject"); + } + + /** + * Retrieves a list of objects matching the criteria. (objects.listObjects) + * + * @param string $bucket + * Name of the bucket in which to look for objects. + * @param array $optParams Optional parameters. + * + * @opt_param string projection + * Set of properties to return. Defaults to noAcl. + * @opt_param bool versions + * If true, lists all versions of a file as distinct results. + * @opt_param string prefix + * Filter results to objects whose names begin with this prefix. + * @opt_param string maxResults + * Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total + * results may be returned than requested. + * @opt_param string pageToken + * A previously-returned page token representing part of the larger set of results to view. + * @opt_param string delimiter + * Returns results in a directory-like mode. items will contain only objects whose names, aside + * from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain + * delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate + * prefixes are omitted. + * @return Google_Service_Storage_Objects + */ + public function listObjects($bucket, $optParams = array()) { + $params = array('bucket' => $bucket); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Storage_Objects"); + } + + /** + * Updates an object's metadata. This method supports patch semantics. + * (objects.patch) + * + * @param string $bucket + * Name of the bucket in which the object resides. + * @param string $object + * Name of the object. + * @param Google_StorageObject $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string predefinedAcl + * Apply a predefined set of access controls to this object. + * @opt_param string ifGenerationNotMatch + * Makes the operation conditional on whether the object's current generation does not match the + * given value. + * @opt_param string generation + * If present, selects a specific revision of this object (as opposed to the latest version, the + * default). + * @opt_param string ifMetagenerationMatch + * Makes the operation conditional on whether the object's current metageneration matches the given + * value. + * @opt_param string ifGenerationMatch + * Makes the operation conditional on whether the object's current generation matches the given + * value. + * @opt_param string ifMetagenerationNotMatch + * Makes the operation conditional on whether the object's current metageneration does not match + * the given value. + * @opt_param string projection + * Set of properties to return. Defaults to full. + * @return Google_Service_Storage_StorageObject + */ + public function patch($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Storage_StorageObject"); + } + + /** + * Updates an object's metadata. (objects.update) + * + * @param string $bucket + * Name of the bucket in which the object resides. + * @param string $object + * Name of the object. + * @param Google_StorageObject $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string predefinedAcl + * Apply a predefined set of access controls to this object. + * @opt_param string ifGenerationNotMatch + * Makes the operation conditional on whether the object's current generation does not match the + * given value. + * @opt_param string generation + * If present, selects a specific revision of this object (as opposed to the latest version, the + * default). + * @opt_param string ifMetagenerationMatch + * Makes the operation conditional on whether the object's current metageneration matches the given + * value. + * @opt_param string ifGenerationMatch + * Makes the operation conditional on whether the object's current generation matches the given + * value. + * @opt_param string ifMetagenerationNotMatch + * Makes the operation conditional on whether the object's current metageneration does not match + * the given value. + * @opt_param string projection + * Set of properties to return. Defaults to full. + * @return Google_Service_Storage_StorageObject + */ + public function update($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Storage_StorageObject"); + } + + /** + * Watch for changes on all objects in a bucket. (objects.watchAll) + * + * @param string $bucket + * Name of the bucket in which to look for objects. + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string projection + * Set of properties to return. Defaults to noAcl. + * @opt_param bool versions + * If true, lists all versions of a file as distinct results. + * @opt_param string prefix + * Filter results to objects whose names begin with this prefix. + * @opt_param string maxResults + * Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total + * results may be returned than requested. + * @opt_param string pageToken + * A previously-returned page token representing part of the larger set of results to view. + * @opt_param string delimiter + * Returns results in a directory-like mode. items will contain only objects whose names, aside + * from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain + * delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate + * prefixes are omitted. + * @return Google_Service_Storage_Channel + */ + public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $optParams = array()) { + $params = array('bucket' => $bucket, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watchAll', array($params), "Google_Service_Storage_Channel"); + } } +class Google_Service_Storage_Bucket extends Google_Collection { + protected $aclType = 'Google_Service_Storage_BucketAccessControl'; + protected $aclDataType = 'array'; + protected $corsType = 'Google_Service_Storage_BucketCors'; + protected $corsDataType = 'array'; + protected $defaultObjectAclType = 'Google_Service_Storage_ObjectAccessControl'; + protected $defaultObjectAclDataType = 'array'; + public $etag; + public $id; + public $kind; + protected $lifecycleType = 'Google_Service_Storage_BucketLifecycle'; + protected $lifecycleDataType = ''; + public $location; + protected $loggingType = 'Google_Service_Storage_BucketLogging'; + protected $loggingDataType = ''; + public $metageneration; + public $name; + protected $ownerType = 'Google_Service_Storage_BucketOwner'; + protected $ownerDataType = ''; + public $projectNumber; + public $selfLink; + public $storageClass; + public $timeCreated; + protected $versioningType = 'Google_Service_Storage_BucketVersioning'; + protected $versioningDataType = ''; + protected $websiteType = 'Google_Service_Storage_BucketWebsite'; + protected $websiteDataType = ''; + public function setAcl($acl) { + $this->acl = $acl; + } -class Google_Service_Storage_Bucket extends Google_Collection -{ - protected $aclType = 'Google_Service_Storage_BucketAccessControl'; - protected $aclDataType = 'array'; - protected $corsType = 'Google_Service_Storage_BucketCors'; - protected $corsDataType = 'array'; - protected $defaultObjectAclType = 'Google_Service_Storage_ObjectAccessControl'; - protected $defaultObjectAclDataType = 'array'; - public $etag; - public $id; - public $kind; - protected $lifecycleType = 'Google_Service_Storage_BucketLifecycle'; - protected $lifecycleDataType = ''; - public $location; - protected $loggingType = 'Google_Service_Storage_BucketLogging'; - protected $loggingDataType = ''; - public $metageneration; - public $name; - protected $ownerType = 'Google_Service_Storage_BucketOwner'; - protected $ownerDataType = ''; - public $projectNumber; - public $selfLink; - public $storageClass; - public $timeCreated; - protected $versioningType = 'Google_Service_Storage_BucketVersioning'; - protected $versioningDataType = ''; - protected $websiteType = 'Google_Service_Storage_BucketWebsite'; - protected $websiteDataType = ''; + public function getAcl() { + return $this->acl; + } - public function setAcl($acl) - { - $this->acl = $acl; - } + public function setCors($cors) { + $this->cors = $cors; + } - public function getAcl() - { - return $this->acl; - } + public function getCors() { + return $this->cors; + } - public function setCors($cors) - { - $this->cors = $cors; - } + public function setDefaultObjectAcl($defaultObjectAcl) { + $this->defaultObjectAcl = $defaultObjectAcl; + } - public function getCors() - { - return $this->cors; - } + public function getDefaultObjectAcl() { + return $this->defaultObjectAcl; + } - public function setDefaultObjectAcl($defaultObjectAcl) - { - $this->defaultObjectAcl = $defaultObjectAcl; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getDefaultObjectAcl() - { - return $this->defaultObjectAcl; - } + public function getEtag() { + return $this->etag; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setId($id) { + $this->id = $id; + } - public function getEtag() - { - return $this->etag; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setLifecycle(Google_Service_Storage_BucketLifecycle $lifecycle) { + $this->lifecycle = $lifecycle; + } - public function getKind() - { - return $this->kind; - } + public function getLifecycle() { + return $this->lifecycle; + } - public function setLifecycle(Google_Service_Storage_BucketLifecycle $lifecycle) - { - $this->lifecycle = $lifecycle; - } + public function setLocation($location) { + $this->location = $location; + } - public function getLifecycle() - { - return $this->lifecycle; - } + public function getLocation() { + return $this->location; + } - public function setLocation($location) - { - $this->location = $location; - } + public function setLogging(Google_Service_Storage_BucketLogging $logging) { + $this->logging = $logging; + } - public function getLocation() - { - return $this->location; - } + public function getLogging() { + return $this->logging; + } - public function setLogging(Google_Service_Storage_BucketLogging $logging) - { - $this->logging = $logging; - } + public function setMetageneration($metageneration) { + $this->metageneration = $metageneration; + } - public function getLogging() - { - return $this->logging; - } + public function getMetageneration() { + return $this->metageneration; + } - public function setMetageneration($metageneration) - { - $this->metageneration = $metageneration; - } + public function setName($name) { + $this->name = $name; + } - public function getMetageneration() - { - return $this->metageneration; - } + public function getName() { + return $this->name; + } - public function setName($name) - { - $this->name = $name; - } + public function setOwner(Google_Service_Storage_BucketOwner $owner) { + $this->owner = $owner; + } - public function getName() - { - return $this->name; - } + public function getOwner() { + return $this->owner; + } - public function setOwner(Google_Service_Storage_BucketOwner $owner) - { - $this->owner = $owner; - } + public function setProjectNumber($projectNumber) { + $this->projectNumber = $projectNumber; + } - public function getOwner() - { - return $this->owner; - } + public function getProjectNumber() { + return $this->projectNumber; + } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getProjectNumber() - { - return $this->projectNumber; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setStorageClass($storageClass) { + $this->storageClass = $storageClass; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getStorageClass() { + return $this->storageClass; + } - public function setStorageClass($storageClass) - { - $this->storageClass = $storageClass; - } + public function setTimeCreated($timeCreated) { + $this->timeCreated = $timeCreated; + } - public function getStorageClass() - { - return $this->storageClass; - } + public function getTimeCreated() { + return $this->timeCreated; + } - public function setTimeCreated($timeCreated) - { - $this->timeCreated = $timeCreated; - } + public function setVersioning(Google_Service_Storage_BucketVersioning $versioning) { + $this->versioning = $versioning; + } - public function getTimeCreated() - { - return $this->timeCreated; - } + public function getVersioning() { + return $this->versioning; + } - public function setVersioning(Google_Service_Storage_BucketVersioning $versioning) - { - $this->versioning = $versioning; - } + public function setWebsite(Google_Service_Storage_BucketWebsite $website) { + $this->website = $website; + } - public function getVersioning() - { - return $this->versioning; - } - - public function setWebsite(Google_Service_Storage_BucketWebsite $website) - { - $this->website = $website; - } - - public function getWebsite() - { - return $this->website; - } + public function getWebsite() { + return $this->website; + } } -class Google_Service_Storage_BucketAccessControl extends Google_Model -{ - public $bucket; - public $domain; - public $email; - public $entity; - public $entityId; - public $etag; - public $id; - public $kind; - protected $projectTeamType = 'Google_Service_Storage_BucketAccessControlProjectTeam'; - protected $projectTeamDataType = ''; - public $role; - public $selfLink; +class Google_Service_Storage_BucketAccessControl extends Google_Model { + public $bucket; + public $domain; + public $email; + public $entity; + public $entityId; + public $etag; + public $id; + public $kind; + protected $projectTeamType = 'Google_Service_Storage_BucketAccessControlProjectTeam'; + protected $projectTeamDataType = ''; + public $role; + public $selfLink; - public function setBucket($bucket) - { - $this->bucket = $bucket; - } + public function setBucket($bucket) { + $this->bucket = $bucket; + } - public function getBucket() - { - return $this->bucket; - } + public function getBucket() { + return $this->bucket; + } - public function setDomain($domain) - { - $this->domain = $domain; - } + public function setDomain($domain) { + $this->domain = $domain; + } - public function getDomain() - { - return $this->domain; - } + public function getDomain() { + return $this->domain; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setEntity($entity) - { - $this->entity = $entity; - } + public function setEntity($entity) { + $this->entity = $entity; + } - public function getEntity() - { - return $this->entity; - } + public function getEntity() { + return $this->entity; + } - public function setEntityId($entityId) - { - $this->entityId = $entityId; - } + public function setEntityId($entityId) { + $this->entityId = $entityId; + } - public function getEntityId() - { - return $this->entityId; - } + public function getEntityId() { + return $this->entityId; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setProjectTeam(Google_Service_Storage_BucketAccessControlProjectTeam $projectTeam) - { - $this->projectTeam = $projectTeam; - } + public function setProjectTeam(Google_Service_Storage_BucketAccessControlProjectTeam $projectTeam) { + $this->projectTeam = $projectTeam; + } - public function getProjectTeam() - { - return $this->projectTeam; - } + public function getProjectTeam() { + return $this->projectTeam; + } - public function setRole($role) - { - $this->role = $role; - } + public function setRole($role) { + $this->role = $role; + } - public function getRole() - { - return $this->role; - } + public function getRole() { + return $this->role; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Storage_BucketAccessControlProjectTeam extends Google_Model -{ - public $projectNumber; - public $team; +class Google_Service_Storage_BucketAccessControlProjectTeam extends Google_Model { + public $projectNumber; + public $team; - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } + public function setProjectNumber($projectNumber) { + $this->projectNumber = $projectNumber; + } - public function getProjectNumber() - { - return $this->projectNumber; - } + public function getProjectNumber() { + return $this->projectNumber; + } - public function setTeam($team) - { - $this->team = $team; - } + public function setTeam($team) { + $this->team = $team; + } - public function getTeam() - { - return $this->team; - } + public function getTeam() { + return $this->team; + } } -class Google_Service_Storage_BucketAccessControls extends Google_Collection -{ - protected $itemsType = 'Google_Service_Storage_BucketAccessControl'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Storage_BucketAccessControls extends Google_Collection { + protected $itemsType = 'Google_Service_Storage_BucketAccessControl'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Storage_BucketCors extends Google_Collection -{ - public $maxAgeSeconds; - public $method; - public $origin; - public $responseHeader; +class Google_Service_Storage_BucketCors extends Google_Collection { + public $maxAgeSeconds; + public $method; + public $origin; + public $responseHeader; - public function setMaxAgeSeconds($maxAgeSeconds) - { - $this->maxAgeSeconds = $maxAgeSeconds; - } + public function setMaxAgeSeconds($maxAgeSeconds) { + $this->maxAgeSeconds = $maxAgeSeconds; + } - public function getMaxAgeSeconds() - { - return $this->maxAgeSeconds; - } + public function getMaxAgeSeconds() { + return $this->maxAgeSeconds; + } - public function setMethod($method) - { - $this->method = $method; - } + public function setMethod($method) { + $this->method = $method; + } - public function getMethod() - { - return $this->method; - } + public function getMethod() { + return $this->method; + } - public function setOrigin($origin) - { - $this->origin = $origin; - } + public function setOrigin($origin) { + $this->origin = $origin; + } - public function getOrigin() - { - return $this->origin; - } + public function getOrigin() { + return $this->origin; + } - public function setResponseHeader($responseHeader) - { - $this->responseHeader = $responseHeader; - } + public function setResponseHeader($responseHeader) { + $this->responseHeader = $responseHeader; + } - public function getResponseHeader() - { - return $this->responseHeader; - } + public function getResponseHeader() { + return $this->responseHeader; + } } -class Google_Service_Storage_BucketLifecycle extends Google_Collection -{ - protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule'; - protected $ruleDataType = 'array'; +class Google_Service_Storage_BucketLifecycle extends Google_Collection { + protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule'; + protected $ruleDataType = 'array'; - public function setRule($rule) - { - $this->rule = $rule; - } + public function setRule($rule) { + $this->rule = $rule; + } - public function getRule() - { - return $this->rule; - } + public function getRule() { + return $this->rule; + } } -class Google_Service_Storage_BucketLifecycleRule extends Google_Model -{ - protected $actionType = 'Google_Service_Storage_BucketLifecycleRuleAction'; - protected $actionDataType = ''; - protected $conditionType = 'Google_Service_Storage_BucketLifecycleRuleCondition'; - protected $conditionDataType = ''; +class Google_Service_Storage_BucketLifecycleRule extends Google_Model { + protected $actionType = 'Google_Service_Storage_BucketLifecycleRuleAction'; + protected $actionDataType = ''; + protected $conditionType = 'Google_Service_Storage_BucketLifecycleRuleCondition'; + protected $conditionDataType = ''; - public function setAction(Google_Service_Storage_BucketLifecycleRuleAction $action) - { - $this->action = $action; - } + public function setAction(Google_Service_Storage_BucketLifecycleRuleAction $action) { + $this->action = $action; + } - public function getAction() - { - return $this->action; - } + public function getAction() { + return $this->action; + } - public function setCondition(Google_Service_Storage_BucketLifecycleRuleCondition $condition) - { - $this->condition = $condition; - } + public function setCondition(Google_Service_Storage_BucketLifecycleRuleCondition $condition) { + $this->condition = $condition; + } - public function getCondition() - { - return $this->condition; - } + public function getCondition() { + return $this->condition; + } } -class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model -{ - public $type; +class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model { + public $type; - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model -{ - public $age; - public $createdBefore; - public $isLive; - public $numNewerVersions; +class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model { + public $age; + public $createdBefore; + public $isLive; + public $numNewerVersions; - public function setAge($age) - { - $this->age = $age; - } + public function setAge($age) { + $this->age = $age; + } - public function getAge() - { - return $this->age; - } + public function getAge() { + return $this->age; + } - public function setCreatedBefore($createdBefore) - { - $this->createdBefore = $createdBefore; - } + public function setCreatedBefore($createdBefore) { + $this->createdBefore = $createdBefore; + } - public function getCreatedBefore() - { - return $this->createdBefore; - } + public function getCreatedBefore() { + return $this->createdBefore; + } - public function setIsLive($isLive) - { - $this->isLive = $isLive; - } + public function setIsLive($isLive) { + $this->isLive = $isLive; + } - public function getIsLive() - { - return $this->isLive; - } + public function getIsLive() { + return $this->isLive; + } - public function setNumNewerVersions($numNewerVersions) - { - $this->numNewerVersions = $numNewerVersions; - } + public function setNumNewerVersions($numNewerVersions) { + $this->numNewerVersions = $numNewerVersions; + } - public function getNumNewerVersions() - { - return $this->numNewerVersions; - } + public function getNumNewerVersions() { + return $this->numNewerVersions; + } } -class Google_Service_Storage_BucketLogging extends Google_Model -{ - public $logBucket; - public $logObjectPrefix; +class Google_Service_Storage_BucketLogging extends Google_Model { + public $logBucket; + public $logObjectPrefix; - public function setLogBucket($logBucket) - { - $this->logBucket = $logBucket; - } + public function setLogBucket($logBucket) { + $this->logBucket = $logBucket; + } - public function getLogBucket() - { - return $this->logBucket; - } + public function getLogBucket() { + return $this->logBucket; + } - public function setLogObjectPrefix($logObjectPrefix) - { - $this->logObjectPrefix = $logObjectPrefix; - } + public function setLogObjectPrefix($logObjectPrefix) { + $this->logObjectPrefix = $logObjectPrefix; + } - public function getLogObjectPrefix() - { - return $this->logObjectPrefix; - } + public function getLogObjectPrefix() { + return $this->logObjectPrefix; + } } -class Google_Service_Storage_BucketOwner extends Google_Model -{ - public $entity; - public $entityId; +class Google_Service_Storage_BucketOwner extends Google_Model { + public $entity; + public $entityId; - public function setEntity($entity) - { - $this->entity = $entity; - } + public function setEntity($entity) { + $this->entity = $entity; + } - public function getEntity() - { - return $this->entity; - } + public function getEntity() { + return $this->entity; + } - public function setEntityId($entityId) - { - $this->entityId = $entityId; - } + public function setEntityId($entityId) { + $this->entityId = $entityId; + } - public function getEntityId() - { - return $this->entityId; - } + public function getEntityId() { + return $this->entityId; + } } -class Google_Service_Storage_BucketVersioning extends Google_Model -{ - public $enabled; +class Google_Service_Storage_BucketVersioning extends Google_Model { + public $enabled; - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } + public function setEnabled($enabled) { + $this->enabled = $enabled; + } - public function getEnabled() - { - return $this->enabled; - } + public function getEnabled() { + return $this->enabled; + } } -class Google_Service_Storage_BucketWebsite extends Google_Model -{ - public $mainPageSuffix; - public $notFoundPage; +class Google_Service_Storage_BucketWebsite extends Google_Model { + public $mainPageSuffix; + public $notFoundPage; - public function setMainPageSuffix($mainPageSuffix) - { - $this->mainPageSuffix = $mainPageSuffix; - } + public function setMainPageSuffix($mainPageSuffix) { + $this->mainPageSuffix = $mainPageSuffix; + } - public function getMainPageSuffix() - { - return $this->mainPageSuffix; - } + public function getMainPageSuffix() { + return $this->mainPageSuffix; + } - public function setNotFoundPage($notFoundPage) - { - $this->notFoundPage = $notFoundPage; - } + public function setNotFoundPage($notFoundPage) { + $this->notFoundPage = $notFoundPage; + } - public function getNotFoundPage() - { - return $this->notFoundPage; - } + public function getNotFoundPage() { + return $this->notFoundPage; + } } -class Google_Service_Storage_Buckets extends Google_Collection -{ - protected $itemsType = 'Google_Service_Storage_Bucket'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Storage_Buckets extends Google_Collection { + protected $itemsType = 'Google_Service_Storage_Bucket'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Storage_Channel extends Google_Model -{ - public $address; - public $expiration; - public $id; - public $kind; - public $params; - public $payload; - public $resourceId; - public $resourceUri; - public $token; - public $type; +class Google_Service_Storage_Channel extends Google_Model { + public $address; + public $expiration; + public $id; + public $kind; + public $params; + public $payload; + public $resourceId; + public $resourceUri; + public $token; + public $type; - public function setAddress($address) - { - $this->address = $address; - } + public function setAddress($address) { + $this->address = $address; + } - public function getAddress() - { - return $this->address; - } + public function getAddress() { + return $this->address; + } - public function setExpiration($expiration) - { - $this->expiration = $expiration; - } + public function setExpiration($expiration) { + $this->expiration = $expiration; + } - public function getExpiration() - { - return $this->expiration; - } + public function getExpiration() { + return $this->expiration; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setParams($params) - { - $this->params = $params; - } + public function setParams($params) { + $this->params = $params; + } - public function getParams() - { - return $this->params; - } + public function getParams() { + return $this->params; + } - public function setPayload($payload) - { - $this->payload = $payload; - } + public function setPayload($payload) { + $this->payload = $payload; + } - public function getPayload() - { - return $this->payload; - } + public function getPayload() { + return $this->payload; + } - public function setResourceId($resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId($resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } - public function setResourceUri($resourceUri) - { - $this->resourceUri = $resourceUri; - } + public function setResourceUri($resourceUri) { + $this->resourceUri = $resourceUri; + } - public function getResourceUri() - { - return $this->resourceUri; - } + public function getResourceUri() { + return $this->resourceUri; + } - public function setToken($token) - { - $this->token = $token; - } + public function setToken($token) { + $this->token = $token; + } - public function getToken() - { - return $this->token; - } + public function getToken() { + return $this->token; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Storage_ChannelParams extends Google_Model -{ +class Google_Service_Storage_ChannelParams extends Google_Model { } -class Google_Service_Storage_ComposeRequest extends Google_Collection -{ - protected $destinationType = 'Google_Service_Storage_StorageObject'; - protected $destinationDataType = ''; - public $kind; - protected $sourceObjectsType = 'Google_Service_Storage_ComposeRequestSourceObjects'; - protected $sourceObjectsDataType = 'array'; +class Google_Service_Storage_ComposeRequest extends Google_Collection { + protected $destinationType = 'Google_Service_Storage_StorageObject'; + protected $destinationDataType = ''; + public $kind; + protected $sourceObjectsType = 'Google_Service_Storage_ComposeRequestSourceObjects'; + protected $sourceObjectsDataType = 'array'; - public function setDestination(Google_Service_Storage_StorageObject $destination) - { - $this->destination = $destination; - } + public function setDestination(Google_Service_Storage_StorageObject $destination) { + $this->destination = $destination; + } - public function getDestination() - { - return $this->destination; - } + public function getDestination() { + return $this->destination; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSourceObjects($sourceObjects) - { - $this->sourceObjects = $sourceObjects; - } + public function setSourceObjects($sourceObjects) { + $this->sourceObjects = $sourceObjects; + } - public function getSourceObjects() - { - return $this->sourceObjects; - } + public function getSourceObjects() { + return $this->sourceObjects; + } } -class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model -{ - public $generation; - public $name; - protected $objectPreconditionsType = 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions'; - protected $objectPreconditionsDataType = ''; +class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model { + public $generation; + public $name; + protected $objectPreconditionsType = 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions'; + protected $objectPreconditionsDataType = ''; - public function setGeneration($generation) - { - $this->generation = $generation; - } + public function setGeneration($generation) { + $this->generation = $generation; + } - public function getGeneration() - { - return $this->generation; - } + public function getGeneration() { + return $this->generation; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setObjectPreconditions(Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions) - { - $this->objectPreconditions = $objectPreconditions; - } + public function setObjectPreconditions(Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions) { + $this->objectPreconditions = $objectPreconditions; + } - public function getObjectPreconditions() - { - return $this->objectPreconditions; - } + public function getObjectPreconditions() { + return $this->objectPreconditions; + } } -class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model -{ - public $ifGenerationMatch; +class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model { + public $ifGenerationMatch; - public function setIfGenerationMatch($ifGenerationMatch) - { - $this->ifGenerationMatch = $ifGenerationMatch; - } + public function setIfGenerationMatch($ifGenerationMatch) { + $this->ifGenerationMatch = $ifGenerationMatch; + } - public function getIfGenerationMatch() - { - return $this->ifGenerationMatch; - } + public function getIfGenerationMatch() { + return $this->ifGenerationMatch; + } } -class Google_Service_Storage_ObjectAccessControl extends Google_Model -{ - public $bucket; - public $domain; - public $email; - public $entity; - public $entityId; - public $etag; - public $generation; - public $id; - public $kind; - public $object; - protected $projectTeamType = 'Google_Service_Storage_ObjectAccessControlProjectTeam'; - protected $projectTeamDataType = ''; - public $role; - public $selfLink; +class Google_Service_Storage_ObjectAccessControl extends Google_Model { + public $bucket; + public $domain; + public $email; + public $entity; + public $entityId; + public $etag; + public $generation; + public $id; + public $kind; + public $object; + protected $projectTeamType = 'Google_Service_Storage_ObjectAccessControlProjectTeam'; + protected $projectTeamDataType = ''; + public $role; + public $selfLink; - public function setBucket($bucket) - { - $this->bucket = $bucket; - } + public function setBucket($bucket) { + $this->bucket = $bucket; + } - public function getBucket() - { - return $this->bucket; - } + public function getBucket() { + return $this->bucket; + } - public function setDomain($domain) - { - $this->domain = $domain; - } + public function setDomain($domain) { + $this->domain = $domain; + } - public function getDomain() - { - return $this->domain; - } + public function getDomain() { + return $this->domain; + } - public function setEmail($email) - { - $this->email = $email; - } + public function setEmail($email) { + $this->email = $email; + } - public function getEmail() - { - return $this->email; - } + public function getEmail() { + return $this->email; + } - public function setEntity($entity) - { - $this->entity = $entity; - } + public function setEntity($entity) { + $this->entity = $entity; + } - public function getEntity() - { - return $this->entity; - } + public function getEntity() { + return $this->entity; + } - public function setEntityId($entityId) - { - $this->entityId = $entityId; - } + public function setEntityId($entityId) { + $this->entityId = $entityId; + } - public function getEntityId() - { - return $this->entityId; - } + public function getEntityId() { + return $this->entityId; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setGeneration($generation) - { - $this->generation = $generation; - } + public function setGeneration($generation) { + $this->generation = $generation; + } - public function getGeneration() - { - return $this->generation; - } + public function getGeneration() { + return $this->generation; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setObject($object) - { - $this->object = $object; - } + public function setObject($object) { + $this->object = $object; + } - public function getObject() - { - return $this->object; - } + public function getObject() { + return $this->object; + } - public function setProjectTeam(Google_Service_Storage_ObjectAccessControlProjectTeam $projectTeam) - { - $this->projectTeam = $projectTeam; - } + public function setProjectTeam(Google_Service_Storage_ObjectAccessControlProjectTeam $projectTeam) { + $this->projectTeam = $projectTeam; + } - public function getProjectTeam() - { - return $this->projectTeam; - } + public function getProjectTeam() { + return $this->projectTeam; + } - public function setRole($role) - { - $this->role = $role; - } + public function setRole($role) { + $this->role = $role; + } - public function getRole() - { - return $this->role; - } + public function getRole() { + return $this->role; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } } -class Google_Service_Storage_ObjectAccessControlProjectTeam extends Google_Model -{ - public $projectNumber; - public $team; +class Google_Service_Storage_ObjectAccessControlProjectTeam extends Google_Model { + public $projectNumber; + public $team; - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } + public function setProjectNumber($projectNumber) { + $this->projectNumber = $projectNumber; + } - public function getProjectNumber() - { - return $this->projectNumber; - } + public function getProjectNumber() { + return $this->projectNumber; + } - public function setTeam($team) - { - $this->team = $team; - } + public function setTeam($team) { + $this->team = $team; + } - public function getTeam() - { - return $this->team; - } + public function getTeam() { + return $this->team; + } } -class Google_Service_Storage_ObjectAccessControls extends Google_Collection -{ - public $items; - public $kind; +class Google_Service_Storage_ObjectAccessControls extends Google_Collection { + public $items; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Storage_Objects extends Google_Collection -{ - protected $itemsType = 'Google_Service_Storage_StorageObject'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - public $prefixes; +class Google_Service_Storage_Objects extends Google_Collection { + protected $itemsType = 'Google_Service_Storage_StorageObject'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $prefixes; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setPrefixes($prefixes) - { - $this->prefixes = $prefixes; - } + public function setPrefixes($prefixes) { + $this->prefixes = $prefixes; + } - public function getPrefixes() - { - return $this->prefixes; - } + public function getPrefixes() { + return $this->prefixes; + } } -class Google_Service_Storage_StorageObject extends Google_Collection -{ - protected $aclType = 'Google_Service_Storage_ObjectAccessControl'; - protected $aclDataType = 'array'; - public $bucket; - public $cacheControl; - public $componentCount; - public $contentDisposition; - public $contentEncoding; - public $contentLanguage; - public $contentType; - public $crc32c; - public $etag; - public $generation; - public $id; - public $kind; - public $md5Hash; - public $mediaLink; - public $metadata; - public $metageneration; - public $name; - protected $ownerType = 'Google_Service_Storage_StorageObjectOwner'; - protected $ownerDataType = ''; - public $selfLink; - public $size; - public $storageClass; - public $timeDeleted; - public $updated; +class Google_Service_Storage_StorageObject extends Google_Collection { + protected $aclType = 'Google_Service_Storage_ObjectAccessControl'; + protected $aclDataType = 'array'; + public $bucket; + public $cacheControl; + public $componentCount; + public $contentDisposition; + public $contentEncoding; + public $contentLanguage; + public $contentType; + public $crc32c; + public $etag; + public $generation; + public $id; + public $kind; + public $md5Hash; + public $mediaLink; + public $metadata; + public $metageneration; + public $name; + protected $ownerType = 'Google_Service_Storage_StorageObjectOwner'; + protected $ownerDataType = ''; + public $selfLink; + public $size; + public $storageClass; + public $timeDeleted; + public $updated; - public function setAcl($acl) - { - $this->acl = $acl; - } + public function setAcl($acl) { + $this->acl = $acl; + } - public function getAcl() - { - return $this->acl; - } + public function getAcl() { + return $this->acl; + } - public function setBucket($bucket) - { - $this->bucket = $bucket; - } + public function setBucket($bucket) { + $this->bucket = $bucket; + } - public function getBucket() - { - return $this->bucket; - } + public function getBucket() { + return $this->bucket; + } - public function setCacheControl($cacheControl) - { - $this->cacheControl = $cacheControl; - } + public function setCacheControl($cacheControl) { + $this->cacheControl = $cacheControl; + } - public function getCacheControl() - { - return $this->cacheControl; - } + public function getCacheControl() { + return $this->cacheControl; + } - public function setComponentCount($componentCount) - { - $this->componentCount = $componentCount; - } + public function setComponentCount($componentCount) { + $this->componentCount = $componentCount; + } - public function getComponentCount() - { - return $this->componentCount; - } + public function getComponentCount() { + return $this->componentCount; + } - public function setContentDisposition($contentDisposition) - { - $this->contentDisposition = $contentDisposition; - } + public function setContentDisposition($contentDisposition) { + $this->contentDisposition = $contentDisposition; + } - public function getContentDisposition() - { - return $this->contentDisposition; - } + public function getContentDisposition() { + return $this->contentDisposition; + } - public function setContentEncoding($contentEncoding) - { - $this->contentEncoding = $contentEncoding; - } + public function setContentEncoding($contentEncoding) { + $this->contentEncoding = $contentEncoding; + } - public function getContentEncoding() - { - return $this->contentEncoding; - } + public function getContentEncoding() { + return $this->contentEncoding; + } - public function setContentLanguage($contentLanguage) - { - $this->contentLanguage = $contentLanguage; - } + public function setContentLanguage($contentLanguage) { + $this->contentLanguage = $contentLanguage; + } - public function getContentLanguage() - { - return $this->contentLanguage; - } + public function getContentLanguage() { + return $this->contentLanguage; + } - public function setContentType($contentType) - { - $this->contentType = $contentType; - } + public function setContentType($contentType) { + $this->contentType = $contentType; + } - public function getContentType() - { - return $this->contentType; - } + public function getContentType() { + return $this->contentType; + } - public function setCrc32c($crc32c) - { - $this->crc32c = $crc32c; - } + public function setCrc32c($crc32c) { + $this->crc32c = $crc32c; + } - public function getCrc32c() - { - return $this->crc32c; - } + public function getCrc32c() { + return $this->crc32c; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setGeneration($generation) - { - $this->generation = $generation; - } + public function setGeneration($generation) { + $this->generation = $generation; + } - public function getGeneration() - { - return $this->generation; - } + public function getGeneration() { + return $this->generation; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMd5Hash($md5Hash) - { - $this->md5Hash = $md5Hash; - } + public function setMd5Hash($md5Hash) { + $this->md5Hash = $md5Hash; + } - public function getMd5Hash() - { - return $this->md5Hash; - } + public function getMd5Hash() { + return $this->md5Hash; + } - public function setMediaLink($mediaLink) - { - $this->mediaLink = $mediaLink; - } + public function setMediaLink($mediaLink) { + $this->mediaLink = $mediaLink; + } - public function getMediaLink() - { - return $this->mediaLink; - } + public function getMediaLink() { + return $this->mediaLink; + } - public function setMetadata($metadata) - { - $this->metadata = $metadata; - } + public function setMetadata($metadata) { + $this->metadata = $metadata; + } - public function getMetadata() - { - return $this->metadata; - } + public function getMetadata() { + return $this->metadata; + } - public function setMetageneration($metageneration) - { - $this->metageneration = $metageneration; - } + public function setMetageneration($metageneration) { + $this->metageneration = $metageneration; + } - public function getMetageneration() - { - return $this->metageneration; - } + public function getMetageneration() { + return $this->metageneration; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setOwner(Google_Service_Storage_StorageObjectOwner $owner) - { - $this->owner = $owner; - } + public function setOwner(Google_Service_Storage_StorageObjectOwner $owner) { + $this->owner = $owner; + } - public function getOwner() - { - return $this->owner; - } + public function getOwner() { + return $this->owner; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setSize($size) - { - $this->size = $size; - } + public function setSize($size) { + $this->size = $size; + } - public function getSize() - { - return $this->size; - } + public function getSize() { + return $this->size; + } - public function setStorageClass($storageClass) - { - $this->storageClass = $storageClass; - } + public function setStorageClass($storageClass) { + $this->storageClass = $storageClass; + } - public function getStorageClass() - { - return $this->storageClass; - } + public function getStorageClass() { + return $this->storageClass; + } - public function setTimeDeleted($timeDeleted) - { - $this->timeDeleted = $timeDeleted; - } + public function setTimeDeleted($timeDeleted) { + $this->timeDeleted = $timeDeleted; + } - public function getTimeDeleted() - { - return $this->timeDeleted; - } + public function getTimeDeleted() { + return $this->timeDeleted; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Storage_StorageObjectMetadata extends Google_Model -{ +class Google_Service_Storage_StorageObjectMetadata extends Google_Model { } -class Google_Service_Storage_StorageObjectOwner extends Google_Model -{ - public $entity; - public $entityId; +class Google_Service_Storage_StorageObjectOwner extends Google_Model { + public $entity; + public $entityId; - public function setEntity($entity) - { - $this->entity = $entity; - } + public function setEntity($entity) { + $this->entity = $entity; + } - public function getEntity() - { - return $this->entity; - } + public function getEntity() { + return $this->entity; + } - public function setEntityId($entityId) - { - $this->entityId = $entityId; - } + public function setEntityId($entityId) { + $this->entityId = $entityId; + } - public function getEntityId() - { - return $this->entityId; - } + public function getEntityId() { + return $this->entityId; + } } diff --git a/oauth/Google/Service/Taskqueue.php b/oauth/Google/Service/Taskqueue.php index 2255fc6..9b78dcf 100644 --- a/oauth/Google/Service/Taskqueue.php +++ b/oauth/Google/Service/Taskqueue.php @@ -29,222 +29,220 @@ * * @author Google, Inc. */ -class Google_Service_Taskqueue extends Google_Service -{ - /** Manage your Tasks and Taskqueues. */ - const TASKQUEUE = "https://www.googleapis.com/auth/taskqueue"; - /** Consume Tasks from your Taskqueues. */ - const TASKQUEUE_CONSUMER = "https://www.googleapis.com/auth/taskqueue.consumer"; +class Google_Service_Taskqueue extends Google_Service { + /** Manage your Tasks and Taskqueues. */ + const TASKQUEUE = "https://www.googleapis.com/auth/taskqueue"; + /** Consume Tasks from your Taskqueues. */ + const TASKQUEUE_CONSUMER = "https://www.googleapis.com/auth/taskqueue.consumer"; - public $taskqueues; - public $tasks; - + public $taskqueues; + public $tasks; - /** - * Constructs the internal representation of the Taskqueue service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'taskqueue/v1beta2/projects/'; - $this->version = 'v1beta2'; - $this->serviceName = 'taskqueue'; - $this->taskqueues = new Google_Service_Taskqueue_Taskqueues_Resource( - $this, - $this->serviceName, - 'taskqueues', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/taskqueues/{taskqueue}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'getStats' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); - $this->tasks = new Google_Service_Taskqueue_Tasks_Resource( - $this, - $this->serviceName, - 'tasks', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'lease' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks/lease', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'numTasks' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'leaseSecs' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - 'groupByTag' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'tag' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'newLeaseSeconds' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'taskqueue' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'newLeaseSeconds' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Taskqueue service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'taskqueue/v1beta2/projects/'; + $this->version = 'v1beta2'; + $this->serviceName = 'taskqueue'; + + $this->taskqueues = new Google_Service_Taskqueue_Taskqueues_Resource( + $this, + $this->serviceName, + 'taskqueues', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/taskqueues/{taskqueue}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskqueue' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'getStats' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->tasks = new Google_Service_Taskqueue_Tasks_Resource( + $this, + $this->serviceName, + 'tasks', + array( + 'methods' => array( + 'delete' => array( + 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskqueue' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'task' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskqueue' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'task' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => '{project}/taskqueues/{taskqueue}/tasks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskqueue' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'lease' => array( + 'path' => '{project}/taskqueues/{taskqueue}/tasks/lease', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskqueue' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'numTasks' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'leaseSecs' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'groupByTag' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'tag' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => '{project}/taskqueues/{taskqueue}/tasks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskqueue' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'patch' => array( + 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskqueue' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'task' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'newLeaseSeconds' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'taskqueue' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'task' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'newLeaseSeconds' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -256,28 +254,26 @@ class Google_Service_Taskqueue extends Google_Service * $taskqueues = $taskqueueService->taskqueues; * */ -class Google_Service_Taskqueue_Taskqueues_Resource extends Google_Service_Resource -{ +class Google_Service_Taskqueue_Taskqueues_Resource extends Google_Service_Resource { - /** - * Get detailed information about a TaskQueue. (taskqueues.get) - * - * @param string $project - * The project under which the queue lies. - * @param string $taskqueue - * The id of the taskqueue to get the properties of. - * @param array $optParams Optional parameters. - * - * @opt_param bool getStats - * Whether to get stats. Optional. - * @return Google_Service_Taskqueue_TaskQueue - */ - public function get($project, $taskqueue, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Taskqueue_TaskQueue"); - } + /** + * Get detailed information about a TaskQueue. (taskqueues.get) + * + * @param string $project + * The project under which the queue lies. + * @param string $taskqueue + * The id of the taskqueue to get the properties of. + * @param array $optParams Optional parameters. + * + * @opt_param bool getStats + * Whether to get stats. Optional. + * @return Google_Service_Taskqueue_TaskQueue + */ + public function get($project, $taskqueue, $optParams = array()) { + $params = array('project' => $project, 'taskqueue' => $taskqueue); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Taskqueue_TaskQueue"); + } } /** @@ -288,440 +284,382 @@ class Google_Service_Taskqueue_Taskqueues_Resource extends Google_Service_Resour * $tasks = $taskqueueService->tasks; * */ -class Google_Service_Taskqueue_Tasks_Resource extends Google_Service_Resource -{ +class Google_Service_Taskqueue_Tasks_Resource extends Google_Service_Resource { - /** - * Delete a task from a TaskQueue. (tasks.delete) - * - * @param string $project - * The project under which the queue lies. - * @param string $taskqueue - * The taskqueue to delete a task from. - * @param string $task - * The id of the task to delete. - * @param array $optParams Optional parameters. - */ - public function delete($project, $taskqueue, $task, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Get a particular task from a TaskQueue. (tasks.get) - * - * @param string $project - * The project under which the queue lies. - * @param string $taskqueue - * The taskqueue in which the task belongs. - * @param string $task - * The task to get properties of. - * @param array $optParams Optional parameters. - * @return Google_Service_Taskqueue_Task - */ - public function get($project, $taskqueue, $task, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Taskqueue_Task"); - } - /** - * Insert a new task in a TaskQueue (tasks.insert) - * - * @param string $project - * The project under which the queue lies - * @param string $taskqueue - * The taskqueue to insert the task into - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Taskqueue_Task - */ - public function insert($project, $taskqueue, Google_Service_Taskqueue_Task $postBody, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Taskqueue_Task"); - } - /** - * Lease 1 or more tasks from a TaskQueue. (tasks.lease) - * - * @param string $project - * The project under which the queue lies. - * @param string $taskqueue - * The taskqueue to lease a task from. - * @param int $numTasks - * The number of tasks to lease. - * @param int $leaseSecs - * The lease in seconds. - * @param array $optParams Optional parameters. - * - * @opt_param bool groupByTag - * When true, all returned tasks will have the same tag - * @opt_param string tag - * The tag allowed for tasks in the response. Must only be specified if group_by_tag is true. If - * group_by_tag is true and tag is not specified the tag will be that of the oldest task by eta, - * i.e. the first available tag - * @return Google_Service_Taskqueue_Tasks - */ - public function lease($project, $taskqueue, $numTasks, $leaseSecs, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'numTasks' => $numTasks, 'leaseSecs' => $leaseSecs); - $params = array_merge($params, $optParams); - return $this->call('lease', array($params), "Google_Service_Taskqueue_Tasks"); - } - /** - * List Tasks in a TaskQueue (tasks.listTasks) - * - * @param string $project - * The project under which the queue lies. - * @param string $taskqueue - * The id of the taskqueue to list tasks from. - * @param array $optParams Optional parameters. - * @return Google_Service_Taskqueue_Tasks2 - */ - public function listTasks($project, $taskqueue, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Taskqueue_Tasks2"); - } - /** - * Update tasks that are leased out of a TaskQueue. This method supports patch - * semantics. (tasks.patch) - * - * @param string $project - * The project under which the queue lies. - * @param string $taskqueue - * - * @param string $task - * - * @param int $newLeaseSeconds - * The new lease in seconds. - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Taskqueue_Task - */ - public function patch($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Taskqueue_Task"); - } - /** - * Update tasks that are leased out of a TaskQueue. (tasks.update) - * - * @param string $project - * The project under which the queue lies. - * @param string $taskqueue - * - * @param string $task - * - * @param int $newLeaseSeconds - * The new lease in seconds. - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Taskqueue_Task - */ - public function update($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array()) - { - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Taskqueue_Task"); - } + /** + * Delete a task from a TaskQueue. (tasks.delete) + * + * @param string $project + * The project under which the queue lies. + * @param string $taskqueue + * The taskqueue to delete a task from. + * @param string $task + * The id of the task to delete. + * @param array $optParams Optional parameters. + */ + public function delete($project, $taskqueue, $task, $optParams = array()) { + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Get a particular task from a TaskQueue. (tasks.get) + * + * @param string $project + * The project under which the queue lies. + * @param string $taskqueue + * The taskqueue in which the task belongs. + * @param string $task + * The task to get properties of. + * @param array $optParams Optional parameters. + * @return Google_Service_Taskqueue_Task + */ + public function get($project, $taskqueue, $task, $optParams = array()) { + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Taskqueue_Task"); + } + + /** + * Insert a new task in a TaskQueue (tasks.insert) + * + * @param string $project + * The project under which the queue lies + * @param string $taskqueue + * The taskqueue to insert the task into + * @param Google_Task $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Taskqueue_Task + */ + public function insert($project, $taskqueue, Google_Service_Taskqueue_Task $postBody, $optParams = array()) { + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Taskqueue_Task"); + } + + /** + * Lease 1 or more tasks from a TaskQueue. (tasks.lease) + * + * @param string $project + * The project under which the queue lies. + * @param string $taskqueue + * The taskqueue to lease a task from. + * @param int $numTasks + * The number of tasks to lease. + * @param int $leaseSecs + * The lease in seconds. + * @param array $optParams Optional parameters. + * + * @opt_param bool groupByTag + * When true, all returned tasks will have the same tag + * @opt_param string tag + * The tag allowed for tasks in the response. Must only be specified if group_by_tag is true. If + * group_by_tag is true and tag is not specified the tag will be that of the oldest task by eta, + * i.e. the first available tag + * @return Google_Service_Taskqueue_Tasks + */ + public function lease($project, $taskqueue, $numTasks, $leaseSecs, $optParams = array()) { + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'numTasks' => $numTasks, 'leaseSecs' => $leaseSecs); + $params = array_merge($params, $optParams); + return $this->call('lease', array($params), "Google_Service_Taskqueue_Tasks"); + } + + /** + * List Tasks in a TaskQueue (tasks.listTasks) + * + * @param string $project + * The project under which the queue lies. + * @param string $taskqueue + * The id of the taskqueue to list tasks from. + * @param array $optParams Optional parameters. + * @return Google_Service_Taskqueue_Tasks2 + */ + public function listTasks($project, $taskqueue, $optParams = array()) { + $params = array('project' => $project, 'taskqueue' => $taskqueue); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Taskqueue_Tasks2"); + } + + /** + * Update tasks that are leased out of a TaskQueue. This method supports patch + * semantics. (tasks.patch) + * + * @param string $project + * The project under which the queue lies. + * @param string $taskqueue + * + * @param string $task + * + * @param int $newLeaseSeconds + * The new lease in seconds. + * @param Google_Task $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Taskqueue_Task + */ + public function patch($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array()) { + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Taskqueue_Task"); + } + + /** + * Update tasks that are leased out of a TaskQueue. (tasks.update) + * + * @param string $project + * The project under which the queue lies. + * @param string $taskqueue + * + * @param string $task + * + * @param int $newLeaseSeconds + * The new lease in seconds. + * @param Google_Task $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Taskqueue_Task + */ + public function update($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array()) { + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Taskqueue_Task"); + } } +class Google_Service_Taskqueue_Task extends Google_Model { + public $enqueueTimestamp; + public $id; + public $kind; + public $leaseTimestamp; + public $payloadBase64; + public $queueName; + public $retryCount; + public $tag; + public function setEnqueueTimestamp($enqueueTimestamp) { + $this->enqueueTimestamp = $enqueueTimestamp; + } -class Google_Service_Taskqueue_Task extends Google_Model -{ - public $enqueueTimestamp; - public $id; - public $kind; - public $leaseTimestamp; - public $payloadBase64; - public $queueName; - public $retryCount; - public $tag; + public function getEnqueueTimestamp() { + return $this->enqueueTimestamp; + } - public function setEnqueueTimestamp($enqueueTimestamp) - { - $this->enqueueTimestamp = $enqueueTimestamp; - } + public function setId($id) { + $this->id = $id; + } - public function getEnqueueTimestamp() - { - return $this->enqueueTimestamp; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setLeaseTimestamp($leaseTimestamp) { + $this->leaseTimestamp = $leaseTimestamp; + } - public function getKind() - { - return $this->kind; - } + public function getLeaseTimestamp() { + return $this->leaseTimestamp; + } - public function setLeaseTimestamp($leaseTimestamp) - { - $this->leaseTimestamp = $leaseTimestamp; - } + public function setPayloadBase64($payloadBase64) { + $this->payloadBase64 = $payloadBase64; + } - public function getLeaseTimestamp() - { - return $this->leaseTimestamp; - } + public function getPayloadBase64() { + return $this->payloadBase64; + } - public function setPayloadBase64($payloadBase64) - { - $this->payloadBase64 = $payloadBase64; - } + public function setQueueName($queueName) { + $this->queueName = $queueName; + } - public function getPayloadBase64() - { - return $this->payloadBase64; - } + public function getQueueName() { + return $this->queueName; + } - public function setQueueName($queueName) - { - $this->queueName = $queueName; - } + public function setRetryCount($retryCount) { + $this->retryCount = $retryCount; + } - public function getQueueName() - { - return $this->queueName; - } + public function getRetryCount() { + return $this->retryCount; + } - public function setRetryCount($retryCount) - { - $this->retryCount = $retryCount; - } + public function setTag($tag) { + $this->tag = $tag; + } - public function getRetryCount() - { - return $this->retryCount; - } - - public function setTag($tag) - { - $this->tag = $tag; - } - - public function getTag() - { - return $this->tag; - } + public function getTag() { + return $this->tag; + } } -class Google_Service_Taskqueue_TaskQueue extends Google_Model -{ - protected $aclType = 'Google_Service_Taskqueue_TaskQueueAcl'; - protected $aclDataType = ''; - public $id; - public $kind; - public $maxLeases; - protected $statsType = 'Google_Service_Taskqueue_TaskQueueStats'; - protected $statsDataType = ''; +class Google_Service_Taskqueue_TaskQueue extends Google_Model { + protected $aclType = 'Google_Service_Taskqueue_TaskQueueAcl'; + protected $aclDataType = ''; + public $id; + public $kind; + public $maxLeases; + protected $statsType = 'Google_Service_Taskqueue_TaskQueueStats'; + protected $statsDataType = ''; - public function setAcl(Google_Service_Taskqueue_TaskQueueAcl $acl) - { - $this->acl = $acl; - } + public function setAcl(Google_Service_Taskqueue_TaskQueueAcl $acl) { + $this->acl = $acl; + } - public function getAcl() - { - return $this->acl; - } + public function getAcl() { + return $this->acl; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setMaxLeases($maxLeases) - { - $this->maxLeases = $maxLeases; - } + public function setMaxLeases($maxLeases) { + $this->maxLeases = $maxLeases; + } - public function getMaxLeases() - { - return $this->maxLeases; - } + public function getMaxLeases() { + return $this->maxLeases; + } - public function setStats(Google_Service_Taskqueue_TaskQueueStats $stats) - { - $this->stats = $stats; - } + public function setStats(Google_Service_Taskqueue_TaskQueueStats $stats) { + $this->stats = $stats; + } - public function getStats() - { - return $this->stats; - } + public function getStats() { + return $this->stats; + } } -class Google_Service_Taskqueue_TaskQueueAcl extends Google_Collection -{ - public $adminEmails; - public $consumerEmails; - public $producerEmails; +class Google_Service_Taskqueue_TaskQueueAcl extends Google_Collection { + public $adminEmails; + public $consumerEmails; + public $producerEmails; - public function setAdminEmails($adminEmails) - { - $this->adminEmails = $adminEmails; - } + public function setAdminEmails($adminEmails) { + $this->adminEmails = $adminEmails; + } - public function getAdminEmails() - { - return $this->adminEmails; - } + public function getAdminEmails() { + return $this->adminEmails; + } - public function setConsumerEmails($consumerEmails) - { - $this->consumerEmails = $consumerEmails; - } + public function setConsumerEmails($consumerEmails) { + $this->consumerEmails = $consumerEmails; + } - public function getConsumerEmails() - { - return $this->consumerEmails; - } + public function getConsumerEmails() { + return $this->consumerEmails; + } - public function setProducerEmails($producerEmails) - { - $this->producerEmails = $producerEmails; - } + public function setProducerEmails($producerEmails) { + $this->producerEmails = $producerEmails; + } - public function getProducerEmails() - { - return $this->producerEmails; - } + public function getProducerEmails() { + return $this->producerEmails; + } } -class Google_Service_Taskqueue_TaskQueueStats extends Google_Model -{ - public $leasedLastHour; - public $leasedLastMinute; - public $oldestTask; - public $totalTasks; +class Google_Service_Taskqueue_TaskQueueStats extends Google_Model { + public $leasedLastHour; + public $leasedLastMinute; + public $oldestTask; + public $totalTasks; - public function setLeasedLastHour($leasedLastHour) - { - $this->leasedLastHour = $leasedLastHour; - } + public function setLeasedLastHour($leasedLastHour) { + $this->leasedLastHour = $leasedLastHour; + } - public function getLeasedLastHour() - { - return $this->leasedLastHour; - } + public function getLeasedLastHour() { + return $this->leasedLastHour; + } - public function setLeasedLastMinute($leasedLastMinute) - { - $this->leasedLastMinute = $leasedLastMinute; - } + public function setLeasedLastMinute($leasedLastMinute) { + $this->leasedLastMinute = $leasedLastMinute; + } - public function getLeasedLastMinute() - { - return $this->leasedLastMinute; - } + public function getLeasedLastMinute() { + return $this->leasedLastMinute; + } - public function setOldestTask($oldestTask) - { - $this->oldestTask = $oldestTask; - } + public function setOldestTask($oldestTask) { + $this->oldestTask = $oldestTask; + } - public function getOldestTask() - { - return $this->oldestTask; - } + public function getOldestTask() { + return $this->oldestTask; + } - public function setTotalTasks($totalTasks) - { - $this->totalTasks = $totalTasks; - } + public function setTotalTasks($totalTasks) { + $this->totalTasks = $totalTasks; + } - public function getTotalTasks() - { - return $this->totalTasks; - } + public function getTotalTasks() { + return $this->totalTasks; + } } -class Google_Service_Taskqueue_Tasks extends Google_Collection -{ - protected $itemsType = 'Google_Service_Taskqueue_Task'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Taskqueue_Tasks extends Google_Collection { + protected $itemsType = 'Google_Service_Taskqueue_Task'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_Taskqueue_Tasks2 extends Google_Collection -{ - protected $itemsType = 'Google_Service_Taskqueue_Task'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Taskqueue_Tasks2 extends Google_Collection { + protected $itemsType = 'Google_Service_Taskqueue_Task'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } diff --git a/oauth/Google/Service/Tasks.php b/oauth/Google/Service/Tasks.php index ea9d66d..5a2ebdc 100644 --- a/oauth/Google/Service/Tasks.php +++ b/oauth/Google/Service/Tasks.php @@ -29,268 +29,266 @@ * * @author Google, Inc. */ -class Google_Service_Tasks extends Google_Service -{ - /** Manage your tasks. */ - const TASKS = "https://www.googleapis.com/auth/tasks"; - /** View your tasks. */ - const TASKS_READONLY = "https://www.googleapis.com/auth/tasks.readonly"; +class Google_Service_Tasks extends Google_Service { + /** Manage your tasks. */ + const TASKS = "https://www.googleapis.com/auth/tasks"; + /** View your tasks. */ + const TASKS_READONLY = "https://www.googleapis.com/auth/tasks.readonly"; - public $tasklists; - public $tasks; - + public $tasklists; + public $tasks; - /** - * Constructs the internal representation of the Tasks service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'tasks/v1/'; - $this->version = 'v1'; - $this->serviceName = 'tasks'; - $this->tasklists = new Google_Service_Tasks_Tasklists_Resource( - $this, - $this->serviceName, - 'tasklists', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'users/@me/lists/{tasklist}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'users/@me/lists/{tasklist}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'users/@me/lists', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'users/@me/lists', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'users/@me/lists/{tasklist}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'users/@me/lists/{tasklist}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tasks = new Google_Service_Tasks_Tasks_Resource( - $this, - $this->serviceName, - 'tasks', - array( - 'methods' => array( - 'clear' => array( - 'path' => 'lists/{tasklist}/clear', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'lists/{tasklist}/tasks/{task}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'lists/{tasklist}/tasks/{task}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'lists/{tasklist}/tasks', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'parent' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'previous' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'lists/{tasklist}/tasks', - 'httpMethod' => 'GET', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dueMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showDeleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'updatedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'completedMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showCompleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'completedMax' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'showHidden' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'dueMin' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'move' => array( - 'path' => 'lists/{tasklist}/tasks/{task}/move', - 'httpMethod' => 'POST', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'parent' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'previous' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'patch' => array( - 'path' => 'lists/{tasklist}/tasks/{task}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'lists/{tasklist}/tasks/{task}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'tasklist' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'task' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Tasks service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'tasks/v1/'; + $this->version = 'v1'; + $this->serviceName = 'tasks'; + + $this->tasklists = new Google_Service_Tasks_Tasklists_Resource( + $this, + $this->serviceName, + 'tasklists', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'users/@me/lists/{tasklist}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'users/@me/lists/{tasklist}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'users/@me/lists', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'list' => array( + 'path' => 'users/@me/lists', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'users/@me/lists/{tasklist}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'users/@me/lists/{tasklist}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->tasks = new Google_Service_Tasks_Tasks_Resource( + $this, + $this->serviceName, + 'tasks', + array( + 'methods' => array( + 'clear' => array( + 'path' => 'lists/{tasklist}/clear', + 'httpMethod' => 'POST', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'delete' => array( + 'path' => 'lists/{tasklist}/tasks/{task}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'task' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'get' => array( + 'path' => 'lists/{tasklist}/tasks/{task}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'task' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'lists/{tasklist}/tasks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'parent' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'previous' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'lists/{tasklist}/tasks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dueMax' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showDeleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'updatedMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'completedMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showCompleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'completedMax' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'showHidden' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'dueMin' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'move' => array( + 'path' => 'lists/{tasklist}/tasks/{task}/move', + 'httpMethod' => 'POST', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'task' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'parent' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'previous' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'patch' => array( + 'path' => 'lists/{tasklist}/tasks/{task}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'task' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'update' => array( + 'path' => 'lists/{tasklist}/tasks/{task}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'tasklist' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'task' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } } @@ -302,98 +300,96 @@ class Google_Service_Tasks extends Google_Service * $tasklists = $tasksService->tasklists; * */ -class Google_Service_Tasks_Tasklists_Resource extends Google_Service_Resource -{ +class Google_Service_Tasks_Tasklists_Resource extends Google_Service_Resource { - /** - * Deletes the authenticated user's specified task list. (tasklists.delete) - * - * @param string $tasklist - * Task list identifier. - * @param array $optParams Optional parameters. - */ - public function delete($tasklist, $optParams = array()) - { - $params = array('tasklist' => $tasklist); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns the authenticated user's specified task list. (tasklists.get) - * - * @param string $tasklist - * Task list identifier. - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_TaskList - */ - public function get($tasklist, $optParams = array()) - { - $params = array('tasklist' => $tasklist); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tasks_TaskList"); - } - /** - * Creates a new task list and adds it to the authenticated user's task lists. - * (tasklists.insert) - * - * @param Google_TaskList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_TaskList - */ - public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Tasks_TaskList"); - } - /** - * Returns all the authenticated user's task lists. (tasklists.listTasklists) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken - * Token specifying the result page to return. Optional. - * @opt_param string maxResults - * Maximum number of task lists returned on one page. Optional. The default is 100. - * @return Google_Service_Tasks_TaskLists - */ - public function listTasklists($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Tasks_TaskLists"); - } - /** - * Updates the authenticated user's specified task list. This method supports - * patch semantics. (tasklists.patch) - * - * @param string $tasklist - * Task list identifier. - * @param Google_TaskList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_TaskList - */ - public function patch($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tasks_TaskList"); - } - /** - * Updates the authenticated user's specified task list. (tasklists.update) - * - * @param string $tasklist - * Task list identifier. - * @param Google_TaskList $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_TaskList - */ - public function update($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tasks_TaskList"); - } + /** + * Deletes the authenticated user's specified task list. (tasklists.delete) + * + * @param string $tasklist + * Task list identifier. + * @param array $optParams Optional parameters. + */ + public function delete($tasklist, $optParams = array()) { + $params = array('tasklist' => $tasklist); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns the authenticated user's specified task list. (tasklists.get) + * + * @param string $tasklist + * Task list identifier. + * @param array $optParams Optional parameters. + * @return Google_Service_Tasks_TaskList + */ + public function get($tasklist, $optParams = array()) { + $params = array('tasklist' => $tasklist); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Tasks_TaskList"); + } + + /** + * Creates a new task list and adds it to the authenticated user's task lists. + * (tasklists.insert) + * + * @param Google_TaskList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tasks_TaskList + */ + public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Tasks_TaskList"); + } + + /** + * Returns all the authenticated user's task lists. (tasklists.listTasklists) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * Token specifying the result page to return. Optional. + * @opt_param string maxResults + * Maximum number of task lists returned on one page. Optional. The default is 100. + * @return Google_Service_Tasks_TaskLists + */ + public function listTasklists($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Tasks_TaskLists"); + } + + /** + * Updates the authenticated user's specified task list. This method supports + * patch semantics. (tasklists.patch) + * + * @param string $tasklist + * Task list identifier. + * @param Google_TaskList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tasks_TaskList + */ + public function patch($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array()) { + $params = array('tasklist' => $tasklist, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Tasks_TaskList"); + } + + /** + * Updates the authenticated user's specified task list. (tasklists.update) + * + * @param string $tasklist + * Task list identifier. + * @param Google_TaskList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tasks_TaskList + */ + public function update($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array()) { + $params = array('tasklist' => $tasklist, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Tasks_TaskList"); + } } /** @@ -404,555 +400,482 @@ class Google_Service_Tasks_Tasklists_Resource extends Google_Service_Resource * $tasks = $tasksService->tasks; * */ -class Google_Service_Tasks_Tasks_Resource extends Google_Service_Resource -{ +class Google_Service_Tasks_Tasks_Resource extends Google_Service_Resource { - /** - * Clears all completed tasks from the specified task list. The affected tasks - * will be marked as 'hidden' and no longer be returned by default when - * retrieving all tasks for a task list. (tasks.clear) - * - * @param string $tasklist - * Task list identifier. - * @param array $optParams Optional parameters. - */ - public function clear($tasklist, $optParams = array()) - { - $params = array('tasklist' => $tasklist); - $params = array_merge($params, $optParams); - return $this->call('clear', array($params)); - } - /** - * Deletes the specified task from the task list. (tasks.delete) - * - * @param string $tasklist - * Task list identifier. - * @param string $task - * Task identifier. - * @param array $optParams Optional parameters. - */ - public function delete($tasklist, $task, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'task' => $task); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Returns the specified task. (tasks.get) - * - * @param string $tasklist - * Task list identifier. - * @param string $task - * Task identifier. - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_Task - */ - public function get($tasklist, $task, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'task' => $task); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Tasks_Task"); - } - /** - * Creates a new task on the specified task list. (tasks.insert) - * - * @param string $tasklist - * Task list identifier. - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string parent - * Parent task identifier. If the task is created at the top level, this parameter is omitted. - * Optional. - * @opt_param string previous - * Previous sibling task identifier. If the task is created at the first position among its - * siblings, this parameter is omitted. Optional. - * @return Google_Service_Tasks_Task - */ - public function insert($tasklist, Google_Service_Tasks_Task $postBody, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Tasks_Task"); - } - /** - * Returns all tasks in the specified task list. (tasks.listTasks) - * - * @param string $tasklist - * Task list identifier. - * @param array $optParams Optional parameters. - * - * @opt_param string dueMax - * Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default - * is not to filter by due date. - * @opt_param bool showDeleted - * Flag indicating whether deleted tasks are returned in the result. Optional. The default is - * False. - * @opt_param string updatedMin - * Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. - * Optional. The default is not to filter by last modification time. - * @opt_param string completedMin - * Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The - * default is not to filter by completion date. - * @opt_param string maxResults - * Maximum number of task lists returned on one page. Optional. The default is 100. - * @opt_param bool showCompleted - * Flag indicating whether completed tasks are returned in the result. Optional. The default is - * True. - * @opt_param string pageToken - * Token specifying the result page to return. Optional. - * @opt_param string completedMax - * Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The - * default is not to filter by completion date. - * @opt_param bool showHidden - * Flag indicating whether hidden tasks are returned in the result. Optional. The default is False. - * @opt_param string dueMin - * Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default - * is not to filter by due date. - * @return Google_Service_Tasks_Tasks - */ - public function listTasks($tasklist, $optParams = array()) - { - $params = array('tasklist' => $tasklist); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Tasks_Tasks"); - } - /** - * Moves the specified task to another position in the task list. This can - * include putting it as a child task under a new parent and/or move it to a - * different position among its sibling tasks. (tasks.move) - * - * @param string $tasklist - * Task list identifier. - * @param string $task - * Task identifier. - * @param array $optParams Optional parameters. - * - * @opt_param string parent - * New parent task identifier. If the task is moved to the top level, this parameter is omitted. - * Optional. - * @opt_param string previous - * New previous sibling task identifier. If the task is moved to the first position among its - * siblings, this parameter is omitted. Optional. - * @return Google_Service_Tasks_Task - */ - public function move($tasklist, $task, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'task' => $task); - $params = array_merge($params, $optParams); - return $this->call('move', array($params), "Google_Service_Tasks_Task"); - } - /** - * Updates the specified task. This method supports patch semantics. - * (tasks.patch) - * - * @param string $tasklist - * Task list identifier. - * @param string $task - * Task identifier. - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_Task - */ - public function patch($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Tasks_Task"); - } - /** - * Updates the specified task. (tasks.update) - * - * @param string $tasklist - * Task list identifier. - * @param string $task - * Task identifier. - * @param Google_Task $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Tasks_Task - */ - public function update($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array()) - { - $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Tasks_Task"); - } + /** + * Clears all completed tasks from the specified task list. The affected tasks + * will be marked as 'hidden' and no longer be returned by default when + * retrieving all tasks for a task list. (tasks.clear) + * + * @param string $tasklist + * Task list identifier. + * @param array $optParams Optional parameters. + */ + public function clear($tasklist, $optParams = array()) { + $params = array('tasklist' => $tasklist); + $params = array_merge($params, $optParams); + return $this->call('clear', array($params)); + } + + /** + * Deletes the specified task from the task list. (tasks.delete) + * + * @param string $tasklist + * Task list identifier. + * @param string $task + * Task identifier. + * @param array $optParams Optional parameters. + */ + public function delete($tasklist, $task, $optParams = array()) { + $params = array('tasklist' => $tasklist, 'task' => $task); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Returns the specified task. (tasks.get) + * + * @param string $tasklist + * Task list identifier. + * @param string $task + * Task identifier. + * @param array $optParams Optional parameters. + * @return Google_Service_Tasks_Task + */ + public function get($tasklist, $task, $optParams = array()) { + $params = array('tasklist' => $tasklist, 'task' => $task); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Tasks_Task"); + } + + /** + * Creates a new task on the specified task list. (tasks.insert) + * + * @param string $tasklist + * Task list identifier. + * @param Google_Task $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string parent + * Parent task identifier. If the task is created at the top level, this parameter is omitted. + * Optional. + * @opt_param string previous + * Previous sibling task identifier. If the task is created at the first position among its + * siblings, this parameter is omitted. Optional. + * @return Google_Service_Tasks_Task + */ + public function insert($tasklist, Google_Service_Tasks_Task $postBody, $optParams = array()) { + $params = array('tasklist' => $tasklist, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Tasks_Task"); + } + + /** + * Returns all tasks in the specified task list. (tasks.listTasks) + * + * @param string $tasklist + * Task list identifier. + * @param array $optParams Optional parameters. + * + * @opt_param string dueMax + * Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default + * is not to filter by due date. + * @opt_param bool showDeleted + * Flag indicating whether deleted tasks are returned in the result. Optional. The default is + * False. + * @opt_param string updatedMin + * Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. + * Optional. The default is not to filter by last modification time. + * @opt_param string completedMin + * Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The + * default is not to filter by completion date. + * @opt_param string maxResults + * Maximum number of task lists returned on one page. Optional. The default is 100. + * @opt_param bool showCompleted + * Flag indicating whether completed tasks are returned in the result. Optional. The default is + * True. + * @opt_param string pageToken + * Token specifying the result page to return. Optional. + * @opt_param string completedMax + * Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The + * default is not to filter by completion date. + * @opt_param bool showHidden + * Flag indicating whether hidden tasks are returned in the result. Optional. The default is False. + * @opt_param string dueMin + * Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default + * is not to filter by due date. + * @return Google_Service_Tasks_Tasks + */ + public function listTasks($tasklist, $optParams = array()) { + $params = array('tasklist' => $tasklist); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Tasks_Tasks"); + } + + /** + * Moves the specified task to another position in the task list. This can + * include putting it as a child task under a new parent and/or move it to a + * different position among its sibling tasks. (tasks.move) + * + * @param string $tasklist + * Task list identifier. + * @param string $task + * Task identifier. + * @param array $optParams Optional parameters. + * + * @opt_param string parent + * New parent task identifier. If the task is moved to the top level, this parameter is omitted. + * Optional. + * @opt_param string previous + * New previous sibling task identifier. If the task is moved to the first position among its + * siblings, this parameter is omitted. Optional. + * @return Google_Service_Tasks_Task + */ + public function move($tasklist, $task, $optParams = array()) { + $params = array('tasklist' => $tasklist, 'task' => $task); + $params = array_merge($params, $optParams); + return $this->call('move', array($params), "Google_Service_Tasks_Task"); + } + + /** + * Updates the specified task. This method supports patch semantics. + * (tasks.patch) + * + * @param string $tasklist + * Task list identifier. + * @param string $task + * Task identifier. + * @param Google_Task $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tasks_Task + */ + public function patch($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array()) { + $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Tasks_Task"); + } + + /** + * Updates the specified task. (tasks.update) + * + * @param string $tasklist + * Task list identifier. + * @param string $task + * Task identifier. + * @param Google_Task $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Tasks_Task + */ + public function update($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array()) { + $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Tasks_Task"); + } } +class Google_Service_Tasks_Task extends Google_Collection { + public $completed; + public $deleted; + public $due; + public $etag; + public $hidden; + public $id; + public $kind; + protected $linksType = 'Google_Service_Tasks_TaskLinks'; + protected $linksDataType = 'array'; + public $notes; + public $parent; + public $position; + public $selfLink; + public $status; + public $title; + public $updated; + public function setCompleted($completed) { + $this->completed = $completed; + } -class Google_Service_Tasks_Task extends Google_Collection -{ - public $completed; - public $deleted; - public $due; - public $etag; - public $hidden; - public $id; - public $kind; - protected $linksType = 'Google_Service_Tasks_TaskLinks'; - protected $linksDataType = 'array'; - public $notes; - public $parent; - public $position; - public $selfLink; - public $status; - public $title; - public $updated; + public function getCompleted() { + return $this->completed; + } - public function setCompleted($completed) - { - $this->completed = $completed; - } + public function setDeleted($deleted) { + $this->deleted = $deleted; + } - public function getCompleted() - { - return $this->completed; - } + public function getDeleted() { + return $this->deleted; + } - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } + public function setDue($due) { + $this->due = $due; + } - public function getDeleted() - { - return $this->deleted; - } + public function getDue() { + return $this->due; + } - public function setDue($due) - { - $this->due = $due; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getDue() - { - return $this->due; - } + public function getEtag() { + return $this->etag; + } - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setHidden($hidden) { + $this->hidden = $hidden; + } - public function getEtag() - { - return $this->etag; - } + public function getHidden() { + return $this->hidden; + } - public function setHidden($hidden) - { - $this->hidden = $hidden; - } + public function setId($id) { + $this->id = $id; + } - public function getHidden() - { - return $this->hidden; - } + public function getId() { + return $this->id; + } - public function setId($id) - { - $this->id = $id; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getId() - { - return $this->id; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setLinks($links) { + $this->links = $links; + } - public function getKind() - { - return $this->kind; - } + public function getLinks() { + return $this->links; + } - public function setLinks($links) - { - $this->links = $links; - } + public function setNotes($notes) { + $this->notes = $notes; + } - public function getLinks() - { - return $this->links; - } + public function getNotes() { + return $this->notes; + } - public function setNotes($notes) - { - $this->notes = $notes; - } + public function setParent($parent) { + $this->parent = $parent; + } - public function getNotes() - { - return $this->notes; - } + public function getParent() { + return $this->parent; + } - public function setParent($parent) - { - $this->parent = $parent; - } + public function setPosition($position) { + $this->position = $position; + } - public function getParent() - { - return $this->parent; - } + public function getPosition() { + return $this->position; + } - public function setPosition($position) - { - $this->position = $position; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getPosition() - { - return $this->position; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setStatus($status) { + $this->status = $status; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getStatus() { + return $this->status; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setTitle($title) { + $this->title = $title; + } - public function getStatus() - { - return $this->status; - } + public function getTitle() { + return $this->title; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getTitle() - { - return $this->title; - } - - public function setUpdated($updated) - { - $this->updated = $updated; - } - - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Tasks_TaskLinks extends Google_Model -{ - public $description; - public $link; - public $type; +class Google_Service_Tasks_TaskLinks extends Google_Model { + public $description; + public $link; + public $type; - public function setDescription($description) - { - $this->description = $description; - } + public function setDescription($description) { + $this->description = $description; + } - public function getDescription() - { - return $this->description; - } + public function getDescription() { + return $this->description; + } - public function setLink($link) - { - $this->link = $link; - } + public function setLink($link) { + $this->link = $link; + } - public function getLink() - { - return $this->link; - } + public function getLink() { + return $this->link; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_Tasks_TaskList extends Google_Model -{ - public $etag; - public $id; - public $kind; - public $selfLink; - public $title; - public $updated; +class Google_Service_Tasks_TaskList extends Google_Model { + public $etag; + public $id; + public $kind; + public $selfLink; + public $title; + public $updated; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } + public function setSelfLink($selfLink) { + $this->selfLink = $selfLink; + } - public function getSelfLink() - { - return $this->selfLink; - } + public function getSelfLink() { + return $this->selfLink; + } - public function setTitle($title) - { - $this->title = $title; - } + public function setTitle($title) { + $this->title = $title; + } - public function getTitle() - { - return $this->title; - } + public function getTitle() { + return $this->title; + } - public function setUpdated($updated) - { - $this->updated = $updated; - } + public function setUpdated($updated) { + $this->updated = $updated; + } - public function getUpdated() - { - return $this->updated; - } + public function getUpdated() { + return $this->updated; + } } -class Google_Service_Tasks_TaskLists extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Tasks_TaskList'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Tasks_TaskLists extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Tasks_TaskList'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } -class Google_Service_Tasks_Tasks extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_Tasks_Task'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; +class Google_Service_Tasks_Tasks extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_Tasks_Task'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; - public function setEtag($etag) - { - $this->etag = $etag; - } + public function setEtag($etag) { + $this->etag = $etag; + } - public function getEtag() - { - return $this->etag; - } + public function getEtag() { + return $this->etag; + } - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } } diff --git a/oauth/Google/Service/Translate.php b/oauth/Google/Service/Translate.php index a1c0556..ad204db 100644 --- a/oauth/Google/Service/Translate.php +++ b/oauth/Google/Service/Translate.php @@ -29,107 +29,105 @@ * * @author Google, Inc. */ -class Google_Service_Translate extends Google_Service -{ +class Google_Service_Translate extends Google_Service { - public $detections; - public $languages; - public $translations; - + public $detections; + public $languages; + public $translations; - /** - * Constructs the internal representation of the Translate service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'language/translate/'; - $this->version = 'v2'; - $this->serviceName = 'translate'; - $this->detections = new Google_Service_Translate_Detections_Resource( - $this, - $this->serviceName, - 'detections', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v2/detect', - 'httpMethod' => 'GET', - 'parameters' => array( - 'q' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->languages = new Google_Service_Translate_Languages_Resource( - $this, - $this->serviceName, - 'languages', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v2/languages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'target' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->translations = new Google_Service_Translate_Translations_Resource( - $this, - $this->serviceName, - 'translations', - array( - 'methods' => array( - 'list' => array( - 'path' => 'v2', - 'httpMethod' => 'GET', - 'parameters' => array( - 'q' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - 'required' => true, - ), - 'target' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'cid' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Translate service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'language/translate/'; + $this->version = 'v2'; + $this->serviceName = 'translate'; + + $this->detections = new Google_Service_Translate_Detections_Resource( + $this, + $this->serviceName, + 'detections', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v2/detect', + 'httpMethod' => 'GET', + 'parameters' => array( + 'q' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->languages = new Google_Service_Translate_Languages_Resource( + $this, + $this->serviceName, + 'languages', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v2/languages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'target' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->translations = new Google_Service_Translate_Translations_Resource( + $this, + $this->serviceName, + 'translations', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v2', + 'httpMethod' => 'GET', + 'parameters' => array( + 'q' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + 'required' => true, + ), + 'target' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'source' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'format' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'cid' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + } } @@ -141,23 +139,21 @@ class Google_Service_Translate extends Google_Service * $detections = $translateService->detections; * */ -class Google_Service_Translate_Detections_Resource extends Google_Service_Resource -{ +class Google_Service_Translate_Detections_Resource extends Google_Service_Resource { - /** - * Detect the language of text. (detections.listDetections) - * - * @param string $q - * The text to detect - * @param array $optParams Optional parameters. - * @return Google_Service_Translate_DetectionsListResponse - */ - public function listDetections($q, $optParams = array()) - { - $params = array('q' => $q); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Translate_DetectionsListResponse"); - } + /** + * Detect the language of text. (detections.listDetections) + * + * @param string $q + * The text to detect + * @param array $optParams Optional parameters. + * @return Google_Service_Translate_DetectionsListResponse + */ + public function listDetections($q, $optParams = array()) { + $params = array('q' => $q); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Translate_DetectionsListResponse"); + } } /** @@ -168,25 +164,23 @@ class Google_Service_Translate_Detections_Resource extends Google_Service_Resour * $languages = $translateService->languages; * */ -class Google_Service_Translate_Languages_Resource extends Google_Service_Resource -{ +class Google_Service_Translate_Languages_Resource extends Google_Service_Resource { - /** - * List the source/target languages supported by the API - * (languages.listLanguages) - * - * @param array $optParams Optional parameters. - * - * @opt_param string target - * the language and collation in which the localized results should be returned - * @return Google_Service_Translate_LanguagesListResponse - */ - public function listLanguages($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Translate_LanguagesListResponse"); - } + /** + * List the source/target languages supported by the API + * (languages.listLanguages) + * + * @param array $optParams Optional parameters. + * + * @opt_param string target + * the language and collation in which the localized results should be returned + * @return Google_Service_Translate_LanguagesListResponse + */ + public function listLanguages($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Translate_LanguagesListResponse"); + } } /** @@ -197,171 +191,141 @@ class Google_Service_Translate_Languages_Resource extends Google_Service_Resourc * $translations = $translateService->translations; * */ -class Google_Service_Translate_Translations_Resource extends Google_Service_Resource -{ +class Google_Service_Translate_Translations_Resource extends Google_Service_Resource { - /** - * Returns text translations from one language to another. - * (translations.listTranslations) - * - * @param string $q - * The text to translate - * @param string $target - * The target language into which the text should be translated - * @param array $optParams Optional parameters. - * - * @opt_param string source - * The source language of the text - * @opt_param string format - * The format of the text - * @opt_param string cid - * The customization id for translate - * @return Google_Service_Translate_TranslationsListResponse - */ - public function listTranslations($q, $target, $optParams = array()) - { - $params = array('q' => $q, 'target' => $target); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Translate_TranslationsListResponse"); - } + /** + * Returns text translations from one language to another. + * (translations.listTranslations) + * + * @param string $q + * The text to translate + * @param string $target + * The target language into which the text should be translated + * @param array $optParams Optional parameters. + * + * @opt_param string source + * The source language of the text + * @opt_param string format + * The format of the text + * @opt_param string cid + * The customization id for translate + * @return Google_Service_Translate_TranslationsListResponse + */ + public function listTranslations($q, $target, $optParams = array()) { + $params = array('q' => $q, 'target' => $target); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Translate_TranslationsListResponse"); + } } +class Google_Service_Translate_DetectionsListResponse extends Google_Collection { + protected $detectionsType = 'Google_Service_Translate_DetectionsResourceItems'; + protected $detectionsDataType = 'array'; + public function setDetections($detections) { + $this->detections = $detections; + } -class Google_Service_Translate_DetectionsListResponse extends Google_Collection -{ - protected $detectionsType = 'Google_Service_Translate_DetectionsResourceItems'; - protected $detectionsDataType = 'array'; - - public function setDetections($detections) - { - $this->detections = $detections; - } - - public function getDetections() - { - return $this->detections; - } + public function getDetections() { + return $this->detections; + } } -class Google_Service_Translate_DetectionsResourceItems extends Google_Model -{ - public $confidence; - public $isReliable; - public $language; +class Google_Service_Translate_DetectionsResourceItems extends Google_Model { + public $confidence; + public $isReliable; + public $language; - public function setConfidence($confidence) - { - $this->confidence = $confidence; - } + public function setConfidence($confidence) { + $this->confidence = $confidence; + } - public function getConfidence() - { - return $this->confidence; - } + public function getConfidence() { + return $this->confidence; + } - public function setIsReliable($isReliable) - { - $this->isReliable = $isReliable; - } + public function setIsReliable($isReliable) { + $this->isReliable = $isReliable; + } - public function getIsReliable() - { - return $this->isReliable; - } + public function getIsReliable() { + return $this->isReliable; + } - public function setLanguage($language) - { - $this->language = $language; - } + public function setLanguage($language) { + $this->language = $language; + } - public function getLanguage() - { - return $this->language; - } + public function getLanguage() { + return $this->language; + } } -class Google_Service_Translate_LanguagesListResponse extends Google_Collection -{ - protected $languagesType = 'Google_Service_Translate_LanguagesResource'; - protected $languagesDataType = 'array'; +class Google_Service_Translate_LanguagesListResponse extends Google_Collection { + protected $languagesType = 'Google_Service_Translate_LanguagesResource'; + protected $languagesDataType = 'array'; - public function setLanguages($languages) - { - $this->languages = $languages; - } + public function setLanguages($languages) { + $this->languages = $languages; + } - public function getLanguages() - { - return $this->languages; - } + public function getLanguages() { + return $this->languages; + } } -class Google_Service_Translate_LanguagesResource extends Google_Model -{ - public $language; - public $name; +class Google_Service_Translate_LanguagesResource extends Google_Model { + public $language; + public $name; - public function setLanguage($language) - { - $this->language = $language; - } + public function setLanguage($language) { + $this->language = $language; + } - public function getLanguage() - { - return $this->language; - } + public function getLanguage() { + return $this->language; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } -class Google_Service_Translate_TranslationsListResponse extends Google_Collection -{ - protected $translationsType = 'Google_Service_Translate_TranslationsResource'; - protected $translationsDataType = 'array'; +class Google_Service_Translate_TranslationsListResponse extends Google_Collection { + protected $translationsType = 'Google_Service_Translate_TranslationsResource'; + protected $translationsDataType = 'array'; - public function setTranslations($translations) - { - $this->translations = $translations; - } + public function setTranslations($translations) { + $this->translations = $translations; + } - public function getTranslations() - { - return $this->translations; - } + public function getTranslations() { + return $this->translations; + } } -class Google_Service_Translate_TranslationsResource extends Google_Model -{ - public $detectedSourceLanguage; - public $translatedText; +class Google_Service_Translate_TranslationsResource extends Google_Model { + public $detectedSourceLanguage; + public $translatedText; - public function setDetectedSourceLanguage($detectedSourceLanguage) - { - $this->detectedSourceLanguage = $detectedSourceLanguage; - } + public function setDetectedSourceLanguage($detectedSourceLanguage) { + $this->detectedSourceLanguage = $detectedSourceLanguage; + } - public function getDetectedSourceLanguage() - { - return $this->detectedSourceLanguage; - } + public function getDetectedSourceLanguage() { + return $this->detectedSourceLanguage; + } - public function setTranslatedText($translatedText) - { - $this->translatedText = $translatedText; - } + public function setTranslatedText($translatedText) { + $this->translatedText = $translatedText; + } - public function getTranslatedText() - { - return $this->translatedText; - } + public function getTranslatedText() { + return $this->translatedText; + } } diff --git a/oauth/Google/Service/Urlshortener.php b/oauth/Google/Service/Urlshortener.php index 37f6c42..05e968c 100644 --- a/oauth/Google/Service/Urlshortener.php +++ b/oauth/Google/Service/Urlshortener.php @@ -29,68 +29,66 @@ * * @author Google, Inc. */ -class Google_Service_Urlshortener extends Google_Service -{ - /** Manage your goo.gl short URLs. */ - const URLSHORTENER = "https://www.googleapis.com/auth/urlshortener"; +class Google_Service_Urlshortener extends Google_Service { + /** Manage your goo.gl short URLs. */ + const URLSHORTENER = "https://www.googleapis.com/auth/urlshortener"; - public $url; - + public $url; - /** - * Constructs the internal representation of the Urlshortener service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'urlshortener/v1/'; - $this->version = 'v1'; - $this->serviceName = 'urlshortener'; - $this->url = new Google_Service_Urlshortener_Url_Resource( - $this, - $this->serviceName, - 'url', - array( - 'methods' => array( - 'get' => array( - 'path' => 'url', - 'httpMethod' => 'GET', - 'parameters' => array( - 'shortUrl' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'url', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'list' => array( - 'path' => 'url/history', - 'httpMethod' => 'GET', - 'parameters' => array( - 'start-token' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Urlshortener service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'urlshortener/v1/'; + $this->version = 'v1'; + $this->serviceName = 'urlshortener'; + + $this->url = new Google_Service_Urlshortener_Url_Resource( + $this, + $this->serviceName, + 'url', + array( + 'methods' => array( + 'get' => array( + 'path' => 'url', + 'httpMethod' => 'GET', + 'parameters' => array( + 'shortUrl' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'url', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), 'list' => array( + 'path' => 'url/history', + 'httpMethod' => 'GET', + 'parameters' => array( + 'start-token' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -102,352 +100,295 @@ class Google_Service_Urlshortener extends Google_Service * $url = $urlshortenerService->url; * */ -class Google_Service_Urlshortener_Url_Resource extends Google_Service_Resource -{ +class Google_Service_Urlshortener_Url_Resource extends Google_Service_Resource { - /** - * Expands a short URL or gets creation time and analytics. (url.get) - * - * @param string $shortUrl - * The short URL, including the protocol. - * @param array $optParams Optional parameters. - * - * @opt_param string projection - * Additional information to return. - * @return Google_Service_Urlshortener_Url - */ - public function get($shortUrl, $optParams = array()) - { - $params = array('shortUrl' => $shortUrl); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Urlshortener_Url"); - } - /** - * Creates a new short URL. (url.insert) - * - * @param Google_Url $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Urlshortener_Url - */ - public function insert(Google_Service_Urlshortener_Url $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Urlshortener_Url"); - } - /** - * Retrieves a list of URLs shortened by a user. (url.listUrl) - * - * @param array $optParams Optional parameters. - * - * @opt_param string start-token - * Token for requesting successive pages of results. - * @opt_param string projection - * Additional information to return. - * @return Google_Service_Urlshortener_UrlHistory - */ - public function listUrl($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Urlshortener_UrlHistory"); - } + /** + * Expands a short URL or gets creation time and analytics. (url.get) + * + * @param string $shortUrl + * The short URL, including the protocol. + * @param array $optParams Optional parameters. + * + * @opt_param string projection + * Additional information to return. + * @return Google_Service_Urlshortener_Url + */ + public function get($shortUrl, $optParams = array()) { + $params = array('shortUrl' => $shortUrl); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Urlshortener_Url"); + } + + /** + * Creates a new short URL. (url.insert) + * + * @param Google_Url $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Urlshortener_Url + */ + public function insert(Google_Service_Urlshortener_Url $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Urlshortener_Url"); + } + + /** + * Retrieves a list of URLs shortened by a user. (url.listUrl) + * + * @param array $optParams Optional parameters. + * + * @opt_param string start-token + * Token for requesting successive pages of results. + * @opt_param string projection + * Additional information to return. + * @return Google_Service_Urlshortener_UrlHistory + */ + public function listUrl($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Urlshortener_UrlHistory"); + } } +class Google_Service_Urlshortener_AnalyticsSnapshot extends Google_Collection { + protected $browsersType = 'Google_Service_Urlshortener_StringCount'; + protected $browsersDataType = 'array'; + protected $countriesType = 'Google_Service_Urlshortener_StringCount'; + protected $countriesDataType = 'array'; + public $longUrlClicks; + protected $platformsType = 'Google_Service_Urlshortener_StringCount'; + protected $platformsDataType = 'array'; + protected $referrersType = 'Google_Service_Urlshortener_StringCount'; + protected $referrersDataType = 'array'; + public $shortUrlClicks; + public function setBrowsers($browsers) { + $this->browsers = $browsers; + } -class Google_Service_Urlshortener_AnalyticsSnapshot extends Google_Collection -{ - protected $browsersType = 'Google_Service_Urlshortener_StringCount'; - protected $browsersDataType = 'array'; - protected $countriesType = 'Google_Service_Urlshortener_StringCount'; - protected $countriesDataType = 'array'; - public $longUrlClicks; - protected $platformsType = 'Google_Service_Urlshortener_StringCount'; - protected $platformsDataType = 'array'; - protected $referrersType = 'Google_Service_Urlshortener_StringCount'; - protected $referrersDataType = 'array'; - public $shortUrlClicks; + public function getBrowsers() { + return $this->browsers; + } - public function setBrowsers($browsers) - { - $this->browsers = $browsers; - } + public function setCountries($countries) { + $this->countries = $countries; + } - public function getBrowsers() - { - return $this->browsers; - } + public function getCountries() { + return $this->countries; + } - public function setCountries($countries) - { - $this->countries = $countries; - } + public function setLongUrlClicks($longUrlClicks) { + $this->longUrlClicks = $longUrlClicks; + } - public function getCountries() - { - return $this->countries; - } + public function getLongUrlClicks() { + return $this->longUrlClicks; + } - public function setLongUrlClicks($longUrlClicks) - { - $this->longUrlClicks = $longUrlClicks; - } + public function setPlatforms($platforms) { + $this->platforms = $platforms; + } - public function getLongUrlClicks() - { - return $this->longUrlClicks; - } + public function getPlatforms() { + return $this->platforms; + } - public function setPlatforms($platforms) - { - $this->platforms = $platforms; - } + public function setReferrers($referrers) { + $this->referrers = $referrers; + } - public function getPlatforms() - { - return $this->platforms; - } + public function getReferrers() { + return $this->referrers; + } - public function setReferrers($referrers) - { - $this->referrers = $referrers; - } + public function setShortUrlClicks($shortUrlClicks) { + $this->shortUrlClicks = $shortUrlClicks; + } - public function getReferrers() - { - return $this->referrers; - } - - public function setShortUrlClicks($shortUrlClicks) - { - $this->shortUrlClicks = $shortUrlClicks; - } - - public function getShortUrlClicks() - { - return $this->shortUrlClicks; - } + public function getShortUrlClicks() { + return $this->shortUrlClicks; + } } -class Google_Service_Urlshortener_AnalyticsSummary extends Google_Model -{ - protected $allTimeType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; - protected $allTimeDataType = ''; - protected $dayType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; - protected $dayDataType = ''; - protected $monthType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; - protected $monthDataType = ''; - protected $twoHoursType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; - protected $twoHoursDataType = ''; - protected $weekType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; - protected $weekDataType = ''; +class Google_Service_Urlshortener_AnalyticsSummary extends Google_Model { + protected $allTimeType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; + protected $allTimeDataType = ''; + protected $dayType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; + protected $dayDataType = ''; + protected $monthType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; + protected $monthDataType = ''; + protected $twoHoursType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; + protected $twoHoursDataType = ''; + protected $weekType = 'Google_Service_Urlshortener_AnalyticsSnapshot'; + protected $weekDataType = ''; - public function setAllTime(Google_Service_Urlshortener_AnalyticsSnapshot $allTime) - { - $this->allTime = $allTime; - } + public function setAllTime(Google_Service_Urlshortener_AnalyticsSnapshot $allTime) { + $this->allTime = $allTime; + } - public function getAllTime() - { - return $this->allTime; - } + public function getAllTime() { + return $this->allTime; + } - public function setDay(Google_Service_Urlshortener_AnalyticsSnapshot $day) - { - $this->day = $day; - } + public function setDay(Google_Service_Urlshortener_AnalyticsSnapshot $day) { + $this->day = $day; + } - public function getDay() - { - return $this->day; - } + public function getDay() { + return $this->day; + } - public function setMonth(Google_Service_Urlshortener_AnalyticsSnapshot $month) - { - $this->month = $month; - } + public function setMonth(Google_Service_Urlshortener_AnalyticsSnapshot $month) { + $this->month = $month; + } - public function getMonth() - { - return $this->month; - } + public function getMonth() { + return $this->month; + } - public function setTwoHours(Google_Service_Urlshortener_AnalyticsSnapshot $twoHours) - { - $this->twoHours = $twoHours; - } + public function setTwoHours(Google_Service_Urlshortener_AnalyticsSnapshot $twoHours) { + $this->twoHours = $twoHours; + } - public function getTwoHours() - { - return $this->twoHours; - } + public function getTwoHours() { + return $this->twoHours; + } - public function setWeek(Google_Service_Urlshortener_AnalyticsSnapshot $week) - { - $this->week = $week; - } + public function setWeek(Google_Service_Urlshortener_AnalyticsSnapshot $week) { + $this->week = $week; + } - public function getWeek() - { - return $this->week; - } + public function getWeek() { + return $this->week; + } } -class Google_Service_Urlshortener_StringCount extends Google_Model -{ - public $count; - public $id; +class Google_Service_Urlshortener_StringCount extends Google_Model { + public $count; + public $id; - public function setCount($count) - { - $this->count = $count; - } + public function setCount($count) { + $this->count = $count; + } - public function getCount() - { - return $this->count; - } + public function getCount() { + return $this->count; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } } -class Google_Service_Urlshortener_Url extends Google_Model -{ - protected $analyticsType = 'Google_Service_Urlshortener_AnalyticsSummary'; - protected $analyticsDataType = ''; - public $created; - public $id; - public $kind; - public $longUrl; - public $status; +class Google_Service_Urlshortener_Url extends Google_Model { + protected $analyticsType = 'Google_Service_Urlshortener_AnalyticsSummary'; + protected $analyticsDataType = ''; + public $created; + public $id; + public $kind; + public $longUrl; + public $status; - public function setAnalytics(Google_Service_Urlshortener_AnalyticsSummary $analytics) - { - $this->analytics = $analytics; - } + public function setAnalytics(Google_Service_Urlshortener_AnalyticsSummary $analytics) { + $this->analytics = $analytics; + } - public function getAnalytics() - { - return $this->analytics; - } + public function getAnalytics() { + return $this->analytics; + } - public function setCreated($created) - { - $this->created = $created; - } + public function setCreated($created) { + $this->created = $created; + } - public function getCreated() - { - return $this->created; - } + public function getCreated() { + return $this->created; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setLongUrl($longUrl) - { - $this->longUrl = $longUrl; - } + public function setLongUrl($longUrl) { + $this->longUrl = $longUrl; + } - public function getLongUrl() - { - return $this->longUrl; - } + public function getLongUrl() { + return $this->longUrl; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } } -class Google_Service_Urlshortener_UrlHistory extends Google_Collection -{ - protected $itemsType = 'Google_Service_Urlshortener_Url'; - protected $itemsDataType = 'array'; - public $itemsPerPage; - public $kind; - public $nextPageToken; - public $totalItems; +class Google_Service_Urlshortener_UrlHistory extends Google_Collection { + protected $itemsType = 'Google_Service_Urlshortener_Url'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextPageToken; + public $totalItems; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setItemsPerPage($itemsPerPage) - { - $this->itemsPerPage = $itemsPerPage; - } + public function setItemsPerPage($itemsPerPage) { + $this->itemsPerPage = $itemsPerPage; + } - public function getItemsPerPage() - { - return $this->itemsPerPage; - } + public function getItemsPerPage() { + return $this->itemsPerPage; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } - public function getNextPageToken() - { - return $this->nextPageToken; - } + public function getNextPageToken() { + return $this->nextPageToken; + } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } + public function setTotalItems($totalItems) { + $this->totalItems = $totalItems; + } - public function getTotalItems() - { - return $this->totalItems; - } + public function getTotalItems() { + return $this->totalItems; + } } diff --git a/oauth/Google/Service/Webfonts.php b/oauth/Google/Service/Webfonts.php index 3083266..277715f 100644 --- a/oauth/Google/Service/Webfonts.php +++ b/oauth/Google/Service/Webfonts.php @@ -29,45 +29,43 @@ * * @author Google, Inc. */ -class Google_Service_Webfonts extends Google_Service -{ +class Google_Service_Webfonts extends Google_Service { - public $webfonts; - + public $webfonts; - /** - * Constructs the internal representation of the Webfonts service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'webfonts/v1/'; - $this->version = 'v1'; - $this->serviceName = 'webfonts'; - $this->webfonts = new Google_Service_Webfonts_Webfonts_Resource( - $this, - $this->serviceName, - 'webfonts', - array( - 'methods' => array( - 'list' => array( - 'path' => 'webfonts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the Webfonts service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'webfonts/v1/'; + $this->version = 'v1'; + $this->serviceName = 'webfonts'; + + $this->webfonts = new Google_Service_Webfonts_Webfonts_Resource( + $this, + $this->serviceName, + 'webfonts', + array( + 'methods' => array( + 'list' => array( + 'path' => 'webfonts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'sort' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -79,150 +77,123 @@ class Google_Service_Webfonts extends Google_Service * $webfonts = $webfontsService->webfonts; * */ -class Google_Service_Webfonts_Webfonts_Resource extends Google_Service_Resource -{ +class Google_Service_Webfonts_Webfonts_Resource extends Google_Service_Resource { - /** - * Retrieves the list of fonts currently served by the Google Fonts Developer - * API (webfonts.listWebfonts) - * - * @param array $optParams Optional parameters. - * - * @opt_param string sort - * Enables sorting of the list - * @return Google_Service_Webfonts_WebfontList - */ - public function listWebfonts($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Webfonts_WebfontList"); - } + /** + * Retrieves the list of fonts currently served by the Google Fonts Developer + * API (webfonts.listWebfonts) + * + * @param array $optParams Optional parameters. + * + * @opt_param string sort + * Enables sorting of the list + * @return Google_Service_Webfonts_WebfontList + */ + public function listWebfonts($optParams = array()) { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Webfonts_WebfontList"); + } } +class Google_Service_Webfonts_Webfont extends Google_Collection { + public $category; + public $family; + public $files; + public $kind; + public $lastModified; + public $subsets; + public $variants; + public $version; + public function setCategory($category) { + $this->category = $category; + } -class Google_Service_Webfonts_Webfont extends Google_Collection -{ - public $category; - public $family; - public $files; - public $kind; - public $lastModified; - public $subsets; - public $variants; - public $version; + public function getCategory() { + return $this->category; + } - public function setCategory($category) - { - $this->category = $category; - } + public function setFamily($family) { + $this->family = $family; + } - public function getCategory() - { - return $this->category; - } + public function getFamily() { + return $this->family; + } - public function setFamily($family) - { - $this->family = $family; - } + public function setFiles($files) { + $this->files = $files; + } - public function getFamily() - { - return $this->family; - } + public function getFiles() { + return $this->files; + } - public function setFiles($files) - { - $this->files = $files; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getFiles() - { - return $this->files; - } + public function getKind() { + return $this->kind; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setLastModified($lastModified) { + $this->lastModified = $lastModified; + } - public function getKind() - { - return $this->kind; - } + public function getLastModified() { + return $this->lastModified; + } - public function setLastModified($lastModified) - { - $this->lastModified = $lastModified; - } + public function setSubsets($subsets) { + $this->subsets = $subsets; + } - public function getLastModified() - { - return $this->lastModified; - } + public function getSubsets() { + return $this->subsets; + } - public function setSubsets($subsets) - { - $this->subsets = $subsets; - } + public function setVariants($variants) { + $this->variants = $variants; + } - public function getSubsets() - { - return $this->subsets; - } + public function getVariants() { + return $this->variants; + } - public function setVariants($variants) - { - $this->variants = $variants; - } + public function setVersion($version) { + $this->version = $version; + } - public function getVariants() - { - return $this->variants; - } - - public function setVersion($version) - { - $this->version = $version; - } - - public function getVersion() - { - return $this->version; - } + public function getVersion() { + return $this->version; + } } -class Google_Service_Webfonts_WebfontFiles extends Google_Model -{ +class Google_Service_Webfonts_WebfontFiles extends Google_Model { } -class Google_Service_Webfonts_WebfontList extends Google_Collection -{ - protected $itemsType = 'Google_Service_Webfonts_Webfont'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_Webfonts_WebfontList extends Google_Collection { + protected $itemsType = 'Google_Service_Webfonts_Webfont'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } diff --git a/oauth/Google/Service/YouTube.php b/oauth/Google/Service/YouTube.php index ea24855..4099f73 100644 --- a/oauth/Google/Service/YouTube.php +++ b/oauth/Google/Service/YouTube.php @@ -29,1271 +29,1269 @@ * * @author Google, Inc. */ -class Google_Service_YouTube extends Google_Service -{ - /** Manage your YouTube account. */ - const YOUTUBE = "https://www.googleapis.com/auth/youtube"; - /** View your YouTube account. */ - const YOUTUBE_READONLY = "https://www.googleapis.com/auth/youtube.readonly"; - /** Manage your YouTube videos. */ - const YOUTUBE_UPLOAD = "https://www.googleapis.com/auth/youtube.upload"; - /** View and manage your assets and associated content on YouTube. */ - const YOUTUBEPARTNER = "https://www.googleapis.com/auth/youtubepartner"; - /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */ - const YOUTUBEPARTNER_CHANNEL_AUDIT = "https://www.googleapis.com/auth/youtubepartner-channel-audit"; +class Google_Service_YouTube extends Google_Service { + /** Manage your YouTube account. */ + const YOUTUBE = "https://www.googleapis.com/auth/youtube"; + /** View your YouTube account. */ + const YOUTUBE_READONLY = "https://www.googleapis.com/auth/youtube.readonly"; + /** Manage your YouTube videos. */ + const YOUTUBE_UPLOAD = "https://www.googleapis.com/auth/youtube.upload"; + /** View and manage your assets and associated content on YouTube. */ + const YOUTUBEPARTNER = "https://www.googleapis.com/auth/youtubepartner"; + /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */ + const YOUTUBEPARTNER_CHANNEL_AUDIT = "https://www.googleapis.com/auth/youtubepartner-channel-audit"; - public $activities; - public $channelBanners; - public $channelSections; - public $channels; - public $guideCategories; - public $i18nLanguages; - public $i18nRegions; - public $liveBroadcasts; - public $liveStreams; - public $playlistItems; - public $playlists; - public $search; - public $subscriptions; - public $thumbnails; - public $videoCategories; - public $videos; - public $watermarks; - + public $activities; + public $channelBanners; + public $channelSections; + public $channels; + public $guideCategories; + public $i18nLanguages; + public $i18nRegions; + public $liveBroadcasts; + public $liveStreams; + public $playlistItems; + public $playlists; + public $search; + public $subscriptions; + public $thumbnails; + public $videoCategories; + public $videos; + public $watermarks; - /** - * Constructs the internal representation of the YouTube service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'youtube/v3/'; - $this->version = 'v3'; - $this->serviceName = 'youtube'; - $this->activities = new Google_Service_YouTube_Activities_Resource( - $this, - $this->serviceName, - 'activities', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'activities', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'activities', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'home' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'publishedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource( - $this, - $this->serviceName, - 'channelBanners', - array( - 'methods' => array( - 'insert' => array( - 'path' => 'channelBanners/insert', - 'httpMethod' => 'POST', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->channelSections = new Google_Service_YouTube_ChannelSections_Resource( - $this, - $this->serviceName, - 'channelSections', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'channelSections', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'channelSections', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'channelSections', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'update' => array( - 'path' => 'channelSections', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->channels = new Google_Service_YouTube_Channels_Resource( - $this, - $this->serviceName, - 'channels', - array( - 'methods' => array( - 'list' => array( - 'path' => 'channels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'managedByMe' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forUsername' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'categoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'channels', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource( - $this, - $this->serviceName, - 'guideCategories', - array( - 'methods' => array( - 'list' => array( - 'path' => 'guideCategories', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->i18nLanguages = new Google_Service_YouTube_I18nLanguages_Resource( - $this, - $this->serviceName, - 'i18nLanguages', - array( - 'methods' => array( - 'list' => array( - 'path' => 'i18nLanguages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->i18nRegions = new Google_Service_YouTube_I18nRegions_Resource( - $this, - $this->serviceName, - 'i18nRegions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'i18nRegions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource( - $this, - $this->serviceName, - 'liveBroadcasts', - array( - 'methods' => array( - 'bind' => array( - 'path' => 'liveBroadcasts/bind', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'streamId' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'control' => array( - 'path' => 'liveBroadcasts/control', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'displaySlate' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'offsetTimeMs' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'walltime' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'delete' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'broadcastStatus' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'transition' => array( - 'path' => 'liveBroadcasts/transition', - 'httpMethod' => 'POST', - 'parameters' => array( - 'broadcastStatus' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'liveBroadcasts', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource( - $this, - $this->serviceName, - 'liveStreams', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'liveStreams', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource( - $this, - $this->serviceName, - 'playlistItems', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'playlistId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'playlistItems', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->playlists = new Google_Service_YouTube_Playlists_Resource( - $this, - $this->serviceName, - 'playlists', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'playlists', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'playlists', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'playlists', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'playlists', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->search = new Google_Service_YouTube_Search_Resource( - $this, - $this->serviceName, - 'search', - array( - 'methods' => array( - 'list' => array( - 'path' => 'search', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'eventType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoSyndicated' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCaption' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedAfter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forContentOwner' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'location' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locationRadius' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'topicId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'publishedBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDimension' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoLicense' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'relatedToVideoId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDefinition' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoDuration' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'forMine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'safeSearch' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoEmbeddable' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCategoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'order' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource( - $this, - $this->serviceName, - 'subscriptions', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mine' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'forChannelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'mySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'order' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource( - $this, - $this->serviceName, - 'thumbnails', - array( - 'methods' => array( - 'set' => array( - 'path' => 'thumbnails/set', - 'httpMethod' => 'POST', - 'parameters' => array( - 'videoId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource( - $this, - $this->serviceName, - 'videoCategories', - array( - 'methods' => array( - 'list' => array( - 'path' => 'videoCategories', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->videos = new Google_Service_YouTube_Videos_Resource( - $this, - $this->serviceName, - 'videos', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'videos', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'getRating' => array( - 'path' => 'videos/getRating', - 'httpMethod' => 'GET', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'insert' => array( - 'path' => 'videos', - 'httpMethod' => 'POST', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'stabilize' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'onBehalfOfContentOwnerChannel' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'notifySubscribers' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'autoLevels' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'videos', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'regionCode' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'videoCategoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'chart' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'myRating' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'rate' => array( - 'path' => 'videos/rate', - 'httpMethod' => 'POST', - 'parameters' => array( - 'id' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'rating' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'videos', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->watermarks = new Google_Service_YouTube_Watermarks_Resource( - $this, - $this->serviceName, - 'watermarks', - array( - 'methods' => array( - 'set' => array( - 'path' => 'watermarks/set', - 'httpMethod' => 'POST', - 'parameters' => array( - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'unset' => array( - 'path' => 'watermarks/unset', - 'httpMethod' => 'POST', - 'parameters' => array( - 'channelId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the YouTube service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'youtube/v3/'; + $this->version = 'v3'; + $this->serviceName = 'youtube'; + + $this->activities = new Google_Service_YouTube_Activities_Resource( + $this, + $this->serviceName, + 'activities', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'activities', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'activities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'publishedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'home' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'publishedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource( + $this, + $this->serviceName, + 'channelBanners', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'channelBanners/insert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->channelSections = new Google_Service_YouTube_ChannelSections_Resource( + $this, + $this->serviceName, + 'channelSections', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'channelSections', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'channelSections', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'channelSections', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'update' => array( + 'path' => 'channelSections', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->channels = new Google_Service_YouTube_Channels_Resource( + $this, + $this->serviceName, + 'channels', + array( + 'methods' => array( + 'list' => array( + 'path' => 'channels', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'managedByMe' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forUsername' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mySubscribers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'categoryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => 'channels', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource( + $this, + $this->serviceName, + 'guideCategories', + array( + 'methods' => array( + 'list' => array( + 'path' => 'guideCategories', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->i18nLanguages = new Google_Service_YouTube_I18nLanguages_Resource( + $this, + $this->serviceName, + 'i18nLanguages', + array( + 'methods' => array( + 'list' => array( + 'path' => 'i18nLanguages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->i18nRegions = new Google_Service_YouTube_I18nRegions_Resource( + $this, + $this->serviceName, + 'i18nRegions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'i18nRegions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource( + $this, + $this->serviceName, + 'liveBroadcasts', + array( + 'methods' => array( + 'bind' => array( + 'path' => 'liveBroadcasts/bind', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'streamId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'control' => array( + 'path' => 'liveBroadcasts/control', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'displaySlate' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'offsetTimeMs' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'walltime' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'delete' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'broadcastStatus' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'transition' => array( + 'path' => 'liveBroadcasts/transition', + 'httpMethod' => 'POST', + 'parameters' => array( + 'broadcastStatus' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => 'liveBroadcasts', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource( + $this, + $this->serviceName, + 'liveStreams', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => 'liveStreams', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource( + $this, + $this->serviceName, + 'playlistItems', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'playlistId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => 'playlistItems', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->playlists = new Google_Service_YouTube_Playlists_Resource( + $this, + $this->serviceName, + 'playlists', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'playlists', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'playlists', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'list' => array( + 'path' => 'playlists', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => 'playlists', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->search = new Google_Service_YouTube_Search_Resource( + $this, + $this->serviceName, + 'search', + array( + 'methods' => array( + 'list' => array( + 'path' => 'search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'eventType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoSyndicated' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoCaption' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'publishedAfter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forContentOwner' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'location' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'locationRadius' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'topicId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'publishedBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoDimension' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoLicense' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'relatedToVideoId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoDefinition' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoDuration' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'forMine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'safeSearch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoEmbeddable' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoCategoryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'order' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'insert' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), 'list' => array( + 'path' => 'subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'forChannelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mySubscribers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'order' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource( + $this, + $this->serviceName, + 'thumbnails', + array( + 'methods' => array( + 'set' => array( + 'path' => 'thumbnails/set', + 'httpMethod' => 'POST', + 'parameters' => array( + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource( + $this, + $this->serviceName, + 'videoCategories', + array( + 'methods' => array( + 'list' => array( + 'path' => 'videoCategories', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->videos = new Google_Service_YouTube_Videos_Resource( + $this, + $this->serviceName, + 'videos', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'videos', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'getRating' => array( + 'path' => 'videos/getRating', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'insert' => array( + 'path' => 'videos', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'stabilize' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOfContentOwnerChannel' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'notifySubscribers' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'autoLevels' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), 'list' => array( + 'path' => 'videos', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'regionCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoCategoryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'chart' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'myRating' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'rate' => array( + 'path' => 'videos/rate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'rating' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'update' => array( + 'path' => 'videos', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->watermarks = new Google_Service_YouTube_Watermarks_Resource( + $this, + $this->serviceName, + 'watermarks', + array( + 'methods' => array( + 'set' => array( + 'path' => 'watermarks/set', + 'httpMethod' => 'POST', + 'parameters' => array( + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), 'unset' => array( + 'path' => 'watermarks/unset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -1305,91 +1303,89 @@ class Google_Service_YouTube extends Google_Service * $activities = $youtubeService->activities; * */ -class Google_Service_YouTube_Activities_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_Activities_Resource extends Google_Service_Resource { - /** - * Posts a bulletin for a specific channel. (The user submitting the request - * must be authorized to act on the channel's behalf.) - * - * Note: Even though an activity resource can contain information about actions - * like a user rating a video or marking a video as a favorite, you need to use - * other API methods to generate those activity resources. For example, you - * would use the API's videos.rate() method to rate a video and the - * playlistItems.insert() method to mark a video as a favorite. - * (activities.insert) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and contentDetails. - * @param Google_Activity $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Activity - */ - public function insert($part, Google_Service_YouTube_Activity $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Activity"); - } - /** - * Returns a list of channel activity events that match the request criteria. - * For example, you can retrieve events associated with a particular channel, - * events associated with the user's subscriptions and Google+ friends, or the - * YouTube home page feed, which is customized for each user. - * (activities.listActivities) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more activity resource properties - * that the API response will include. The part names that you can include in the parameter value - * are id, snippet, and contentDetails. - If the parameter identifies a property that contains child - * properties, the child properties will be included in the response. For example, in a activity - * resource, the snippet property contains other properties that identify the type of activity, a - * display title for the activity, and so forth. If you set part=snippet, the API response will - * also contain all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param string regionCode - * The regionCode parameter instructs the API to return results for the specified country. The - * parameter value is an ISO 3166-1 alpha-2 country code. YouTube uses this value when the - * authorized user's previous activity on YouTube does not provide enough information to generate - * the activity feed. - * @opt_param string publishedBefore - * The publishedBefore parameter specifies the date and time before which an activity must have - * occurred for that activity to be included in the API response. If the parameter value specifies - * a day, but not a time, then any activities that occurred that day will be excluded from the - * result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. - * @opt_param string channelId - * The channelId parameter specifies a unique YouTube channel ID. The API will then return a list - * of that channel's activities. - * @opt_param bool mine - * Set this parameter's value to true to retrieve a feed of the authenticated user's activities. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param bool home - * Set this parameter's value to true to retrieve the activity feed that displays on the YouTube - * home page for the currently authenticated user. - * @opt_param string publishedAfter - * The publishedAfter parameter specifies the earliest date and time that an activity could have - * occurred for that activity to be included in the API response. If the parameter value specifies - * a day, but not a time, then any activities that occurred that day will be included in the result - * set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. - * @return Google_Service_YouTube_ActivityListResponse - */ - public function listActivities($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_ActivityListResponse"); - } + /** + * Posts a bulletin for a specific channel. (The user submitting the request + * must be authorized to act on the channel's behalf.) + * + * Note: Even though an activity resource can contain information about actions + * like a user rating a video or marking a video as a favorite, you need to use + * other API methods to generate those activity resources. For example, you + * would use the API's videos.rate() method to rate a video and the + * playlistItems.insert() method to mark a video as a favorite. + * (activities.insert) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * names that you can include in the parameter value are snippet and contentDetails. + * @param Google_Activity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Activity + */ + public function insert($part, Google_Service_YouTube_Activity $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Activity"); + } + + /** + * Returns a list of channel activity events that match the request criteria. + * For example, you can retrieve events associated with a particular channel, + * events associated with the user's subscriptions and Google+ friends, or the + * YouTube home page feed, which is customized for each user. + * (activities.listActivities) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more activity resource properties + * that the API response will include. The part names that you can include in the parameter value + * are id, snippet, and contentDetails. + * If the parameter identifies a property that contains child + * properties, the child properties will be included in the response. For example, in a activity + * resource, the snippet property contains other properties that identify the type of activity, a + * display title for the activity, and so forth. If you set part=snippet, the API response will + * also contain all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param string regionCode + * The regionCode parameter instructs the API to return results for the specified country. The + * parameter value is an ISO 3166-1 alpha-2 country code. YouTube uses this value when the + * authorized user's previous activity on YouTube does not provide enough information to generate + * the activity feed. + * @opt_param string publishedBefore + * The publishedBefore parameter specifies the date and time before which an activity must have + * occurred for that activity to be included in the API response. If the parameter value specifies + * a day, but not a time, then any activities that occurred that day will be excluded from the + * result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. + * @opt_param string channelId + * The channelId parameter specifies a unique YouTube channel ID. The API will then return a list + * of that channel's activities. + * @opt_param bool mine + * Set this parameter's value to true to retrieve a feed of the authenticated user's activities. + * @opt_param string maxResults + * The maxResults parameter specifies the maximum number of items that should be returned in the + * result set. + * @opt_param string pageToken + * The pageToken parameter identifies a specific page in the result set that should be returned. In + * an API response, the nextPageToken and prevPageToken properties identify other pages that could + * be retrieved. + * @opt_param bool home + * Set this parameter's value to true to retrieve the activity feed that displays on the YouTube + * home page for the currently authenticated user. + * @opt_param string publishedAfter + * The publishedAfter parameter specifies the earliest date and time that an activity could have + * occurred for that activity to be included in the API response. If the parameter value specifies + * a day, but not a time, then any activities that occurred that day will be included in the result + * set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. + * @return Google_Service_YouTube_ActivityListResponse + */ + public function listActivities($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_ActivityListResponse"); + } } /** @@ -1400,41 +1396,39 @@ class Google_Service_YouTube_Activities_Resource extends Google_Service_Resource * $channelBanners = $youtubeService->channelBanners; * */ -class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Resource { - /** - * Uploads a channel banner image to YouTube. This method represents the first - * two steps in a three-step process to update the banner image for a channel: - * - * - Call the channelBanners.insert method to upload the binary image data to - * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 - * pixels. - Extract the url property's value from the response that the API - * returns for step 1. - Call the channels.update method to update the channel's - * branding settings. Set the brandingSettings.image.bannerExternalUrl - * property's value to the URL obtained in step 2. (channelBanners.insert) - * - * @param Google_ChannelBannerResource $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @return Google_Service_YouTube_ChannelBannerResource - */ - public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource"); - } + /** + * Uploads a channel banner image to YouTube. This method represents the first + * two steps in a three-step process to update the banner image for a channel: + * + * - Call the channelBanners.insert method to upload the binary image data to + * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 + * pixels. - Extract the url property's value from the response that the API + * returns for step 1. - Call the channels.update method to update the channel's + * branding settings. Set the brandingSettings.image.bannerExternalUrl + * property's value to the URL obtained in step 2. (channelBanners.insert) + * + * @param Google_ChannelBannerResource $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @return Google_Service_YouTube_ChannelBannerResource + */ + public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array()) { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource"); + } } /** @@ -1445,129 +1439,127 @@ class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Reso * $channelSections = $youtubeService->channelSections; * */ -class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Resource { - /** - * Deletes a channelSection. (channelSections.delete) - * - * @param string $id - * The id parameter specifies the YouTube channelSection ID for the resource that is being deleted. - * In a channelSection resource, the id property specifies the YouTube channelSection ID. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Adds a channelSection for the authenticated user's channel. - * (channelSections.insert) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and contentDetails. - * @param Google_ChannelSection $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @return Google_Service_YouTube_ChannelSection - */ - public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_ChannelSection"); - } - /** - * Returns channelSection resources that match the API request criteria. - * (channelSections.listChannelSections) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more channelSection resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, and contentDetails. - If the parameter identifies a property - * that contains child properties, the child properties will be included in the response. For - * example, in a channelSection resource, the snippet property contains other properties, such as a - * display title for the channelSection. If you set part=snippet, the API response will also - * contain all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string channelId - * The channelId parameter specifies a YouTube channel ID. The API will only return that channel's - * channelSections. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube channelSection ID(s) for the - * resource(s) that are being retrieved. In a channelSection resource, the id property specifies - * the YouTube channelSection ID. - * @opt_param bool mine - * Set this parameter's value to true to retrieve a feed of the authenticated user's - * channelSections. - * @return Google_Service_YouTube_ChannelSectionListResponse - */ - public function listChannelSections($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_ChannelSectionListResponse"); - } - /** - * Update a channelSection. (channelSections.update) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and contentDetails. - * @param Google_ChannelSection $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_ChannelSection - */ - public function update($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_ChannelSection"); - } + /** + * Deletes a channelSection. (channelSections.delete) + * + * @param string $id + * The id parameter specifies the YouTube channelSection ID for the resource that is being deleted. + * In a channelSection resource, the id property specifies the YouTube channelSection ID. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a channelSection for the authenticated user's channel. + * (channelSections.insert) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * names that you can include in the parameter value are snippet and contentDetails. + * @param Google_ChannelSection $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @return Google_Service_YouTube_ChannelSection + */ + public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_ChannelSection"); + } + + /** + * Returns channelSection resources that match the API request criteria. + * (channelSections.listChannelSections) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more channelSection resource + * properties that the API response will include. The part names that you can include in the + * parameter value are id, snippet, and contentDetails. + * If the parameter identifies a property + * that contains child properties, the child properties will be included in the response. For + * example, in a channelSection resource, the snippet property contains other properties, such as a + * display title for the channelSection. If you set part=snippet, the API response will also + * contain all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @opt_param string channelId + * The channelId parameter specifies a YouTube channel ID. The API will only return that channel's + * channelSections. + * @opt_param string id + * The id parameter specifies a comma-separated list of the YouTube channelSection ID(s) for the + * resource(s) that are being retrieved. In a channelSection resource, the id property specifies + * the YouTube channelSection ID. + * @opt_param bool mine + * Set this parameter's value to true to retrieve a feed of the authenticated user's + * channelSections. + * @return Google_Service_YouTube_ChannelSectionListResponse + */ + public function listChannelSections($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_ChannelSectionListResponse"); + } + + /** + * Update a channelSection. (channelSections.update) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * names that you can include in the parameter value are snippet and contentDetails. + * @param Google_ChannelSection $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_ChannelSection + */ + public function update($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_ChannelSection"); + } } /** @@ -1578,96 +1570,94 @@ class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Res * $channels = $youtubeService->channels; * */ -class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource { - /** - * Returns a collection of zero or more channel resources that match the request - * criteria. (channels.listChannels) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more channel resource properties - * that the API response will include. The part names that you can include in the parameter value - * are id, snippet, contentDetails, statistics, topicDetails, and invideoPromotion. - If the - * parameter identifies a property that contains child properties, the child properties will be - * included in the response. For example, in a channel resource, the contentDetails property - * contains other properties, such as the uploads properties. As such, if you set - * part=contentDetails, the API response will also contain all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param bool managedByMe - * Set this parameter's value to true to instruct the API to only return channels managed by the - * content owner that the onBehalfOfContentOwner parameter specifies. The user must be - * authenticated as a CMS account linked to the specified content owner and onBehalfOfContentOwner - * must be provided. - * @opt_param string onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf - * of the content owner specified in the parameter value. This parameter is intended for YouTube - * content partners that own and manage many different YouTube channels. It allows content owners - * to authenticate once and get access to all their video and channel data, without having to - * provide authentication credentials for each individual channel. The actual CMS account that the - * user authenticates with needs to be linked to the specified YouTube content owner. - * @opt_param string forUsername - * The forUsername parameter specifies a YouTube username, thereby requesting the channel - * associated with that username. - * @opt_param bool mine - * Set this parameter's value to true to instruct the API to only return channels owned by the - * authenticated user. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube channel ID(s) for the - * resource(s) that are being retrieved. In a channel resource, the id property specifies the - * channel's YouTube channel ID. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param bool mySubscribers - * Set this parameter's value to true to retrieve a list of channels that subscribed to the - * authenticated user's channel. - * @opt_param string categoryId - * The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels - * associated with that category. - * @return Google_Service_YouTube_ChannelListResponse - */ - public function listChannels($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse"); - } - /** - * Updates a channel's metadata. (channels.update) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are id and invideoPromotion. - Note that this - * method will override the existing values for all of the mutable properties that are contained in - * any parts that the parameter value specifies. - * @param Google_Channel $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf - * of the content owner specified in the parameter value. This parameter is intended for YouTube - * content partners that own and manage many different YouTube channels. It allows content owners - * to authenticate once and get access to all their video and channel data, without having to - * provide authentication credentials for each individual channel. The actual CMS account that the - * user authenticates with needs to be linked to the specified YouTube content owner. - * @return Google_Service_YouTube_Channel - */ - public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Channel"); - } + /** + * Returns a collection of zero or more channel resources that match the request + * criteria. (channels.listChannels) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more channel resource properties + * that the API response will include. The part names that you can include in the parameter value + * are id, snippet, contentDetails, statistics, topicDetails, and invideoPromotion. + * If the + * parameter identifies a property that contains child properties, the child properties will be + * included in the response. For example, in a channel resource, the contentDetails property + * contains other properties, such as the uploads properties. As such, if you set + * part=contentDetails, the API response will also contain all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param bool managedByMe + * Set this parameter's value to true to instruct the API to only return channels managed by the + * content owner that the onBehalfOfContentOwner parameter specifies. The user must be + * authenticated as a CMS account linked to the specified content owner and onBehalfOfContentOwner + * must be provided. + * @opt_param string onBehalfOfContentOwner + * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf + * of the content owner specified in the parameter value. This parameter is intended for YouTube + * content partners that own and manage many different YouTube channels. It allows content owners + * to authenticate once and get access to all their video and channel data, without having to + * provide authentication credentials for each individual channel. The actual CMS account that the + * user authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string forUsername + * The forUsername parameter specifies a YouTube username, thereby requesting the channel + * associated with that username. + * @opt_param bool mine + * Set this parameter's value to true to instruct the API to only return channels owned by the + * authenticated user. + * @opt_param string maxResults + * The maxResults parameter specifies the maximum number of items that should be returned in the + * result set. + * @opt_param string id + * The id parameter specifies a comma-separated list of the YouTube channel ID(s) for the + * resource(s) that are being retrieved. In a channel resource, the id property specifies the + * channel's YouTube channel ID. + * @opt_param string pageToken + * The pageToken parameter identifies a specific page in the result set that should be returned. In + * an API response, the nextPageToken and prevPageToken properties identify other pages that could + * be retrieved. + * @opt_param bool mySubscribers + * Set this parameter's value to true to retrieve a list of channels that subscribed to the + * authenticated user's channel. + * @opt_param string categoryId + * The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels + * associated with that category. + * @return Google_Service_YouTube_ChannelListResponse + */ + public function listChannels($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse"); + } + + /** + * Updates a channel's metadata. (channels.update) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * names that you can include in the parameter value are id and invideoPromotion. + * Note that this + * method will override the existing values for all of the mutable properties that are contained in + * any parts that the parameter value specifies. + * @param Google_Channel $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf + * of the content owner specified in the parameter value. This parameter is intended for YouTube + * content partners that own and manage many different YouTube channels. It allows content owners + * to authenticate once and get access to all their video and channel data, without having to + * provide authentication credentials for each individual channel. The actual CMS account that the + * user authenticates with needs to be linked to the specified YouTube content owner. + * @return Google_Service_YouTube_Channel + */ + public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Channel"); + } } /** @@ -1678,41 +1668,39 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * $guideCategories = $youtubeService->guideCategories; * */ -class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Resource { - /** - * Returns a list of categories that can be associated with YouTube channels. - * (guideCategories.listGuideCategories) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more guideCategory resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id and snippet. - If the parameter identifies a property that contains child - * properties, the child properties will be included in the response. For example, in a - * guideCategory resource, the snippet property contains other properties, such as the category's - * title. If you set part=snippet, the API response will also contain all of those nested - * properties. - * @param array $optParams Optional parameters. - * - * @opt_param string regionCode - * The regionCode parameter instructs the API to return the list of guide categories available in - * the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube channel category ID(s) for the - * resource(s) that are being retrieved. In a guideCategory resource, the id property specifies the - * YouTube channel category ID. - * @opt_param string hl - * The hl parameter specifies the language that will be used for text values in the API response. - * @return Google_Service_YouTube_GuideCategoryListResponse - */ - public function listGuideCategories($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse"); - } + /** + * Returns a list of categories that can be associated with YouTube channels. + * (guideCategories.listGuideCategories) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more guideCategory resource + * properties that the API response will include. The part names that you can include in the + * parameter value are id and snippet. + * If the parameter identifies a property that contains child + * properties, the child properties will be included in the response. For example, in a + * guideCategory resource, the snippet property contains other properties, such as the category's + * title. If you set part=snippet, the API response will also contain all of those nested + * properties. + * @param array $optParams Optional parameters. + * + * @opt_param string regionCode + * The regionCode parameter instructs the API to return the list of guide categories available in + * the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. + * @opt_param string id + * The id parameter specifies a comma-separated list of the YouTube channel category ID(s) for the + * resource(s) that are being retrieved. In a guideCategory resource, the id property specifies the + * YouTube channel category ID. + * @opt_param string hl + * The hl parameter specifies the language that will be used for text values in the API response. + * @return Google_Service_YouTube_GuideCategoryListResponse + */ + public function listGuideCategories($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse"); + } } /** @@ -1723,28 +1711,26 @@ class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Res * $i18nLanguages = $youtubeService->i18nLanguages; * */ -class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource { - /** - * Returns a list of supported languages. (i18nLanguages.listI18nLanguages) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more i18nLanguage resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id and snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * The hl parameter specifies the language that should be used for text values in the API response. - * @return Google_Service_YouTube_I18nLanguageListResponse - */ - public function listI18nLanguages($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse"); - } + /** + * Returns a list of supported languages. (i18nLanguages.listI18nLanguages) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more i18nLanguage resource + * properties that the API response will include. The part names that you can include in the + * parameter value are id and snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string hl + * The hl parameter specifies the language that should be used for text values in the API response. + * @return Google_Service_YouTube_I18nLanguageListResponse + */ + public function listI18nLanguages($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse"); + } } /** @@ -1755,28 +1741,26 @@ class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resou * $i18nRegions = $youtubeService->i18nRegions; * */ -class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource { - /** - * Returns a list of supported regions. (i18nRegions.listI18nRegions) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more i18nRegion resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id and snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string hl - * The hl parameter specifies the language that should be used for text values in the API response. - * @return Google_Service_YouTube_I18nRegionListResponse - */ - public function listI18nRegions($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse"); - } + /** + * Returns a list of supported regions. (i18nRegions.listI18nRegions) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more i18nRegion resource + * properties that the API response will include. The part names that you can include in the + * parameter value are id and snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string hl + * The hl parameter specifies the language that should be used for text values in the API response. + * @return Google_Service_YouTube_I18nRegionListResponse + */ + public function listI18nRegions($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse"); + } } /** @@ -1787,373 +1771,371 @@ class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resourc * $liveBroadcasts = $youtubeService->liveBroadcasts; * */ -class Google_Service_YouTube_LiveBroadcasts_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_LiveBroadcasts_Resource extends Google_Service_Resource { - /** - * Binds a YouTube broadcast to a stream or removes an existing binding between - * a broadcast and a stream. A broadcast can only be bound to one video stream. - * (liveBroadcasts.bind) - * - * @param string $id - * The id parameter specifies the unique ID of the broadcast that is being bound to a video stream. - * @param string $part - * The part parameter specifies a comma-separated list of one or more liveBroadcast resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string streamId - * The streamId parameter specifies the unique ID of the video stream that is being bound to a - * broadcast. If this parameter is omitted, the API will remove any existing binding between the - * broadcast and a video stream. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function bind($id, $part, $optParams = array()) - { - $params = array('id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - /** - * Controls the settings for a slate that can be displayed in the broadcast - * stream. (liveBroadcasts.control) - * - * @param string $id - * The id parameter specifies the YouTube live broadcast ID that uniquely identifies the broadcast - * in which the slate is being updated. - * @param string $part - * The part parameter specifies a comma-separated list of one or more liveBroadcast resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param bool displaySlate - * The displaySlate parameter specifies whether the slate is being enabled or disabled. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string offsetTimeMs - * The offsetTimeMs parameter specifies a positive time offset when the specified slate change will - * occur. The value is measured in milliseconds from the beginning of the broadcast's monitor - * stream, which is the time that the testing phase for the broadcast began. Even though it is - * specified in milliseconds, the value is actually an approximation, and YouTube completes the - * requested action as closely as possible to that time. - If you do not specify a value for this - * parameter, then YouTube performs the action as soon as possible. See the Getting started guide - * for more details. - Important: You should only specify a value for this parameter if your - * broadcast stream is delayed. - * @opt_param string walltime - * The walltime parameter specifies the wall clock time at which the specified slate change will - * occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function control($id, $part, $optParams = array()) - { - $params = array('id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('control', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - /** - * Deletes a broadcast. (liveBroadcasts.delete) - * - * @param string $id - * The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Creates a broadcast. (liveBroadcasts.insert) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * properties that you can include in the parameter value are id, snippet, contentDetails, and - * status. - * @param Google_LiveBroadcast $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - /** - * Returns a list of YouTube broadcasts that match the API request parameters. - * (liveBroadcasts.listLiveBroadcasts) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more liveBroadcast resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string broadcastStatus - * The broadcastStatus parameter filters the API response to only include broadcasts with the - * specified status. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param bool mine - * The mine parameter can be used to instruct the API to only return broadcasts owned by the - * authenticated user. Set the parameter value to true to only retrieve your own broadcasts. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param string id - * The id parameter specifies a comma-separated list of YouTube broadcast IDs that identify the - * broadcasts being retrieved. In a liveBroadcast resource, the id property specifies the - * broadcast's ID. - * @return Google_Service_YouTube_LiveBroadcastListResponse - */ - public function listLiveBroadcasts($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_LiveBroadcastListResponse"); - } - /** - * Changes the status of a YouTube live broadcast and initiates any processes - * associated with the new status. For example, when you transition a - * broadcast's status to testing, YouTube starts to transmit video to that - * broadcast's monitor stream. Before calling this method, you should confirm - * that the value of the status.streamStatus property for the stream bound to - * your broadcast is active. (liveBroadcasts.transition) - * - * @param string $broadcastStatus - * The broadcastStatus parameter identifies the state to which the broadcast is changing. Note that - * to transition a broadcast to either the testing or live state, the status.streamStatus must be - * active for the stream that the broadcast is bound to. - * @param string $id - * The id parameter specifies the unique ID of the broadcast that is transitioning to another - * status. - * @param string $part - * The part parameter specifies a comma-separated list of one or more liveBroadcast resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, contentDetails, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function transition($broadcastStatus, $id, $part, $optParams = array()) - { - $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part); - $params = array_merge($params, $optParams); - return $this->call('transition', array($params), "Google_Service_YouTube_LiveBroadcast"); - } - /** - * Updates a broadcast. For example, you could modify the broadcast settings - * defined in the liveBroadcast resource's contentDetails object. - * (liveBroadcasts.update) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * properties that you can include in the parameter value are id, snippet, contentDetails, and - * status. - Note that this method will override the existing values for all of the mutable - * properties that are contained in any parts that the parameter value specifies. For example, a - * broadcast's privacy status is defined in the status part. As such, if your request is updating a - * private or unlisted broadcast, and the request's part parameter value includes the status part, - * the broadcast's privacy setting will be updated to whatever value the request body specifies. If - * the request body does not specify a value, the existing privacy setting will be removed and the - * broadcast will revert to the default privacy setting. - * @param Google_LiveBroadcast $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @return Google_Service_YouTube_LiveBroadcast - */ - public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_LiveBroadcast"); - } + /** + * Binds a YouTube broadcast to a stream or removes an existing binding between + * a broadcast and a stream. A broadcast can only be bound to one video stream. + * (liveBroadcasts.bind) + * + * @param string $id + * The id parameter specifies the unique ID of the broadcast that is being bound to a video stream. + * @param string $part + * The part parameter specifies a comma-separated list of one or more liveBroadcast resource + * properties that the API response will include. The part names that you can include in the + * parameter value are id, snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @opt_param string streamId + * The streamId parameter specifies the unique ID of the video stream that is being bound to a + * broadcast. If this parameter is omitted, the API will remove any existing binding between the + * broadcast and a video stream. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function bind($id, $part, $optParams = array()) { + $params = array('id' => $id, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Controls the settings for a slate that can be displayed in the broadcast + * stream. (liveBroadcasts.control) + * + * @param string $id + * The id parameter specifies the YouTube live broadcast ID that uniquely identifies the broadcast + * in which the slate is being updated. + * @param string $part + * The part parameter specifies a comma-separated list of one or more liveBroadcast resource + * properties that the API response will include. The part names that you can include in the + * parameter value are id, snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @opt_param bool displaySlate + * The displaySlate parameter specifies whether the slate is being enabled or disabled. + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string offsetTimeMs + * The offsetTimeMs parameter specifies a positive time offset when the specified slate change will + * occur. The value is measured in milliseconds from the beginning of the broadcast's monitor + * stream, which is the time that the testing phase for the broadcast began. Even though it is + * specified in milliseconds, the value is actually an approximation, and YouTube completes the + * requested action as closely as possible to that time. + * If you do not specify a value for this + * parameter, then YouTube performs the action as soon as possible. See the Getting started guide + * for more details. + * Important: You should only specify a value for this parameter if your + * broadcast stream is delayed. + * @opt_param string walltime + * The walltime parameter specifies the wall clock time at which the specified slate change will + * occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function control($id, $part, $optParams = array()) { + $params = array('id' => $id, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('control', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Deletes a broadcast. (liveBroadcasts.delete) + * + * @param string $id + * The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a broadcast. (liveBroadcasts.insert) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * properties that you can include in the parameter value are id, snippet, contentDetails, and + * status. + * @param Google_LiveBroadcast $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Returns a list of YouTube broadcasts that match the API request parameters. + * (liveBroadcasts.listLiveBroadcasts) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more liveBroadcast resource + * properties that the API response will include. The part names that you can include in the + * parameter value are id, snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string broadcastStatus + * The broadcastStatus parameter filters the API response to only include broadcasts with the + * specified status. + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param bool mine + * The mine parameter can be used to instruct the API to only return broadcasts owned by the + * authenticated user. Set the parameter value to true to only retrieve your own broadcasts. + * @opt_param string maxResults + * The maxResults parameter specifies the maximum number of items that should be returned in the + * result set. + * @opt_param string pageToken + * The pageToken parameter identifies a specific page in the result set that should be returned. In + * an API response, the nextPageToken and prevPageToken properties identify other pages that could + * be retrieved. + * @opt_param string id + * The id parameter specifies a comma-separated list of YouTube broadcast IDs that identify the + * broadcasts being retrieved. In a liveBroadcast resource, the id property specifies the + * broadcast's ID. + * @return Google_Service_YouTube_LiveBroadcastListResponse + */ + public function listLiveBroadcasts($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_LiveBroadcastListResponse"); + } + + /** + * Changes the status of a YouTube live broadcast and initiates any processes + * associated with the new status. For example, when you transition a + * broadcast's status to testing, YouTube starts to transmit video to that + * broadcast's monitor stream. Before calling this method, you should confirm + * that the value of the status.streamStatus property for the stream bound to + * your broadcast is active. (liveBroadcasts.transition) + * + * @param string $broadcastStatus + * The broadcastStatus parameter identifies the state to which the broadcast is changing. Note that + * to transition a broadcast to either the testing or live state, the status.streamStatus must be + * active for the stream that the broadcast is bound to. + * @param string $id + * The id parameter specifies the unique ID of the broadcast that is transitioning to another + * status. + * @param string $part + * The part parameter specifies a comma-separated list of one or more liveBroadcast resource + * properties that the API response will include. The part names that you can include in the + * parameter value are id, snippet, contentDetails, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function transition($broadcastStatus, $id, $part, $optParams = array()) { + $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part); + $params = array_merge($params, $optParams); + return $this->call('transition', array($params), "Google_Service_YouTube_LiveBroadcast"); + } + + /** + * Updates a broadcast. For example, you could modify the broadcast settings + * defined in the liveBroadcast resource's contentDetails object. + * (liveBroadcasts.update) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * properties that you can include in the parameter value are id, snippet, contentDetails, and + * status. + * Note that this method will override the existing values for all of the mutable + * properties that are contained in any parts that the parameter value specifies. For example, a + * broadcast's privacy status is defined in the status part. As such, if your request is updating a + * private or unlisted broadcast, and the request's part parameter value includes the status part, + * the broadcast's privacy setting will be updated to whatever value the request body specifies. If + * the request body does not specify a value, the existing privacy setting will be removed and the + * broadcast will revert to the default privacy setting. + * @param Google_LiveBroadcast $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @return Google_Service_YouTube_LiveBroadcast + */ + public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_LiveBroadcast"); + } } /** @@ -2164,199 +2146,197 @@ class Google_Service_YouTube_LiveBroadcasts_Resource extends Google_Service_Reso * $liveStreams = $youtubeService->liveStreams; * */ -class Google_Service_YouTube_LiveStreams_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_LiveStreams_Resource extends Google_Service_Resource { - /** - * Deletes a video stream. (liveStreams.delete) - * - * @param string $id - * The id parameter specifies the YouTube live stream ID for the resource that is being deleted. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Creates a video stream. The stream enables you to send your video to YouTube, - * which can then broadcast the video to your audience. (liveStreams.insert) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * properties that you can include in the parameter value are id, snippet, cdn, and status. - * @param Google_LiveStream $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @return Google_Service_YouTube_LiveStream - */ - public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_LiveStream"); - } - /** - * Returns a list of video streams that match the API request parameters. - * (liveStreams.listLiveStreams) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more liveStream resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, cdn, and status. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param bool mine - * The mine parameter can be used to instruct the API to only return streams owned by the - * authenticated user. Set the parameter value to true to only retrieve your own streams. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. Acceptable values are 0 to 50, inclusive. The default value is 5. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param string id - * The id parameter specifies a comma-separated list of YouTube stream IDs that identify the - * streams being retrieved. In a liveStream resource, the id property specifies the stream's ID. - * @return Google_Service_YouTube_LiveStreamListResponse - */ - public function listLiveStreams($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_LiveStreamListResponse"); - } - /** - * Updates a video stream. If the properties that you want to change cannot be - * updated, then you need to create a new stream with the proper settings. - * (liveStreams.update) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * properties that you can include in the parameter value are id, snippet, cdn, and status. - Note - * that this method will override the existing values for all of the mutable properties that are - * contained in any parts that the parameter value specifies. If the request body does not specify - * a value for a mutable property, the existing value for that property will be removed. - * @param Google_LiveStream $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @return Google_Service_YouTube_LiveStream - */ - public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_LiveStream"); - } + /** + * Deletes a video stream. (liveStreams.delete) + * + * @param string $id + * The id parameter specifies the YouTube live stream ID for the resource that is being deleted. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a video stream. The stream enables you to send your video to YouTube, + * which can then broadcast the video to your audience. (liveStreams.insert) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * properties that you can include in the parameter value are id, snippet, cdn, and status. + * @param Google_LiveStream $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @return Google_Service_YouTube_LiveStream + */ + public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_LiveStream"); + } + + /** + * Returns a list of video streams that match the API request parameters. + * (liveStreams.listLiveStreams) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more liveStream resource + * properties that the API response will include. The part names that you can include in the + * parameter value are id, snippet, cdn, and status. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param bool mine + * The mine parameter can be used to instruct the API to only return streams owned by the + * authenticated user. Set the parameter value to true to only retrieve your own streams. + * @opt_param string maxResults + * The maxResults parameter specifies the maximum number of items that should be returned in the + * result set. Acceptable values are 0 to 50, inclusive. The default value is 5. + * @opt_param string pageToken + * The pageToken parameter identifies a specific page in the result set that should be returned. In + * an API response, the nextPageToken and prevPageToken properties identify other pages that could + * be retrieved. + * @opt_param string id + * The id parameter specifies a comma-separated list of YouTube stream IDs that identify the + * streams being retrieved. In a liveStream resource, the id property specifies the stream's ID. + * @return Google_Service_YouTube_LiveStreamListResponse + */ + public function listLiveStreams($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_LiveStreamListResponse"); + } + + /** + * Updates a video stream. If the properties that you want to change cannot be + * updated, then you need to create a new stream with the proper settings. + * (liveStreams.update) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * properties that you can include in the parameter value are id, snippet, cdn, and status. + * Note + * that this method will override the existing values for all of the mutable properties that are + * contained in any parts that the parameter value specifies. If the request body does not specify + * a value for a mutable property, the existing value for that property will be removed. + * @param Google_LiveStream $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @return Google_Service_YouTube_LiveStream + */ + public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_LiveStream"); + } } /** @@ -2367,131 +2347,129 @@ class Google_Service_YouTube_LiveStreams_Resource extends Google_Service_Resourc * $playlistItems = $youtubeService->playlistItems; * */ -class Google_Service_YouTube_PlaylistItems_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_PlaylistItems_Resource extends Google_Service_Resource { - /** - * Deletes a playlist item. (playlistItems.delete) - * - * @param string $id - * The id parameter specifies the YouTube playlist item ID for the playlist item that is being - * deleted. In a playlistItem resource, the id property specifies the playlist item's ID. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Adds a resource to a playlist. (playlistItems.insert) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet, contentDetails, and status. - * @param Google_PlaylistItem $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @return Google_Service_YouTube_PlaylistItem - */ - public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_PlaylistItem"); - } - /** - * Returns a collection of playlist items that match the API request parameters. - * You can retrieve all of the playlist items in a specified playlist or - * retrieve one or more playlist items by their unique IDs. - * (playlistItems.listPlaylistItems) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more playlistItem resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, contentDetails, and status. - If the parameter identifies a - * property that contains child properties, the child properties will be included in the response. - * For example, in a playlistItem resource, the snippet property contains numerous fields, - * including the title, description, position, and resourceId properties. As such, if you set - * part=snippet, the API response will contain all of those properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string playlistId - * The playlistId parameter specifies the unique ID of the playlist for which you want to retrieve - * playlist items. Note that even though this is an optional parameter, every request to retrieve - * playlist items must specify a value for either the id parameter or the playlistId parameter. - * @opt_param string videoId - * The videoId parameter specifies that the request should return only the playlist items that - * contain the specified video. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param string id - * The id parameter specifies a comma-separated list of one or more unique playlist item IDs. - * @return Google_Service_YouTube_PlaylistItemListResponse - */ - public function listPlaylistItems($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_PlaylistItemListResponse"); - } - /** - * Modifies a playlist item. For example, you could update the item's position - * in the playlist. (playlistItems.update) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet, contentDetails, and status. - Note - * that this method will override the existing values for all of the mutable properties that are - * contained in any parts that the parameter value specifies. For example, a playlist item can - * specify a start time and end time, which identify the times portion of the video that should - * play when users watch the video in the playlist. If your request is updating a playlist item - * that sets these values, and the request's part parameter value includes the contentDetails part, - * the playlist item's start and end times will be updated to whatever value the request body - * specifies. If the request body does not specify values, the existing start and end times will be - * removed and replaced with the default settings. - * @param Google_PlaylistItem $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_PlaylistItem - */ - public function update($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_PlaylistItem"); - } + /** + * Deletes a playlist item. (playlistItems.delete) + * + * @param string $id + * The id parameter specifies the YouTube playlist item ID for the playlist item that is being + * deleted. In a playlistItem resource, the id property specifies the playlist item's ID. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a resource to a playlist. (playlistItems.insert) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * names that you can include in the parameter value are snippet, contentDetails, and status. + * @param Google_PlaylistItem $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @return Google_Service_YouTube_PlaylistItem + */ + public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_PlaylistItem"); + } + + /** + * Returns a collection of playlist items that match the API request parameters. + * You can retrieve all of the playlist items in a specified playlist or + * retrieve one or more playlist items by their unique IDs. + * (playlistItems.listPlaylistItems) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more playlistItem resource + * properties that the API response will include. The part names that you can include in the + * parameter value are id, snippet, contentDetails, and status. + * If the parameter identifies a + * property that contains child properties, the child properties will be included in the response. + * For example, in a playlistItem resource, the snippet property contains numerous fields, + * including the title, description, position, and resourceId properties. As such, if you set + * part=snippet, the API response will contain all of those properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @opt_param string playlistId + * The playlistId parameter specifies the unique ID of the playlist for which you want to retrieve + * playlist items. Note that even though this is an optional parameter, every request to retrieve + * playlist items must specify a value for either the id parameter or the playlistId parameter. + * @opt_param string videoId + * The videoId parameter specifies that the request should return only the playlist items that + * contain the specified video. + * @opt_param string maxResults + * The maxResults parameter specifies the maximum number of items that should be returned in the + * result set. + * @opt_param string pageToken + * The pageToken parameter identifies a specific page in the result set that should be returned. In + * an API response, the nextPageToken and prevPageToken properties identify other pages that could + * be retrieved. + * @opt_param string id + * The id parameter specifies a comma-separated list of one or more unique playlist item IDs. + * @return Google_Service_YouTube_PlaylistItemListResponse + */ + public function listPlaylistItems($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_PlaylistItemListResponse"); + } + + /** + * Modifies a playlist item. For example, you could update the item's position + * in the playlist. (playlistItems.update) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * names that you can include in the parameter value are snippet, contentDetails, and status. + * Note + * that this method will override the existing values for all of the mutable properties that are + * contained in any parts that the parameter value specifies. For example, a playlist item can + * specify a start time and end time, which identify the times portion of the video that should + * play when users watch the video in the playlist. If your request is updating a playlist item + * that sets these values, and the request's part parameter value includes the contentDetails part, + * the playlist item's start and end times will be updated to whatever value the request body + * specifies. If the request body does not specify values, the existing start and end times will be + * removed and replaced with the default settings. + * @param Google_PlaylistItem $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_PlaylistItem + */ + public function update($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_PlaylistItem"); + } } /** @@ -2502,182 +2480,180 @@ class Google_Service_YouTube_PlaylistItems_Resource extends Google_Service_Resou * $playlists = $youtubeService->playlists; * */ -class Google_Service_YouTube_Playlists_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_Playlists_Resource extends Google_Service_Resource { - /** - * Deletes a playlist. (playlists.delete) - * - * @param string $id - * The id parameter specifies the YouTube playlist ID for the playlist that is being deleted. In a - * playlist resource, the id property specifies the playlist's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Creates a playlist. (playlists.insert) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and status. - * @param Google_Playlist $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @return Google_Service_YouTube_Playlist - */ - public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Playlist"); - } - /** - * Returns a collection of playlists that match the API request parameters. For - * example, you can retrieve all playlists that the authenticated user owns, or - * you can retrieve one or more playlists by their unique IDs. - * (playlists.listPlaylists) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more playlist resource properties - * that the API response will include. The part names that you can include in the parameter value - * are id, snippet, status, and contentDetails. - If the parameter identifies a property that - * contains child properties, the child properties will be included in the response. For example, - * in a playlist resource, the snippet property contains properties like author, title, - * description, tags, and timeCreated. As such, if you set part=snippet, the API response will - * contain all of those properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string channelId - * This value indicates that the API should only return the specified channel's playlists. - * @opt_param bool mine - * Set this parameter's value to true to instruct the API to only return playlists owned by the - * authenticated user. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube playlist ID(s) for the - * resource(s) that are being retrieved. In a playlist resource, the id property specifies the - * playlist's YouTube playlist ID. - * @return Google_Service_YouTube_PlaylistListResponse - */ - public function listPlaylists($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse"); - } - /** - * Modifies a playlist. For example, you could change a playlist's title, - * description, or privacy status. (playlists.update) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and status. - Note that this method - * will override the existing values for all of the mutable properties that are contained in any - * parts that the parameter value specifies. For example, a playlist's privacy setting is contained - * in the status part. As such, if your request is updating a private playlist, and the request's - * part parameter value includes the status part, the playlist's privacy setting will be updated to - * whatever value the request body specifies. If the request body does not specify a value, the - * existing privacy setting will be removed and the playlist will revert to the default privacy - * setting. - * @param Google_Playlist $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @return Google_Service_YouTube_Playlist - */ - public function update($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Playlist"); - } + /** + * Deletes a playlist. (playlists.delete) + * + * @param string $id + * The id parameter specifies the YouTube playlist ID for the playlist that is being deleted. In a + * playlist resource, the id property specifies the playlist's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a playlist. (playlists.insert) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * names that you can include in the parameter value are snippet and status. + * @param Google_Playlist $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @return Google_Service_YouTube_Playlist + */ + public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Playlist"); + } + + /** + * Returns a collection of playlists that match the API request parameters. For + * example, you can retrieve all playlists that the authenticated user owns, or + * you can retrieve one or more playlists by their unique IDs. + * (playlists.listPlaylists) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more playlist resource properties + * that the API response will include. The part names that you can include in the parameter value + * are id, snippet, status, and contentDetails. + * If the parameter identifies a property that + * contains child properties, the child properties will be included in the response. For example, + * in a playlist resource, the snippet property contains properties like author, title, + * description, tags, and timeCreated. As such, if you set part=snippet, the API response will + * contain all of those properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string channelId + * This value indicates that the API should only return the specified channel's playlists. + * @opt_param bool mine + * Set this parameter's value to true to instruct the API to only return playlists owned by the + * authenticated user. + * @opt_param string maxResults + * The maxResults parameter specifies the maximum number of items that should be returned in the + * result set. + * @opt_param string pageToken + * The pageToken parameter identifies a specific page in the result set that should be returned. In + * an API response, the nextPageToken and prevPageToken properties identify other pages that could + * be retrieved. + * @opt_param string id + * The id parameter specifies a comma-separated list of the YouTube playlist ID(s) for the + * resource(s) that are being retrieved. In a playlist resource, the id property specifies the + * playlist's YouTube playlist ID. + * @return Google_Service_YouTube_PlaylistListResponse + */ + public function listPlaylists($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse"); + } + + /** + * Modifies a playlist. For example, you could change a playlist's title, + * description, or privacy status. (playlists.update) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * names that you can include in the parameter value are snippet and status. + * Note that this method + * will override the existing values for all of the mutable properties that are contained in any + * parts that the parameter value specifies. For example, a playlist's privacy setting is contained + * in the status part. As such, if your request is updating a private playlist, and the request's + * part parameter value includes the status part, the playlist's privacy setting will be updated to + * whatever value the request body specifies. If the request body does not specify a value, the + * existing privacy setting will be removed and the playlist will revert to the default privacy + * setting. + * @param Google_Playlist $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @return Google_Service_YouTube_Playlist + */ + public function update($part, Google_Service_YouTube_Playlist $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Playlist"); + } } /** @@ -2688,132 +2664,130 @@ class Google_Service_YouTube_Playlists_Resource extends Google_Service_Resource * $search = $youtubeService->search; * */ -class Google_Service_YouTube_Search_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_Search_Resource extends Google_Service_Resource { - /** - * Returns a collection of search results that match the query parameters - * specified in the API request. By default, a search result set identifies - * matching video, channel, and playlist resources, but you can also configure - * queries to only retrieve a specific type of resource. (search.listSearch) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more search resource properties - * that the API response will include. The part names that you can include in the parameter value - * are id and snippet. - If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a search result, the snippet - * property contains other properties that identify the result's title, description, and so forth. - * If you set part=snippet, the API response will also contain all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param string eventType - * The eventType parameter restricts a search to broadcast events. - * @opt_param string channelId - * The channelId parameter indicates that the API response should only contain resources created by - * the channel - * @opt_param string videoSyndicated - * The videoSyndicated parameter lets you to restrict a search to only videos that can be played - * outside youtube.com. - * @opt_param string channelType - * The channelType parameter lets you restrict a search to a particular type of channel. - * @opt_param string videoCaption - * The videoCaption parameter indicates whether the API should filter video search results based on - * whether they have captions. - * @opt_param string publishedAfter - * The publishedAfter parameter indicates that the API response should only contain resources - * created after the specified time. The value is an RFC 3339 formatted date-time value - * (1970-01-01T00:00:00Z). - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param bool forContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The forContentOwner - * parameter restricts the search to only retrieve resources owned by the content owner specified - * by the onBehalfOfContentOwner parameter. The user must be authenticated using a CMS account - * linked to the specified content owner and onBehalfOfContentOwner must be provided. - * @opt_param string regionCode - * The regionCode parameter instructs the API to return search results for the specified country. - * The parameter value is an ISO 3166-1 alpha-2 country code. - * @opt_param string location - * The location parameter restricts a search to videos that have a geographical location specified - * in their metadata. The value is a string that specifies geographic latitude/longitude - * coordinates e.g. (37.42307,-122.08427) - * @opt_param string locationRadius - * The locationRadius, in conjunction with the location parameter, defines a geographic area. If - * the geographic coordinates associated with a video fall within that area, then the video may be - * included in search results. This parameter value must be a floating point number followed by a - * measurement unit. Valid measurement units are m, km, ft, and mi. For example, valid parameter - * values include 1500m, 5km, 10000ft, and 0.75mi. The API does not support locationRadius - * parameter values larger than 1000 kilometers. - * @opt_param string videoType - * The videoType parameter lets you restrict a search to a particular type of videos. - * @opt_param string type - * The type parameter restricts a search query to only retrieve a particular type of resource. The - * value is a comma-separated list of resource types. - * @opt_param string topicId - * The topicId parameter indicates that the API response should only contain resources associated - * with the specified topic. The value identifies a Freebase topic ID. - * @opt_param string publishedBefore - * The publishedBefore parameter indicates that the API response should only contain resources - * created before the specified time. The value is an RFC 3339 formatted date-time value - * (1970-01-01T00:00:00Z). - * @opt_param string videoDimension - * The videoDimension parameter lets you restrict a search to only retrieve 2D or 3D videos. - * @opt_param string videoLicense - * The videoLicense parameter filters search results to only include videos with a particular - * license. YouTube lets video uploaders choose to attach either the Creative Commons license or - * the standard YouTube license to each of their videos. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string relatedToVideoId - * The relatedToVideoId parameter retrieves a list of videos that are related to the video that the - * parameter value identifies. The parameter value must be set to a YouTube video ID and, if you - * are using this parameter, the type parameter must be set to video. - * @opt_param string videoDefinition - * The videoDefinition parameter lets you restrict a search to only include either high definition - * (HD) or standard definition (SD) videos. HD videos are available for playback in at least 720p, - * though higher resolutions, like 1080p, might also be available. - * @opt_param string videoDuration - * The videoDuration parameter filters video search results based on their duration. - * @opt_param bool forMine - * The forMine parameter restricts the search to only retrieve videos owned by the authenticated - * user. If you set this parameter to true, then the type parameter's value must also be set to - * video. - * @opt_param string q - * The q parameter specifies the query term to search for. - * @opt_param string safeSearch - * The safeSearch parameter indicates whether the search results should include restricted content - * as well as standard content. - * @opt_param string videoEmbeddable - * The videoEmbeddable parameter lets you to restrict a search to only videos that can be embedded - * into a webpage. - * @opt_param string videoCategoryId - * The videoCategoryId parameter filters video search results based on their category. - * @opt_param string order - * The order parameter specifies the method that will be used to order resources in the API - * response. - * @return Google_Service_YouTube_SearchListResponse - */ - public function listSearch($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_SearchListResponse"); - } + /** + * Returns a collection of search results that match the query parameters + * specified in the API request. By default, a search result set identifies + * matching video, channel, and playlist resources, but you can also configure + * queries to only retrieve a specific type of resource. (search.listSearch) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more search resource properties + * that the API response will include. The part names that you can include in the parameter value + * are id and snippet. + * If the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a search result, the snippet + * property contains other properties that identify the result's title, description, and so forth. + * If you set part=snippet, the API response will also contain all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param string eventType + * The eventType parameter restricts a search to broadcast events. + * @opt_param string channelId + * The channelId parameter indicates that the API response should only contain resources created by + * the channel + * @opt_param string videoSyndicated + * The videoSyndicated parameter lets you to restrict a search to only videos that can be played + * outside youtube.com. + * @opt_param string channelType + * The channelType parameter lets you restrict a search to a particular type of channel. + * @opt_param string videoCaption + * The videoCaption parameter indicates whether the API should filter video search results based on + * whether they have captions. + * @opt_param string publishedAfter + * The publishedAfter parameter indicates that the API response should only contain resources + * created after the specified time. The value is an RFC 3339 formatted date-time value + * (1970-01-01T00:00:00Z). + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @opt_param string pageToken + * The pageToken parameter identifies a specific page in the result set that should be returned. In + * an API response, the nextPageToken and prevPageToken properties identify other pages that could + * be retrieved. + * @opt_param bool forContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The forContentOwner + * parameter restricts the search to only retrieve resources owned by the content owner specified + * by the onBehalfOfContentOwner parameter. The user must be authenticated using a CMS account + * linked to the specified content owner and onBehalfOfContentOwner must be provided. + * @opt_param string regionCode + * The regionCode parameter instructs the API to return search results for the specified country. + * The parameter value is an ISO 3166-1 alpha-2 country code. + * @opt_param string location + * The location parameter restricts a search to videos that have a geographical location specified + * in their metadata. The value is a string that specifies geographic latitude/longitude + * coordinates e.g. (37.42307,-122.08427) + * @opt_param string locationRadius + * The locationRadius, in conjunction with the location parameter, defines a geographic area. If + * the geographic coordinates associated with a video fall within that area, then the video may be + * included in search results. This parameter value must be a floating point number followed by a + * measurement unit. Valid measurement units are m, km, ft, and mi. For example, valid parameter + * values include 1500m, 5km, 10000ft, and 0.75mi. The API does not support locationRadius + * parameter values larger than 1000 kilometers. + * @opt_param string videoType + * The videoType parameter lets you restrict a search to a particular type of videos. + * @opt_param string type + * The type parameter restricts a search query to only retrieve a particular type of resource. The + * value is a comma-separated list of resource types. + * @opt_param string topicId + * The topicId parameter indicates that the API response should only contain resources associated + * with the specified topic. The value identifies a Freebase topic ID. + * @opt_param string publishedBefore + * The publishedBefore parameter indicates that the API response should only contain resources + * created before the specified time. The value is an RFC 3339 formatted date-time value + * (1970-01-01T00:00:00Z). + * @opt_param string videoDimension + * The videoDimension parameter lets you restrict a search to only retrieve 2D or 3D videos. + * @opt_param string videoLicense + * The videoLicense parameter filters search results to only include videos with a particular + * license. YouTube lets video uploaders choose to attach either the Creative Commons license or + * the standard YouTube license to each of their videos. + * @opt_param string maxResults + * The maxResults parameter specifies the maximum number of items that should be returned in the + * result set. + * @opt_param string relatedToVideoId + * The relatedToVideoId parameter retrieves a list of videos that are related to the video that the + * parameter value identifies. The parameter value must be set to a YouTube video ID and, if you + * are using this parameter, the type parameter must be set to video. + * @opt_param string videoDefinition + * The videoDefinition parameter lets you restrict a search to only include either high definition + * (HD) or standard definition (SD) videos. HD videos are available for playback in at least 720p, + * though higher resolutions, like 1080p, might also be available. + * @opt_param string videoDuration + * The videoDuration parameter filters video search results based on their duration. + * @opt_param bool forMine + * The forMine parameter restricts the search to only retrieve videos owned by the authenticated + * user. If you set this parameter to true, then the type parameter's value must also be set to + * video. + * @opt_param string q + * The q parameter specifies the query term to search for. + * @opt_param string safeSearch + * The safeSearch parameter indicates whether the search results should include restricted content + * as well as standard content. + * @opt_param string videoEmbeddable + * The videoEmbeddable parameter lets you to restrict a search to only videos that can be embedded + * into a webpage. + * @opt_param string videoCategoryId + * The videoCategoryId parameter filters video search results based on their category. + * @opt_param string order + * The order parameter specifies the method that will be used to order resources in the API + * response. + * @return Google_Service_YouTube_SearchListResponse + */ + public function listSearch($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_SearchListResponse"); + } } /** @@ -2824,115 +2798,113 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * $subscriptions = $youtubeService->subscriptions; * */ -class Google_Service_YouTube_Subscriptions_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_Subscriptions_Resource extends Google_Service_Resource { - /** - * Deletes a subscription. (subscriptions.delete) - * - * @param string $id - * The id parameter specifies the YouTube subscription ID for the resource that is being deleted. - * In a subscription resource, the id property specifies the YouTube subscription ID. - * @param array $optParams Optional parameters. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Adds a subscription for the authenticated user's channel. - * (subscriptions.insert) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet and contentDetails. - * @param Google_Subscription $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_YouTube_Subscription - */ - public function insert($part, Google_Service_YouTube_Subscription $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Subscription"); - } - /** - * Returns subscription resources that match the API request criteria. - * (subscriptions.listSubscriptions) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more subscription resource - * properties that the API response will include. The part names that you can include in the - * parameter value are id, snippet, and contentDetails. - If the parameter identifies a property - * that contains child properties, the child properties will be included in the response. For - * example, in a subscription resource, the snippet property contains other properties, such as a - * display title for the subscription. If you set part=snippet, the API response will also contain - * all of those nested properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param string channelId - * The channelId parameter specifies a YouTube channel ID. The API will only return that channel's - * subscriptions. - * @opt_param bool mine - * Set this parameter's value to true to retrieve a feed of the authenticated user's subscriptions. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - * @opt_param string forChannelId - * The forChannelId parameter specifies a comma-separated list of channel IDs. The API response - * will then only contain subscriptions matching those channels. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - * @opt_param bool mySubscribers - * Set this parameter's value to true to retrieve a feed of the subscribers of the authenticated - * user. - * @opt_param string order - * The order parameter specifies the method that will be used to sort resources in the API - * response. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube subscription ID(s) for the - * resource(s) that are being retrieved. In a subscription resource, the id property specifies the - * YouTube subscription ID. - * @return Google_Service_YouTube_SubscriptionListResponse - */ - public function listSubscriptions($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_SubscriptionListResponse"); - } + /** + * Deletes a subscription. (subscriptions.delete) + * + * @param string $id + * The id parameter specifies the YouTube subscription ID for the resource that is being deleted. + * In a subscription resource, the id property specifies the YouTube subscription ID. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Adds a subscription for the authenticated user's channel. + * (subscriptions.insert) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * names that you can include in the parameter value are snippet and contentDetails. + * @param Google_Subscription $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Subscription + */ + public function insert($part, Google_Service_YouTube_Subscription $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Subscription"); + } + + /** + * Returns subscription resources that match the API request criteria. + * (subscriptions.listSubscriptions) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more subscription resource + * properties that the API response will include. The part names that you can include in the + * parameter value are id, snippet, and contentDetails. + * If the parameter identifies a property + * that contains child properties, the child properties will be included in the response. For + * example, in a subscription resource, the snippet property contains other properties, such as a + * display title for the subscription. If you set part=snippet, the API response will also contain + * all of those nested properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param string channelId + * The channelId parameter specifies a YouTube channel ID. The API will only return that channel's + * subscriptions. + * @opt_param bool mine + * Set this parameter's value to true to retrieve a feed of the authenticated user's subscriptions. + * @opt_param string maxResults + * The maxResults parameter specifies the maximum number of items that should be returned in the + * result set. + * @opt_param string forChannelId + * The forChannelId parameter specifies a comma-separated list of channel IDs. The API response + * will then only contain subscriptions matching those channels. + * @opt_param string pageToken + * The pageToken parameter identifies a specific page in the result set that should be returned. In + * an API response, the nextPageToken and prevPageToken properties identify other pages that could + * be retrieved. + * @opt_param bool mySubscribers + * Set this parameter's value to true to retrieve a feed of the subscribers of the authenticated + * user. + * @opt_param string order + * The order parameter specifies the method that will be used to sort resources in the API + * response. + * @opt_param string id + * The id parameter specifies a comma-separated list of the YouTube subscription ID(s) for the + * resource(s) that are being retrieved. In a subscription resource, the id property specifies the + * YouTube subscription ID. + * @return Google_Service_YouTube_SubscriptionListResponse + */ + public function listSubscriptions($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_SubscriptionListResponse"); + } } /** @@ -2943,33 +2915,31 @@ class Google_Service_YouTube_Subscriptions_Resource extends Google_Service_Resou * $thumbnails = $youtubeService->thumbnails; * */ -class Google_Service_YouTube_Thumbnails_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_Thumbnails_Resource extends Google_Service_Resource { - /** - * Uploads a custom video thumbnail to YouTube and sets it for a video. - * (thumbnails.set) - * - * @param string $videoId - * The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being - * provided. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf - * of the content owner specified in the parameter value. This parameter is intended for YouTube - * content partners that own and manage many different YouTube channels. It allows content owners - * to authenticate once and get access to all their video and channel data, without having to - * provide authentication credentials for each individual channel. The actual CMS account that the - * user authenticates with needs to be linked to the specified YouTube content owner. - * @return Google_Service_YouTube_ThumbnailSetResponse - */ - public function set($videoId, $optParams = array()) - { - $params = array('videoId' => $videoId); - $params = array_merge($params, $optParams); - return $this->call('set', array($params), "Google_Service_YouTube_ThumbnailSetResponse"); - } + /** + * Uploads a custom video thumbnail to YouTube and sets it for a video. + * (thumbnails.set) + * + * @param string $videoId + * The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being + * provided. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf + * of the content owner specified in the parameter value. This parameter is intended for YouTube + * content partners that own and manage many different YouTube channels. It allows content owners + * to authenticate once and get access to all their video and channel data, without having to + * provide authentication credentials for each individual channel. The actual CMS account that the + * user authenticates with needs to be linked to the specified YouTube content owner. + * @return Google_Service_YouTube_ThumbnailSetResponse + */ + public function set($videoId, $optParams = array()) { + $params = array('videoId' => $videoId); + $params = array_merge($params, $optParams); + return $this->call('set', array($params), "Google_Service_YouTube_ThumbnailSetResponse"); + } } /** @@ -2980,34 +2950,32 @@ class Google_Service_YouTube_Thumbnails_Resource extends Google_Service_Resource * $videoCategories = $youtubeService->videoCategories; * */ -class Google_Service_YouTube_VideoCategories_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_VideoCategories_Resource extends Google_Service_Resource { - /** - * Returns a list of categories that can be associated with YouTube videos. - * (videoCategories.listVideoCategories) - * - * @param string $part - * The part parameter specifies the videoCategory resource parts that the API response will - * include. Supported values are id and snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string regionCode - * The regionCode parameter instructs the API to return the list of video categories available in - * the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. - * @opt_param string id - * The id parameter specifies a comma-separated list of video category IDs for the resources that - * you are retrieving. - * @opt_param string hl - * The hl parameter specifies the language that should be used for text values in the API response. - * @return Google_Service_YouTube_VideoCategoryListResponse - */ - public function listVideoCategories($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_VideoCategoryListResponse"); - } + /** + * Returns a list of categories that can be associated with YouTube videos. + * (videoCategories.listVideoCategories) + * + * @param string $part + * The part parameter specifies the videoCategory resource parts that the API response will + * include. Supported values are id and snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string regionCode + * The regionCode parameter instructs the API to return the list of video categories available in + * the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. + * @opt_param string id + * The id parameter specifies a comma-separated list of video category IDs for the resources that + * you are retrieving. + * @opt_param string hl + * The hl parameter specifies the language that should be used for text values in the API response. + * @return Google_Service_YouTube_VideoCategoryListResponse + */ + public function listVideoCategories($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_VideoCategoryListResponse"); + } } /** @@ -3018,256 +2986,254 @@ class Google_Service_YouTube_VideoCategories_Resource extends Google_Service_Res * $videos = $youtubeService->videos; * */ -class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource -{ +class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource { - /** - * Deletes a YouTube video. (videos.delete) - * - * @param string $id - * The id parameter specifies the YouTube video ID for the resource that is being deleted. In a - * video resource, the id property specifies the video's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The actual CMS account that the user authenticates with must be linked to - * the specified YouTube content owner. - */ - public function delete($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Retrieves the ratings that the authorized user gave to a list of specified - * videos. (videos.getRating) - * - * @param string $id - * The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) - * for which you are retrieving rating data. In a video resource, the id property specifies the - * video's ID. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @return Google_Service_YouTube_VideoGetRatingResponse - */ - public function getRating($id, $optParams = array()) - { - $params = array('id' => $id); - $params = array_merge($params, $optParams); - return $this->call('getRating', array($params), "Google_Service_YouTube_VideoGetRatingResponse"); - } - /** - * Uploads a video to YouTube and optionally sets the video's metadata. - * (videos.insert) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet, contentDetails, fileDetails, - * liveStreamingDetails, player, processingDetails, recordingDetails, statistics, status, - * suggestions, and topicDetails. However, not all of those parts contain properties that can be - * set when setting or updating a video's metadata. For example, the statistics object encapsulates - * statistics that YouTube calculates for a video and does not contain values that you can set or - * modify. If the parameter value specifies a part that does not contain mutable values, that part - * will still be included in the API response. - * @param Google_Video $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param bool stabilize - * The stabilize parameter indicates whether YouTube should adjust the video to remove shaky camera - * motions. - * @opt_param string onBehalfOfContentOwnerChannel - * This parameter can only be used in a properly authorized request. Note: This parameter is - * intended exclusively for YouTube content partners. - The onBehalfOfContentOwnerChannel parameter - * specifies the YouTube channel ID of the channel to which a video is being added. This parameter - * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it - * can only be used in conjunction with that parameter. In addition, the request must be authorized - * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner - * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value - * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter - * specifies. - This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and perform actions on - * behalf of the channel specified in the parameter value, without having to provide authentication - * credentials for each separate channel. - * @opt_param bool notifySubscribers - * The notifySubscribers parameter indicates whether YouTube should send notification to - * subscribers about the inserted video. - * @opt_param bool autoLevels - * The autoLevels parameter indicates whether YouTube should automatically enhance the video's - * lighting and color. - * @return Google_Service_YouTube_Video - */ - public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_YouTube_Video"); - } - /** - * Returns a list of videos that match the API request parameters. - * (videos.listVideos) - * - * @param string $part - * The part parameter specifies a comma-separated list of one or more video resource properties - * that the API response will include. The part names that you can include in the parameter value - * are id, snippet, contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, - * recordingDetails, statistics, status, suggestions, and topicDetails. - If the parameter - * identifies a property that contains child properties, the child properties will be included in - * the response. For example, in a video resource, the snippet property contains the channelId, - * title, description, tags, and categoryId properties. As such, if you set part=snippet, the API - * response will contain all of those properties. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - * @opt_param string regionCode - * The regionCode parameter instructs the API to select a video chart available in the specified - * region. This parameter can only be used in conjunction with the chart parameter. The parameter - * value is an ISO 3166-1 alpha-2 country code. - * @opt_param string locale - * DEPRECATED - * @opt_param string videoCategoryId - * The videoCategoryId parameter identifies the video category for which the chart should be - * retrieved. This parameter can only be used in conjunction with the chart parameter. By default, - * charts are not restricted to a particular category. - * @opt_param string chart - * The chart parameter identifies the chart that you want to retrieve. - * @opt_param string maxResults - * The maxResults parameter specifies the maximum number of items that should be returned in the - * result set. - Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id parameter. - * @opt_param string pageToken - * The pageToken parameter identifies a specific page in the result set that should be returned. In - * an API response, the nextPageToken and prevPageToken properties identify other pages that could - * be retrieved. - Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id parameter. - * @opt_param string myRating - * Set this parameter's value to like or dislike to instruct the API to only return videos liked or - * disliked by the authenticated user. - * @opt_param string id - * The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) - * that are being retrieved. In a video resource, the id property specifies the video's ID. - * @return Google_Service_YouTube_VideoListResponse - */ - public function listVideos($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_VideoListResponse"); - } - /** - * Add a like or dislike rating to a video or remove a rating from a video. - * (videos.rate) - * - * @param string $id - * The id parameter specifies the YouTube video ID of the video that is being rated or having its - * rating removed. - * @param string $rating - * Specifies the rating to record. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The CMS account that the user authenticates with must be linked to the - * specified YouTube content owner. - */ - public function rate($id, $rating, $optParams = array()) - { - $params = array('id' => $id, 'rating' => $rating); - $params = array_merge($params, $optParams); - return $this->call('rate', array($params)); - } - /** - * Updates a video's metadata. (videos.update) - * - * @param string $part - * The part parameter serves two purposes in this operation. It identifies the properties that the - * write operation will set as well as the properties that the API response will include. - The part - * names that you can include in the parameter value are snippet, contentDetails, fileDetails, - * liveStreamingDetails, player, processingDetails, recordingDetails, statistics, status, - * suggestions, and topicDetails. - Note that this method will override the existing values for all - * of the mutable properties that are contained in any parts that the parameter value specifies. - * For example, a video's privacy setting is contained in the status part. As such, if your request - * is updating a private video, and the request's part parameter value includes the status part, - * the video's privacy setting will be updated to whatever value the request body specifies. If the - * request body does not specify a value, the existing privacy setting will be removed and the - * video will revert to the default privacy setting. - In addition, not all of those parts contain - * properties that can be set when setting or updating a video's metadata. For example, the - * statistics object encapsulates statistics that YouTube calculates for a video and does not - * contain values that you can set or modify. If the parameter value specifies a part that does not - * contain mutable values, that part will still be included in the API response. - * @param Google_Video $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * Note: This parameter is intended exclusively for YouTube content partners. - The - * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify - * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter - * value. This parameter is intended for YouTube content partners that own and manage many - * different YouTube channels. It allows content owners to authenticate once and get access to all - * their video and channel data, without having to provide authentication credentials for each - * individual channel. The actual CMS account that the user authenticates with must be linked to - * the specified YouTube content owner. - * @return Google_Service_YouTube_Video - */ - public function update($part, Google_Service_YouTube_Video $postBody, $optParams = array()) - { - $params = array('part' => $part, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_YouTube_Video"); - } + /** + * Deletes a YouTube video. (videos.delete) + * + * @param string $id + * The id parameter specifies the YouTube video ID for the resource that is being deleted. In a + * video resource, the id property specifies the video's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The actual CMS account that the user authenticates with must be linked to + * the specified YouTube content owner. + */ + public function delete($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the ratings that the authorized user gave to a list of specified + * videos. (videos.getRating) + * + * @param string $id + * The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) + * for which you are retrieving rating data. In a video resource, the id property specifies the + * video's ID. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @return Google_Service_YouTube_VideoGetRatingResponse + */ + public function getRating($id, $optParams = array()) { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('getRating', array($params), "Google_Service_YouTube_VideoGetRatingResponse"); + } + + /** + * Uploads a video to YouTube and optionally sets the video's metadata. + * (videos.insert) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * names that you can include in the parameter value are snippet, contentDetails, fileDetails, + * liveStreamingDetails, player, processingDetails, recordingDetails, statistics, status, + * suggestions, and topicDetails. However, not all of those parts contain properties that can be + * set when setting or updating a video's metadata. For example, the statistics object encapsulates + * statistics that YouTube calculates for a video and does not contain values that you can set or + * modify. If the parameter value specifies a part that does not contain mutable values, that part + * will still be included in the API response. + * @param Google_Video $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @opt_param bool stabilize + * The stabilize parameter indicates whether YouTube should adjust the video to remove shaky camera + * motions. + * @opt_param string onBehalfOfContentOwnerChannel + * This parameter can only be used in a properly authorized request. Note: This parameter is + * intended exclusively for YouTube content partners. + * The onBehalfOfContentOwnerChannel parameter + * specifies the YouTube channel ID of the channel to which a video is being added. This parameter + * is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it + * can only be used in conjunction with that parameter. In addition, the request must be authorized + * using a CMS account that is linked to the content owner that the onBehalfOfContentOwner + * parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value + * specifies must be linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. + * This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and perform actions on + * behalf of the channel specified in the parameter value, without having to provide authentication + * credentials for each separate channel. + * @opt_param bool notifySubscribers + * The notifySubscribers parameter indicates whether YouTube should send notification to + * subscribers about the inserted video. + * @opt_param bool autoLevels + * The autoLevels parameter indicates whether YouTube should automatically enhance the video's + * lighting and color. + * @return Google_Service_YouTube_Video + */ + public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Video"); + } + + /** + * Returns a list of videos that match the API request parameters. + * (videos.listVideos) + * + * @param string $part + * The part parameter specifies a comma-separated list of one or more video resource properties + * that the API response will include. The part names that you can include in the parameter value + * are id, snippet, contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, + * recordingDetails, statistics, status, suggestions, and topicDetails. + * If the parameter + * identifies a property that contains child properties, the child properties will be included in + * the response. For example, in a video resource, the snippet property contains the channelId, + * title, description, tags, and categoryId properties. As such, if you set part=snippet, the API + * response will contain all of those properties. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + * @opt_param string regionCode + * The regionCode parameter instructs the API to select a video chart available in the specified + * region. This parameter can only be used in conjunction with the chart parameter. The parameter + * value is an ISO 3166-1 alpha-2 country code. + * @opt_param string locale + * DEPRECATED + * @opt_param string videoCategoryId + * The videoCategoryId parameter identifies the video category for which the chart should be + * retrieved. This parameter can only be used in conjunction with the chart parameter. By default, + * charts are not restricted to a particular category. + * @opt_param string chart + * The chart parameter identifies the chart that you want to retrieve. + * @opt_param string maxResults + * The maxResults parameter specifies the maximum number of items that should be returned in the + * result set. + * Note: This parameter is supported for use in conjunction with the myRating + * parameter, but it is not supported for use in conjunction with the id parameter. + * @opt_param string pageToken + * The pageToken parameter identifies a specific page in the result set that should be returned. In + * an API response, the nextPageToken and prevPageToken properties identify other pages that could + * be retrieved. + * Note: This parameter is supported for use in conjunction with the myRating + * parameter, but it is not supported for use in conjunction with the id parameter. + * @opt_param string myRating + * Set this parameter's value to like or dislike to instruct the API to only return videos liked or + * disliked by the authenticated user. + * @opt_param string id + * The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) + * that are being retrieved. In a video resource, the id property specifies the video's ID. + * @return Google_Service_YouTube_VideoListResponse + */ + public function listVideos($part, $optParams = array()) { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_VideoListResponse"); + } + + /** + * Add a like or dislike rating to a video or remove a rating from a video. + * (videos.rate) + * + * @param string $id + * The id parameter specifies the YouTube video ID of the video that is being rated or having its + * rating removed. + * @param string $rating + * Specifies the rating to record. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The CMS account that the user authenticates with must be linked to the + * specified YouTube content owner. + */ + public function rate($id, $rating, $optParams = array()) { + $params = array('id' => $id, 'rating' => $rating); + $params = array_merge($params, $optParams); + return $this->call('rate', array($params)); + } + + /** + * Updates a video's metadata. (videos.update) + * + * @param string $part + * The part parameter serves two purposes in this operation. It identifies the properties that the + * write operation will set as well as the properties that the API response will include. + * The part + * names that you can include in the parameter value are snippet, contentDetails, fileDetails, + * liveStreamingDetails, player, processingDetails, recordingDetails, statistics, status, + * suggestions, and topicDetails. + * Note that this method will override the existing values for all + * of the mutable properties that are contained in any parts that the parameter value specifies. + * For example, a video's privacy setting is contained in the status part. As such, if your request + * is updating a private video, and the request's part parameter value includes the status part, + * the video's privacy setting will be updated to whatever value the request body specifies. If the + * request body does not specify a value, the existing privacy setting will be removed and the + * video will revert to the default privacy setting. + * In addition, not all of those parts contain + * properties that can be set when setting or updating a video's metadata. For example, the + * statistics object encapsulates statistics that YouTube calculates for a video and does not + * contain values that you can set or modify. If the parameter value specifies a part that does not + * contain mutable values, that part will still be included in the API response. + * @param Google_Video $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * Note: This parameter is intended exclusively for YouTube content partners. + * The + * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify + * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once and get access to all + * their video and channel data, without having to provide authentication credentials for each + * individual channel. The actual CMS account that the user authenticates with must be linked to + * the specified YouTube content owner. + * @return Google_Service_YouTube_Video + */ + public function update($part, Google_Service_YouTube_Video $postBody, $optParams = array()) { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Video"); + } } /** @@ -3278,7670 +3244,6277 @@ class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource * $watermarks = $youtubeService->watermarks; * */ -class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource -{ - - /** - * Uploads a watermark image to YouTube and sets it for a channel. - * (watermarks.set) - * - * @param string $channelId - * The channelId parameter specifies a YouTube channel ID for which the watermark is being - * provided. - * @param Google_InvideoBranding $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf - * of the content owner specified in the parameter value. This parameter is intended for YouTube - * content partners that own and manage many different YouTube channels. It allows content owners - * to authenticate once and get access to all their video and channel data, without having to - * provide authentication credentials for each individual channel. The actual CMS account that the - * user authenticates with needs to be linked to the specified YouTube content owner. - */ - public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array()) - { - $params = array('channelId' => $channelId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('set', array($params)); - } - /** - * Deletes a watermark. (watermarks.unsetWatermarks) - * - * @param string $channelId - * The channelId parameter specifies a YouTube channel ID for which the watermark is being unset. - * @param array $optParams Optional parameters. - * - * @opt_param string onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf - * of the content owner specified in the parameter value. This parameter is intended for YouTube - * content partners that own and manage many different YouTube channels. It allows content owners - * to authenticate once and get access to all their video and channel data, without having to - * provide authentication credentials for each individual channel. The actual CMS account that the - * user authenticates with needs to be linked to the specified YouTube content owner. - */ - public function unsetWatermarks($channelId, $optParams = array()) - { - $params = array('channelId' => $channelId); - $params = array_merge($params, $optParams); - return $this->call('unset', array($params)); - } +class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource { + + /** + * Uploads a watermark image to YouTube and sets it for a channel. + * (watermarks.set) + * + * @param string $channelId + * The channelId parameter specifies a YouTube channel ID for which the watermark is being + * provided. + * @param Google_InvideoBranding $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf + * of the content owner specified in the parameter value. This parameter is intended for YouTube + * content partners that own and manage many different YouTube channels. It allows content owners + * to authenticate once and get access to all their video and channel data, without having to + * provide authentication credentials for each individual channel. The actual CMS account that the + * user authenticates with needs to be linked to the specified YouTube content owner. + */ + public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array()) { + $params = array('channelId' => $channelId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('set', array($params)); + } + + /** + * Deletes a watermark. (watermarks.unsetWatermarks) + * + * @param string $channelId + * The channelId parameter specifies a YouTube channel ID for which the watermark is being unset. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner + * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf + * of the content owner specified in the parameter value. This parameter is intended for YouTube + * content partners that own and manage many different YouTube channels. It allows content owners + * to authenticate once and get access to all their video and channel data, without having to + * provide authentication credentials for each individual channel. The actual CMS account that the + * user authenticates with needs to be linked to the specified YouTube content owner. + */ + public function unsetWatermarks($channelId, $optParams = array()) { + $params = array('channelId' => $channelId); + $params = array_merge($params, $optParams); + return $this->call('unset', array($params)); + } } +class Google_Service_YouTube_AccessPolicy extends Google_Collection { + public $allowed; + public $exception; + public function setAllowed($allowed) { + $this->allowed = $allowed; + } -class Google_Service_YouTube_AccessPolicy extends Google_Collection -{ - public $allowed; - public $exception; + public function getAllowed() { + return $this->allowed; + } - public function setAllowed($allowed) - { - $this->allowed = $allowed; - } + public function setException($exception) { + $this->exception = $exception; + } - public function getAllowed() - { - return $this->allowed; - } - - public function setException($exception) - { - $this->exception = $exception; - } - - public function getException() - { - return $this->exception; - } + public function getException() { + return $this->exception; + } } -class Google_Service_YouTube_Activity extends Google_Model -{ - protected $contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_ActivitySnippet'; - protected $snippetDataType = ''; - - public function setContentDetails(Google_Service_YouTube_ActivityContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - - public function getContentDetails() - { - return $this->contentDetails; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_ActivitySnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } +class Google_Service_YouTube_Activity extends Google_Model { + protected $contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_ActivitySnippet'; + protected $snippetDataType = ''; + + public function setContentDetails(Google_Service_YouTube_ActivityContentDetails $contentDetails) { + $this->contentDetails = $contentDetails; + } + + public function getContentDetails() { + return $this->contentDetails; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_ActivitySnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } } -class Google_Service_YouTube_ActivityContentDetails extends Google_Model -{ - protected $bulletinType = 'Google_Service_YouTube_ActivityContentDetailsBulletin'; - protected $bulletinDataType = ''; - protected $channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem'; - protected $channelItemDataType = ''; - protected $commentType = 'Google_Service_YouTube_ActivityContentDetailsComment'; - protected $commentDataType = ''; - protected $favoriteType = 'Google_Service_YouTube_ActivityContentDetailsFavorite'; - protected $favoriteDataType = ''; - protected $likeType = 'Google_Service_YouTube_ActivityContentDetailsLike'; - protected $likeDataType = ''; - protected $playlistItemType = 'Google_Service_YouTube_ActivityContentDetailsPlaylistItem'; - protected $playlistItemDataType = ''; - protected $promotedItemType = 'Google_Service_YouTube_ActivityContentDetailsPromotedItem'; - protected $promotedItemDataType = ''; - protected $recommendationType = 'Google_Service_YouTube_ActivityContentDetailsRecommendation'; - protected $recommendationDataType = ''; - protected $socialType = 'Google_Service_YouTube_ActivityContentDetailsSocial'; - protected $socialDataType = ''; - protected $subscriptionType = 'Google_Service_YouTube_ActivityContentDetailsSubscription'; - protected $subscriptionDataType = ''; - protected $uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload'; - protected $uploadDataType = ''; - - public function setBulletin(Google_Service_YouTube_ActivityContentDetailsBulletin $bulletin) - { - $this->bulletin = $bulletin; - } - - public function getBulletin() - { - return $this->bulletin; - } - - public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChannelItem $channelItem) - { - $this->channelItem = $channelItem; - } - - public function getChannelItem() - { - return $this->channelItem; - } - - public function setComment(Google_Service_YouTube_ActivityContentDetailsComment $comment) - { - $this->comment = $comment; - } - - public function getComment() - { - return $this->comment; - } - - public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorite $favorite) - { - $this->favorite = $favorite; - } - - public function getFavorite() - { - return $this->favorite; - } - - public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like) - { - $this->like = $like; - } - - public function getLike() - { - return $this->like; - } - - public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPlaylistItem $playlistItem) - { - $this->playlistItem = $playlistItem; - } - - public function getPlaylistItem() - { - return $this->playlistItem; - } - - public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPromotedItem $promotedItem) - { - $this->promotedItem = $promotedItem; - } - - public function getPromotedItem() - { - return $this->promotedItem; - } - - public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsRecommendation $recommendation) - { - $this->recommendation = $recommendation; - } - - public function getRecommendation() - { - return $this->recommendation; - } - - public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $social) - { - $this->social = $social; - } - - public function getSocial() - { - return $this->social; - } - - public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSubscription $subscription) - { - $this->subscription = $subscription; - } - - public function getSubscription() - { - return $this->subscription; - } - - public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $upload) - { - $this->upload = $upload; - } - - public function getUpload() - { - return $this->upload; - } +class Google_Service_YouTube_ActivityContentDetails extends Google_Model { + protected $bulletinType = 'Google_Service_YouTube_ActivityContentDetailsBulletin'; + protected $bulletinDataType = ''; + protected $channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem'; + protected $channelItemDataType = ''; + protected $commentType = 'Google_Service_YouTube_ActivityContentDetailsComment'; + protected $commentDataType = ''; + protected $favoriteType = 'Google_Service_YouTube_ActivityContentDetailsFavorite'; + protected $favoriteDataType = ''; + protected $likeType = 'Google_Service_YouTube_ActivityContentDetailsLike'; + protected $likeDataType = ''; + protected $playlistItemType = 'Google_Service_YouTube_ActivityContentDetailsPlaylistItem'; + protected $playlistItemDataType = ''; + protected $promotedItemType = 'Google_Service_YouTube_ActivityContentDetailsPromotedItem'; + protected $promotedItemDataType = ''; + protected $recommendationType = 'Google_Service_YouTube_ActivityContentDetailsRecommendation'; + protected $recommendationDataType = ''; + protected $socialType = 'Google_Service_YouTube_ActivityContentDetailsSocial'; + protected $socialDataType = ''; + protected $subscriptionType = 'Google_Service_YouTube_ActivityContentDetailsSubscription'; + protected $subscriptionDataType = ''; + protected $uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload'; + protected $uploadDataType = ''; + + public function setBulletin(Google_Service_YouTube_ActivityContentDetailsBulletin $bulletin) { + $this->bulletin = $bulletin; + } + + public function getBulletin() { + return $this->bulletin; + } + + public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChannelItem $channelItem) { + $this->channelItem = $channelItem; + } + + public function getChannelItem() { + return $this->channelItem; + } + + public function setComment(Google_Service_YouTube_ActivityContentDetailsComment $comment) { + $this->comment = $comment; + } + + public function getComment() { + return $this->comment; + } + + public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorite $favorite) { + $this->favorite = $favorite; + } + + public function getFavorite() { + return $this->favorite; + } + + public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like) { + $this->like = $like; + } + + public function getLike() { + return $this->like; + } + + public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPlaylistItem $playlistItem) { + $this->playlistItem = $playlistItem; + } + + public function getPlaylistItem() { + return $this->playlistItem; + } + + public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPromotedItem $promotedItem) { + $this->promotedItem = $promotedItem; + } + + public function getPromotedItem() { + return $this->promotedItem; + } + + public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsRecommendation $recommendation) { + $this->recommendation = $recommendation; + } + + public function getRecommendation() { + return $this->recommendation; + } + + public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $social) { + $this->social = $social; + } + + public function getSocial() { + return $this->social; + } + + public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSubscription $subscription) { + $this->subscription = $subscription; + } + + public function getSubscription() { + return $this->subscription; + } + + public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $upload) { + $this->upload = $upload; + } + + public function getUpload() { + return $this->upload; + } } -class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model -{ - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; +class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model { + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } } -class Google_Service_YouTube_ActivityContentDetailsChannelItem extends Google_Model -{ - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; +class Google_Service_YouTube_ActivityContentDetailsChannelItem extends Google_Model { + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } } -class Google_Service_YouTube_ActivityContentDetailsComment extends Google_Model -{ - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; +class Google_Service_YouTube_ActivityContentDetailsComment extends Google_Model { + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } } -class Google_Service_YouTube_ActivityContentDetailsFavorite extends Google_Model -{ - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; +class Google_Service_YouTube_ActivityContentDetailsFavorite extends Google_Model { + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } } -class Google_Service_YouTube_ActivityContentDetailsLike extends Google_Model -{ - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; +class Google_Service_YouTube_ActivityContentDetailsLike extends Google_Model { + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } } -class Google_Service_YouTube_ActivityContentDetailsPlaylistItem extends Google_Model -{ - public $playlistId; - public $playlistItemId; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - - public function setPlaylistId($playlistId) - { - $this->playlistId = $playlistId; - } - - public function getPlaylistId() - { - return $this->playlistId; - } - - public function setPlaylistItemId($playlistItemId) - { - $this->playlistItemId = $playlistItemId; - } - - public function getPlaylistItemId() - { - return $this->playlistItemId; - } - - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - - public function getResourceId() - { - return $this->resourceId; - } +class Google_Service_YouTube_ActivityContentDetailsPlaylistItem extends Google_Model { + public $playlistId; + public $playlistItemId; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + + public function setPlaylistId($playlistId) { + $this->playlistId = $playlistId; + } + + public function getPlaylistId() { + return $this->playlistId; + } + + public function setPlaylistItemId($playlistItemId) { + $this->playlistItemId = $playlistItemId; + } + + public function getPlaylistItemId() { + return $this->playlistItemId; + } + + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { + $this->resourceId = $resourceId; + } + + public function getResourceId() { + return $this->resourceId; + } } -class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection -{ - public $adTag; - public $clickTrackingUrl; - public $creativeViewUrl; - public $ctaType; - public $customCtaButtonText; - public $descriptionText; - public $destinationUrl; - public $forecastingUrl; - public $impressionUrl; - public $videoId; - - public function setAdTag($adTag) - { - $this->adTag = $adTag; - } - - public function getAdTag() - { - return $this->adTag; - } - - public function setClickTrackingUrl($clickTrackingUrl) - { - $this->clickTrackingUrl = $clickTrackingUrl; - } - - public function getClickTrackingUrl() - { - return $this->clickTrackingUrl; - } - - public function setCreativeViewUrl($creativeViewUrl) - { - $this->creativeViewUrl = $creativeViewUrl; - } - - public function getCreativeViewUrl() - { - return $this->creativeViewUrl; - } - - public function setCtaType($ctaType) - { - $this->ctaType = $ctaType; - } - - public function getCtaType() - { - return $this->ctaType; - } - - public function setCustomCtaButtonText($customCtaButtonText) - { - $this->customCtaButtonText = $customCtaButtonText; - } - - public function getCustomCtaButtonText() - { - return $this->customCtaButtonText; - } - - public function setDescriptionText($descriptionText) - { - $this->descriptionText = $descriptionText; - } - - public function getDescriptionText() - { - return $this->descriptionText; - } - - public function setDestinationUrl($destinationUrl) - { - $this->destinationUrl = $destinationUrl; - } - - public function getDestinationUrl() - { - return $this->destinationUrl; - } - - public function setForecastingUrl($forecastingUrl) - { - $this->forecastingUrl = $forecastingUrl; - } - - public function getForecastingUrl() - { - return $this->forecastingUrl; - } - - public function setImpressionUrl($impressionUrl) - { - $this->impressionUrl = $impressionUrl; - } - - public function getImpressionUrl() - { - return $this->impressionUrl; - } - - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - - public function getVideoId() - { - return $this->videoId; - } +class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection { + public $adTag; + public $clickTrackingUrl; + public $creativeViewUrl; + public $ctaType; + public $customCtaButtonText; + public $descriptionText; + public $destinationUrl; + public $forecastingUrl; + public $impressionUrl; + public $videoId; + + public function setAdTag($adTag) { + $this->adTag = $adTag; + } + + public function getAdTag() { + return $this->adTag; + } + + public function setClickTrackingUrl($clickTrackingUrl) { + $this->clickTrackingUrl = $clickTrackingUrl; + } + + public function getClickTrackingUrl() { + return $this->clickTrackingUrl; + } + + public function setCreativeViewUrl($creativeViewUrl) { + $this->creativeViewUrl = $creativeViewUrl; + } + + public function getCreativeViewUrl() { + return $this->creativeViewUrl; + } + + public function setCtaType($ctaType) { + $this->ctaType = $ctaType; + } + + public function getCtaType() { + return $this->ctaType; + } + + public function setCustomCtaButtonText($customCtaButtonText) { + $this->customCtaButtonText = $customCtaButtonText; + } + + public function getCustomCtaButtonText() { + return $this->customCtaButtonText; + } + + public function setDescriptionText($descriptionText) { + $this->descriptionText = $descriptionText; + } + + public function getDescriptionText() { + return $this->descriptionText; + } + + public function setDestinationUrl($destinationUrl) { + $this->destinationUrl = $destinationUrl; + } + + public function getDestinationUrl() { + return $this->destinationUrl; + } + + public function setForecastingUrl($forecastingUrl) { + $this->forecastingUrl = $forecastingUrl; + } + + public function getForecastingUrl() { + return $this->forecastingUrl; + } + + public function setImpressionUrl($impressionUrl) { + $this->impressionUrl = $impressionUrl; + } + + public function getImpressionUrl() { + return $this->impressionUrl; + } + + public function setVideoId($videoId) { + $this->videoId = $videoId; + } + + public function getVideoId() { + return $this->videoId; + } } -class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model -{ - public $reason; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $seedResourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $seedResourceIdDataType = ''; - - public function setReason($reason) - { - $this->reason = $reason; - } - - public function getReason() - { - return $this->reason; - } - - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - - public function getResourceId() - { - return $this->resourceId; - } - - public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourceId) - { - $this->seedResourceId = $seedResourceId; - } - - public function getSeedResourceId() - { - return $this->seedResourceId; - } +class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model { + public $reason; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + protected $seedResourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $seedResourceIdDataType = ''; + + public function setReason($reason) { + $this->reason = $reason; + } + + public function getReason() { + return $this->reason; + } + + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { + $this->resourceId = $resourceId; + } + + public function getResourceId() { + return $this->resourceId; + } + + public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourceId) { + $this->seedResourceId = $seedResourceId; + } + + public function getSeedResourceId() { + return $this->seedResourceId; + } } -class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model -{ - public $author; - public $imageUrl; - public $referenceUrl; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - public $type; - - public function setAuthor($author) - { - $this->author = $author; - } - - public function getAuthor() - { - return $this->author; - } - - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - - public function getImageUrl() - { - return $this->imageUrl; - } - - public function setReferenceUrl($referenceUrl) - { - $this->referenceUrl = $referenceUrl; - } - - public function getReferenceUrl() - { - return $this->referenceUrl; - } - - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - - public function getResourceId() - { - return $this->resourceId; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model { + public $author; + public $imageUrl; + public $referenceUrl; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + public $type; + + public function setAuthor($author) { + $this->author = $author; + } + + public function getAuthor() { + return $this->author; + } + + public function setImageUrl($imageUrl) { + $this->imageUrl = $imageUrl; + } + + public function getImageUrl() { + return $this->imageUrl; + } + + public function setReferenceUrl($referenceUrl) { + $this->referenceUrl = $referenceUrl; + } + + public function getReferenceUrl() { + return $this->referenceUrl; + } + + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { + $this->resourceId = $resourceId; + } + + public function getResourceId() { + return $this->resourceId; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model -{ - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; +class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model { + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { + $this->resourceId = $resourceId; + } - public function getResourceId() - { - return $this->resourceId; - } + public function getResourceId() { + return $this->resourceId; + } } -class Google_Service_YouTube_ActivityContentDetailsUpload extends Google_Model -{ - public $videoId; +class Google_Service_YouTube_ActivityContentDetailsUpload extends Google_Model { + public $videoId; - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } + public function setVideoId($videoId) { + $this->videoId = $videoId; + } - public function getVideoId() - { - return $this->videoId; - } + public function getVideoId() { + return $this->videoId; + } } -class Google_Service_YouTube_ActivityListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Activity'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - - public function getPageInfo() - { - return $this->pageInfo; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } - - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - - public function getTokenPagination() - { - return $this->tokenPagination; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_ActivityListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Activity'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() { + return $this->pageInfo; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } + + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() { + return $this->tokenPagination; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_ActivitySnippet extends Google_Model -{ - public $channelId; - public $channelTitle; - public $description; - public $groupId; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - public $type; - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - - public function getChannelTitle() - { - return $this->channelTitle; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - - public function getGroupId() - { - return $this->groupId; - } - - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - - public function getPublishedAt() - { - return $this->publishedAt; - } - - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - - public function getThumbnails() - { - return $this->thumbnails; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_YouTube_ActivitySnippet extends Google_Model { + public $channelId; + public $channelTitle; + public $description; + public $groupId; + public $publishedAt; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + public $type; + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setChannelTitle($channelTitle) { + $this->channelTitle = $channelTitle; + } + + public function getChannelTitle() { + return $this->channelTitle; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setGroupId($groupId) { + $this->groupId = $groupId; + } + + public function getGroupId() { + return $this->groupId; + } + + public function setPublishedAt($publishedAt) { + $this->publishedAt = $publishedAt; + } + + public function getPublishedAt() { + return $this->publishedAt; + } + + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { + $this->thumbnails = $thumbnails; + } + + public function getThumbnails() { + return $this->thumbnails; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_YouTube_CdnSettings extends Google_Model -{ - public $format; - protected $ingestionInfoType = 'Google_Service_YouTube_IngestionInfo'; - protected $ingestionInfoDataType = ''; - public $ingestionType; - - public function setFormat($format) - { - $this->format = $format; - } - - public function getFormat() - { - return $this->format; - } - - public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestionInfo) - { - $this->ingestionInfo = $ingestionInfo; - } - - public function getIngestionInfo() - { - return $this->ingestionInfo; - } - - public function setIngestionType($ingestionType) - { - $this->ingestionType = $ingestionType; - } - - public function getIngestionType() - { - return $this->ingestionType; - } +class Google_Service_YouTube_CdnSettings extends Google_Model { + public $format; + protected $ingestionInfoType = 'Google_Service_YouTube_IngestionInfo'; + protected $ingestionInfoDataType = ''; + public $ingestionType; + + public function setFormat($format) { + $this->format = $format; + } + + public function getFormat() { + return $this->format; + } + + public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestionInfo) { + $this->ingestionInfo = $ingestionInfo; + } + + public function getIngestionInfo() { + return $this->ingestionInfo; + } + + public function setIngestionType($ingestionType) { + $this->ingestionType = $ingestionType; + } + + public function getIngestionType() { + return $this->ingestionType; + } } -class Google_Service_YouTube_Channel extends Google_Model -{ - protected $auditDetailsType = 'Google_Service_YouTube_ChannelAuditDetails'; - protected $auditDetailsDataType = ''; - protected $brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings'; - protected $brandingSettingsDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_ChannelContentDetails'; - protected $contentDetailsDataType = ''; - protected $contentOwnerDetailsType = 'Google_Service_YouTube_ChannelContentOwnerDetails'; - protected $contentOwnerDetailsDataType = ''; - protected $conversionPingsType = 'Google_Service_YouTube_ChannelConversionPings'; - protected $conversionPingsDataType = ''; - public $etag; - public $id; - protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion'; - protected $invideoPromotionDataType = ''; - public $kind; - protected $snippetType = 'Google_Service_YouTube_ChannelSnippet'; - protected $snippetDataType = ''; - protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_YouTube_ChannelStatus'; - protected $statusDataType = ''; - protected $topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails'; - protected $topicDetailsDataType = ''; - - public function setAuditDetails(Google_Service_YouTube_ChannelAuditDetails $auditDetails) - { - $this->auditDetails = $auditDetails; - } - - public function getAuditDetails() - { - return $this->auditDetails; - } - - public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettings $brandingSettings) - { - $this->brandingSettings = $brandingSettings; - } - - public function getBrandingSettings() - { - return $this->brandingSettings; - } - - public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - - public function getContentDetails() - { - return $this->contentDetails; - } - - public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwnerDetails $contentOwnerDetails) - { - $this->contentOwnerDetails = $contentOwnerDetails; - } - - public function getContentOwnerDetails() - { - return $this->contentOwnerDetails; - } - - public function setConversionPings(Google_Service_YouTube_ChannelConversionPings $conversionPings) - { - $this->conversionPings = $conversionPings; - } - - public function getConversionPings() - { - return $this->conversionPings; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $invideoPromotion) - { - $this->invideoPromotion = $invideoPromotion; - } - - public function getInvideoPromotion() - { - return $this->invideoPromotion; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } - - public function setStatistics(Google_Service_YouTube_ChannelStatistics $statistics) - { - $this->statistics = $statistics; - } - - public function getStatistics() - { - return $this->statistics; - } - - public function setStatus(Google_Service_YouTube_ChannelStatus $status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topicDetails) - { - $this->topicDetails = $topicDetails; - } - - public function getTopicDetails() - { - return $this->topicDetails; - } +class Google_Service_YouTube_Channel extends Google_Model { + protected $auditDetailsType = 'Google_Service_YouTube_ChannelAuditDetails'; + protected $auditDetailsDataType = ''; + protected $brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings'; + protected $brandingSettingsDataType = ''; + protected $contentDetailsType = 'Google_Service_YouTube_ChannelContentDetails'; + protected $contentDetailsDataType = ''; + protected $contentOwnerDetailsType = 'Google_Service_YouTube_ChannelContentOwnerDetails'; + protected $contentOwnerDetailsDataType = ''; + protected $conversionPingsType = 'Google_Service_YouTube_ChannelConversionPings'; + protected $conversionPingsDataType = ''; + public $etag; + public $id; + protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion'; + protected $invideoPromotionDataType = ''; + public $kind; + protected $snippetType = 'Google_Service_YouTube_ChannelSnippet'; + protected $snippetDataType = ''; + protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics'; + protected $statisticsDataType = ''; + protected $statusType = 'Google_Service_YouTube_ChannelStatus'; + protected $statusDataType = ''; + protected $topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails'; + protected $topicDetailsDataType = ''; + + public function setAuditDetails(Google_Service_YouTube_ChannelAuditDetails $auditDetails) { + $this->auditDetails = $auditDetails; + } + + public function getAuditDetails() { + return $this->auditDetails; + } + + public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettings $brandingSettings) { + $this->brandingSettings = $brandingSettings; + } + + public function getBrandingSettings() { + return $this->brandingSettings; + } + + public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $contentDetails) { + $this->contentDetails = $contentDetails; + } + + public function getContentDetails() { + return $this->contentDetails; + } + + public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwnerDetails $contentOwnerDetails) { + $this->contentOwnerDetails = $contentOwnerDetails; + } + + public function getContentOwnerDetails() { + return $this->contentOwnerDetails; + } + + public function setConversionPings(Google_Service_YouTube_ChannelConversionPings $conversionPings) { + $this->conversionPings = $conversionPings; + } + + public function getConversionPings() { + return $this->conversionPings; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $invideoPromotion) { + $this->invideoPromotion = $invideoPromotion; + } + + public function getInvideoPromotion() { + return $this->invideoPromotion; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } + + public function setStatistics(Google_Service_YouTube_ChannelStatistics $statistics) { + $this->statistics = $statistics; + } + + public function getStatistics() { + return $this->statistics; + } + + public function setStatus(Google_Service_YouTube_ChannelStatus $status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topicDetails) { + $this->topicDetails = $topicDetails; + } + + public function getTopicDetails() { + return $this->topicDetails; + } } -class Google_Service_YouTube_ChannelAuditDetails extends Google_Model -{ - public $communityGuidelinesGoodStanding; - public $contentIdClaimsGoodStanding; - public $copyrightStrikesGoodStanding; - public $overallGoodStanding; - - public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding) - { - $this->communityGuidelinesGoodStanding = $communityGuidelinesGoodStanding; - } - - public function getCommunityGuidelinesGoodStanding() - { - return $this->communityGuidelinesGoodStanding; - } - - public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding) - { - $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding; - } - - public function getContentIdClaimsGoodStanding() - { - return $this->contentIdClaimsGoodStanding; - } - - public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding) - { - $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding; - } - - public function getCopyrightStrikesGoodStanding() - { - return $this->copyrightStrikesGoodStanding; - } - - public function setOverallGoodStanding($overallGoodStanding) - { - $this->overallGoodStanding = $overallGoodStanding; - } - - public function getOverallGoodStanding() - { - return $this->overallGoodStanding; - } +class Google_Service_YouTube_ChannelAuditDetails extends Google_Model { + public $communityGuidelinesGoodStanding; + public $contentIdClaimsGoodStanding; + public $copyrightStrikesGoodStanding; + public $overallGoodStanding; + + public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding) { + $this->communityGuidelinesGoodStanding = $communityGuidelinesGoodStanding; + } + + public function getCommunityGuidelinesGoodStanding() { + return $this->communityGuidelinesGoodStanding; + } + + public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding) { + $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding; + } + + public function getContentIdClaimsGoodStanding() { + return $this->contentIdClaimsGoodStanding; + } + + public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding) { + $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding; + } + + public function getCopyrightStrikesGoodStanding() { + return $this->copyrightStrikesGoodStanding; + } + + public function setOverallGoodStanding($overallGoodStanding) { + $this->overallGoodStanding = $overallGoodStanding; + } + + public function getOverallGoodStanding() { + return $this->overallGoodStanding; + } } -class Google_Service_YouTube_ChannelBannerResource extends Google_Model -{ - public $etag; - public $kind; - public $url; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } +class Google_Service_YouTube_ChannelBannerResource extends Google_Model { + public $etag; + public $kind; + public $url; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } } -class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection -{ - protected $channelType = 'Google_Service_YouTube_ChannelSettings'; - protected $channelDataType = ''; - protected $hintsType = 'Google_Service_YouTube_PropertyValue'; - protected $hintsDataType = 'array'; - protected $imageType = 'Google_Service_YouTube_ImageSettings'; - protected $imageDataType = ''; - protected $watchType = 'Google_Service_YouTube_WatchSettings'; - protected $watchDataType = ''; - - public function setChannel(Google_Service_YouTube_ChannelSettings $channel) - { - $this->channel = $channel; - } - - public function getChannel() - { - return $this->channel; - } - - public function setHints($hints) - { - $this->hints = $hints; - } - - public function getHints() - { - return $this->hints; - } - - public function setImage(Google_Service_YouTube_ImageSettings $image) - { - $this->image = $image; - } - - public function getImage() - { - return $this->image; - } - - public function setWatch(Google_Service_YouTube_WatchSettings $watch) - { - $this->watch = $watch; - } - - public function getWatch() - { - return $this->watch; - } +class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection { + protected $channelType = 'Google_Service_YouTube_ChannelSettings'; + protected $channelDataType = ''; + protected $hintsType = 'Google_Service_YouTube_PropertyValue'; + protected $hintsDataType = 'array'; + protected $imageType = 'Google_Service_YouTube_ImageSettings'; + protected $imageDataType = ''; + protected $watchType = 'Google_Service_YouTube_WatchSettings'; + protected $watchDataType = ''; + + public function setChannel(Google_Service_YouTube_ChannelSettings $channel) { + $this->channel = $channel; + } + + public function getChannel() { + return $this->channel; + } + + public function setHints($hints) { + $this->hints = $hints; + } + + public function getHints() { + return $this->hints; + } + + public function setImage(Google_Service_YouTube_ImageSettings $image) { + $this->image = $image; + } + + public function getImage() { + return $this->image; + } + + public function setWatch(Google_Service_YouTube_WatchSettings $watch) { + $this->watch = $watch; + } + + public function getWatch() { + return $this->watch; + } } -class Google_Service_YouTube_ChannelContentDetails extends Google_Model -{ - public $googlePlusUserId; - protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists'; - protected $relatedPlaylistsDataType = ''; - - public function setGooglePlusUserId($googlePlusUserId) - { - $this->googlePlusUserId = $googlePlusUserId; - } - - public function getGooglePlusUserId() - { - return $this->googlePlusUserId; - } - - public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists $relatedPlaylists) - { - $this->relatedPlaylists = $relatedPlaylists; - } - - public function getRelatedPlaylists() - { - return $this->relatedPlaylists; - } +class Google_Service_YouTube_ChannelContentDetails extends Google_Model { + public $googlePlusUserId; + protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists'; + protected $relatedPlaylistsDataType = ''; + + public function setGooglePlusUserId($googlePlusUserId) { + $this->googlePlusUserId = $googlePlusUserId; + } + + public function getGooglePlusUserId() { + return $this->googlePlusUserId; + } + + public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists $relatedPlaylists) { + $this->relatedPlaylists = $relatedPlaylists; + } + + public function getRelatedPlaylists() { + return $this->relatedPlaylists; + } } -class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model -{ - public $favorites; - public $likes; - public $uploads; - public $watchHistory; - public $watchLater; - - public function setFavorites($favorites) - { - $this->favorites = $favorites; - } - - public function getFavorites() - { - return $this->favorites; - } - - public function setLikes($likes) - { - $this->likes = $likes; - } - - public function getLikes() - { - return $this->likes; - } - - public function setUploads($uploads) - { - $this->uploads = $uploads; - } - - public function getUploads() - { - return $this->uploads; - } - - public function setWatchHistory($watchHistory) - { - $this->watchHistory = $watchHistory; - } - - public function getWatchHistory() - { - return $this->watchHistory; - } - - public function setWatchLater($watchLater) - { - $this->watchLater = $watchLater; - } - - public function getWatchLater() - { - return $this->watchLater; - } +class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model { + public $favorites; + public $likes; + public $uploads; + public $watchHistory; + public $watchLater; + + public function setFavorites($favorites) { + $this->favorites = $favorites; + } + + public function getFavorites() { + return $this->favorites; + } + + public function setLikes($likes) { + $this->likes = $likes; + } + + public function getLikes() { + return $this->likes; + } + + public function setUploads($uploads) { + $this->uploads = $uploads; + } + + public function getUploads() { + return $this->uploads; + } + + public function setWatchHistory($watchHistory) { + $this->watchHistory = $watchHistory; + } + + public function getWatchHistory() { + return $this->watchHistory; + } + + public function setWatchLater($watchLater) { + $this->watchLater = $watchLater; + } + + public function getWatchLater() { + return $this->watchLater; + } } -class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model -{ - public $contentOwner; - public $timeLinked; - - public function setContentOwner($contentOwner) - { - $this->contentOwner = $contentOwner; - } - - public function getContentOwner() - { - return $this->contentOwner; - } - - public function setTimeLinked($timeLinked) - { - $this->timeLinked = $timeLinked; - } - - public function getTimeLinked() - { - return $this->timeLinked; - } +class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model { + public $contentOwner; + public $timeLinked; + + public function setContentOwner($contentOwner) { + $this->contentOwner = $contentOwner; + } + + public function getContentOwner() { + return $this->contentOwner; + } + + public function setTimeLinked($timeLinked) { + $this->timeLinked = $timeLinked; + } + + public function getTimeLinked() { + return $this->timeLinked; + } } -class Google_Service_YouTube_ChannelConversionPing extends Google_Model -{ - public $context; - public $conversionUrl; - - public function setContext($context) - { - $this->context = $context; - } - - public function getContext() - { - return $this->context; - } - - public function setConversionUrl($conversionUrl) - { - $this->conversionUrl = $conversionUrl; - } - - public function getConversionUrl() - { - return $this->conversionUrl; - } +class Google_Service_YouTube_ChannelConversionPing extends Google_Model { + public $context; + public $conversionUrl; + + public function setContext($context) { + $this->context = $context; + } + + public function getContext() { + return $this->context; + } + + public function setConversionUrl($conversionUrl) { + $this->conversionUrl = $conversionUrl; + } + + public function getConversionUrl() { + return $this->conversionUrl; + } } -class Google_Service_YouTube_ChannelConversionPings extends Google_Collection -{ - protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing'; - protected $pingsDataType = 'array'; +class Google_Service_YouTube_ChannelConversionPings extends Google_Collection { + protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing'; + protected $pingsDataType = 'array'; - public function setPings($pings) - { - $this->pings = $pings; - } + public function setPings($pings) { + $this->pings = $pings; + } - public function getPings() - { - return $this->pings; - } + public function getPings() { + return $this->pings; + } } -class Google_Service_YouTube_ChannelListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Channel'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - - public function getPageInfo() - { - return $this->pageInfo; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } - - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - - public function getTokenPagination() - { - return $this->tokenPagination; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_ChannelListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Channel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() { + return $this->pageInfo; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } + + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() { + return $this->tokenPagination; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_ChannelSection extends Google_Model -{ - protected $contentDetailsType = 'Google_Service_YouTube_ChannelSectionContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet'; - protected $snippetDataType = ''; - - public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - - public function getContentDetails() - { - return $this->contentDetails; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } +class Google_Service_YouTube_ChannelSection extends Google_Model { + protected $contentDetailsType = 'Google_Service_YouTube_ChannelSectionContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet'; + protected $snippetDataType = ''; + + public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails) { + $this->contentDetails = $contentDetails; + } + + public function getContentDetails() { + return $this->contentDetails; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } } -class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection -{ - public $channels; - public $playlists; - - public function setChannels($channels) - { - $this->channels = $channels; - } - - public function getChannels() - { - return $this->channels; - } - - public function setPlaylists($playlists) - { - $this->playlists = $playlists; - } - - public function getPlaylists() - { - return $this->playlists; - } +class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection { + public $channels; + public $playlists; + + public function setChannels($channels) { + $this->channels = $channels; + } + + public function getChannels() { + return $this->channels; + } + + public function setPlaylists($playlists) { + $this->playlists = $playlists; + } + + public function getPlaylists() { + return $this->playlists; + } } -class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_ChannelSection'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_ChannelSection'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model -{ - public $channelId; - public $position; - public $style; - public $title; - public $type; - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setPosition($position) - { - $this->position = $position; - } - - public function getPosition() - { - return $this->position; - } - - public function setStyle($style) - { - $this->style = $style; - } - - public function getStyle() - { - return $this->style; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model { + public $channelId; + public $position; + public $style; + public $title; + public $type; + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setPosition($position) { + $this->position = $position; + } + + public function getPosition() { + return $this->position; + } + + public function setStyle($style) { + $this->style = $style; + } + + public function getStyle() { + return $this->style; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_YouTube_ChannelSettings extends Google_Collection -{ - public $defaultTab; - public $description; - public $featuredChannelsTitle; - public $featuredChannelsUrls; - public $keywords; - public $moderateComments; - public $profileColor; - public $showBrowseView; - public $showRelatedChannels; - public $title; - public $trackingAnalyticsAccountId; - public $unsubscribedTrailer; - - public function setDefaultTab($defaultTab) - { - $this->defaultTab = $defaultTab; - } - - public function getDefaultTab() - { - return $this->defaultTab; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setFeaturedChannelsTitle($featuredChannelsTitle) - { - $this->featuredChannelsTitle = $featuredChannelsTitle; - } - - public function getFeaturedChannelsTitle() - { - return $this->featuredChannelsTitle; - } - - public function setFeaturedChannelsUrls($featuredChannelsUrls) - { - $this->featuredChannelsUrls = $featuredChannelsUrls; - } - - public function getFeaturedChannelsUrls() - { - return $this->featuredChannelsUrls; - } - - public function setKeywords($keywords) - { - $this->keywords = $keywords; - } - - public function getKeywords() - { - return $this->keywords; - } - - public function setModerateComments($moderateComments) - { - $this->moderateComments = $moderateComments; - } - - public function getModerateComments() - { - return $this->moderateComments; - } - - public function setProfileColor($profileColor) - { - $this->profileColor = $profileColor; - } - - public function getProfileColor() - { - return $this->profileColor; - } - - public function setShowBrowseView($showBrowseView) - { - $this->showBrowseView = $showBrowseView; - } - - public function getShowBrowseView() - { - return $this->showBrowseView; - } - - public function setShowRelatedChannels($showRelatedChannels) - { - $this->showRelatedChannels = $showRelatedChannels; - } - - public function getShowRelatedChannels() - { - return $this->showRelatedChannels; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } - - public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId) - { - $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId; - } - - public function getTrackingAnalyticsAccountId() - { - return $this->trackingAnalyticsAccountId; - } - - public function setUnsubscribedTrailer($unsubscribedTrailer) - { - $this->unsubscribedTrailer = $unsubscribedTrailer; - } - - public function getUnsubscribedTrailer() - { - return $this->unsubscribedTrailer; - } +class Google_Service_YouTube_ChannelSettings extends Google_Collection { + public $defaultTab; + public $description; + public $featuredChannelsTitle; + public $featuredChannelsUrls; + public $keywords; + public $moderateComments; + public $profileColor; + public $showBrowseView; + public $showRelatedChannels; + public $title; + public $trackingAnalyticsAccountId; + public $unsubscribedTrailer; + + public function setDefaultTab($defaultTab) { + $this->defaultTab = $defaultTab; + } + + public function getDefaultTab() { + return $this->defaultTab; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setFeaturedChannelsTitle($featuredChannelsTitle) { + $this->featuredChannelsTitle = $featuredChannelsTitle; + } + + public function getFeaturedChannelsTitle() { + return $this->featuredChannelsTitle; + } + + public function setFeaturedChannelsUrls($featuredChannelsUrls) { + $this->featuredChannelsUrls = $featuredChannelsUrls; + } + + public function getFeaturedChannelsUrls() { + return $this->featuredChannelsUrls; + } + + public function setKeywords($keywords) { + $this->keywords = $keywords; + } + + public function getKeywords() { + return $this->keywords; + } + + public function setModerateComments($moderateComments) { + $this->moderateComments = $moderateComments; + } + + public function getModerateComments() { + return $this->moderateComments; + } + + public function setProfileColor($profileColor) { + $this->profileColor = $profileColor; + } + + public function getProfileColor() { + return $this->profileColor; + } + + public function setShowBrowseView($showBrowseView) { + $this->showBrowseView = $showBrowseView; + } + + public function getShowBrowseView() { + return $this->showBrowseView; + } + + public function setShowRelatedChannels($showRelatedChannels) { + $this->showRelatedChannels = $showRelatedChannels; + } + + public function getShowRelatedChannels() { + return $this->showRelatedChannels; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } + + public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId) { + $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId; + } + + public function getTrackingAnalyticsAccountId() { + return $this->trackingAnalyticsAccountId; + } + + public function setUnsubscribedTrailer($unsubscribedTrailer) { + $this->unsubscribedTrailer = $unsubscribedTrailer; + } + + public function getUnsubscribedTrailer() { + return $this->unsubscribedTrailer; + } } -class Google_Service_YouTube_ChannelSnippet extends Google_Model -{ - public $description; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - - public function getPublishedAt() - { - return $this->publishedAt; - } - - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - - public function getThumbnails() - { - return $this->thumbnails; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_YouTube_ChannelSnippet extends Google_Model { + public $description; + public $publishedAt; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setPublishedAt($publishedAt) { + $this->publishedAt = $publishedAt; + } + + public function getPublishedAt() { + return $this->publishedAt; + } + + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { + $this->thumbnails = $thumbnails; + } + + public function getThumbnails() { + return $this->thumbnails; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_YouTube_ChannelStatistics extends Google_Model -{ - public $commentCount; - public $hiddenSubscriberCount; - public $subscriberCount; - public $videoCount; - public $viewCount; - - public function setCommentCount($commentCount) - { - $this->commentCount = $commentCount; - } - - public function getCommentCount() - { - return $this->commentCount; - } - - public function setHiddenSubscriberCount($hiddenSubscriberCount) - { - $this->hiddenSubscriberCount = $hiddenSubscriberCount; - } - - public function getHiddenSubscriberCount() - { - return $this->hiddenSubscriberCount; - } - - public function setSubscriberCount($subscriberCount) - { - $this->subscriberCount = $subscriberCount; - } - - public function getSubscriberCount() - { - return $this->subscriberCount; - } - - public function setVideoCount($videoCount) - { - $this->videoCount = $videoCount; - } - - public function getVideoCount() - { - return $this->videoCount; - } - - public function setViewCount($viewCount) - { - $this->viewCount = $viewCount; - } - - public function getViewCount() - { - return $this->viewCount; - } +class Google_Service_YouTube_ChannelStatistics extends Google_Model { + public $commentCount; + public $hiddenSubscriberCount; + public $subscriberCount; + public $videoCount; + public $viewCount; + + public function setCommentCount($commentCount) { + $this->commentCount = $commentCount; + } + + public function getCommentCount() { + return $this->commentCount; + } + + public function setHiddenSubscriberCount($hiddenSubscriberCount) { + $this->hiddenSubscriberCount = $hiddenSubscriberCount; + } + + public function getHiddenSubscriberCount() { + return $this->hiddenSubscriberCount; + } + + public function setSubscriberCount($subscriberCount) { + $this->subscriberCount = $subscriberCount; + } + + public function getSubscriberCount() { + return $this->subscriberCount; + } + + public function setVideoCount($videoCount) { + $this->videoCount = $videoCount; + } + + public function getVideoCount() { + return $this->videoCount; + } + + public function setViewCount($viewCount) { + $this->viewCount = $viewCount; + } + + public function getViewCount() { + return $this->viewCount; + } } -class Google_Service_YouTube_ChannelStatus extends Google_Model -{ - public $isLinked; - public $privacyStatus; - - public function setIsLinked($isLinked) - { - $this->isLinked = $isLinked; - } - - public function getIsLinked() - { - return $this->isLinked; - } - - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - - public function getPrivacyStatus() - { - return $this->privacyStatus; - } +class Google_Service_YouTube_ChannelStatus extends Google_Model { + public $isLinked; + public $privacyStatus; + + public function setIsLinked($isLinked) { + $this->isLinked = $isLinked; + } + + public function getIsLinked() { + return $this->isLinked; + } + + public function setPrivacyStatus($privacyStatus) { + $this->privacyStatus = $privacyStatus; + } + + public function getPrivacyStatus() { + return $this->privacyStatus; + } } -class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection -{ - public $topicIds; +class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection { + public $topicIds; - public function setTopicIds($topicIds) - { - $this->topicIds = $topicIds; - } + public function setTopicIds($topicIds) { + $this->topicIds = $topicIds; + } - public function getTopicIds() - { - return $this->topicIds; - } + public function getTopicIds() { + return $this->topicIds; + } } -class Google_Service_YouTube_ContentRating extends Google_Model -{ - public $acbRating; - public $agcomRating; - public $anatelRating; - public $bbfcRating; - public $bfvcRating; - public $bmukkRating; - public $catvRating; - public $catvfrRating; - public $cbfcRating; - public $cccRating; - public $cceRating; - public $chfilmRating; - public $chvrsRating; - public $cicfRating; - public $cnaRating; - public $csaRating; - public $cscfRating; - public $czfilmRating; - public $djctqRating; - public $eefilmRating; - public $egfilmRating; - public $eirinRating; - public $fcbmRating; - public $fcoRating; - public $fmocRating; - public $fpbRating; - public $fskRating; - public $grfilmRating; - public $icaaRating; - public $ifcoRating; - public $ilfilmRating; - public $incaaRating; - public $kfcbRating; - public $kijkwijzerRating; - public $kmrbRating; - public $lsfRating; - public $mccaaRating; - public $mccypRating; - public $mdaRating; - public $medietilsynetRating; - public $mekuRating; - public $mibacRating; - public $mocRating; - public $moctwRating; - public $mpaaRating; - public $mtrcbRating; - public $nbcRating; - public $nbcplRating; - public $nfrcRating; - public $nfvcbRating; - public $nkclvRating; - public $oflcRating; - public $pefilmRating; - public $rcnofRating; - public $resorteviolenciaRating; - public $rtcRating; - public $rteRating; - public $russiaRating; - public $skfilmRating; - public $smaisRating; - public $smsaRating; - public $tvpgRating; - public $ytRating; - - public function setAcbRating($acbRating) - { - $this->acbRating = $acbRating; - } - - public function getAcbRating() - { - return $this->acbRating; - } - - public function setAgcomRating($agcomRating) - { - $this->agcomRating = $agcomRating; - } - - public function getAgcomRating() - { - return $this->agcomRating; - } - - public function setAnatelRating($anatelRating) - { - $this->anatelRating = $anatelRating; - } - - public function getAnatelRating() - { - return $this->anatelRating; - } - - public function setBbfcRating($bbfcRating) - { - $this->bbfcRating = $bbfcRating; - } - - public function getBbfcRating() - { - return $this->bbfcRating; - } - - public function setBfvcRating($bfvcRating) - { - $this->bfvcRating = $bfvcRating; - } - - public function getBfvcRating() - { - return $this->bfvcRating; - } - - public function setBmukkRating($bmukkRating) - { - $this->bmukkRating = $bmukkRating; - } - - public function getBmukkRating() - { - return $this->bmukkRating; - } - - public function setCatvRating($catvRating) - { - $this->catvRating = $catvRating; - } - - public function getCatvRating() - { - return $this->catvRating; - } - - public function setCatvfrRating($catvfrRating) - { - $this->catvfrRating = $catvfrRating; - } - - public function getCatvfrRating() - { - return $this->catvfrRating; - } - - public function setCbfcRating($cbfcRating) - { - $this->cbfcRating = $cbfcRating; - } - - public function getCbfcRating() - { - return $this->cbfcRating; - } - - public function setCccRating($cccRating) - { - $this->cccRating = $cccRating; - } - - public function getCccRating() - { - return $this->cccRating; - } - - public function setCceRating($cceRating) - { - $this->cceRating = $cceRating; - } - - public function getCceRating() - { - return $this->cceRating; - } - - public function setChfilmRating($chfilmRating) - { - $this->chfilmRating = $chfilmRating; - } - - public function getChfilmRating() - { - return $this->chfilmRating; - } - - public function setChvrsRating($chvrsRating) - { - $this->chvrsRating = $chvrsRating; - } - - public function getChvrsRating() - { - return $this->chvrsRating; - } - - public function setCicfRating($cicfRating) - { - $this->cicfRating = $cicfRating; - } - - public function getCicfRating() - { - return $this->cicfRating; - } - - public function setCnaRating($cnaRating) - { - $this->cnaRating = $cnaRating; - } - - public function getCnaRating() - { - return $this->cnaRating; - } - - public function setCsaRating($csaRating) - { - $this->csaRating = $csaRating; - } - - public function getCsaRating() - { - return $this->csaRating; - } - - public function setCscfRating($cscfRating) - { - $this->cscfRating = $cscfRating; - } - - public function getCscfRating() - { - return $this->cscfRating; - } - - public function setCzfilmRating($czfilmRating) - { - $this->czfilmRating = $czfilmRating; - } - - public function getCzfilmRating() - { - return $this->czfilmRating; - } - - public function setDjctqRating($djctqRating) - { - $this->djctqRating = $djctqRating; - } - - public function getDjctqRating() - { - return $this->djctqRating; - } - - public function setEefilmRating($eefilmRating) - { - $this->eefilmRating = $eefilmRating; - } - - public function getEefilmRating() - { - return $this->eefilmRating; - } - - public function setEgfilmRating($egfilmRating) - { - $this->egfilmRating = $egfilmRating; - } - - public function getEgfilmRating() - { - return $this->egfilmRating; - } - - public function setEirinRating($eirinRating) - { - $this->eirinRating = $eirinRating; - } - - public function getEirinRating() - { - return $this->eirinRating; - } - - public function setFcbmRating($fcbmRating) - { - $this->fcbmRating = $fcbmRating; - } - - public function getFcbmRating() - { - return $this->fcbmRating; - } - - public function setFcoRating($fcoRating) - { - $this->fcoRating = $fcoRating; - } - - public function getFcoRating() - { - return $this->fcoRating; - } - - public function setFmocRating($fmocRating) - { - $this->fmocRating = $fmocRating; - } - - public function getFmocRating() - { - return $this->fmocRating; - } - - public function setFpbRating($fpbRating) - { - $this->fpbRating = $fpbRating; - } - - public function getFpbRating() - { - return $this->fpbRating; - } - - public function setFskRating($fskRating) - { - $this->fskRating = $fskRating; - } - - public function getFskRating() - { - return $this->fskRating; - } - - public function setGrfilmRating($grfilmRating) - { - $this->grfilmRating = $grfilmRating; - } - - public function getGrfilmRating() - { - return $this->grfilmRating; - } - - public function setIcaaRating($icaaRating) - { - $this->icaaRating = $icaaRating; - } - - public function getIcaaRating() - { - return $this->icaaRating; - } - - public function setIfcoRating($ifcoRating) - { - $this->ifcoRating = $ifcoRating; - } - - public function getIfcoRating() - { - return $this->ifcoRating; - } - - public function setIlfilmRating($ilfilmRating) - { - $this->ilfilmRating = $ilfilmRating; - } - - public function getIlfilmRating() - { - return $this->ilfilmRating; - } - - public function setIncaaRating($incaaRating) - { - $this->incaaRating = $incaaRating; - } - - public function getIncaaRating() - { - return $this->incaaRating; - } - - public function setKfcbRating($kfcbRating) - { - $this->kfcbRating = $kfcbRating; - } - - public function getKfcbRating() - { - return $this->kfcbRating; - } - - public function setKijkwijzerRating($kijkwijzerRating) - { - $this->kijkwijzerRating = $kijkwijzerRating; - } - - public function getKijkwijzerRating() - { - return $this->kijkwijzerRating; - } - - public function setKmrbRating($kmrbRating) - { - $this->kmrbRating = $kmrbRating; - } - - public function getKmrbRating() - { - return $this->kmrbRating; - } - - public function setLsfRating($lsfRating) - { - $this->lsfRating = $lsfRating; - } - - public function getLsfRating() - { - return $this->lsfRating; - } - - public function setMccaaRating($mccaaRating) - { - $this->mccaaRating = $mccaaRating; - } - - public function getMccaaRating() - { - return $this->mccaaRating; - } - - public function setMccypRating($mccypRating) - { - $this->mccypRating = $mccypRating; - } - - public function getMccypRating() - { - return $this->mccypRating; - } - - public function setMdaRating($mdaRating) - { - $this->mdaRating = $mdaRating; - } - - public function getMdaRating() - { - return $this->mdaRating; - } - - public function setMedietilsynetRating($medietilsynetRating) - { - $this->medietilsynetRating = $medietilsynetRating; - } - - public function getMedietilsynetRating() - { - return $this->medietilsynetRating; - } - - public function setMekuRating($mekuRating) - { - $this->mekuRating = $mekuRating; - } - - public function getMekuRating() - { - return $this->mekuRating; - } - - public function setMibacRating($mibacRating) - { - $this->mibacRating = $mibacRating; - } - - public function getMibacRating() - { - return $this->mibacRating; - } - - public function setMocRating($mocRating) - { - $this->mocRating = $mocRating; - } - - public function getMocRating() - { - return $this->mocRating; - } - - public function setMoctwRating($moctwRating) - { - $this->moctwRating = $moctwRating; - } - - public function getMoctwRating() - { - return $this->moctwRating; - } - - public function setMpaaRating($mpaaRating) - { - $this->mpaaRating = $mpaaRating; - } - - public function getMpaaRating() - { - return $this->mpaaRating; - } - - public function setMtrcbRating($mtrcbRating) - { - $this->mtrcbRating = $mtrcbRating; - } - - public function getMtrcbRating() - { - return $this->mtrcbRating; - } - - public function setNbcRating($nbcRating) - { - $this->nbcRating = $nbcRating; - } - - public function getNbcRating() - { - return $this->nbcRating; - } - - public function setNbcplRating($nbcplRating) - { - $this->nbcplRating = $nbcplRating; - } - - public function getNbcplRating() - { - return $this->nbcplRating; - } - - public function setNfrcRating($nfrcRating) - { - $this->nfrcRating = $nfrcRating; - } - - public function getNfrcRating() - { - return $this->nfrcRating; - } - - public function setNfvcbRating($nfvcbRating) - { - $this->nfvcbRating = $nfvcbRating; - } - - public function getNfvcbRating() - { - return $this->nfvcbRating; - } - - public function setNkclvRating($nkclvRating) - { - $this->nkclvRating = $nkclvRating; - } - - public function getNkclvRating() - { - return $this->nkclvRating; - } - - public function setOflcRating($oflcRating) - { - $this->oflcRating = $oflcRating; - } - - public function getOflcRating() - { - return $this->oflcRating; - } - - public function setPefilmRating($pefilmRating) - { - $this->pefilmRating = $pefilmRating; - } - - public function getPefilmRating() - { - return $this->pefilmRating; - } - - public function setRcnofRating($rcnofRating) - { - $this->rcnofRating = $rcnofRating; - } - - public function getRcnofRating() - { - return $this->rcnofRating; - } - - public function setResorteviolenciaRating($resorteviolenciaRating) - { - $this->resorteviolenciaRating = $resorteviolenciaRating; - } - - public function getResorteviolenciaRating() - { - return $this->resorteviolenciaRating; - } - - public function setRtcRating($rtcRating) - { - $this->rtcRating = $rtcRating; - } - - public function getRtcRating() - { - return $this->rtcRating; - } - - public function setRteRating($rteRating) - { - $this->rteRating = $rteRating; - } - - public function getRteRating() - { - return $this->rteRating; - } - - public function setRussiaRating($russiaRating) - { - $this->russiaRating = $russiaRating; - } - - public function getRussiaRating() - { - return $this->russiaRating; - } - - public function setSkfilmRating($skfilmRating) - { - $this->skfilmRating = $skfilmRating; - } - - public function getSkfilmRating() - { - return $this->skfilmRating; - } - - public function setSmaisRating($smaisRating) - { - $this->smaisRating = $smaisRating; - } - - public function getSmaisRating() - { - return $this->smaisRating; - } - - public function setSmsaRating($smsaRating) - { - $this->smsaRating = $smsaRating; - } - - public function getSmsaRating() - { - return $this->smsaRating; - } - - public function setTvpgRating($tvpgRating) - { - $this->tvpgRating = $tvpgRating; - } - - public function getTvpgRating() - { - return $this->tvpgRating; - } - - public function setYtRating($ytRating) - { - $this->ytRating = $ytRating; - } - - public function getYtRating() - { - return $this->ytRating; - } +class Google_Service_YouTube_ContentRating extends Google_Model { + public $acbRating; + public $agcomRating; + public $anatelRating; + public $bbfcRating; + public $bfvcRating; + public $bmukkRating; + public $catvRating; + public $catvfrRating; + public $cbfcRating; + public $cccRating; + public $cceRating; + public $chfilmRating; + public $chvrsRating; + public $cicfRating; + public $cnaRating; + public $csaRating; + public $cscfRating; + public $czfilmRating; + public $djctqRating; + public $eefilmRating; + public $egfilmRating; + public $eirinRating; + public $fcbmRating; + public $fcoRating; + public $fmocRating; + public $fpbRating; + public $fskRating; + public $grfilmRating; + public $icaaRating; + public $ifcoRating; + public $ilfilmRating; + public $incaaRating; + public $kfcbRating; + public $kijkwijzerRating; + public $kmrbRating; + public $lsfRating; + public $mccaaRating; + public $mccypRating; + public $mdaRating; + public $medietilsynetRating; + public $mekuRating; + public $mibacRating; + public $mocRating; + public $moctwRating; + public $mpaaRating; + public $mtrcbRating; + public $nbcRating; + public $nbcplRating; + public $nfrcRating; + public $nfvcbRating; + public $nkclvRating; + public $oflcRating; + public $pefilmRating; + public $rcnofRating; + public $resorteviolenciaRating; + public $rtcRating; + public $rteRating; + public $russiaRating; + public $skfilmRating; + public $smaisRating; + public $smsaRating; + public $tvpgRating; + public $ytRating; + + public function setAcbRating($acbRating) { + $this->acbRating = $acbRating; + } + + public function getAcbRating() { + return $this->acbRating; + } + + public function setAgcomRating($agcomRating) { + $this->agcomRating = $agcomRating; + } + + public function getAgcomRating() { + return $this->agcomRating; + } + + public function setAnatelRating($anatelRating) { + $this->anatelRating = $anatelRating; + } + + public function getAnatelRating() { + return $this->anatelRating; + } + + public function setBbfcRating($bbfcRating) { + $this->bbfcRating = $bbfcRating; + } + + public function getBbfcRating() { + return $this->bbfcRating; + } + + public function setBfvcRating($bfvcRating) { + $this->bfvcRating = $bfvcRating; + } + + public function getBfvcRating() { + return $this->bfvcRating; + } + + public function setBmukkRating($bmukkRating) { + $this->bmukkRating = $bmukkRating; + } + + public function getBmukkRating() { + return $this->bmukkRating; + } + + public function setCatvRating($catvRating) { + $this->catvRating = $catvRating; + } + + public function getCatvRating() { + return $this->catvRating; + } + + public function setCatvfrRating($catvfrRating) { + $this->catvfrRating = $catvfrRating; + } + + public function getCatvfrRating() { + return $this->catvfrRating; + } + + public function setCbfcRating($cbfcRating) { + $this->cbfcRating = $cbfcRating; + } + + public function getCbfcRating() { + return $this->cbfcRating; + } + + public function setCccRating($cccRating) { + $this->cccRating = $cccRating; + } + + public function getCccRating() { + return $this->cccRating; + } + + public function setCceRating($cceRating) { + $this->cceRating = $cceRating; + } + + public function getCceRating() { + return $this->cceRating; + } + + public function setChfilmRating($chfilmRating) { + $this->chfilmRating = $chfilmRating; + } + + public function getChfilmRating() { + return $this->chfilmRating; + } + + public function setChvrsRating($chvrsRating) { + $this->chvrsRating = $chvrsRating; + } + + public function getChvrsRating() { + return $this->chvrsRating; + } + + public function setCicfRating($cicfRating) { + $this->cicfRating = $cicfRating; + } + + public function getCicfRating() { + return $this->cicfRating; + } + + public function setCnaRating($cnaRating) { + $this->cnaRating = $cnaRating; + } + + public function getCnaRating() { + return $this->cnaRating; + } + + public function setCsaRating($csaRating) { + $this->csaRating = $csaRating; + } + + public function getCsaRating() { + return $this->csaRating; + } + + public function setCscfRating($cscfRating) { + $this->cscfRating = $cscfRating; + } + + public function getCscfRating() { + return $this->cscfRating; + } + + public function setCzfilmRating($czfilmRating) { + $this->czfilmRating = $czfilmRating; + } + + public function getCzfilmRating() { + return $this->czfilmRating; + } + + public function setDjctqRating($djctqRating) { + $this->djctqRating = $djctqRating; + } + + public function getDjctqRating() { + return $this->djctqRating; + } + + public function setEefilmRating($eefilmRating) { + $this->eefilmRating = $eefilmRating; + } + + public function getEefilmRating() { + return $this->eefilmRating; + } + + public function setEgfilmRating($egfilmRating) { + $this->egfilmRating = $egfilmRating; + } + + public function getEgfilmRating() { + return $this->egfilmRating; + } + + public function setEirinRating($eirinRating) { + $this->eirinRating = $eirinRating; + } + + public function getEirinRating() { + return $this->eirinRating; + } + + public function setFcbmRating($fcbmRating) { + $this->fcbmRating = $fcbmRating; + } + + public function getFcbmRating() { + return $this->fcbmRating; + } + + public function setFcoRating($fcoRating) { + $this->fcoRating = $fcoRating; + } + + public function getFcoRating() { + return $this->fcoRating; + } + + public function setFmocRating($fmocRating) { + $this->fmocRating = $fmocRating; + } + + public function getFmocRating() { + return $this->fmocRating; + } + + public function setFpbRating($fpbRating) { + $this->fpbRating = $fpbRating; + } + + public function getFpbRating() { + return $this->fpbRating; + } + + public function setFskRating($fskRating) { + $this->fskRating = $fskRating; + } + + public function getFskRating() { + return $this->fskRating; + } + + public function setGrfilmRating($grfilmRating) { + $this->grfilmRating = $grfilmRating; + } + + public function getGrfilmRating() { + return $this->grfilmRating; + } + + public function setIcaaRating($icaaRating) { + $this->icaaRating = $icaaRating; + } + + public function getIcaaRating() { + return $this->icaaRating; + } + + public function setIfcoRating($ifcoRating) { + $this->ifcoRating = $ifcoRating; + } + + public function getIfcoRating() { + return $this->ifcoRating; + } + + public function setIlfilmRating($ilfilmRating) { + $this->ilfilmRating = $ilfilmRating; + } + + public function getIlfilmRating() { + return $this->ilfilmRating; + } + + public function setIncaaRating($incaaRating) { + $this->incaaRating = $incaaRating; + } + + public function getIncaaRating() { + return $this->incaaRating; + } + + public function setKfcbRating($kfcbRating) { + $this->kfcbRating = $kfcbRating; + } + + public function getKfcbRating() { + return $this->kfcbRating; + } + + public function setKijkwijzerRating($kijkwijzerRating) { + $this->kijkwijzerRating = $kijkwijzerRating; + } + + public function getKijkwijzerRating() { + return $this->kijkwijzerRating; + } + + public function setKmrbRating($kmrbRating) { + $this->kmrbRating = $kmrbRating; + } + + public function getKmrbRating() { + return $this->kmrbRating; + } + + public function setLsfRating($lsfRating) { + $this->lsfRating = $lsfRating; + } + + public function getLsfRating() { + return $this->lsfRating; + } + + public function setMccaaRating($mccaaRating) { + $this->mccaaRating = $mccaaRating; + } + + public function getMccaaRating() { + return $this->mccaaRating; + } + + public function setMccypRating($mccypRating) { + $this->mccypRating = $mccypRating; + } + + public function getMccypRating() { + return $this->mccypRating; + } + + public function setMdaRating($mdaRating) { + $this->mdaRating = $mdaRating; + } + + public function getMdaRating() { + return $this->mdaRating; + } + + public function setMedietilsynetRating($medietilsynetRating) { + $this->medietilsynetRating = $medietilsynetRating; + } + + public function getMedietilsynetRating() { + return $this->medietilsynetRating; + } + + public function setMekuRating($mekuRating) { + $this->mekuRating = $mekuRating; + } + + public function getMekuRating() { + return $this->mekuRating; + } + + public function setMibacRating($mibacRating) { + $this->mibacRating = $mibacRating; + } + + public function getMibacRating() { + return $this->mibacRating; + } + + public function setMocRating($mocRating) { + $this->mocRating = $mocRating; + } + + public function getMocRating() { + return $this->mocRating; + } + + public function setMoctwRating($moctwRating) { + $this->moctwRating = $moctwRating; + } + + public function getMoctwRating() { + return $this->moctwRating; + } + + public function setMpaaRating($mpaaRating) { + $this->mpaaRating = $mpaaRating; + } + + public function getMpaaRating() { + return $this->mpaaRating; + } + + public function setMtrcbRating($mtrcbRating) { + $this->mtrcbRating = $mtrcbRating; + } + + public function getMtrcbRating() { + return $this->mtrcbRating; + } + + public function setNbcRating($nbcRating) { + $this->nbcRating = $nbcRating; + } + + public function getNbcRating() { + return $this->nbcRating; + } + + public function setNbcplRating($nbcplRating) { + $this->nbcplRating = $nbcplRating; + } + + public function getNbcplRating() { + return $this->nbcplRating; + } + + public function setNfrcRating($nfrcRating) { + $this->nfrcRating = $nfrcRating; + } + + public function getNfrcRating() { + return $this->nfrcRating; + } + + public function setNfvcbRating($nfvcbRating) { + $this->nfvcbRating = $nfvcbRating; + } + + public function getNfvcbRating() { + return $this->nfvcbRating; + } + + public function setNkclvRating($nkclvRating) { + $this->nkclvRating = $nkclvRating; + } + + public function getNkclvRating() { + return $this->nkclvRating; + } + + public function setOflcRating($oflcRating) { + $this->oflcRating = $oflcRating; + } + + public function getOflcRating() { + return $this->oflcRating; + } + + public function setPefilmRating($pefilmRating) { + $this->pefilmRating = $pefilmRating; + } + + public function getPefilmRating() { + return $this->pefilmRating; + } + + public function setRcnofRating($rcnofRating) { + $this->rcnofRating = $rcnofRating; + } + + public function getRcnofRating() { + return $this->rcnofRating; + } + + public function setResorteviolenciaRating($resorteviolenciaRating) { + $this->resorteviolenciaRating = $resorteviolenciaRating; + } + + public function getResorteviolenciaRating() { + return $this->resorteviolenciaRating; + } + + public function setRtcRating($rtcRating) { + $this->rtcRating = $rtcRating; + } + + public function getRtcRating() { + return $this->rtcRating; + } + + public function setRteRating($rteRating) { + $this->rteRating = $rteRating; + } + + public function getRteRating() { + return $this->rteRating; + } + + public function setRussiaRating($russiaRating) { + $this->russiaRating = $russiaRating; + } + + public function getRussiaRating() { + return $this->russiaRating; + } + + public function setSkfilmRating($skfilmRating) { + $this->skfilmRating = $skfilmRating; + } + + public function getSkfilmRating() { + return $this->skfilmRating; + } + + public function setSmaisRating($smaisRating) { + $this->smaisRating = $smaisRating; + } + + public function getSmaisRating() { + return $this->smaisRating; + } + + public function setSmsaRating($smsaRating) { + $this->smsaRating = $smsaRating; + } + + public function getSmsaRating() { + return $this->smsaRating; + } + + public function setTvpgRating($tvpgRating) { + $this->tvpgRating = $tvpgRating; + } + + public function getTvpgRating() { + return $this->tvpgRating; + } + + public function setYtRating($ytRating) { + $this->ytRating = $ytRating; + } + + public function getYtRating() { + return $this->ytRating; + } } -class Google_Service_YouTube_GeoPoint extends Google_Model -{ - public $altitude; - public $latitude; - public $longitude; - - public function setAltitude($altitude) - { - $this->altitude = $altitude; - } - - public function getAltitude() - { - return $this->altitude; - } - - public function setLatitude($latitude) - { - $this->latitude = $latitude; - } - - public function getLatitude() - { - return $this->latitude; - } - - public function setLongitude($longitude) - { - $this->longitude = $longitude; - } - - public function getLongitude() - { - return $this->longitude; - } +class Google_Service_YouTube_GeoPoint extends Google_Model { + public $altitude; + public $latitude; + public $longitude; + + public function setAltitude($altitude) { + $this->altitude = $altitude; + } + + public function getAltitude() { + return $this->altitude; + } + + public function setLatitude($latitude) { + $this->latitude = $latitude; + } + + public function getLatitude() { + return $this->latitude; + } + + public function setLongitude($longitude) { + $this->longitude = $longitude; + } + + public function getLongitude() { + return $this->longitude; + } } -class Google_Service_YouTube_GuideCategory extends Google_Model -{ - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet'; - protected $snippetDataType = ''; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } +class Google_Service_YouTube_GuideCategory extends Google_Model { + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet'; + protected $snippetDataType = ''; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } } -class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_GuideCategory'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - - public function getPageInfo() - { - return $this->pageInfo; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } - - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - - public function getTokenPagination() - { - return $this->tokenPagination; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_GuideCategory'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() { + return $this->pageInfo; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } + + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() { + return $this->tokenPagination; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_GuideCategorySnippet extends Google_Model -{ - public $channelId; - public $title; - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_YouTube_GuideCategorySnippet extends Google_Model { + public $channelId; + public $title; + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_YouTube_I18nLanguage extends Google_Model -{ - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet'; - protected $snippetDataType = ''; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_I18nLanguageSnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } +class Google_Service_YouTube_I18nLanguage extends Google_Model { + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet'; + protected $snippetDataType = ''; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_I18nLanguageSnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } } -class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_I18nLanguage'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_I18nLanguage'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model -{ - public $hl; - public $name; - - public function setHl($hl) - { - $this->hl = $hl; - } - - public function getHl() - { - return $this->hl; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } +class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model { + public $hl; + public $name; + + public function setHl($hl) { + $this->hl = $hl; + } + + public function getHl() { + return $this->hl; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } } -class Google_Service_YouTube_I18nRegion extends Google_Model -{ - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_I18nRegionSnippet'; - protected $snippetDataType = ''; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_I18nRegionSnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } +class Google_Service_YouTube_I18nRegion extends Google_Model { + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_I18nRegionSnippet'; + protected $snippetDataType = ''; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_I18nRegionSnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } } -class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_I18nRegion'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_I18nRegion'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_I18nRegionSnippet extends Google_Model -{ - public $gl; - public $name; - - public function setGl($gl) - { - $this->gl = $gl; - } - - public function getGl() - { - return $this->gl; - } - - public function setName($name) - { - $this->name = $name; - } - - public function getName() - { - return $this->name; - } +class Google_Service_YouTube_I18nRegionSnippet extends Google_Model { + public $gl; + public $name; + + public function setGl($gl) { + $this->gl = $gl; + } + + public function getGl() { + return $this->gl; + } + + public function setName($name) { + $this->name = $name; + } + + public function getName() { + return $this->name; + } } -class Google_Service_YouTube_ImageSettings extends Google_Model -{ - protected $backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $backgroundImageUrlDataType = ''; - public $bannerExternalUrl; - public $bannerImageUrl; - public $bannerMobileExtraHdImageUrl; - public $bannerMobileHdImageUrl; - public $bannerMobileImageUrl; - public $bannerMobileLowImageUrl; - public $bannerMobileMediumHdImageUrl; - public $bannerTabletExtraHdImageUrl; - public $bannerTabletHdImageUrl; - public $bannerTabletImageUrl; - public $bannerTabletLowImageUrl; - public $bannerTvHighImageUrl; - public $bannerTvImageUrl; - public $bannerTvLowImageUrl; - public $bannerTvMediumImageUrl; - protected $largeBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; - protected $largeBrandedBannerImageImapScriptDataType = ''; - protected $largeBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $largeBrandedBannerImageUrlDataType = ''; - protected $smallBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; - protected $smallBrandedBannerImageImapScriptDataType = ''; - protected $smallBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; - protected $smallBrandedBannerImageUrlDataType = ''; - public $trackingImageUrl; - public $watchIconImageUrl; - - public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty $backgroundImageUrl) - { - $this->backgroundImageUrl = $backgroundImageUrl; - } - - public function getBackgroundImageUrl() - { - return $this->backgroundImageUrl; - } - - public function setBannerExternalUrl($bannerExternalUrl) - { - $this->bannerExternalUrl = $bannerExternalUrl; - } - - public function getBannerExternalUrl() - { - return $this->bannerExternalUrl; - } - - public function setBannerImageUrl($bannerImageUrl) - { - $this->bannerImageUrl = $bannerImageUrl; - } - - public function getBannerImageUrl() - { - return $this->bannerImageUrl; - } - - public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl) - { - $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl; - } - - public function getBannerMobileExtraHdImageUrl() - { - return $this->bannerMobileExtraHdImageUrl; - } - - public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl) - { - $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl; - } - - public function getBannerMobileHdImageUrl() - { - return $this->bannerMobileHdImageUrl; - } - - public function setBannerMobileImageUrl($bannerMobileImageUrl) - { - $this->bannerMobileImageUrl = $bannerMobileImageUrl; - } - - public function getBannerMobileImageUrl() - { - return $this->bannerMobileImageUrl; - } - - public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl) - { - $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl; - } - - public function getBannerMobileLowImageUrl() - { - return $this->bannerMobileLowImageUrl; - } - - public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl) - { - $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl; - } - - public function getBannerMobileMediumHdImageUrl() - { - return $this->bannerMobileMediumHdImageUrl; - } - - public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl) - { - $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl; - } - - public function getBannerTabletExtraHdImageUrl() - { - return $this->bannerTabletExtraHdImageUrl; - } - - public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl) - { - $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl; - } - - public function getBannerTabletHdImageUrl() - { - return $this->bannerTabletHdImageUrl; - } - - public function setBannerTabletImageUrl($bannerTabletImageUrl) - { - $this->bannerTabletImageUrl = $bannerTabletImageUrl; - } - - public function getBannerTabletImageUrl() - { - return $this->bannerTabletImageUrl; - } - - public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl) - { - $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl; - } - - public function getBannerTabletLowImageUrl() - { - return $this->bannerTabletLowImageUrl; - } - - public function setBannerTvHighImageUrl($bannerTvHighImageUrl) - { - $this->bannerTvHighImageUrl = $bannerTvHighImageUrl; - } - - public function getBannerTvHighImageUrl() - { - return $this->bannerTvHighImageUrl; - } - - public function setBannerTvImageUrl($bannerTvImageUrl) - { - $this->bannerTvImageUrl = $bannerTvImageUrl; - } - - public function getBannerTvImageUrl() - { - return $this->bannerTvImageUrl; - } - - public function setBannerTvLowImageUrl($bannerTvLowImageUrl) - { - $this->bannerTvLowImageUrl = $bannerTvLowImageUrl; - } - - public function getBannerTvLowImageUrl() - { - return $this->bannerTvLowImageUrl; - } - - public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl) - { - $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl; - } - - public function getBannerTvMediumImageUrl() - { - return $this->bannerTvMediumImageUrl; - } - - public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageImapScript) - { - $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript; - } - - public function getLargeBrandedBannerImageImapScript() - { - return $this->largeBrandedBannerImageImapScript; - } - - public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageUrl) - { - $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl; - } - - public function getLargeBrandedBannerImageUrl() - { - return $this->largeBrandedBannerImageUrl; - } - - public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageImapScript) - { - $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript; - } - - public function getSmallBrandedBannerImageImapScript() - { - return $this->smallBrandedBannerImageImapScript; - } - - public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageUrl) - { - $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl; - } - - public function getSmallBrandedBannerImageUrl() - { - return $this->smallBrandedBannerImageUrl; - } - - public function setTrackingImageUrl($trackingImageUrl) - { - $this->trackingImageUrl = $trackingImageUrl; - } - - public function getTrackingImageUrl() - { - return $this->trackingImageUrl; - } - - public function setWatchIconImageUrl($watchIconImageUrl) - { - $this->watchIconImageUrl = $watchIconImageUrl; - } - - public function getWatchIconImageUrl() - { - return $this->watchIconImageUrl; - } +class Google_Service_YouTube_ImageSettings extends Google_Model { + protected $backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; + protected $backgroundImageUrlDataType = ''; + public $bannerExternalUrl; + public $bannerImageUrl; + public $bannerMobileExtraHdImageUrl; + public $bannerMobileHdImageUrl; + public $bannerMobileImageUrl; + public $bannerMobileLowImageUrl; + public $bannerMobileMediumHdImageUrl; + public $bannerTabletExtraHdImageUrl; + public $bannerTabletHdImageUrl; + public $bannerTabletImageUrl; + public $bannerTabletLowImageUrl; + public $bannerTvHighImageUrl; + public $bannerTvImageUrl; + public $bannerTvLowImageUrl; + public $bannerTvMediumImageUrl; + protected $largeBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; + protected $largeBrandedBannerImageImapScriptDataType = ''; + protected $largeBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; + protected $largeBrandedBannerImageUrlDataType = ''; + protected $smallBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty'; + protected $smallBrandedBannerImageImapScriptDataType = ''; + protected $smallBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty'; + protected $smallBrandedBannerImageUrlDataType = ''; + public $trackingImageUrl; + public $watchIconImageUrl; + + public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty $backgroundImageUrl) { + $this->backgroundImageUrl = $backgroundImageUrl; + } + + public function getBackgroundImageUrl() { + return $this->backgroundImageUrl; + } + + public function setBannerExternalUrl($bannerExternalUrl) { + $this->bannerExternalUrl = $bannerExternalUrl; + } + + public function getBannerExternalUrl() { + return $this->bannerExternalUrl; + } + + public function setBannerImageUrl($bannerImageUrl) { + $this->bannerImageUrl = $bannerImageUrl; + } + + public function getBannerImageUrl() { + return $this->bannerImageUrl; + } + + public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl) { + $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl; + } + + public function getBannerMobileExtraHdImageUrl() { + return $this->bannerMobileExtraHdImageUrl; + } + + public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl) { + $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl; + } + + public function getBannerMobileHdImageUrl() { + return $this->bannerMobileHdImageUrl; + } + + public function setBannerMobileImageUrl($bannerMobileImageUrl) { + $this->bannerMobileImageUrl = $bannerMobileImageUrl; + } + + public function getBannerMobileImageUrl() { + return $this->bannerMobileImageUrl; + } + + public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl) { + $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl; + } + + public function getBannerMobileLowImageUrl() { + return $this->bannerMobileLowImageUrl; + } + + public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl) { + $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl; + } + + public function getBannerMobileMediumHdImageUrl() { + return $this->bannerMobileMediumHdImageUrl; + } + + public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl) { + $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl; + } + + public function getBannerTabletExtraHdImageUrl() { + return $this->bannerTabletExtraHdImageUrl; + } + + public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl) { + $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl; + } + + public function getBannerTabletHdImageUrl() { + return $this->bannerTabletHdImageUrl; + } + + public function setBannerTabletImageUrl($bannerTabletImageUrl) { + $this->bannerTabletImageUrl = $bannerTabletImageUrl; + } + + public function getBannerTabletImageUrl() { + return $this->bannerTabletImageUrl; + } + + public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl) { + $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl; + } + + public function getBannerTabletLowImageUrl() { + return $this->bannerTabletLowImageUrl; + } + + public function setBannerTvHighImageUrl($bannerTvHighImageUrl) { + $this->bannerTvHighImageUrl = $bannerTvHighImageUrl; + } + + public function getBannerTvHighImageUrl() { + return $this->bannerTvHighImageUrl; + } + + public function setBannerTvImageUrl($bannerTvImageUrl) { + $this->bannerTvImageUrl = $bannerTvImageUrl; + } + + public function getBannerTvImageUrl() { + return $this->bannerTvImageUrl; + } + + public function setBannerTvLowImageUrl($bannerTvLowImageUrl) { + $this->bannerTvLowImageUrl = $bannerTvLowImageUrl; + } + + public function getBannerTvLowImageUrl() { + return $this->bannerTvLowImageUrl; + } + + public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl) { + $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl; + } + + public function getBannerTvMediumImageUrl() { + return $this->bannerTvMediumImageUrl; + } + + public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageImapScript) { + $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript; + } + + public function getLargeBrandedBannerImageImapScript() { + return $this->largeBrandedBannerImageImapScript; + } + + public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageUrl) { + $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl; + } + + public function getLargeBrandedBannerImageUrl() { + return $this->largeBrandedBannerImageUrl; + } + + public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageImapScript) { + $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript; + } + + public function getSmallBrandedBannerImageImapScript() { + return $this->smallBrandedBannerImageImapScript; + } + + public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageUrl) { + $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl; + } + + public function getSmallBrandedBannerImageUrl() { + return $this->smallBrandedBannerImageUrl; + } + + public function setTrackingImageUrl($trackingImageUrl) { + $this->trackingImageUrl = $trackingImageUrl; + } + + public function getTrackingImageUrl() { + return $this->trackingImageUrl; + } + + public function setWatchIconImageUrl($watchIconImageUrl) { + $this->watchIconImageUrl = $watchIconImageUrl; + } + + public function getWatchIconImageUrl() { + return $this->watchIconImageUrl; + } } -class Google_Service_YouTube_IngestionInfo extends Google_Model -{ - public $backupIngestionAddress; - public $ingestionAddress; - public $streamName; - - public function setBackupIngestionAddress($backupIngestionAddress) - { - $this->backupIngestionAddress = $backupIngestionAddress; - } - - public function getBackupIngestionAddress() - { - return $this->backupIngestionAddress; - } - - public function setIngestionAddress($ingestionAddress) - { - $this->ingestionAddress = $ingestionAddress; - } - - public function getIngestionAddress() - { - return $this->ingestionAddress; - } - - public function setStreamName($streamName) - { - $this->streamName = $streamName; - } - - public function getStreamName() - { - return $this->streamName; - } +class Google_Service_YouTube_IngestionInfo extends Google_Model { + public $backupIngestionAddress; + public $ingestionAddress; + public $streamName; + + public function setBackupIngestionAddress($backupIngestionAddress) { + $this->backupIngestionAddress = $backupIngestionAddress; + } + + public function getBackupIngestionAddress() { + return $this->backupIngestionAddress; + } + + public function setIngestionAddress($ingestionAddress) { + $this->ingestionAddress = $ingestionAddress; + } + + public function getIngestionAddress() { + return $this->ingestionAddress; + } + + public function setStreamName($streamName) { + $this->streamName = $streamName; + } + + public function getStreamName() { + return $this->streamName; + } } -class Google_Service_YouTube_InvideoBranding extends Google_Model -{ - public $imageBytes; - public $imageUrl; - protected $positionType = 'Google_Service_YouTube_InvideoPosition'; - protected $positionDataType = ''; - public $targetChannelId; - protected $timingType = 'Google_Service_YouTube_InvideoTiming'; - protected $timingDataType = ''; - - public function setImageBytes($imageBytes) - { - $this->imageBytes = $imageBytes; - } - - public function getImageBytes() - { - return $this->imageBytes; - } - - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - - public function getImageUrl() - { - return $this->imageUrl; - } - - public function setPosition(Google_Service_YouTube_InvideoPosition $position) - { - $this->position = $position; - } - - public function getPosition() - { - return $this->position; - } - - public function setTargetChannelId($targetChannelId) - { - $this->targetChannelId = $targetChannelId; - } - - public function getTargetChannelId() - { - return $this->targetChannelId; - } - - public function setTiming(Google_Service_YouTube_InvideoTiming $timing) - { - $this->timing = $timing; - } - - public function getTiming() - { - return $this->timing; - } +class Google_Service_YouTube_InvideoBranding extends Google_Model { + public $imageBytes; + public $imageUrl; + protected $positionType = 'Google_Service_YouTube_InvideoPosition'; + protected $positionDataType = ''; + public $targetChannelId; + protected $timingType = 'Google_Service_YouTube_InvideoTiming'; + protected $timingDataType = ''; + + public function setImageBytes($imageBytes) { + $this->imageBytes = $imageBytes; + } + + public function getImageBytes() { + return $this->imageBytes; + } + + public function setImageUrl($imageUrl) { + $this->imageUrl = $imageUrl; + } + + public function getImageUrl() { + return $this->imageUrl; + } + + public function setPosition(Google_Service_YouTube_InvideoPosition $position) { + $this->position = $position; + } + + public function getPosition() { + return $this->position; + } + + public function setTargetChannelId($targetChannelId) { + $this->targetChannelId = $targetChannelId; + } + + public function getTargetChannelId() { + return $this->targetChannelId; + } + + public function setTiming(Google_Service_YouTube_InvideoTiming $timing) { + $this->timing = $timing; + } + + public function getTiming() { + return $this->timing; + } } -class Google_Service_YouTube_InvideoPosition extends Google_Model -{ - public $cornerPosition; - public $type; - - public function setCornerPosition($cornerPosition) - { - $this->cornerPosition = $cornerPosition; - } - - public function getCornerPosition() - { - return $this->cornerPosition; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_YouTube_InvideoPosition extends Google_Model { + public $cornerPosition; + public $type; + + public function setCornerPosition($cornerPosition) { + $this->cornerPosition = $cornerPosition; + } + + public function getCornerPosition() { + return $this->cornerPosition; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_YouTube_InvideoPromotion extends Google_Collection -{ - protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming'; - protected $defaultTimingDataType = ''; - protected $itemsType = 'Google_Service_YouTube_PromotedItem'; - protected $itemsDataType = 'array'; - protected $positionType = 'Google_Service_YouTube_InvideoPosition'; - protected $positionDataType = ''; - - public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming) - { - $this->defaultTiming = $defaultTiming; - } - - public function getDefaultTiming() - { - return $this->defaultTiming; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setPosition(Google_Service_YouTube_InvideoPosition $position) - { - $this->position = $position; - } - - public function getPosition() - { - return $this->position; - } +class Google_Service_YouTube_InvideoPromotion extends Google_Collection { + protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming'; + protected $defaultTimingDataType = ''; + protected $itemsType = 'Google_Service_YouTube_PromotedItem'; + protected $itemsDataType = 'array'; + protected $positionType = 'Google_Service_YouTube_InvideoPosition'; + protected $positionDataType = ''; + + public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming) { + $this->defaultTiming = $defaultTiming; + } + + public function getDefaultTiming() { + return $this->defaultTiming; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setPosition(Google_Service_YouTube_InvideoPosition $position) { + $this->position = $position; + } + + public function getPosition() { + return $this->position; + } } -class Google_Service_YouTube_InvideoTiming extends Google_Model -{ - public $durationMs; - public $offsetMs; - public $type; - - public function setDurationMs($durationMs) - { - $this->durationMs = $durationMs; - } - - public function getDurationMs() - { - return $this->durationMs; - } - - public function setOffsetMs($offsetMs) - { - $this->offsetMs = $offsetMs; - } - - public function getOffsetMs() - { - return $this->offsetMs; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } +class Google_Service_YouTube_InvideoTiming extends Google_Model { + public $durationMs; + public $offsetMs; + public $type; + + public function setDurationMs($durationMs) { + $this->durationMs = $durationMs; + } + + public function getDurationMs() { + return $this->durationMs; + } + + public function setOffsetMs($offsetMs) { + $this->offsetMs = $offsetMs; + } + + public function getOffsetMs() { + return $this->offsetMs; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } } -class Google_Service_YouTube_LiveBroadcast extends Google_Model -{ - protected $contentDetailsType = 'Google_Service_YouTube_LiveBroadcastContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus'; - protected $statusDataType = ''; - - public function setContentDetails(Google_Service_YouTube_LiveBroadcastContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - - public function getContentDetails() - { - return $this->contentDetails; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_LiveBroadcastSnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } - - public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } +class Google_Service_YouTube_LiveBroadcast extends Google_Model { + protected $contentDetailsType = 'Google_Service_YouTube_LiveBroadcastContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet'; + protected $snippetDataType = ''; + protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus'; + protected $statusDataType = ''; + + public function setContentDetails(Google_Service_YouTube_LiveBroadcastContentDetails $contentDetails) { + $this->contentDetails = $contentDetails; + } + + public function getContentDetails() { + return $this->contentDetails; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_LiveBroadcastSnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } + + public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } } -class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model -{ - public $boundStreamId; - public $enableClosedCaptions; - public $enableContentEncryption; - public $enableDvr; - public $enableEmbed; - protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo'; - protected $monitorStreamDataType = ''; - public $recordFromStart; - public $startWithSlate; - - public function setBoundStreamId($boundStreamId) - { - $this->boundStreamId = $boundStreamId; - } - - public function getBoundStreamId() - { - return $this->boundStreamId; - } - - public function setEnableClosedCaptions($enableClosedCaptions) - { - $this->enableClosedCaptions = $enableClosedCaptions; - } - - public function getEnableClosedCaptions() - { - return $this->enableClosedCaptions; - } - - public function setEnableContentEncryption($enableContentEncryption) - { - $this->enableContentEncryption = $enableContentEncryption; - } - - public function getEnableContentEncryption() - { - return $this->enableContentEncryption; - } - - public function setEnableDvr($enableDvr) - { - $this->enableDvr = $enableDvr; - } - - public function getEnableDvr() - { - return $this->enableDvr; - } - - public function setEnableEmbed($enableEmbed) - { - $this->enableEmbed = $enableEmbed; - } - - public function getEnableEmbed() - { - return $this->enableEmbed; - } - - public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream) - { - $this->monitorStream = $monitorStream; - } - - public function getMonitorStream() - { - return $this->monitorStream; - } - - public function setRecordFromStart($recordFromStart) - { - $this->recordFromStart = $recordFromStart; - } - - public function getRecordFromStart() - { - return $this->recordFromStart; - } - - public function setStartWithSlate($startWithSlate) - { - $this->startWithSlate = $startWithSlate; - } - - public function getStartWithSlate() - { - return $this->startWithSlate; - } +class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model { + public $boundStreamId; + public $enableClosedCaptions; + public $enableContentEncryption; + public $enableDvr; + public $enableEmbed; + protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo'; + protected $monitorStreamDataType = ''; + public $recordFromStart; + public $startWithSlate; + + public function setBoundStreamId($boundStreamId) { + $this->boundStreamId = $boundStreamId; + } + + public function getBoundStreamId() { + return $this->boundStreamId; + } + + public function setEnableClosedCaptions($enableClosedCaptions) { + $this->enableClosedCaptions = $enableClosedCaptions; + } + + public function getEnableClosedCaptions() { + return $this->enableClosedCaptions; + } + + public function setEnableContentEncryption($enableContentEncryption) { + $this->enableContentEncryption = $enableContentEncryption; + } + + public function getEnableContentEncryption() { + return $this->enableContentEncryption; + } + + public function setEnableDvr($enableDvr) { + $this->enableDvr = $enableDvr; + } + + public function getEnableDvr() { + return $this->enableDvr; + } + + public function setEnableEmbed($enableEmbed) { + $this->enableEmbed = $enableEmbed; + } + + public function getEnableEmbed() { + return $this->enableEmbed; + } + + public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream) { + $this->monitorStream = $monitorStream; + } + + public function getMonitorStream() { + return $this->monitorStream; + } + + public function setRecordFromStart($recordFromStart) { + $this->recordFromStart = $recordFromStart; + } + + public function getRecordFromStart() { + return $this->recordFromStart; + } + + public function setStartWithSlate($startWithSlate) { + $this->startWithSlate = $startWithSlate; + } + + public function getStartWithSlate() { + return $this->startWithSlate; + } } -class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_LiveBroadcast'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - - public function getPageInfo() - { - return $this->pageInfo; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } - - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - - public function getTokenPagination() - { - return $this->tokenPagination; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_LiveBroadcast'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() { + return $this->pageInfo; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } + + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() { + return $this->tokenPagination; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model -{ - public $actualEndTime; - public $actualStartTime; - public $channelId; - public $description; - public $publishedAt; - public $scheduledEndTime; - public $scheduledStartTime; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - public function setActualEndTime($actualEndTime) - { - $this->actualEndTime = $actualEndTime; - } - - public function getActualEndTime() - { - return $this->actualEndTime; - } - - public function setActualStartTime($actualStartTime) - { - $this->actualStartTime = $actualStartTime; - } - - public function getActualStartTime() - { - return $this->actualStartTime; - } - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - - public function getPublishedAt() - { - return $this->publishedAt; - } - - public function setScheduledEndTime($scheduledEndTime) - { - $this->scheduledEndTime = $scheduledEndTime; - } - - public function getScheduledEndTime() - { - return $this->scheduledEndTime; - } - - public function setScheduledStartTime($scheduledStartTime) - { - $this->scheduledStartTime = $scheduledStartTime; - } - - public function getScheduledStartTime() - { - return $this->scheduledStartTime; - } - - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - - public function getThumbnails() - { - return $this->thumbnails; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model { + public $actualEndTime; + public $actualStartTime; + public $channelId; + public $description; + public $publishedAt; + public $scheduledEndTime; + public $scheduledStartTime; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + public function setActualEndTime($actualEndTime) { + $this->actualEndTime = $actualEndTime; + } + + public function getActualEndTime() { + return $this->actualEndTime; + } + + public function setActualStartTime($actualStartTime) { + $this->actualStartTime = $actualStartTime; + } + + public function getActualStartTime() { + return $this->actualStartTime; + } + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setPublishedAt($publishedAt) { + $this->publishedAt = $publishedAt; + } + + public function getPublishedAt() { + return $this->publishedAt; + } + + public function setScheduledEndTime($scheduledEndTime) { + $this->scheduledEndTime = $scheduledEndTime; + } + + public function getScheduledEndTime() { + return $this->scheduledEndTime; + } + + public function setScheduledStartTime($scheduledStartTime) { + $this->scheduledStartTime = $scheduledStartTime; + } + + public function getScheduledStartTime() { + return $this->scheduledStartTime; + } + + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { + $this->thumbnails = $thumbnails; + } + + public function getThumbnails() { + return $this->thumbnails; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model -{ - public $lifeCycleStatus; - public $liveBroadcastPriority; - public $privacyStatus; - public $recordingStatus; - - public function setLifeCycleStatus($lifeCycleStatus) - { - $this->lifeCycleStatus = $lifeCycleStatus; - } - - public function getLifeCycleStatus() - { - return $this->lifeCycleStatus; - } - - public function setLiveBroadcastPriority($liveBroadcastPriority) - { - $this->liveBroadcastPriority = $liveBroadcastPriority; - } - - public function getLiveBroadcastPriority() - { - return $this->liveBroadcastPriority; - } - - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - - public function getPrivacyStatus() - { - return $this->privacyStatus; - } - - public function setRecordingStatus($recordingStatus) - { - $this->recordingStatus = $recordingStatus; - } - - public function getRecordingStatus() - { - return $this->recordingStatus; - } +class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model { + public $lifeCycleStatus; + public $liveBroadcastPriority; + public $privacyStatus; + public $recordingStatus; + + public function setLifeCycleStatus($lifeCycleStatus) { + $this->lifeCycleStatus = $lifeCycleStatus; + } + + public function getLifeCycleStatus() { + return $this->lifeCycleStatus; + } + + public function setLiveBroadcastPriority($liveBroadcastPriority) { + $this->liveBroadcastPriority = $liveBroadcastPriority; + } + + public function getLiveBroadcastPriority() { + return $this->liveBroadcastPriority; + } + + public function setPrivacyStatus($privacyStatus) { + $this->privacyStatus = $privacyStatus; + } + + public function getPrivacyStatus() { + return $this->privacyStatus; + } + + public function setRecordingStatus($recordingStatus) { + $this->recordingStatus = $recordingStatus; + } + + public function getRecordingStatus() { + return $this->recordingStatus; + } } -class Google_Service_YouTube_LiveStream extends Google_Model -{ - protected $cdnType = 'Google_Service_YouTube_CdnSettings'; - protected $cdnDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_LiveStreamContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_LiveStreamSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_LiveStreamStatus'; - protected $statusDataType = ''; - - public function setCdn(Google_Service_YouTube_CdnSettings $cdn) - { - $this->cdn = $cdn; - } - - public function getCdn() - { - return $this->cdn; - } - - public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - - public function getContentDetails() - { - return $this->contentDetails; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } - - public function setStatus(Google_Service_YouTube_LiveStreamStatus $status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } +class Google_Service_YouTube_LiveStream extends Google_Model { + protected $cdnType = 'Google_Service_YouTube_CdnSettings'; + protected $cdnDataType = ''; + protected $contentDetailsType = 'Google_Service_YouTube_LiveStreamContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_LiveStreamSnippet'; + protected $snippetDataType = ''; + protected $statusType = 'Google_Service_YouTube_LiveStreamStatus'; + protected $statusDataType = ''; + + public function setCdn(Google_Service_YouTube_CdnSettings $cdn) { + $this->cdn = $cdn; + } + + public function getCdn() { + return $this->cdn; + } + + public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetails $contentDetails) { + $this->contentDetails = $contentDetails; + } + + public function getContentDetails() { + return $this->contentDetails; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } + + public function setStatus(Google_Service_YouTube_LiveStreamStatus $status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } } -class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model -{ - public $closedCaptionsIngestionUrl; +class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model { + public $closedCaptionsIngestionUrl; - public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl) - { - $this->closedCaptionsIngestionUrl = $closedCaptionsIngestionUrl; - } + public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl) { + $this->closedCaptionsIngestionUrl = $closedCaptionsIngestionUrl; + } - public function getClosedCaptionsIngestionUrl() - { - return $this->closedCaptionsIngestionUrl; - } + public function getClosedCaptionsIngestionUrl() { + return $this->closedCaptionsIngestionUrl; + } } -class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_LiveStream'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - - public function getPageInfo() - { - return $this->pageInfo; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } - - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - - public function getTokenPagination() - { - return $this->tokenPagination; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_LiveStream'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() { + return $this->pageInfo; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } + + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() { + return $this->tokenPagination; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_LiveStreamSnippet extends Google_Model -{ - public $channelId; - public $description; - public $publishedAt; - public $title; - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - - public function getPublishedAt() - { - return $this->publishedAt; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_YouTube_LiveStreamSnippet extends Google_Model { + public $channelId; + public $description; + public $publishedAt; + public $title; + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setPublishedAt($publishedAt) { + $this->publishedAt = $publishedAt; + } + + public function getPublishedAt() { + return $this->publishedAt; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_YouTube_LiveStreamStatus extends Google_Model -{ - public $streamStatus; +class Google_Service_YouTube_LiveStreamStatus extends Google_Model { + public $streamStatus; - public function setStreamStatus($streamStatus) - { - $this->streamStatus = $streamStatus; - } + public function setStreamStatus($streamStatus) { + $this->streamStatus = $streamStatus; + } - public function getStreamStatus() - { - return $this->streamStatus; - } + public function getStreamStatus() { + return $this->streamStatus; + } } -class Google_Service_YouTube_LocalizedProperty extends Google_Collection -{ - public $default; - protected $localizedType = 'Google_Service_YouTube_LocalizedString'; - protected $localizedDataType = 'array'; - - public function setDefault($default) - { - $this->default = $default; - } - - public function getDefault() - { - return $this->default; - } - - public function setLocalized($localized) - { - $this->localized = $localized; - } - - public function getLocalized() - { - return $this->localized; - } +class Google_Service_YouTube_LocalizedProperty extends Google_Collection { + public $default; + protected $localizedType = 'Google_Service_YouTube_LocalizedString'; + protected $localizedDataType = 'array'; + + public function setDefault($default) { + $this->default = $default; + } + + public function getDefault() { + return $this->default; + } + + public function setLocalized($localized) { + $this->localized = $localized; + } + + public function getLocalized() { + return $this->localized; + } } -class Google_Service_YouTube_LocalizedString extends Google_Model -{ - public $language; - public $value; - - public function setLanguage($language) - { - $this->language = $language; - } - - public function getLanguage() - { - return $this->language; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } +class Google_Service_YouTube_LocalizedString extends Google_Model { + public $language; + public $value; + + public function setLanguage($language) { + $this->language = $language; + } + + public function getLanguage() { + return $this->language; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } } -class Google_Service_YouTube_MonitorStreamInfo extends Google_Model -{ - public $broadcastStreamDelayMs; - public $embedHtml; - public $enableMonitorStream; - - public function setBroadcastStreamDelayMs($broadcastStreamDelayMs) - { - $this->broadcastStreamDelayMs = $broadcastStreamDelayMs; - } - - public function getBroadcastStreamDelayMs() - { - return $this->broadcastStreamDelayMs; - } - - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } - - public function getEmbedHtml() - { - return $this->embedHtml; - } - - public function setEnableMonitorStream($enableMonitorStream) - { - $this->enableMonitorStream = $enableMonitorStream; - } - - public function getEnableMonitorStream() - { - return $this->enableMonitorStream; - } +class Google_Service_YouTube_MonitorStreamInfo extends Google_Model { + public $broadcastStreamDelayMs; + public $embedHtml; + public $enableMonitorStream; + + public function setBroadcastStreamDelayMs($broadcastStreamDelayMs) { + $this->broadcastStreamDelayMs = $broadcastStreamDelayMs; + } + + public function getBroadcastStreamDelayMs() { + return $this->broadcastStreamDelayMs; + } + + public function setEmbedHtml($embedHtml) { + $this->embedHtml = $embedHtml; + } + + public function getEmbedHtml() { + return $this->embedHtml; + } + + public function setEnableMonitorStream($enableMonitorStream) { + $this->enableMonitorStream = $enableMonitorStream; + } + + public function getEnableMonitorStream() { + return $this->enableMonitorStream; + } } -class Google_Service_YouTube_PageInfo extends Google_Model -{ - public $resultsPerPage; - public $totalResults; - - public function setResultsPerPage($resultsPerPage) - { - $this->resultsPerPage = $resultsPerPage; - } - - public function getResultsPerPage() - { - return $this->resultsPerPage; - } - - public function setTotalResults($totalResults) - { - $this->totalResults = $totalResults; - } - - public function getTotalResults() - { - return $this->totalResults; - } +class Google_Service_YouTube_PageInfo extends Google_Model { + public $resultsPerPage; + public $totalResults; + + public function setResultsPerPage($resultsPerPage) { + $this->resultsPerPage = $resultsPerPage; + } + + public function getResultsPerPage() { + return $this->resultsPerPage; + } + + public function setTotalResults($totalResults) { + $this->totalResults = $totalResults; + } + + public function getTotalResults() { + return $this->totalResults; + } } -class Google_Service_YouTube_Playlist extends Google_Model -{ - protected $contentDetailsType = 'Google_Service_YouTube_PlaylistContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $playerType = 'Google_Service_YouTube_PlaylistPlayer'; - protected $playerDataType = ''; - protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_PlaylistStatus'; - protected $statusDataType = ''; - - public function setContentDetails(Google_Service_YouTube_PlaylistContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - - public function getContentDetails() - { - return $this->contentDetails; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPlayer(Google_Service_YouTube_PlaylistPlayer $player) - { - $this->player = $player; - } - - public function getPlayer() - { - return $this->player; - } - - public function setSnippet(Google_Service_YouTube_PlaylistSnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } - - public function setStatus(Google_Service_YouTube_PlaylistStatus $status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } +class Google_Service_YouTube_Playlist extends Google_Model { + protected $contentDetailsType = 'Google_Service_YouTube_PlaylistContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $playerType = 'Google_Service_YouTube_PlaylistPlayer'; + protected $playerDataType = ''; + protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet'; + protected $snippetDataType = ''; + protected $statusType = 'Google_Service_YouTube_PlaylistStatus'; + protected $statusDataType = ''; + + public function setContentDetails(Google_Service_YouTube_PlaylistContentDetails $contentDetails) { + $this->contentDetails = $contentDetails; + } + + public function getContentDetails() { + return $this->contentDetails; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPlayer(Google_Service_YouTube_PlaylistPlayer $player) { + $this->player = $player; + } + + public function getPlayer() { + return $this->player; + } + + public function setSnippet(Google_Service_YouTube_PlaylistSnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } + + public function setStatus(Google_Service_YouTube_PlaylistStatus $status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } } -class Google_Service_YouTube_PlaylistContentDetails extends Google_Model -{ - public $itemCount; +class Google_Service_YouTube_PlaylistContentDetails extends Google_Model { + public $itemCount; - public function setItemCount($itemCount) - { - $this->itemCount = $itemCount; - } + public function setItemCount($itemCount) { + $this->itemCount = $itemCount; + } - public function getItemCount() - { - return $this->itemCount; - } + public function getItemCount() { + return $this->itemCount; + } } -class Google_Service_YouTube_PlaylistItem extends Google_Model -{ - protected $contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_PlaylistItemSnippet'; - protected $snippetDataType = ''; - protected $statusType = 'Google_Service_YouTube_PlaylistItemStatus'; - protected $statusDataType = ''; - - public function setContentDetails(Google_Service_YouTube_PlaylistItemContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - - public function getContentDetails() - { - return $this->contentDetails; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } - - public function setStatus(Google_Service_YouTube_PlaylistItemStatus $status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } +class Google_Service_YouTube_PlaylistItem extends Google_Model { + protected $contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_PlaylistItemSnippet'; + protected $snippetDataType = ''; + protected $statusType = 'Google_Service_YouTube_PlaylistItemStatus'; + protected $statusDataType = ''; + + public function setContentDetails(Google_Service_YouTube_PlaylistItemContentDetails $contentDetails) { + $this->contentDetails = $contentDetails; + } + + public function getContentDetails() { + return $this->contentDetails; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } + + public function setStatus(Google_Service_YouTube_PlaylistItemStatus $status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } } -class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model -{ - public $endAt; - public $note; - public $startAt; - public $videoId; - - public function setEndAt($endAt) - { - $this->endAt = $endAt; - } - - public function getEndAt() - { - return $this->endAt; - } - - public function setNote($note) - { - $this->note = $note; - } - - public function getNote() - { - return $this->note; - } - - public function setStartAt($startAt) - { - $this->startAt = $startAt; - } - - public function getStartAt() - { - return $this->startAt; - } - - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - - public function getVideoId() - { - return $this->videoId; - } +class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model { + public $endAt; + public $note; + public $startAt; + public $videoId; + + public function setEndAt($endAt) { + $this->endAt = $endAt; + } + + public function getEndAt() { + return $this->endAt; + } + + public function setNote($note) { + $this->note = $note; + } + + public function getNote() { + return $this->note; + } + + public function setStartAt($startAt) { + $this->startAt = $startAt; + } + + public function getStartAt() { + return $this->startAt; + } + + public function setVideoId($videoId) { + $this->videoId = $videoId; + } + + public function getVideoId() { + return $this->videoId; + } } -class Google_Service_YouTube_PlaylistItemListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_PlaylistItem'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - - public function getPageInfo() - { - return $this->pageInfo; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } - - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - - public function getTokenPagination() - { - return $this->tokenPagination; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_PlaylistItemListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_PlaylistItem'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() { + return $this->pageInfo; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } + + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() { + return $this->tokenPagination; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model -{ - public $channelId; - public $channelTitle; - public $description; - public $playlistId; - public $position; - public $publishedAt; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - - public function getChannelTitle() - { - return $this->channelTitle; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setPlaylistId($playlistId) - { - $this->playlistId = $playlistId; - } - - public function getPlaylistId() - { - return $this->playlistId; - } - - public function setPosition($position) - { - $this->position = $position; - } - - public function getPosition() - { - return $this->position; - } - - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - - public function getPublishedAt() - { - return $this->publishedAt; - } - - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - - public function getResourceId() - { - return $this->resourceId; - } - - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - - public function getThumbnails() - { - return $this->thumbnails; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model { + public $channelId; + public $channelTitle; + public $description; + public $playlistId; + public $position; + public $publishedAt; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setChannelTitle($channelTitle) { + $this->channelTitle = $channelTitle; + } + + public function getChannelTitle() { + return $this->channelTitle; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setPlaylistId($playlistId) { + $this->playlistId = $playlistId; + } + + public function getPlaylistId() { + return $this->playlistId; + } + + public function setPosition($position) { + $this->position = $position; + } + + public function getPosition() { + return $this->position; + } + + public function setPublishedAt($publishedAt) { + $this->publishedAt = $publishedAt; + } + + public function getPublishedAt() { + return $this->publishedAt; + } + + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { + $this->resourceId = $resourceId; + } + + public function getResourceId() { + return $this->resourceId; + } + + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { + $this->thumbnails = $thumbnails; + } + + public function getThumbnails() { + return $this->thumbnails; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_YouTube_PlaylistItemStatus extends Google_Model -{ - public $privacyStatus; +class Google_Service_YouTube_PlaylistItemStatus extends Google_Model { + public $privacyStatus; - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } + public function setPrivacyStatus($privacyStatus) { + $this->privacyStatus = $privacyStatus; + } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } + public function getPrivacyStatus() { + return $this->privacyStatus; + } } -class Google_Service_YouTube_PlaylistListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Playlist'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - - public function getPageInfo() - { - return $this->pageInfo; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } - - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - - public function getTokenPagination() - { - return $this->tokenPagination; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_PlaylistListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Playlist'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() { + return $this->pageInfo; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } + + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() { + return $this->tokenPagination; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_PlaylistPlayer extends Google_Model -{ - public $embedHtml; +class Google_Service_YouTube_PlaylistPlayer extends Google_Model { + public $embedHtml; - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } + public function setEmbedHtml($embedHtml) { + $this->embedHtml = $embedHtml; + } - public function getEmbedHtml() - { - return $this->embedHtml; - } + public function getEmbedHtml() { + return $this->embedHtml; + } } -class Google_Service_YouTube_PlaylistSnippet extends Google_Collection -{ - public $channelId; - public $channelTitle; - public $description; - public $publishedAt; - public $tags; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - - public function getChannelTitle() - { - return $this->channelTitle; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - - public function getPublishedAt() - { - return $this->publishedAt; - } - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } - - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - - public function getThumbnails() - { - return $this->thumbnails; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_YouTube_PlaylistSnippet extends Google_Collection { + public $channelId; + public $channelTitle; + public $description; + public $publishedAt; + public $tags; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setChannelTitle($channelTitle) { + $this->channelTitle = $channelTitle; + } + + public function getChannelTitle() { + return $this->channelTitle; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setPublishedAt($publishedAt) { + $this->publishedAt = $publishedAt; + } + + public function getPublishedAt() { + return $this->publishedAt; + } + + public function setTags($tags) { + $this->tags = $tags; + } + + public function getTags() { + return $this->tags; + } + + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { + $this->thumbnails = $thumbnails; + } + + public function getThumbnails() { + return $this->thumbnails; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_YouTube_PlaylistStatus extends Google_Model -{ - public $privacyStatus; +class Google_Service_YouTube_PlaylistStatus extends Google_Model { + public $privacyStatus; - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } + public function setPrivacyStatus($privacyStatus) { + $this->privacyStatus = $privacyStatus; + } - public function getPrivacyStatus() - { - return $this->privacyStatus; - } + public function getPrivacyStatus() { + return $this->privacyStatus; + } } -class Google_Service_YouTube_PromotedItem extends Google_Model -{ - public $customMessage; - protected $idType = 'Google_Service_YouTube_PromotedItemId'; - protected $idDataType = ''; - public $promotedByContentOwner; - protected $timingType = 'Google_Service_YouTube_InvideoTiming'; - protected $timingDataType = ''; - - public function setCustomMessage($customMessage) - { - $this->customMessage = $customMessage; - } - - public function getCustomMessage() - { - return $this->customMessage; - } - - public function setId(Google_Service_YouTube_PromotedItemId $id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setPromotedByContentOwner($promotedByContentOwner) - { - $this->promotedByContentOwner = $promotedByContentOwner; - } - - public function getPromotedByContentOwner() - { - return $this->promotedByContentOwner; - } - - public function setTiming(Google_Service_YouTube_InvideoTiming $timing) - { - $this->timing = $timing; - } - - public function getTiming() - { - return $this->timing; - } +class Google_Service_YouTube_PromotedItem extends Google_Model { + public $customMessage; + protected $idType = 'Google_Service_YouTube_PromotedItemId'; + protected $idDataType = ''; + public $promotedByContentOwner; + protected $timingType = 'Google_Service_YouTube_InvideoTiming'; + protected $timingDataType = ''; + + public function setCustomMessage($customMessage) { + $this->customMessage = $customMessage; + } + + public function getCustomMessage() { + return $this->customMessage; + } + + public function setId(Google_Service_YouTube_PromotedItemId $id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setPromotedByContentOwner($promotedByContentOwner) { + $this->promotedByContentOwner = $promotedByContentOwner; + } + + public function getPromotedByContentOwner() { + return $this->promotedByContentOwner; + } + + public function setTiming(Google_Service_YouTube_InvideoTiming $timing) { + $this->timing = $timing; + } + + public function getTiming() { + return $this->timing; + } } -class Google_Service_YouTube_PromotedItemId extends Google_Model -{ - public $recentlyUploadedBy; - public $type; - public $videoId; - public $websiteUrl; - - public function setRecentlyUploadedBy($recentlyUploadedBy) - { - $this->recentlyUploadedBy = $recentlyUploadedBy; - } - - public function getRecentlyUploadedBy() - { - return $this->recentlyUploadedBy; - } - - public function setType($type) - { - $this->type = $type; - } - - public function getType() - { - return $this->type; - } - - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - - public function getVideoId() - { - return $this->videoId; - } - - public function setWebsiteUrl($websiteUrl) - { - $this->websiteUrl = $websiteUrl; - } - - public function getWebsiteUrl() - { - return $this->websiteUrl; - } +class Google_Service_YouTube_PromotedItemId extends Google_Model { + public $recentlyUploadedBy; + public $type; + public $videoId; + public $websiteUrl; + + public function setRecentlyUploadedBy($recentlyUploadedBy) { + $this->recentlyUploadedBy = $recentlyUploadedBy; + } + + public function getRecentlyUploadedBy() { + return $this->recentlyUploadedBy; + } + + public function setType($type) { + $this->type = $type; + } + + public function getType() { + return $this->type; + } + + public function setVideoId($videoId) { + $this->videoId = $videoId; + } + + public function getVideoId() { + return $this->videoId; + } + + public function setWebsiteUrl($websiteUrl) { + $this->websiteUrl = $websiteUrl; + } + + public function getWebsiteUrl() { + return $this->websiteUrl; + } } -class Google_Service_YouTube_PropertyValue extends Google_Model -{ - public $property; - public $value; - - public function setProperty($property) - { - $this->property = $property; - } - - public function getProperty() - { - return $this->property; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function getValue() - { - return $this->value; - } +class Google_Service_YouTube_PropertyValue extends Google_Model { + public $property; + public $value; + + public function setProperty($property) { + $this->property = $property; + } + + public function getProperty() { + return $this->property; + } + + public function setValue($value) { + $this->value = $value; + } + + public function getValue() { + return $this->value; + } } -class Google_Service_YouTube_ResourceId extends Google_Model -{ - public $channelId; - public $kind; - public $playlistId; - public $videoId; - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setPlaylistId($playlistId) - { - $this->playlistId = $playlistId; - } - - public function getPlaylistId() - { - return $this->playlistId; - } - - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - - public function getVideoId() - { - return $this->videoId; - } +class Google_Service_YouTube_ResourceId extends Google_Model { + public $channelId; + public $kind; + public $playlistId; + public $videoId; + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setPlaylistId($playlistId) { + $this->playlistId = $playlistId; + } + + public function getPlaylistId() { + return $this->playlistId; + } + + public function setVideoId($videoId) { + $this->videoId = $videoId; + } + + public function getVideoId() { + return $this->videoId; + } } -class Google_Service_YouTube_SearchListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_SearchResult'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - - public function getPageInfo() - { - return $this->pageInfo; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } - - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - - public function getTokenPagination() - { - return $this->tokenPagination; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_SearchListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_SearchResult'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() { + return $this->pageInfo; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } + + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() { + return $this->tokenPagination; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_SearchResult extends Google_Model -{ - public $etag; - protected $idType = 'Google_Service_YouTube_ResourceId'; - protected $idDataType = ''; - public $kind; - protected $snippetType = 'Google_Service_YouTube_SearchResultSnippet'; - protected $snippetDataType = ''; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId(Google_Service_YouTube_ResourceId $id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_SearchResultSnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } +class Google_Service_YouTube_SearchResult extends Google_Model { + public $etag; + protected $idType = 'Google_Service_YouTube_ResourceId'; + protected $idDataType = ''; + public $kind; + protected $snippetType = 'Google_Service_YouTube_SearchResultSnippet'; + protected $snippetDataType = ''; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId(Google_Service_YouTube_ResourceId $id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_SearchResultSnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } } -class Google_Service_YouTube_SearchResultSnippet extends Google_Model -{ - public $channelId; - public $channelTitle; - public $description; - public $liveBroadcastContent; - public $publishedAt; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - - public function getChannelTitle() - { - return $this->channelTitle; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setLiveBroadcastContent($liveBroadcastContent) - { - $this->liveBroadcastContent = $liveBroadcastContent; - } - - public function getLiveBroadcastContent() - { - return $this->liveBroadcastContent; - } - - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - - public function getPublishedAt() - { - return $this->publishedAt; - } - - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - - public function getThumbnails() - { - return $this->thumbnails; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_YouTube_SearchResultSnippet extends Google_Model { + public $channelId; + public $channelTitle; + public $description; + public $liveBroadcastContent; + public $publishedAt; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setChannelTitle($channelTitle) { + $this->channelTitle = $channelTitle; + } + + public function getChannelTitle() { + return $this->channelTitle; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setLiveBroadcastContent($liveBroadcastContent) { + $this->liveBroadcastContent = $liveBroadcastContent; + } + + public function getLiveBroadcastContent() { + return $this->liveBroadcastContent; + } + + public function setPublishedAt($publishedAt) { + $this->publishedAt = $publishedAt; + } + + public function getPublishedAt() { + return $this->publishedAt; + } + + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { + $this->thumbnails = $thumbnails; + } + + public function getThumbnails() { + return $this->thumbnails; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_YouTube_Subscription extends Google_Model -{ - protected $contentDetailsType = 'Google_Service_YouTube_SubscriptionContentDetails'; - protected $contentDetailsDataType = ''; - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_SubscriptionSnippet'; - protected $snippetDataType = ''; - protected $subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet'; - protected $subscriberSnippetDataType = ''; - - public function setContentDetails(Google_Service_YouTube_SubscriptionContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - - public function getContentDetails() - { - return $this->contentDetails; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } - - public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscriberSnippet $subscriberSnippet) - { - $this->subscriberSnippet = $subscriberSnippet; - } - - public function getSubscriberSnippet() - { - return $this->subscriberSnippet; - } +class Google_Service_YouTube_Subscription extends Google_Model { + protected $contentDetailsType = 'Google_Service_YouTube_SubscriptionContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_SubscriptionSnippet'; + protected $snippetDataType = ''; + protected $subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet'; + protected $subscriberSnippetDataType = ''; + + public function setContentDetails(Google_Service_YouTube_SubscriptionContentDetails $contentDetails) { + $this->contentDetails = $contentDetails; + } + + public function getContentDetails() { + return $this->contentDetails; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } + + public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscriberSnippet $subscriberSnippet) { + $this->subscriberSnippet = $subscriberSnippet; + } + + public function getSubscriberSnippet() { + return $this->subscriberSnippet; + } } -class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model -{ - public $activityType; - public $newItemCount; - public $totalItemCount; - - public function setActivityType($activityType) - { - $this->activityType = $activityType; - } - - public function getActivityType() - { - return $this->activityType; - } - - public function setNewItemCount($newItemCount) - { - $this->newItemCount = $newItemCount; - } - - public function getNewItemCount() - { - return $this->newItemCount; - } - - public function setTotalItemCount($totalItemCount) - { - $this->totalItemCount = $totalItemCount; - } - - public function getTotalItemCount() - { - return $this->totalItemCount; - } +class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model { + public $activityType; + public $newItemCount; + public $totalItemCount; + + public function setActivityType($activityType) { + $this->activityType = $activityType; + } + + public function getActivityType() { + return $this->activityType; + } + + public function setNewItemCount($newItemCount) { + $this->newItemCount = $newItemCount; + } + + public function getNewItemCount() { + return $this->newItemCount; + } + + public function setTotalItemCount($totalItemCount) { + $this->totalItemCount = $totalItemCount; + } + + public function getTotalItemCount() { + return $this->totalItemCount; + } } -class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Subscription'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - - public function getPageInfo() - { - return $this->pageInfo; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } - - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - - public function getTokenPagination() - { - return $this->tokenPagination; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Subscription'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() { + return $this->pageInfo; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } + + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() { + return $this->tokenPagination; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_SubscriptionSnippet extends Google_Model -{ - public $channelId; - public $channelTitle; - public $description; - public $publishedAt; - protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; - protected $resourceIdDataType = ''; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - - public function getChannelTitle() - { - return $this->channelTitle; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - - public function getPublishedAt() - { - return $this->publishedAt; - } - - public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) - { - $this->resourceId = $resourceId; - } - - public function getResourceId() - { - return $this->resourceId; - } - - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - - public function getThumbnails() - { - return $this->thumbnails; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_YouTube_SubscriptionSnippet extends Google_Model { + public $channelId; + public $channelTitle; + public $description; + public $publishedAt; + protected $resourceIdType = 'Google_Service_YouTube_ResourceId'; + protected $resourceIdDataType = ''; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setChannelTitle($channelTitle) { + $this->channelTitle = $channelTitle; + } + + public function getChannelTitle() { + return $this->channelTitle; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setPublishedAt($publishedAt) { + $this->publishedAt = $publishedAt; + } + + public function getPublishedAt() { + return $this->publishedAt; + } + + public function setResourceId(Google_Service_YouTube_ResourceId $resourceId) { + $this->resourceId = $resourceId; + } + + public function getResourceId() { + return $this->resourceId; + } + + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { + $this->thumbnails = $thumbnails; + } + + public function getThumbnails() { + return $this->thumbnails; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model -{ - public $channelId; - public $description; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - - public function getThumbnails() - { - return $this->thumbnails; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model { + public $channelId; + public $description; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { + $this->thumbnails = $thumbnails; + } + + public function getThumbnails() { + return $this->thumbnails; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_YouTube_Thumbnail extends Google_Model -{ - public $height; - public $url; - public $width; - - public function setHeight($height) - { - $this->height = $height; - } - - public function getHeight() - { - return $this->height; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function getUrl() - { - return $this->url; - } - - public function setWidth($width) - { - $this->width = $width; - } - - public function getWidth() - { - return $this->width; - } +class Google_Service_YouTube_Thumbnail extends Google_Model { + public $height; + public $url; + public $width; + + public function setHeight($height) { + $this->height = $height; + } + + public function getHeight() { + return $this->height; + } + + public function setUrl($url) { + $this->url = $url; + } + + public function getUrl() { + return $this->url; + } + + public function setWidth($width) { + $this->width = $width; + } + + public function getWidth() { + return $this->width; + } } -class Google_Service_YouTube_ThumbnailDetails extends Google_Model -{ - protected $defaultType = 'Google_Service_YouTube_Thumbnail'; - protected $defaultDataType = ''; - protected $highType = 'Google_Service_YouTube_Thumbnail'; - protected $highDataType = ''; - protected $maxresType = 'Google_Service_YouTube_Thumbnail'; - protected $maxresDataType = ''; - protected $mediumType = 'Google_Service_YouTube_Thumbnail'; - protected $mediumDataType = ''; - protected $standardType = 'Google_Service_YouTube_Thumbnail'; - protected $standardDataType = ''; - - public function setDefault(Google_Service_YouTube_Thumbnail $default) - { - $this->default = $default; - } - - public function getDefault() - { - return $this->default; - } - - public function setHigh(Google_Service_YouTube_Thumbnail $high) - { - $this->high = $high; - } - - public function getHigh() - { - return $this->high; - } - - public function setMaxres(Google_Service_YouTube_Thumbnail $maxres) - { - $this->maxres = $maxres; - } - - public function getMaxres() - { - return $this->maxres; - } - - public function setMedium(Google_Service_YouTube_Thumbnail $medium) - { - $this->medium = $medium; - } - - public function getMedium() - { - return $this->medium; - } - - public function setStandard(Google_Service_YouTube_Thumbnail $standard) - { - $this->standard = $standard; - } - - public function getStandard() - { - return $this->standard; - } +class Google_Service_YouTube_ThumbnailDetails extends Google_Model { + protected $defaultType = 'Google_Service_YouTube_Thumbnail'; + protected $defaultDataType = ''; + protected $highType = 'Google_Service_YouTube_Thumbnail'; + protected $highDataType = ''; + protected $maxresType = 'Google_Service_YouTube_Thumbnail'; + protected $maxresDataType = ''; + protected $mediumType = 'Google_Service_YouTube_Thumbnail'; + protected $mediumDataType = ''; + protected $standardType = 'Google_Service_YouTube_Thumbnail'; + protected $standardDataType = ''; + + public function setDefault(Google_Service_YouTube_Thumbnail $default) { + $this->default = $default; + } + + public function getDefault() { + return $this->default; + } + + public function setHigh(Google_Service_YouTube_Thumbnail $high) { + $this->high = $high; + } + + public function getHigh() { + return $this->high; + } + + public function setMaxres(Google_Service_YouTube_Thumbnail $maxres) { + $this->maxres = $maxres; + } + + public function getMaxres() { + return $this->maxres; + } + + public function setMedium(Google_Service_YouTube_Thumbnail $medium) { + $this->medium = $medium; + } + + public function getMedium() { + return $this->medium; + } + + public function setStandard(Google_Service_YouTube_Thumbnail $standard) { + $this->standard = $standard; + } + + public function getStandard() { + return $this->standard; + } } -class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $itemsDataType = 'array'; - public $kind; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_TokenPagination extends Google_Model -{ +class Google_Service_YouTube_TokenPagination extends Google_Model { } -class Google_Service_YouTube_Video extends Google_Model -{ - protected $ageGatingType = 'Google_Service_YouTube_VideoAgeGating'; - protected $ageGatingDataType = ''; - protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails'; - protected $contentDetailsDataType = ''; - protected $conversionPingsType = 'Google_Service_YouTube_VideoConversionPings'; - protected $conversionPingsDataType = ''; - public $etag; - protected $fileDetailsType = 'Google_Service_YouTube_VideoFileDetails'; - protected $fileDetailsDataType = ''; - public $id; - public $kind; - protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails'; - protected $liveStreamingDetailsDataType = ''; - protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails'; - protected $monetizationDetailsDataType = ''; - protected $playerType = 'Google_Service_YouTube_VideoPlayer'; - protected $playerDataType = ''; - protected $processingDetailsType = 'Google_Service_YouTube_VideoProcessingDetails'; - protected $processingDetailsDataType = ''; - protected $projectDetailsType = 'Google_Service_YouTube_VideoProjectDetails'; - protected $projectDetailsDataType = ''; - protected $recordingDetailsType = 'Google_Service_YouTube_VideoRecordingDetails'; - protected $recordingDetailsDataType = ''; - protected $snippetType = 'Google_Service_YouTube_VideoSnippet'; - protected $snippetDataType = ''; - protected $statisticsType = 'Google_Service_YouTube_VideoStatistics'; - protected $statisticsDataType = ''; - protected $statusType = 'Google_Service_YouTube_VideoStatus'; - protected $statusDataType = ''; - protected $suggestionsType = 'Google_Service_YouTube_VideoSuggestions'; - protected $suggestionsDataType = ''; - protected $topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails'; - protected $topicDetailsDataType = ''; - - public function setAgeGating(Google_Service_YouTube_VideoAgeGating $ageGating) - { - $this->ageGating = $ageGating; - } - - public function getAgeGating() - { - return $this->ageGating; - } - - public function setContentDetails(Google_Service_YouTube_VideoContentDetails $contentDetails) - { - $this->contentDetails = $contentDetails; - } - - public function getContentDetails() - { - return $this->contentDetails; - } - - public function setConversionPings(Google_Service_YouTube_VideoConversionPings $conversionPings) - { - $this->conversionPings = $conversionPings; - } - - public function getConversionPings() - { - return $this->conversionPings; - } - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDetails) - { - $this->fileDetails = $fileDetails; - } - - public function getFileDetails() - { - return $this->fileDetails; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamingDetails $liveStreamingDetails) - { - $this->liveStreamingDetails = $liveStreamingDetails; - } - - public function getLiveStreamingDetails() - { - return $this->liveStreamingDetails; - } - - public function setMonetizationDetails(Google_Service_YouTube_VideoMonetizationDetails $monetizationDetails) - { - $this->monetizationDetails = $monetizationDetails; - } - - public function getMonetizationDetails() - { - return $this->monetizationDetails; - } - - public function setPlayer(Google_Service_YouTube_VideoPlayer $player) - { - $this->player = $player; - } - - public function getPlayer() - { - return $this->player; - } - - public function setProcessingDetails(Google_Service_YouTube_VideoProcessingDetails $processingDetails) - { - $this->processingDetails = $processingDetails; - } - - public function getProcessingDetails() - { - return $this->processingDetails; - } - - public function setProjectDetails(Google_Service_YouTube_VideoProjectDetails $projectDetails) - { - $this->projectDetails = $projectDetails; - } - - public function getProjectDetails() - { - return $this->projectDetails; - } - - public function setRecordingDetails(Google_Service_YouTube_VideoRecordingDetails $recordingDetails) - { - $this->recordingDetails = $recordingDetails; - } - - public function getRecordingDetails() - { - return $this->recordingDetails; - } - - public function setSnippet(Google_Service_YouTube_VideoSnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } - - public function setStatistics(Google_Service_YouTube_VideoStatistics $statistics) - { - $this->statistics = $statistics; - } - - public function getStatistics() - { - return $this->statistics; - } - - public function setStatus(Google_Service_YouTube_VideoStatus $status) - { - $this->status = $status; - } - - public function getStatus() - { - return $this->status; - } - - public function setSuggestions(Google_Service_YouTube_VideoSuggestions $suggestions) - { - $this->suggestions = $suggestions; - } - - public function getSuggestions() - { - return $this->suggestions; - } - - public function setTopicDetails(Google_Service_YouTube_VideoTopicDetails $topicDetails) - { - $this->topicDetails = $topicDetails; - } - - public function getTopicDetails() - { - return $this->topicDetails; - } +class Google_Service_YouTube_Video extends Google_Model { + protected $ageGatingType = 'Google_Service_YouTube_VideoAgeGating'; + protected $ageGatingDataType = ''; + protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails'; + protected $contentDetailsDataType = ''; + protected $conversionPingsType = 'Google_Service_YouTube_VideoConversionPings'; + protected $conversionPingsDataType = ''; + public $etag; + protected $fileDetailsType = 'Google_Service_YouTube_VideoFileDetails'; + protected $fileDetailsDataType = ''; + public $id; + public $kind; + protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails'; + protected $liveStreamingDetailsDataType = ''; + protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails'; + protected $monetizationDetailsDataType = ''; + protected $playerType = 'Google_Service_YouTube_VideoPlayer'; + protected $playerDataType = ''; + protected $processingDetailsType = 'Google_Service_YouTube_VideoProcessingDetails'; + protected $processingDetailsDataType = ''; + protected $projectDetailsType = 'Google_Service_YouTube_VideoProjectDetails'; + protected $projectDetailsDataType = ''; + protected $recordingDetailsType = 'Google_Service_YouTube_VideoRecordingDetails'; + protected $recordingDetailsDataType = ''; + protected $snippetType = 'Google_Service_YouTube_VideoSnippet'; + protected $snippetDataType = ''; + protected $statisticsType = 'Google_Service_YouTube_VideoStatistics'; + protected $statisticsDataType = ''; + protected $statusType = 'Google_Service_YouTube_VideoStatus'; + protected $statusDataType = ''; + protected $suggestionsType = 'Google_Service_YouTube_VideoSuggestions'; + protected $suggestionsDataType = ''; + protected $topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails'; + protected $topicDetailsDataType = ''; + + public function setAgeGating(Google_Service_YouTube_VideoAgeGating $ageGating) { + $this->ageGating = $ageGating; + } + + public function getAgeGating() { + return $this->ageGating; + } + + public function setContentDetails(Google_Service_YouTube_VideoContentDetails $contentDetails) { + $this->contentDetails = $contentDetails; + } + + public function getContentDetails() { + return $this->contentDetails; + } + + public function setConversionPings(Google_Service_YouTube_VideoConversionPings $conversionPings) { + $this->conversionPings = $conversionPings; + } + + public function getConversionPings() { + return $this->conversionPings; + } + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDetails) { + $this->fileDetails = $fileDetails; + } + + public function getFileDetails() { + return $this->fileDetails; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamingDetails $liveStreamingDetails) { + $this->liveStreamingDetails = $liveStreamingDetails; + } + + public function getLiveStreamingDetails() { + return $this->liveStreamingDetails; + } + + public function setMonetizationDetails(Google_Service_YouTube_VideoMonetizationDetails $monetizationDetails) { + $this->monetizationDetails = $monetizationDetails; + } + + public function getMonetizationDetails() { + return $this->monetizationDetails; + } + + public function setPlayer(Google_Service_YouTube_VideoPlayer $player) { + $this->player = $player; + } + + public function getPlayer() { + return $this->player; + } + + public function setProcessingDetails(Google_Service_YouTube_VideoProcessingDetails $processingDetails) { + $this->processingDetails = $processingDetails; + } + + public function getProcessingDetails() { + return $this->processingDetails; + } + + public function setProjectDetails(Google_Service_YouTube_VideoProjectDetails $projectDetails) { + $this->projectDetails = $projectDetails; + } + + public function getProjectDetails() { + return $this->projectDetails; + } + + public function setRecordingDetails(Google_Service_YouTube_VideoRecordingDetails $recordingDetails) { + $this->recordingDetails = $recordingDetails; + } + + public function getRecordingDetails() { + return $this->recordingDetails; + } + + public function setSnippet(Google_Service_YouTube_VideoSnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } + + public function setStatistics(Google_Service_YouTube_VideoStatistics $statistics) { + $this->statistics = $statistics; + } + + public function getStatistics() { + return $this->statistics; + } + + public function setStatus(Google_Service_YouTube_VideoStatus $status) { + $this->status = $status; + } + + public function getStatus() { + return $this->status; + } + + public function setSuggestions(Google_Service_YouTube_VideoSuggestions $suggestions) { + $this->suggestions = $suggestions; + } + + public function getSuggestions() { + return $this->suggestions; + } + + public function setTopicDetails(Google_Service_YouTube_VideoTopicDetails $topicDetails) { + $this->topicDetails = $topicDetails; + } + + public function getTopicDetails() { + return $this->topicDetails; + } } -class Google_Service_YouTube_VideoAgeGating extends Google_Model -{ - public $alcoholContent; - public $restricted; - public $videoGameRating; - - public function setAlcoholContent($alcoholContent) - { - $this->alcoholContent = $alcoholContent; - } - - public function getAlcoholContent() - { - return $this->alcoholContent; - } - - public function setRestricted($restricted) - { - $this->restricted = $restricted; - } - - public function getRestricted() - { - return $this->restricted; - } - - public function setVideoGameRating($videoGameRating) - { - $this->videoGameRating = $videoGameRating; - } - - public function getVideoGameRating() - { - return $this->videoGameRating; - } +class Google_Service_YouTube_VideoAgeGating extends Google_Model { + public $alcoholContent; + public $restricted; + public $videoGameRating; + + public function setAlcoholContent($alcoholContent) { + $this->alcoholContent = $alcoholContent; + } + + public function getAlcoholContent() { + return $this->alcoholContent; + } + + public function setRestricted($restricted) { + $this->restricted = $restricted; + } + + public function getRestricted() { + return $this->restricted; + } + + public function setVideoGameRating($videoGameRating) { + $this->videoGameRating = $videoGameRating; + } + + public function getVideoGameRating() { + return $this->videoGameRating; + } } -class Google_Service_YouTube_VideoCategory extends Google_Model -{ - public $etag; - public $id; - public $kind; - protected $snippetType = 'Google_Service_YouTube_VideoCategorySnippet'; - protected $snippetDataType = ''; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setId($id) - { - $this->id = $id; - } - - public function getId() - { - return $this->id; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setSnippet(Google_Service_YouTube_VideoCategorySnippet $snippet) - { - $this->snippet = $snippet; - } - - public function getSnippet() - { - return $this->snippet; - } +class Google_Service_YouTube_VideoCategory extends Google_Model { + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_VideoCategorySnippet'; + protected $snippetDataType = ''; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setId($id) { + $this->id = $id; + } + + public function getId() { + return $this->id; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setSnippet(Google_Service_YouTube_VideoCategorySnippet $snippet) { + $this->snippet = $snippet; + } + + public function getSnippet() { + return $this->snippet; + } } -class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_VideoCategory'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - - public function getPageInfo() - { - return $this->pageInfo; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } - - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - - public function getTokenPagination() - { - return $this->tokenPagination; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_VideoCategory'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() { + return $this->pageInfo; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } + + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() { + return $this->tokenPagination; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_VideoCategorySnippet extends Google_Model -{ - public $assignable; - public $channelId; - public $title; - - public function setAssignable($assignable) - { - $this->assignable = $assignable; - } - - public function getAssignable() - { - return $this->assignable; - } - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_YouTube_VideoCategorySnippet extends Google_Model { + public $assignable; + public $channelId; + public $title; + + public function setAssignable($assignable) { + $this->assignable = $assignable; + } + + public function getAssignable() { + return $this->assignable; + } + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_YouTube_VideoContentDetails extends Google_Model -{ - public $caption; - protected $contentRatingType = 'Google_Service_YouTube_ContentRating'; - protected $contentRatingDataType = ''; - protected $countryRestrictionType = 'Google_Service_YouTube_AccessPolicy'; - protected $countryRestrictionDataType = ''; - public $definition; - public $dimension; - public $duration; - public $licensedContent; - protected $regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction'; - protected $regionRestrictionDataType = ''; - - public function setCaption($caption) - { - $this->caption = $caption; - } - - public function getCaption() - { - return $this->caption; - } - - public function setContentRating(Google_Service_YouTube_ContentRating $contentRating) - { - $this->contentRating = $contentRating; - } - - public function getContentRating() - { - return $this->contentRating; - } - - public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $countryRestriction) - { - $this->countryRestriction = $countryRestriction; - } - - public function getCountryRestriction() - { - return $this->countryRestriction; - } - - public function setDefinition($definition) - { - $this->definition = $definition; - } - - public function getDefinition() - { - return $this->definition; - } - - public function setDimension($dimension) - { - $this->dimension = $dimension; - } - - public function getDimension() - { - return $this->dimension; - } - - public function setDuration($duration) - { - $this->duration = $duration; - } - - public function getDuration() - { - return $this->duration; - } - - public function setLicensedContent($licensedContent) - { - $this->licensedContent = $licensedContent; - } - - public function getLicensedContent() - { - return $this->licensedContent; - } - - public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsRegionRestriction $regionRestriction) - { - $this->regionRestriction = $regionRestriction; - } - - public function getRegionRestriction() - { - return $this->regionRestriction; - } +class Google_Service_YouTube_VideoContentDetails extends Google_Model { + public $caption; + protected $contentRatingType = 'Google_Service_YouTube_ContentRating'; + protected $contentRatingDataType = ''; + protected $countryRestrictionType = 'Google_Service_YouTube_AccessPolicy'; + protected $countryRestrictionDataType = ''; + public $definition; + public $dimension; + public $duration; + public $licensedContent; + protected $regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction'; + protected $regionRestrictionDataType = ''; + + public function setCaption($caption) { + $this->caption = $caption; + } + + public function getCaption() { + return $this->caption; + } + + public function setContentRating(Google_Service_YouTube_ContentRating $contentRating) { + $this->contentRating = $contentRating; + } + + public function getContentRating() { + return $this->contentRating; + } + + public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $countryRestriction) { + $this->countryRestriction = $countryRestriction; + } + + public function getCountryRestriction() { + return $this->countryRestriction; + } + + public function setDefinition($definition) { + $this->definition = $definition; + } + + public function getDefinition() { + return $this->definition; + } + + public function setDimension($dimension) { + $this->dimension = $dimension; + } + + public function getDimension() { + return $this->dimension; + } + + public function setDuration($duration) { + $this->duration = $duration; + } + + public function getDuration() { + return $this->duration; + } + + public function setLicensedContent($licensedContent) { + $this->licensedContent = $licensedContent; + } + + public function getLicensedContent() { + return $this->licensedContent; + } + + public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsRegionRestriction $regionRestriction) { + $this->regionRestriction = $regionRestriction; + } + + public function getRegionRestriction() { + return $this->regionRestriction; + } } -class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection -{ - public $allowed; - public $blocked; - - public function setAllowed($allowed) - { - $this->allowed = $allowed; - } - - public function getAllowed() - { - return $this->allowed; - } - - public function setBlocked($blocked) - { - $this->blocked = $blocked; - } - - public function getBlocked() - { - return $this->blocked; - } +class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection { + public $allowed; + public $blocked; + + public function setAllowed($allowed) { + $this->allowed = $allowed; + } + + public function getAllowed() { + return $this->allowed; + } + + public function setBlocked($blocked) { + $this->blocked = $blocked; + } + + public function getBlocked() { + return $this->blocked; + } } -class Google_Service_YouTube_VideoConversionPing extends Google_Model -{ - public $context; - public $conversionUrl; - - public function setContext($context) - { - $this->context = $context; - } - - public function getContext() - { - return $this->context; - } - - public function setConversionUrl($conversionUrl) - { - $this->conversionUrl = $conversionUrl; - } - - public function getConversionUrl() - { - return $this->conversionUrl; - } +class Google_Service_YouTube_VideoConversionPing extends Google_Model { + public $context; + public $conversionUrl; + + public function setContext($context) { + $this->context = $context; + } + + public function getContext() { + return $this->context; + } + + public function setConversionUrl($conversionUrl) { + $this->conversionUrl = $conversionUrl; + } + + public function getConversionUrl() { + return $this->conversionUrl; + } } -class Google_Service_YouTube_VideoConversionPings extends Google_Collection -{ - protected $pingsType = 'Google_Service_YouTube_VideoConversionPing'; - protected $pingsDataType = 'array'; +class Google_Service_YouTube_VideoConversionPings extends Google_Collection { + protected $pingsType = 'Google_Service_YouTube_VideoConversionPing'; + protected $pingsDataType = 'array'; - public function setPings($pings) - { - $this->pings = $pings; - } + public function setPings($pings) { + $this->pings = $pings; + } - public function getPings() - { - return $this->pings; - } + public function getPings() { + return $this->pings; + } } -class Google_Service_YouTube_VideoFileDetails extends Google_Collection -{ - protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream'; - protected $audioStreamsDataType = 'array'; - public $bitrateBps; - public $container; - public $creationTime; - public $durationMs; - public $fileName; - public $fileSize; - public $fileType; - protected $recordingLocationType = 'Google_Service_YouTube_GeoPoint'; - protected $recordingLocationDataType = ''; - protected $videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream'; - protected $videoStreamsDataType = 'array'; - - public function setAudioStreams($audioStreams) - { - $this->audioStreams = $audioStreams; - } - - public function getAudioStreams() - { - return $this->audioStreams; - } - - public function setBitrateBps($bitrateBps) - { - $this->bitrateBps = $bitrateBps; - } - - public function getBitrateBps() - { - return $this->bitrateBps; - } - - public function setContainer($container) - { - $this->container = $container; - } - - public function getContainer() - { - return $this->container; - } - - public function setCreationTime($creationTime) - { - $this->creationTime = $creationTime; - } - - public function getCreationTime() - { - return $this->creationTime; - } - - public function setDurationMs($durationMs) - { - $this->durationMs = $durationMs; - } - - public function getDurationMs() - { - return $this->durationMs; - } - - public function setFileName($fileName) - { - $this->fileName = $fileName; - } - - public function getFileName() - { - return $this->fileName; - } - - public function setFileSize($fileSize) - { - $this->fileSize = $fileSize; - } - - public function getFileSize() - { - return $this->fileSize; - } - - public function setFileType($fileType) - { - $this->fileType = $fileType; - } - - public function getFileType() - { - return $this->fileType; - } - - public function setRecordingLocation(Google_Service_YouTube_GeoPoint $recordingLocation) - { - $this->recordingLocation = $recordingLocation; - } - - public function getRecordingLocation() - { - return $this->recordingLocation; - } - - public function setVideoStreams($videoStreams) - { - $this->videoStreams = $videoStreams; - } - - public function getVideoStreams() - { - return $this->videoStreams; - } +class Google_Service_YouTube_VideoFileDetails extends Google_Collection { + protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream'; + protected $audioStreamsDataType = 'array'; + public $bitrateBps; + public $container; + public $creationTime; + public $durationMs; + public $fileName; + public $fileSize; + public $fileType; + protected $recordingLocationType = 'Google_Service_YouTube_GeoPoint'; + protected $recordingLocationDataType = ''; + protected $videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream'; + protected $videoStreamsDataType = 'array'; + + public function setAudioStreams($audioStreams) { + $this->audioStreams = $audioStreams; + } + + public function getAudioStreams() { + return $this->audioStreams; + } + + public function setBitrateBps($bitrateBps) { + $this->bitrateBps = $bitrateBps; + } + + public function getBitrateBps() { + return $this->bitrateBps; + } + + public function setContainer($container) { + $this->container = $container; + } + + public function getContainer() { + return $this->container; + } + + public function setCreationTime($creationTime) { + $this->creationTime = $creationTime; + } + + public function getCreationTime() { + return $this->creationTime; + } + + public function setDurationMs($durationMs) { + $this->durationMs = $durationMs; + } + + public function getDurationMs() { + return $this->durationMs; + } + + public function setFileName($fileName) { + $this->fileName = $fileName; + } + + public function getFileName() { + return $this->fileName; + } + + public function setFileSize($fileSize) { + $this->fileSize = $fileSize; + } + + public function getFileSize() { + return $this->fileSize; + } + + public function setFileType($fileType) { + $this->fileType = $fileType; + } + + public function getFileType() { + return $this->fileType; + } + + public function setRecordingLocation(Google_Service_YouTube_GeoPoint $recordingLocation) { + $this->recordingLocation = $recordingLocation; + } + + public function getRecordingLocation() { + return $this->recordingLocation; + } + + public function setVideoStreams($videoStreams) { + $this->videoStreams = $videoStreams; + } + + public function getVideoStreams() { + return $this->videoStreams; + } } -class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model -{ - public $bitrateBps; - public $channelCount; - public $codec; - public $vendor; - - public function setBitrateBps($bitrateBps) - { - $this->bitrateBps = $bitrateBps; - } - - public function getBitrateBps() - { - return $this->bitrateBps; - } - - public function setChannelCount($channelCount) - { - $this->channelCount = $channelCount; - } - - public function getChannelCount() - { - return $this->channelCount; - } - - public function setCodec($codec) - { - $this->codec = $codec; - } - - public function getCodec() - { - return $this->codec; - } - - public function setVendor($vendor) - { - $this->vendor = $vendor; - } - - public function getVendor() - { - return $this->vendor; - } +class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model { + public $bitrateBps; + public $channelCount; + public $codec; + public $vendor; + + public function setBitrateBps($bitrateBps) { + $this->bitrateBps = $bitrateBps; + } + + public function getBitrateBps() { + return $this->bitrateBps; + } + + public function setChannelCount($channelCount) { + $this->channelCount = $channelCount; + } + + public function getChannelCount() { + return $this->channelCount; + } + + public function setCodec($codec) { + $this->codec = $codec; + } + + public function getCodec() { + return $this->codec; + } + + public function setVendor($vendor) { + $this->vendor = $vendor; + } + + public function getVendor() { + return $this->vendor; + } } -class Google_Service_YouTube_VideoFileDetailsVideoStream extends Google_Model -{ - public $aspectRatio; - public $bitrateBps; - public $codec; - public $frameRateFps; - public $heightPixels; - public $rotation; - public $vendor; - public $widthPixels; - - public function setAspectRatio($aspectRatio) - { - $this->aspectRatio = $aspectRatio; - } - - public function getAspectRatio() - { - return $this->aspectRatio; - } - - public function setBitrateBps($bitrateBps) - { - $this->bitrateBps = $bitrateBps; - } - - public function getBitrateBps() - { - return $this->bitrateBps; - } - - public function setCodec($codec) - { - $this->codec = $codec; - } - - public function getCodec() - { - return $this->codec; - } - - public function setFrameRateFps($frameRateFps) - { - $this->frameRateFps = $frameRateFps; - } - - public function getFrameRateFps() - { - return $this->frameRateFps; - } - - public function setHeightPixels($heightPixels) - { - $this->heightPixels = $heightPixels; - } - - public function getHeightPixels() - { - return $this->heightPixels; - } - - public function setRotation($rotation) - { - $this->rotation = $rotation; - } - - public function getRotation() - { - return $this->rotation; - } - - public function setVendor($vendor) - { - $this->vendor = $vendor; - } - - public function getVendor() - { - return $this->vendor; - } - - public function setWidthPixels($widthPixels) - { - $this->widthPixels = $widthPixels; - } - - public function getWidthPixels() - { - return $this->widthPixels; - } +class Google_Service_YouTube_VideoFileDetailsVideoStream extends Google_Model { + public $aspectRatio; + public $bitrateBps; + public $codec; + public $frameRateFps; + public $heightPixels; + public $rotation; + public $vendor; + public $widthPixels; + + public function setAspectRatio($aspectRatio) { + $this->aspectRatio = $aspectRatio; + } + + public function getAspectRatio() { + return $this->aspectRatio; + } + + public function setBitrateBps($bitrateBps) { + $this->bitrateBps = $bitrateBps; + } + + public function getBitrateBps() { + return $this->bitrateBps; + } + + public function setCodec($codec) { + $this->codec = $codec; + } + + public function getCodec() { + return $this->codec; + } + + public function setFrameRateFps($frameRateFps) { + $this->frameRateFps = $frameRateFps; + } + + public function getFrameRateFps() { + return $this->frameRateFps; + } + + public function setHeightPixels($heightPixels) { + $this->heightPixels = $heightPixels; + } + + public function getHeightPixels() { + return $this->heightPixels; + } + + public function setRotation($rotation) { + $this->rotation = $rotation; + } + + public function getRotation() { + return $this->rotation; + } + + public function setVendor($vendor) { + $this->vendor = $vendor; + } + + public function getVendor() { + return $this->vendor; + } + + public function setWidthPixels($widthPixels) { + $this->widthPixels = $widthPixels; + } + + public function getWidthPixels() { + return $this->widthPixels; + } } -class Google_Service_YouTube_VideoGetRatingResponse extends Google_Collection -{ - public $etag; - protected $itemsType = 'Google_Service_YouTube_VideoRating'; - protected $itemsDataType = 'array'; - public $kind; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } +class Google_Service_YouTube_VideoGetRatingResponse extends Google_Collection { + public $etag; + protected $itemsType = 'Google_Service_YouTube_VideoRating'; + protected $itemsDataType = 'array'; + public $kind; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } } -class Google_Service_YouTube_VideoListResponse extends Google_Collection -{ - public $etag; - public $eventId; - protected $itemsType = 'Google_Service_YouTube_Video'; - protected $itemsDataType = 'array'; - public $kind; - public $nextPageToken; - protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; - protected $pageInfoDataType = ''; - public $prevPageToken; - protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; - protected $tokenPaginationDataType = ''; - public $visitorId; - - public function setEtag($etag) - { - $this->etag = $etag; - } - - public function getEtag() - { - return $this->etag; - } - - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - - public function getEventId() - { - return $this->eventId; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - - public function getNextPageToken() - { - return $this->nextPageToken; - } - - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - - public function getPageInfo() - { - return $this->pageInfo; - } - - public function setPrevPageToken($prevPageToken) - { - $this->prevPageToken = $prevPageToken; - } - - public function getPrevPageToken() - { - return $this->prevPageToken; - } - - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - - public function getTokenPagination() - { - return $this->tokenPagination; - } - - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - - public function getVisitorId() - { - return $this->visitorId; - } +class Google_Service_YouTube_VideoListResponse extends Google_Collection { + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Video'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + public $prevPageToken; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + public function setEtag($etag) { + $this->etag = $etag; + } + + public function getEtag() { + return $this->etag; + } + + public function setEventId($eventId) { + $this->eventId = $eventId; + } + + public function getEventId() { + return $this->eventId; + } + + public function setItems($items) { + $this->items = $items; + } + + public function getItems() { + return $this->items; + } + + public function setKind($kind) { + $this->kind = $kind; + } + + public function getKind() { + return $this->kind; + } + + public function setNextPageToken($nextPageToken) { + $this->nextPageToken = $nextPageToken; + } + + public function getNextPageToken() { + return $this->nextPageToken; + } + + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) { + $this->pageInfo = $pageInfo; + } + + public function getPageInfo() { + return $this->pageInfo; + } + + public function setPrevPageToken($prevPageToken) { + $this->prevPageToken = $prevPageToken; + } + + public function getPrevPageToken() { + return $this->prevPageToken; + } + + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) { + $this->tokenPagination = $tokenPagination; + } + + public function getTokenPagination() { + return $this->tokenPagination; + } + + public function setVisitorId($visitorId) { + $this->visitorId = $visitorId; + } + + public function getVisitorId() { + return $this->visitorId; + } } -class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model -{ - public $actualEndTime; - public $actualStartTime; - public $concurrentViewers; - public $scheduledEndTime; - public $scheduledStartTime; - - public function setActualEndTime($actualEndTime) - { - $this->actualEndTime = $actualEndTime; - } - - public function getActualEndTime() - { - return $this->actualEndTime; - } - - public function setActualStartTime($actualStartTime) - { - $this->actualStartTime = $actualStartTime; - } - - public function getActualStartTime() - { - return $this->actualStartTime; - } - - public function setConcurrentViewers($concurrentViewers) - { - $this->concurrentViewers = $concurrentViewers; - } - - public function getConcurrentViewers() - { - return $this->concurrentViewers; - } - - public function setScheduledEndTime($scheduledEndTime) - { - $this->scheduledEndTime = $scheduledEndTime; - } - - public function getScheduledEndTime() - { - return $this->scheduledEndTime; - } - - public function setScheduledStartTime($scheduledStartTime) - { - $this->scheduledStartTime = $scheduledStartTime; - } - - public function getScheduledStartTime() - { - return $this->scheduledStartTime; - } +class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model { + public $actualEndTime; + public $actualStartTime; + public $concurrentViewers; + public $scheduledEndTime; + public $scheduledStartTime; + + public function setActualEndTime($actualEndTime) { + $this->actualEndTime = $actualEndTime; + } + + public function getActualEndTime() { + return $this->actualEndTime; + } + + public function setActualStartTime($actualStartTime) { + $this->actualStartTime = $actualStartTime; + } + + public function getActualStartTime() { + return $this->actualStartTime; + } + + public function setConcurrentViewers($concurrentViewers) { + $this->concurrentViewers = $concurrentViewers; + } + + public function getConcurrentViewers() { + return $this->concurrentViewers; + } + + public function setScheduledEndTime($scheduledEndTime) { + $this->scheduledEndTime = $scheduledEndTime; + } + + public function getScheduledEndTime() { + return $this->scheduledEndTime; + } + + public function setScheduledStartTime($scheduledStartTime) { + $this->scheduledStartTime = $scheduledStartTime; + } + + public function getScheduledStartTime() { + return $this->scheduledStartTime; + } } -class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model -{ - protected $accessType = 'Google_Service_YouTube_AccessPolicy'; - protected $accessDataType = ''; +class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model { + protected $accessType = 'Google_Service_YouTube_AccessPolicy'; + protected $accessDataType = ''; - public function setAccess(Google_Service_YouTube_AccessPolicy $access) - { - $this->access = $access; - } + public function setAccess(Google_Service_YouTube_AccessPolicy $access) { + $this->access = $access; + } - public function getAccess() - { - return $this->access; - } + public function getAccess() { + return $this->access; + } } -class Google_Service_YouTube_VideoPlayer extends Google_Model -{ - public $embedHtml; +class Google_Service_YouTube_VideoPlayer extends Google_Model { + public $embedHtml; - public function setEmbedHtml($embedHtml) - { - $this->embedHtml = $embedHtml; - } + public function setEmbedHtml($embedHtml) { + $this->embedHtml = $embedHtml; + } - public function getEmbedHtml() - { - return $this->embedHtml; - } + public function getEmbedHtml() { + return $this->embedHtml; + } } -class Google_Service_YouTube_VideoProcessingDetails extends Google_Model -{ - public $editorSuggestionsAvailability; - public $fileDetailsAvailability; - public $processingFailureReason; - public $processingIssuesAvailability; - protected $processingProgressType = 'Google_Service_YouTube_VideoProcessingDetailsProcessingProgress'; - protected $processingProgressDataType = ''; - public $processingStatus; - public $tagSuggestionsAvailability; - public $thumbnailsAvailability; - - public function setEditorSuggestionsAvailability($editorSuggestionsAvailability) - { - $this->editorSuggestionsAvailability = $editorSuggestionsAvailability; - } - - public function getEditorSuggestionsAvailability() - { - return $this->editorSuggestionsAvailability; - } - - public function setFileDetailsAvailability($fileDetailsAvailability) - { - $this->fileDetailsAvailability = $fileDetailsAvailability; - } - - public function getFileDetailsAvailability() - { - return $this->fileDetailsAvailability; - } - - public function setProcessingFailureReason($processingFailureReason) - { - $this->processingFailureReason = $processingFailureReason; - } - - public function getProcessingFailureReason() - { - return $this->processingFailureReason; - } - - public function setProcessingIssuesAvailability($processingIssuesAvailability) - { - $this->processingIssuesAvailability = $processingIssuesAvailability; - } - - public function getProcessingIssuesAvailability() - { - return $this->processingIssuesAvailability; - } - - public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDetailsProcessingProgress $processingProgress) - { - $this->processingProgress = $processingProgress; - } - - public function getProcessingProgress() - { - return $this->processingProgress; - } - - public function setProcessingStatus($processingStatus) - { - $this->processingStatus = $processingStatus; - } - - public function getProcessingStatus() - { - return $this->processingStatus; - } - - public function setTagSuggestionsAvailability($tagSuggestionsAvailability) - { - $this->tagSuggestionsAvailability = $tagSuggestionsAvailability; - } - - public function getTagSuggestionsAvailability() - { - return $this->tagSuggestionsAvailability; - } - - public function setThumbnailsAvailability($thumbnailsAvailability) - { - $this->thumbnailsAvailability = $thumbnailsAvailability; - } - - public function getThumbnailsAvailability() - { - return $this->thumbnailsAvailability; - } +class Google_Service_YouTube_VideoProcessingDetails extends Google_Model { + public $editorSuggestionsAvailability; + public $fileDetailsAvailability; + public $processingFailureReason; + public $processingIssuesAvailability; + protected $processingProgressType = 'Google_Service_YouTube_VideoProcessingDetailsProcessingProgress'; + protected $processingProgressDataType = ''; + public $processingStatus; + public $tagSuggestionsAvailability; + public $thumbnailsAvailability; + + public function setEditorSuggestionsAvailability($editorSuggestionsAvailability) { + $this->editorSuggestionsAvailability = $editorSuggestionsAvailability; + } + + public function getEditorSuggestionsAvailability() { + return $this->editorSuggestionsAvailability; + } + + public function setFileDetailsAvailability($fileDetailsAvailability) { + $this->fileDetailsAvailability = $fileDetailsAvailability; + } + + public function getFileDetailsAvailability() { + return $this->fileDetailsAvailability; + } + + public function setProcessingFailureReason($processingFailureReason) { + $this->processingFailureReason = $processingFailureReason; + } + + public function getProcessingFailureReason() { + return $this->processingFailureReason; + } + + public function setProcessingIssuesAvailability($processingIssuesAvailability) { + $this->processingIssuesAvailability = $processingIssuesAvailability; + } + + public function getProcessingIssuesAvailability() { + return $this->processingIssuesAvailability; + } + + public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDetailsProcessingProgress $processingProgress) { + $this->processingProgress = $processingProgress; + } + + public function getProcessingProgress() { + return $this->processingProgress; + } + + public function setProcessingStatus($processingStatus) { + $this->processingStatus = $processingStatus; + } + + public function getProcessingStatus() { + return $this->processingStatus; + } + + public function setTagSuggestionsAvailability($tagSuggestionsAvailability) { + $this->tagSuggestionsAvailability = $tagSuggestionsAvailability; + } + + public function getTagSuggestionsAvailability() { + return $this->tagSuggestionsAvailability; + } + + public function setThumbnailsAvailability($thumbnailsAvailability) { + $this->thumbnailsAvailability = $thumbnailsAvailability; + } + + public function getThumbnailsAvailability() { + return $this->thumbnailsAvailability; + } } -class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model -{ - public $partsProcessed; - public $partsTotal; - public $timeLeftMs; - - public function setPartsProcessed($partsProcessed) - { - $this->partsProcessed = $partsProcessed; - } - - public function getPartsProcessed() - { - return $this->partsProcessed; - } - - public function setPartsTotal($partsTotal) - { - $this->partsTotal = $partsTotal; - } - - public function getPartsTotal() - { - return $this->partsTotal; - } - - public function setTimeLeftMs($timeLeftMs) - { - $this->timeLeftMs = $timeLeftMs; - } - - public function getTimeLeftMs() - { - return $this->timeLeftMs; - } +class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model { + public $partsProcessed; + public $partsTotal; + public $timeLeftMs; + + public function setPartsProcessed($partsProcessed) { + $this->partsProcessed = $partsProcessed; + } + + public function getPartsProcessed() { + return $this->partsProcessed; + } + + public function setPartsTotal($partsTotal) { + $this->partsTotal = $partsTotal; + } + + public function getPartsTotal() { + return $this->partsTotal; + } + + public function setTimeLeftMs($timeLeftMs) { + $this->timeLeftMs = $timeLeftMs; + } + + public function getTimeLeftMs() { + return $this->timeLeftMs; + } } -class Google_Service_YouTube_VideoProjectDetails extends Google_Collection -{ - public $tags; +class Google_Service_YouTube_VideoProjectDetails extends Google_Collection { + public $tags; - public function setTags($tags) - { - $this->tags = $tags; - } + public function setTags($tags) { + $this->tags = $tags; + } - public function getTags() - { - return $this->tags; - } + public function getTags() { + return $this->tags; + } } -class Google_Service_YouTube_VideoRating extends Google_Model -{ - public $rating; - public $videoId; - - public function setRating($rating) - { - $this->rating = $rating; - } - - public function getRating() - { - return $this->rating; - } - - public function setVideoId($videoId) - { - $this->videoId = $videoId; - } - - public function getVideoId() - { - return $this->videoId; - } +class Google_Service_YouTube_VideoRating extends Google_Model { + public $rating; + public $videoId; + + public function setRating($rating) { + $this->rating = $rating; + } + + public function getRating() { + return $this->rating; + } + + public function setVideoId($videoId) { + $this->videoId = $videoId; + } + + public function getVideoId() { + return $this->videoId; + } } -class Google_Service_YouTube_VideoRecordingDetails extends Google_Model -{ - protected $locationType = 'Google_Service_YouTube_GeoPoint'; - protected $locationDataType = ''; - public $locationDescription; - public $recordingDate; - - public function setLocation(Google_Service_YouTube_GeoPoint $location) - { - $this->location = $location; - } - - public function getLocation() - { - return $this->location; - } - - public function setLocationDescription($locationDescription) - { - $this->locationDescription = $locationDescription; - } - - public function getLocationDescription() - { - return $this->locationDescription; - } - - public function setRecordingDate($recordingDate) - { - $this->recordingDate = $recordingDate; - } - - public function getRecordingDate() - { - return $this->recordingDate; - } +class Google_Service_YouTube_VideoRecordingDetails extends Google_Model { + protected $locationType = 'Google_Service_YouTube_GeoPoint'; + protected $locationDataType = ''; + public $locationDescription; + public $recordingDate; + + public function setLocation(Google_Service_YouTube_GeoPoint $location) { + $this->location = $location; + } + + public function getLocation() { + return $this->location; + } + + public function setLocationDescription($locationDescription) { + $this->locationDescription = $locationDescription; + } + + public function getLocationDescription() { + return $this->locationDescription; + } + + public function setRecordingDate($recordingDate) { + $this->recordingDate = $recordingDate; + } + + public function getRecordingDate() { + return $this->recordingDate; + } } -class Google_Service_YouTube_VideoSnippet extends Google_Collection -{ - public $categoryId; - public $channelId; - public $channelTitle; - public $description; - public $liveBroadcastContent; - public $publishedAt; - public $tags; - protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; - protected $thumbnailsDataType = ''; - public $title; - - public function setCategoryId($categoryId) - { - $this->categoryId = $categoryId; - } - - public function getCategoryId() - { - return $this->categoryId; - } - - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - - public function getChannelId() - { - return $this->channelId; - } - - public function setChannelTitle($channelTitle) - { - $this->channelTitle = $channelTitle; - } - - public function getChannelTitle() - { - return $this->channelTitle; - } - - public function setDescription($description) - { - $this->description = $description; - } - - public function getDescription() - { - return $this->description; - } - - public function setLiveBroadcastContent($liveBroadcastContent) - { - $this->liveBroadcastContent = $liveBroadcastContent; - } - - public function getLiveBroadcastContent() - { - return $this->liveBroadcastContent; - } - - public function setPublishedAt($publishedAt) - { - $this->publishedAt = $publishedAt; - } - - public function getPublishedAt() - { - return $this->publishedAt; - } - - public function setTags($tags) - { - $this->tags = $tags; - } - - public function getTags() - { - return $this->tags; - } - - public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) - { - $this->thumbnails = $thumbnails; - } - - public function getThumbnails() - { - return $this->thumbnails; - } - - public function setTitle($title) - { - $this->title = $title; - } - - public function getTitle() - { - return $this->title; - } +class Google_Service_YouTube_VideoSnippet extends Google_Collection { + public $categoryId; + public $channelId; + public $channelTitle; + public $description; + public $liveBroadcastContent; + public $publishedAt; + public $tags; + protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; + protected $thumbnailsDataType = ''; + public $title; + + public function setCategoryId($categoryId) { + $this->categoryId = $categoryId; + } + + public function getCategoryId() { + return $this->categoryId; + } + + public function setChannelId($channelId) { + $this->channelId = $channelId; + } + + public function getChannelId() { + return $this->channelId; + } + + public function setChannelTitle($channelTitle) { + $this->channelTitle = $channelTitle; + } + + public function getChannelTitle() { + return $this->channelTitle; + } + + public function setDescription($description) { + $this->description = $description; + } + + public function getDescription() { + return $this->description; + } + + public function setLiveBroadcastContent($liveBroadcastContent) { + $this->liveBroadcastContent = $liveBroadcastContent; + } + + public function getLiveBroadcastContent() { + return $this->liveBroadcastContent; + } + + public function setPublishedAt($publishedAt) { + $this->publishedAt = $publishedAt; + } + + public function getPublishedAt() { + return $this->publishedAt; + } + + public function setTags($tags) { + $this->tags = $tags; + } + + public function getTags() { + return $this->tags; + } + + public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails) { + $this->thumbnails = $thumbnails; + } + + public function getThumbnails() { + return $this->thumbnails; + } + + public function setTitle($title) { + $this->title = $title; + } + + public function getTitle() { + return $this->title; + } } -class Google_Service_YouTube_VideoStatistics extends Google_Model -{ - public $commentCount; - public $dislikeCount; - public $favoriteCount; - public $likeCount; - public $viewCount; - - public function setCommentCount($commentCount) - { - $this->commentCount = $commentCount; - } - - public function getCommentCount() - { - return $this->commentCount; - } - - public function setDislikeCount($dislikeCount) - { - $this->dislikeCount = $dislikeCount; - } - - public function getDislikeCount() - { - return $this->dislikeCount; - } - - public function setFavoriteCount($favoriteCount) - { - $this->favoriteCount = $favoriteCount; - } - - public function getFavoriteCount() - { - return $this->favoriteCount; - } - - public function setLikeCount($likeCount) - { - $this->likeCount = $likeCount; - } - - public function getLikeCount() - { - return $this->likeCount; - } - - public function setViewCount($viewCount) - { - $this->viewCount = $viewCount; - } - - public function getViewCount() - { - return $this->viewCount; - } +class Google_Service_YouTube_VideoStatistics extends Google_Model { + public $commentCount; + public $dislikeCount; + public $favoriteCount; + public $likeCount; + public $viewCount; + + public function setCommentCount($commentCount) { + $this->commentCount = $commentCount; + } + + public function getCommentCount() { + return $this->commentCount; + } + + public function setDislikeCount($dislikeCount) { + $this->dislikeCount = $dislikeCount; + } + + public function getDislikeCount() { + return $this->dislikeCount; + } + + public function setFavoriteCount($favoriteCount) { + $this->favoriteCount = $favoriteCount; + } + + public function getFavoriteCount() { + return $this->favoriteCount; + } + + public function setLikeCount($likeCount) { + $this->likeCount = $likeCount; + } + + public function getLikeCount() { + return $this->likeCount; + } + + public function setViewCount($viewCount) { + $this->viewCount = $viewCount; + } + + public function getViewCount() { + return $this->viewCount; + } } -class Google_Service_YouTube_VideoStatus extends Google_Model -{ - public $embeddable; - public $failureReason; - public $license; - public $privacyStatus; - public $publicStatsViewable; - public $publishAt; - public $rejectionReason; - public $uploadStatus; - - public function setEmbeddable($embeddable) - { - $this->embeddable = $embeddable; - } - - public function getEmbeddable() - { - return $this->embeddable; - } - - public function setFailureReason($failureReason) - { - $this->failureReason = $failureReason; - } - - public function getFailureReason() - { - return $this->failureReason; - } - - public function setLicense($license) - { - $this->license = $license; - } - - public function getLicense() - { - return $this->license; - } - - public function setPrivacyStatus($privacyStatus) - { - $this->privacyStatus = $privacyStatus; - } - - public function getPrivacyStatus() - { - return $this->privacyStatus; - } - - public function setPublicStatsViewable($publicStatsViewable) - { - $this->publicStatsViewable = $publicStatsViewable; - } - - public function getPublicStatsViewable() - { - return $this->publicStatsViewable; - } - - public function setPublishAt($publishAt) - { - $this->publishAt = $publishAt; - } - - public function getPublishAt() - { - return $this->publishAt; - } - - public function setRejectionReason($rejectionReason) - { - $this->rejectionReason = $rejectionReason; - } - - public function getRejectionReason() - { - return $this->rejectionReason; - } - - public function setUploadStatus($uploadStatus) - { - $this->uploadStatus = $uploadStatus; - } - - public function getUploadStatus() - { - return $this->uploadStatus; - } +class Google_Service_YouTube_VideoStatus extends Google_Model { + public $embeddable; + public $failureReason; + public $license; + public $privacyStatus; + public $publicStatsViewable; + public $publishAt; + public $rejectionReason; + public $uploadStatus; + + public function setEmbeddable($embeddable) { + $this->embeddable = $embeddable; + } + + public function getEmbeddable() { + return $this->embeddable; + } + + public function setFailureReason($failureReason) { + $this->failureReason = $failureReason; + } + + public function getFailureReason() { + return $this->failureReason; + } + + public function setLicense($license) { + $this->license = $license; + } + + public function getLicense() { + return $this->license; + } + + public function setPrivacyStatus($privacyStatus) { + $this->privacyStatus = $privacyStatus; + } + + public function getPrivacyStatus() { + return $this->privacyStatus; + } + + public function setPublicStatsViewable($publicStatsViewable) { + $this->publicStatsViewable = $publicStatsViewable; + } + + public function getPublicStatsViewable() { + return $this->publicStatsViewable; + } + + public function setPublishAt($publishAt) { + $this->publishAt = $publishAt; + } + + public function getPublishAt() { + return $this->publishAt; + } + + public function setRejectionReason($rejectionReason) { + $this->rejectionReason = $rejectionReason; + } + + public function getRejectionReason() { + return $this->rejectionReason; + } + + public function setUploadStatus($uploadStatus) { + $this->uploadStatus = $uploadStatus; + } + + public function getUploadStatus() { + return $this->uploadStatus; + } } -class Google_Service_YouTube_VideoSuggestions extends Google_Collection -{ - public $editorSuggestions; - public $processingErrors; - public $processingHints; - public $processingWarnings; - protected $tagSuggestionsType = 'Google_Service_YouTube_VideoSuggestionsTagSuggestion'; - protected $tagSuggestionsDataType = 'array'; - - public function setEditorSuggestions($editorSuggestions) - { - $this->editorSuggestions = $editorSuggestions; - } - - public function getEditorSuggestions() - { - return $this->editorSuggestions; - } - - public function setProcessingErrors($processingErrors) - { - $this->processingErrors = $processingErrors; - } - - public function getProcessingErrors() - { - return $this->processingErrors; - } - - public function setProcessingHints($processingHints) - { - $this->processingHints = $processingHints; - } - - public function getProcessingHints() - { - return $this->processingHints; - } - - public function setProcessingWarnings($processingWarnings) - { - $this->processingWarnings = $processingWarnings; - } - - public function getProcessingWarnings() - { - return $this->processingWarnings; - } - - public function setTagSuggestions($tagSuggestions) - { - $this->tagSuggestions = $tagSuggestions; - } - - public function getTagSuggestions() - { - return $this->tagSuggestions; - } +class Google_Service_YouTube_VideoSuggestions extends Google_Collection { + public $editorSuggestions; + public $processingErrors; + public $processingHints; + public $processingWarnings; + protected $tagSuggestionsType = 'Google_Service_YouTube_VideoSuggestionsTagSuggestion'; + protected $tagSuggestionsDataType = 'array'; + + public function setEditorSuggestions($editorSuggestions) { + $this->editorSuggestions = $editorSuggestions; + } + + public function getEditorSuggestions() { + return $this->editorSuggestions; + } + + public function setProcessingErrors($processingErrors) { + $this->processingErrors = $processingErrors; + } + + public function getProcessingErrors() { + return $this->processingErrors; + } + + public function setProcessingHints($processingHints) { + $this->processingHints = $processingHints; + } + + public function getProcessingHints() { + return $this->processingHints; + } + + public function setProcessingWarnings($processingWarnings) { + $this->processingWarnings = $processingWarnings; + } + + public function getProcessingWarnings() { + return $this->processingWarnings; + } + + public function setTagSuggestions($tagSuggestions) { + $this->tagSuggestions = $tagSuggestions; + } + + public function getTagSuggestions() { + return $this->tagSuggestions; + } } -class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection -{ - public $categoryRestricts; - public $tag; - - public function setCategoryRestricts($categoryRestricts) - { - $this->categoryRestricts = $categoryRestricts; - } - - public function getCategoryRestricts() - { - return $this->categoryRestricts; - } - - public function setTag($tag) - { - $this->tag = $tag; - } - - public function getTag() - { - return $this->tag; - } +class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection { + public $categoryRestricts; + public $tag; + + public function setCategoryRestricts($categoryRestricts) { + $this->categoryRestricts = $categoryRestricts; + } + + public function getCategoryRestricts() { + return $this->categoryRestricts; + } + + public function setTag($tag) { + $this->tag = $tag; + } + + public function getTag() { + return $this->tag; + } } -class Google_Service_YouTube_VideoTopicDetails extends Google_Collection -{ - public $relevantTopicIds; - public $topicIds; - - public function setRelevantTopicIds($relevantTopicIds) - { - $this->relevantTopicIds = $relevantTopicIds; - } - - public function getRelevantTopicIds() - { - return $this->relevantTopicIds; - } - - public function setTopicIds($topicIds) - { - $this->topicIds = $topicIds; - } - - public function getTopicIds() - { - return $this->topicIds; - } +class Google_Service_YouTube_VideoTopicDetails extends Google_Collection { + public $relevantTopicIds; + public $topicIds; + + public function setRelevantTopicIds($relevantTopicIds) { + $this->relevantTopicIds = $relevantTopicIds; + } + + public function getRelevantTopicIds() { + return $this->relevantTopicIds; + } + + public function setTopicIds($topicIds) { + $this->topicIds = $topicIds; + } + + public function getTopicIds() { + return $this->topicIds; + } } -class Google_Service_YouTube_WatchSettings extends Google_Model -{ - public $backgroundColor; - public $featuredPlaylistId; - public $textColor; - - public function setBackgroundColor($backgroundColor) - { - $this->backgroundColor = $backgroundColor; - } - - public function getBackgroundColor() - { - return $this->backgroundColor; - } - - public function setFeaturedPlaylistId($featuredPlaylistId) - { - $this->featuredPlaylistId = $featuredPlaylistId; - } - - public function getFeaturedPlaylistId() - { - return $this->featuredPlaylistId; - } - - public function setTextColor($textColor) - { - $this->textColor = $textColor; - } - - public function getTextColor() - { - return $this->textColor; - } +class Google_Service_YouTube_WatchSettings extends Google_Model { + public $backgroundColor; + public $featuredPlaylistId; + public $textColor; + + public function setBackgroundColor($backgroundColor) { + $this->backgroundColor = $backgroundColor; + } + + public function getBackgroundColor() { + return $this->backgroundColor; + } + + public function setFeaturedPlaylistId($featuredPlaylistId) { + $this->featuredPlaylistId = $featuredPlaylistId; + } + + public function getFeaturedPlaylistId() { + return $this->featuredPlaylistId; + } + + public function setTextColor($textColor) { + $this->textColor = $textColor; + } + + public function getTextColor() { + return $this->textColor; + } } diff --git a/oauth/Google/Service/YouTubeAnalytics.php b/oauth/Google/Service/YouTubeAnalytics.php index 8c4fd73..fe9ba5c 100644 --- a/oauth/Google/Service/YouTubeAnalytics.php +++ b/oauth/Google/Service/YouTubeAnalytics.php @@ -29,131 +29,129 @@ * * @author Google, Inc. */ -class Google_Service_YouTubeAnalytics extends Google_Service -{ - /** View YouTube Analytics monetary reports for your YouTube content. */ - const YT_ANALYTICS_MONETARY_READONLY = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; - /** View YouTube Analytics reports for your YouTube content. */ - const YT_ANALYTICS_READONLY = "https://www.googleapis.com/auth/yt-analytics.readonly"; +class Google_Service_YouTubeAnalytics extends Google_Service { + /** View YouTube Analytics monetary reports for your YouTube content. */ + const YT_ANALYTICS_MONETARY_READONLY = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; + /** View YouTube Analytics reports for your YouTube content. */ + const YT_ANALYTICS_READONLY = "https://www.googleapis.com/auth/yt-analytics.readonly"; - public $batchReportDefinitions; - public $batchReports; - public $reports; - + public $batchReportDefinitions; + public $batchReports; + public $reports; - /** - * Constructs the internal representation of the YouTubeAnalytics service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'youtube/analytics/v1/'; - $this->version = 'v1'; - $this->serviceName = 'youtubeAnalytics'; - $this->batchReportDefinitions = new Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource( - $this, - $this->serviceName, - 'batchReportDefinitions', - array( - 'methods' => array( - 'list' => array( - 'path' => 'batchReportDefinitions', - 'httpMethod' => 'GET', - 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->batchReports = new Google_Service_YouTubeAnalytics_BatchReports_Resource( - $this, - $this->serviceName, - 'batchReports', - array( - 'methods' => array( - 'list' => array( - 'path' => 'batchReports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'batchReportDefinitionId' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->reports = new Google_Service_YouTubeAnalytics_Reports_Resource( - $this, - $this->serviceName, - 'reports', - array( - 'methods' => array( - 'query' => array( - 'path' => 'reports', - 'httpMethod' => 'GET', - 'parameters' => array( - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'start-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'end-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'metrics' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'sort' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dimensions' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'filters' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - } + /** + * Constructs the internal representation of the YouTubeAnalytics service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + parent::__construct($client); + $this->servicePath = 'youtube/analytics/v1/'; + $this->version = 'v1'; + $this->serviceName = 'youtubeAnalytics'; + + $this->batchReportDefinitions = new Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource( + $this, + $this->serviceName, + 'batchReportDefinitions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'batchReportDefinitions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->batchReports = new Google_Service_YouTubeAnalytics_BatchReports_Resource( + $this, + $this->serviceName, + 'batchReports', + array( + 'methods' => array( + 'list' => array( + 'path' => 'batchReports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'batchReportDefinitionId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->reports = new Google_Service_YouTubeAnalytics_Reports_Resource( + $this, + $this->serviceName, + 'reports', + array( + 'methods' => array( + 'query' => array( + 'path' => 'reports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'start-date' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'end-date' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'metrics' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'sort' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'dimensions' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filters' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } } @@ -165,25 +163,23 @@ class Google_Service_YouTubeAnalytics extends Google_Service * $batchReportDefinitions = $youtubeAnalyticsService->batchReportDefinitions; * */ -class Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource extends Google_Service_Resource -{ +class Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource extends Google_Service_Resource { - /** - * Retrieves a list of available batch report definitions. - * (batchReportDefinitions.listBatchReportDefinitions) - * - * @param string $onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter identifies the content owner that the user is acting on - * behalf of. - * @param array $optParams Optional parameters. - * @return Google_Service_YouTubeAnalytics_BatchReportDefinitionList - */ - public function listBatchReportDefinitions($onBehalfOfContentOwner, $optParams = array()) - { - $params = array('onBehalfOfContentOwner' => $onBehalfOfContentOwner); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_BatchReportDefinitionList"); - } + /** + * Retrieves a list of available batch report definitions. + * (batchReportDefinitions.listBatchReportDefinitions) + * + * @param string $onBehalfOfContentOwner + * The onBehalfOfContentOwner parameter identifies the content owner that the user is acting on + * behalf of. + * @param array $optParams Optional parameters. + * @return Google_Service_YouTubeAnalytics_BatchReportDefinitionList + */ + public function listBatchReportDefinitions($onBehalfOfContentOwner, $optParams = array()) { + $params = array('onBehalfOfContentOwner' => $onBehalfOfContentOwner); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_BatchReportDefinitionList"); + } } /** @@ -194,27 +190,25 @@ class Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource extends Go * $batchReports = $youtubeAnalyticsService->batchReports; * */ -class Google_Service_YouTubeAnalytics_BatchReports_Resource extends Google_Service_Resource -{ +class Google_Service_YouTubeAnalytics_BatchReports_Resource extends Google_Service_Resource { - /** - * Retrieves a list of processed batch reports. (batchReports.listBatchReports) - * - * @param string $batchReportDefinitionId - * The batchReportDefinitionId parameter specifies the ID of the batch reportort definition for - * which you are retrieving reports. - * @param string $onBehalfOfContentOwner - * The onBehalfOfContentOwner parameter identifies the content owner that the user is acting on - * behalf of. - * @param array $optParams Optional parameters. - * @return Google_Service_YouTubeAnalytics_BatchReportList - */ - public function listBatchReports($batchReportDefinitionId, $onBehalfOfContentOwner, $optParams = array()) - { - $params = array('batchReportDefinitionId' => $batchReportDefinitionId, 'onBehalfOfContentOwner' => $onBehalfOfContentOwner); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_BatchReportList"); - } + /** + * Retrieves a list of processed batch reports. (batchReports.listBatchReports) + * + * @param string $batchReportDefinitionId + * The batchReportDefinitionId parameter specifies the ID of the batch reportort definition for + * which you are retrieving reports. + * @param string $onBehalfOfContentOwner + * The onBehalfOfContentOwner parameter identifies the content owner that the user is acting on + * behalf of. + * @param array $optParams Optional parameters. + * @return Google_Service_YouTubeAnalytics_BatchReportList + */ + public function listBatchReports($batchReportDefinitionId, $onBehalfOfContentOwner, $optParams = array()) { + $params = array('batchReportDefinitionId' => $batchReportDefinitionId, 'onBehalfOfContentOwner' => $onBehalfOfContentOwner); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_BatchReportList"); + } } /** @@ -225,399 +219,332 @@ class Google_Service_YouTubeAnalytics_BatchReports_Resource extends Google_Servi * $reports = $youtubeAnalyticsService->reports; * */ -class Google_Service_YouTubeAnalytics_Reports_Resource extends Google_Service_Resource -{ +class Google_Service_YouTubeAnalytics_Reports_Resource extends Google_Service_Resource { - /** - * Retrieve your YouTube Analytics reports. (reports.query) - * - * @param string $ids - * Identifies the YouTube channel or content owner for which you are retrieving YouTube Analytics - * data. - - To request data for a YouTube user, set the ids parameter value to channel==CHANNEL_ID, - * where CHANNEL_ID specifies the unique YouTube channel ID. - - To request data for a YouTube CMS - * content owner, set the ids parameter value to contentOwner==OWNER_NAME, where OWNER_NAME is the - * CMS name of the content owner. - * @param string $startDate - * The start date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format. - * @param string $endDate - * The end date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format. - * @param string $metrics - * A comma-separated list of YouTube Analytics metrics, such as views or likes,dislikes. See the - * Available Reports document for a list of the reports that you can retrieve and the metrics - * available in each report, and see the Metrics document for definitions of those metrics. - * @param array $optParams Optional parameters. - * - * @opt_param int max-results - * The maximum number of rows to include in the response. - * @opt_param string sort - * A comma-separated list of dimensions or metrics that determine the sort order for YouTube - * Analytics data. By default the sort order is ascending. The '-' prefix causes descending sort - * order. - * @opt_param string dimensions - * A comma-separated list of YouTube Analytics dimensions, such as views or ageGroup,gender. See - * the Available Reports document for a list of the reports that you can retrieve and the - * dimensions used for those reports. Also see the Dimensions document for definitions of those - * dimensions. - * @opt_param int start-index - * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along - * with the max-results parameter (one-based, inclusive). - * @opt_param string filters - * A list of filters that should be applied when retrieving YouTube Analytics data. The Available - * Reports document identifies the dimensions that can be used to filter each report, and the - * Dimensions document defines those dimensions. If a request uses multiple filters, join them - * together with a semicolon (;), and the returned result table will satisfy both filters. For - * example, a filters parameter value of video==dMH0bHeiRNg;country==IT restricts the result set to - * include data for the given video in Italy. - * @return Google_Service_YouTubeAnalytics_ResultTable - */ - public function query($ids, $startDate, $endDate, $metrics, $optParams = array()) - { - $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics); - $params = array_merge($params, $optParams); - return $this->call('query', array($params), "Google_Service_YouTubeAnalytics_ResultTable"); - } + /** + * Retrieve your YouTube Analytics reports. (reports.query) + * + * @param string $ids + * Identifies the YouTube channel or content owner for which you are retrieving YouTube Analytics + * data. + * - To request data for a YouTube user, set the ids parameter value to channel==CHANNEL_ID, + * where CHANNEL_ID specifies the unique YouTube channel ID. + * - To request data for a YouTube CMS + * content owner, set the ids parameter value to contentOwner==OWNER_NAME, where OWNER_NAME is the + * CMS name of the content owner. + * @param string $startDate + * The start date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format. + * @param string $endDate + * The end date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format. + * @param string $metrics + * A comma-separated list of YouTube Analytics metrics, such as views or likes,dislikes. See the + * Available Reports document for a list of the reports that you can retrieve and the metrics + * available in each report, and see the Metrics document for definitions of those metrics. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results + * The maximum number of rows to include in the response. + * @opt_param string sort + * A comma-separated list of dimensions or metrics that determine the sort order for YouTube + * Analytics data. By default the sort order is ascending. The '-' prefix causes descending sort + * order. + * @opt_param string dimensions + * A comma-separated list of YouTube Analytics dimensions, such as views or ageGroup,gender. See + * the Available Reports document for a list of the reports that you can retrieve and the + * dimensions used for those reports. Also see the Dimensions document for definitions of those + * dimensions. + * @opt_param int start-index + * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along + * with the max-results parameter (one-based, inclusive). + * @opt_param string filters + * A list of filters that should be applied when retrieving YouTube Analytics data. The Available + * Reports document identifies the dimensions that can be used to filter each report, and the + * Dimensions document defines those dimensions. If a request uses multiple filters, join them + * together with a semicolon (;), and the returned result table will satisfy both filters. For + * example, a filters parameter value of video==dMH0bHeiRNg;country==IT restricts the result set to + * include data for the given video in Italy. + * @return Google_Service_YouTubeAnalytics_ResultTable + */ + public function query($ids, $startDate, $endDate, $metrics, $optParams = array()) { + $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_YouTubeAnalytics_ResultTable"); + } } +class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection { + protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate'; + protected $itemsDataType = 'array'; + public $kind; + public function setItems($items) { + $this->items = $items; + } -class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection -{ - protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate'; - protected $itemsDataType = 'array'; - public $kind; + public function getItems() { + return $this->items; + } - public function setItems($items) - { - $this->items = $items; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getItems() - { - return $this->items; - } - - public function setKind($kind) - { - $this->kind = $kind; - } - - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Google_Collection -{ - protected $defaultOutputType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput'; - protected $defaultOutputDataType = 'array'; - public $id; - public $name; - public $status; - public $type; +class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Google_Collection { + protected $defaultOutputType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput'; + protected $defaultOutputDataType = 'array'; + public $id; + public $name; + public $status; + public $type; - public function setDefaultOutput($defaultOutput) - { - $this->defaultOutput = $defaultOutput; - } + public function setDefaultOutput($defaultOutput) { + $this->defaultOutput = $defaultOutput; + } - public function getDefaultOutput() - { - return $this->defaultOutput; - } + public function getDefaultOutput() { + return $this->defaultOutput; + } - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } - public function setStatus($status) - { - $this->status = $status; - } + public function setStatus($status) { + $this->status = $status; + } - public function getStatus() - { - return $this->status; - } + public function getStatus() { + return $this->status; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput extends Google_Model -{ - public $format; - public $type; +class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput extends Google_Model { + public $format; + public $type; - public function setFormat($format) - { - $this->format = $format; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection -{ - protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplate'; - protected $itemsDataType = 'array'; - public $kind; +class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection { + protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplate'; + protected $itemsDataType = 'array'; + public $kind; - public function setItems($items) - { - $this->items = $items; - } + public function setItems($items) { + $this->items = $items; + } - public function getItems() - { - return $this->items; - } + public function getItems() { + return $this->items; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } } -class Google_Service_YouTubeAnalytics_BatchReportTemplate extends Google_Collection -{ - public $id; - protected $outputsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs'; - protected $outputsDataType = 'array'; - public $reportId; - protected $timeSpanType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan'; - protected $timeSpanDataType = ''; - public $timeUpdated; +class Google_Service_YouTubeAnalytics_BatchReportTemplate extends Google_Collection { + public $id; + protected $outputsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs'; + protected $outputsDataType = 'array'; + public $reportId; + protected $timeSpanType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan'; + protected $timeSpanDataType = ''; + public $timeUpdated; - public function setId($id) - { - $this->id = $id; - } + public function setId($id) { + $this->id = $id; + } - public function getId() - { - return $this->id; - } + public function getId() { + return $this->id; + } - public function setOutputs($outputs) - { - $this->outputs = $outputs; - } + public function setOutputs($outputs) { + $this->outputs = $outputs; + } - public function getOutputs() - { - return $this->outputs; - } + public function getOutputs() { + return $this->outputs; + } - public function setReportId($reportId) - { - $this->reportId = $reportId; - } + public function setReportId($reportId) { + $this->reportId = $reportId; + } - public function getReportId() - { - return $this->reportId; - } + public function getReportId() { + return $this->reportId; + } - public function setTimeSpan(Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan $timeSpan) - { - $this->timeSpan = $timeSpan; - } + public function setTimeSpan(Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan $timeSpan) { + $this->timeSpan = $timeSpan; + } - public function getTimeSpan() - { - return $this->timeSpan; - } + public function getTimeSpan() { + return $this->timeSpan; + } - public function setTimeUpdated($timeUpdated) - { - $this->timeUpdated = $timeUpdated; - } + public function setTimeUpdated($timeUpdated) { + $this->timeUpdated = $timeUpdated; + } - public function getTimeUpdated() - { - return $this->timeUpdated; - } + public function getTimeUpdated() { + return $this->timeUpdated; + } } -class Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs extends Google_Model -{ - public $downloadUrl; - public $format; - public $type; +class Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs extends Google_Model { + public $downloadUrl; + public $format; + public $type; - public function setDownloadUrl($downloadUrl) - { - $this->downloadUrl = $downloadUrl; - } + public function setDownloadUrl($downloadUrl) { + $this->downloadUrl = $downloadUrl; + } - public function getDownloadUrl() - { - return $this->downloadUrl; - } + public function getDownloadUrl() { + return $this->downloadUrl; + } - public function setFormat($format) - { - $this->format = $format; - } + public function setFormat($format) { + $this->format = $format; + } - public function getFormat() - { - return $this->format; - } + public function getFormat() { + return $this->format; + } - public function setType($type) - { - $this->type = $type; - } + public function setType($type) { + $this->type = $type; + } - public function getType() - { - return $this->type; - } + public function getType() { + return $this->type; + } } -class Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan extends Google_Model -{ - public $endTime; - public $startTime; +class Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan extends Google_Model { + public $endTime; + public $startTime; - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } + public function setEndTime($endTime) { + $this->endTime = $endTime; + } - public function getEndTime() - { - return $this->endTime; - } + public function getEndTime() { + return $this->endTime; + } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } + public function setStartTime($startTime) { + $this->startTime = $startTime; + } - public function getStartTime() - { - return $this->startTime; - } + public function getStartTime() { + return $this->startTime; + } } -class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection -{ - protected $columnHeadersType = 'Google_Service_YouTubeAnalytics_ResultTableColumnHeaders'; - protected $columnHeadersDataType = 'array'; - public $kind; - public $rows; +class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection { + protected $columnHeadersType = 'Google_Service_YouTubeAnalytics_ResultTableColumnHeaders'; + protected $columnHeadersDataType = 'array'; + public $kind; + public $rows; - public function setColumnHeaders($columnHeaders) - { - $this->columnHeaders = $columnHeaders; - } + public function setColumnHeaders($columnHeaders) { + $this->columnHeaders = $columnHeaders; + } - public function getColumnHeaders() - { - return $this->columnHeaders; - } + public function getColumnHeaders() { + return $this->columnHeaders; + } - public function setKind($kind) - { - $this->kind = $kind; - } + public function setKind($kind) { + $this->kind = $kind; + } - public function getKind() - { - return $this->kind; - } + public function getKind() { + return $this->kind; + } - public function setRows($rows) - { - $this->rows = $rows; - } + public function setRows($rows) { + $this->rows = $rows; + } - public function getRows() - { - return $this->rows; - } + public function getRows() { + return $this->rows; + } } -class Google_Service_YouTubeAnalytics_ResultTableColumnHeaders extends Google_Model -{ - public $columnType; - public $dataType; - public $name; +class Google_Service_YouTubeAnalytics_ResultTableColumnHeaders extends Google_Model { + public $columnType; + public $dataType; + public $name; - public function setColumnType($columnType) - { - $this->columnType = $columnType; - } + public function setColumnType($columnType) { + $this->columnType = $columnType; + } - public function getColumnType() - { - return $this->columnType; - } + public function getColumnType() { + return $this->columnType; + } - public function setDataType($dataType) - { - $this->dataType = $dataType; - } + public function setDataType($dataType) { + $this->dataType = $dataType; + } - public function getDataType() - { - return $this->dataType; - } + public function getDataType() { + return $this->dataType; + } - public function setName($name) - { - $this->name = $name; - } + public function setName($name) { + $this->name = $name; + } - public function getName() - { - return $this->name; - } + public function getName() { + return $this->name; + } } diff --git a/oauth/Google/Signer/Abstract.php b/oauth/Google/Signer/Abstract.php index 2501809..3ad4b21 100644 --- a/oauth/Google/Signer/Abstract.php +++ b/oauth/Google/Signer/Abstract.php @@ -20,10 +20,9 @@ * * @author Brian Eaton */ -abstract class Google_Signer_Abstract -{ - /** - * Signs data, returns the signature as binary data. - */ - abstract public function sign($data); +abstract class Google_Signer_Abstract { + /** + * Signs data, returns the signature as binary data. + */ + abstract public function sign($data); } diff --git a/oauth/Google/Signer/P12.php b/oauth/Google/Signer/P12.php index 7cc6098..32e46d8 100644 --- a/oauth/Google/Signer/P12.php +++ b/oauth/Google/Signer/P12.php @@ -25,67 +25,63 @@ require_once 'Google/Signer/Abstract.php'; * * @author Brian Eaton */ -class Google_Signer_P12 extends Google_Signer_Abstract -{ - // OpenSSL private key resource - private $privateKey; +class Google_Signer_P12 extends Google_Signer_Abstract { + // OpenSSL private key resource + private $privateKey; - // Creates a new signer from a .p12 file. - public function __construct($p12, $password) - { - if (!function_exists('openssl_x509_read')) { - throw new Google_Exception( - 'The Google PHP API library needs the openssl PHP extension' - ); + // Creates a new signer from a .p12 file. + public function __construct($p12, $password) { + if (!function_exists('openssl_x509_read')) { + throw new Google_Exception( + 'The Google PHP API library needs the openssl PHP extension' + ); + } + + // If the private key is provided directly, then this isn't in the p12 + // format. Different versions of openssl support different p12 formats + // and the key from google wasn't being accepted by the version available + // at the time. + if (!$password && strpos($p12, "-----BEGIN RSA PRIVATE KEY-----") !== false) { + $this->privateKey = openssl_pkey_get_private($p12); + } else { + // This throws on error + $certs = array(); + if (!openssl_pkcs12_read($p12, $certs, $password)) { + throw new Google_Auth_Exception( + "Unable to parse the p12 file. " . + "Is this a .p12 file? Is the password correct? OpenSSL error: " . + openssl_error_string() + ); + } + // TODO(beaton): is this part of the contract for the openssl_pkcs12_read + // method? What happens if there are multiple private keys? Do we care? + if (!array_key_exists("pkey", $certs) || !$certs["pkey"]) { + throw new Google_Auth_Exception("No private key found in p12 file."); + } + $this->privateKey = openssl_pkey_get_private($certs['pkey']); + } + + if (!$this->privateKey) { + throw new Google_Auth_Exception("Unable to load private key"); + } } - // If the private key is provided directly, then this isn't in the p12 - // format. Different versions of openssl support different p12 formats - // and the key from google wasn't being accepted by the version available - // at the time. - if (!$password && strpos($p12, "-----BEGIN RSA PRIVATE KEY-----") !== false) { - $this->privateKey = openssl_pkey_get_private($p12); - } else { - // This throws on error - $certs = array(); - if (!openssl_pkcs12_read($p12, $certs, $password)) { - throw new Google_Auth_Exception( - "Unable to parse the p12 file. " . - "Is this a .p12 file? Is the password correct? OpenSSL error: " . - openssl_error_string() - ); - } - // TODO(beaton): is this part of the contract for the openssl_pkcs12_read - // method? What happens if there are multiple private keys? Do we care? - if (!array_key_exists("pkey", $certs) || !$certs["pkey"]) { - throw new Google_Auth_Exception("No private key found in p12 file."); - } - $this->privateKey = openssl_pkey_get_private($certs['pkey']); + public function __destruct() { + if ($this->privateKey) { + openssl_pkey_free($this->privateKey); + } } - if (!$this->privateKey) { - throw new Google_Auth_Exception("Unable to load private key"); + public function sign($data) { + if (version_compare(PHP_VERSION, '5.3.0') < 0) { + throw new Google_Auth_Exception( + "PHP 5.3.0 or higher is required to use service accounts." + ); + } + $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256"; + if (!openssl_sign($data, $signature, $this->privateKey, $hash)) { + throw new Google_Auth_Exception("Unable to sign data"); + } + return $signature; } - } - - public function __destruct() - { - if ($this->privateKey) { - openssl_pkey_free($this->privateKey); - } - } - - public function sign($data) - { - if (version_compare(PHP_VERSION, '5.3.0') < 0) { - throw new Google_Auth_Exception( - "PHP 5.3.0 or higher is required to use service accounts." - ); - } - $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256"; - if (!openssl_sign($data, $signature, $this->privateKey, $hash)) { - throw new Google_Auth_Exception("Unable to sign data"); - } - return $signature; - } } diff --git a/oauth/Google/Utils.php b/oauth/Google/Utils.php index f5ef32c..50e222b 100644 --- a/oauth/Google/Utils.php +++ b/oauth/Google/Utils.php @@ -21,115 +21,109 @@ * * @author Chirag Shah */ -class Google_Utils -{ - public static function urlSafeB64Encode($data) - { - $b64 = base64_encode($data); - $b64 = str_replace( - array('+', '/', '\r', '\n', '='), - array('-', '_'), - $b64 - ); - return $b64; - } - - public static function urlSafeB64Decode($b64) - { - $b64 = str_replace( - array('-', '_'), - array('+', '/'), - $b64 - ); - return base64_decode($b64); - } - - /** - * Misc function used to count the number of bytes in a post body, in the - * world of multi-byte chars and the unpredictability of - * strlen/mb_strlen/sizeof, this is the only way to do that in a sane - * manner at the moment. - * - * This algorithm was originally developed for the - * Solar Framework by Paul M. Jones - * - * @link http://solarphp.com/ - * @link http://svn.solarphp.com/core/trunk/Solar/Json.php - * @link http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Json/Decoder.php - * @param string $str - * @return int The number of bytes in a string. - */ - public static function getStrLen($str) - { - $strlenVar = strlen($str); - $d = $ret = 0; - for ($count = 0; $count < $strlenVar; ++ $count) { - $ordinalValue = ord($str{$ret}); - switch (true) { - case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)): - // characters U-00000000 - U-0000007F (same as ASCII) - $ret ++; - break; - case (($ordinalValue & 0xE0) == 0xC0): - // characters U-00000080 - U-000007FF, mask 110XXXXX - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 - $ret += 2; - break; - case (($ordinalValue & 0xF0) == 0xE0): - // characters U-00000800 - U-0000FFFF, mask 1110XXXX - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 - $ret += 3; - break; - case (($ordinalValue & 0xF8) == 0xF0): - // characters U-00010000 - U-001FFFFF, mask 11110XXX - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 - $ret += 4; - break; - case (($ordinalValue & 0xFC) == 0xF8): - // characters U-00200000 - U-03FFFFFF, mask 111110XX - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 - $ret += 5; - break; - case (($ordinalValue & 0xFE) == 0xFC): - // characters U-04000000 - U-7FFFFFFF, mask 1111110X - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 - $ret += 6; - break; - default: - $ret ++; - } - } - return $ret; - } - - /** - * Normalize all keys in an array to lower-case. - * @param array $arr - * @return array Normalized array. - */ - public static function normalize($arr) - { - if (!is_array($arr)) { - return array(); +class Google_Utils { + public static function urlSafeB64Encode($data) { + $b64 = base64_encode($data); + $b64 = str_replace( + array('+', '/', '\r', '\n', '='), + array('-', '_'), + $b64 + ); + return $b64; } - $normalized = array(); - foreach ($arr as $key => $val) { - $normalized[strtolower($key)] = $val; + public static function urlSafeB64Decode($b64) { + $b64 = str_replace( + array('-', '_'), + array('+', '/'), + $b64 + ); + return base64_decode($b64); } - return $normalized; - } - /** - * Convert a string to camelCase - * @param string $value - * @return string - */ - public static function camelCase($value) - { - $value = ucwords(str_replace(array('-', '_'), ' ', $value)); - $value = str_replace(' ', '', $value); - $value[0] = strtolower($value[0]); - return $value; - } + /** + * Misc function used to count the number of bytes in a post body, in the + * world of multi-byte chars and the unpredictability of + * strlen/mb_strlen/sizeof, this is the only way to do that in a sane + * manner at the moment. + * + * This algorithm was originally developed for the + * Solar Framework by Paul M. Jones + * + * @link http://solarphp.com/ + * @link http://svn.solarphp.com/core/trunk/Solar/Json.php + * @link http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Json/Decoder.php + * @param string $str + * @return int The number of bytes in a string. + */ + public static function getStrLen($str) { + $strlenVar = strlen($str); + $d = $ret = 0; + for ($count = 0; $count < $strlenVar; ++$count) { + $ordinalValue = ord($str{$ret}); + switch (true) { + case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)): + // characters U-00000000 - U-0000007F (same as ASCII) + $ret++; + break; + case (($ordinalValue & 0xE0) == 0xC0): + // characters U-00000080 - U-000007FF, mask 110XXXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $ret += 2; + break; + case (($ordinalValue & 0xF0) == 0xE0): + // characters U-00000800 - U-0000FFFF, mask 1110XXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $ret += 3; + break; + case (($ordinalValue & 0xF8) == 0xF0): + // characters U-00010000 - U-001FFFFF, mask 11110XXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $ret += 4; + break; + case (($ordinalValue & 0xFC) == 0xF8): + // characters U-00200000 - U-03FFFFFF, mask 111110XX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $ret += 5; + break; + case (($ordinalValue & 0xFE) == 0xFC): + // characters U-04000000 - U-7FFFFFFF, mask 1111110X + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $ret += 6; + break; + default: + $ret++; + } + } + return $ret; + } + + /** + * Normalize all keys in an array to lower-case. + * @param array $arr + * @return array Normalized array. + */ + public static function normalize($arr) { + if (!is_array($arr)) { + return array(); + } + + $normalized = array(); + foreach ($arr as $key => $val) { + $normalized[strtolower($key)] = $val; + } + return $normalized; + } + + /** + * Convert a string to camelCase + * @param string $value + * @return string + */ + public static function camelCase($value) { + $value = ucwords(str_replace(array('-', '_'), ' ', $value)); + $value = str_replace(' ', '', $value); + $value[0] = strtolower($value[0]); + return $value; + } } diff --git a/oauth/Google/Utils/URITemplate.php b/oauth/Google/Utils/URITemplate.php index f5ee38b..a941dca 100644 --- a/oauth/Google/Utils/URITemplate.php +++ b/oauth/Google/Utils/URITemplate.php @@ -16,318 +16,312 @@ */ /** - * Implementation of levels 1-3 of the URI Template spec. + * Implementation of levels 1-3 of the URI Template spec. * @see http://tools.ietf.org/html/rfc6570 */ -class Google_Utils_URITemplate -{ - const TYPE_MAP = "1"; - const TYPE_LIST = "2"; - const TYPE_SCALAR = "4"; +class Google_Utils_URITemplate { + const TYPE_MAP = "1"; + const TYPE_LIST = "2"; + const TYPE_SCALAR = "4"; - /** - * @var $operators array - * These are valid at the start of a template block to - * modify the way in which the variables inside are - * processed. - */ - private $operators = array( - "+" => "reserved", - "/" => "segments", - "." => "dotprefix", - "#" => "fragment", - ";" => "semicolon", - "?" => "form", - "&" => "continuation" - ); + /** + * @var $operators array + * These are valid at the start of a template block to + * modify the way in which the variables inside are + * processed. + */ + private $operators = array( + "+" => "reserved", + "/" => "segments", + "." => "dotprefix", + "#" => "fragment", + ";" => "semicolon", + "?" => "form", + "&" => "continuation" + ); - /** - * @var reserved array - * These are the characters which should not be URL encoded in reserved - * strings. - */ - private $reserved = array( - "=", ",", "!", "@", "|", ":", "/", "?", "#", - "[", "]",'$', "&", "'", "(", ")", "*", "+", ";" - ); - private $reservedEncoded = array( - "%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F", - "%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29", - "%2A", "%2B", "%3B" - ); + /** + * @var reserved array + * These are the characters which should not be URL encoded in reserved + * strings. + */ + private $reserved = array( + "=", ",", "!", "@", "|", ":", "/", "?", "#", + "[", "]", '$', "&", "'", "(", ")", "*", "+", ";" + ); + private $reservedEncoded = array( + "%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F", + "%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29", + "%2A", "%2B", "%3B" + ); - public function parse($string, array $parameters) - { - return $this->resolveNextSection($string, $parameters); - } - - /** - * This function finds the first matching {...} block and - * executes the replacement. It then calls itself to find - * subsequent blocks, if any. - */ - private function resolveNextSection($string, $parameters) - { - $start = strpos($string, "{"); - if ($start === false) { - return $string; + public function parse($string, array $parameters) { + return $this->resolveNextSection($string, $parameters); } - $end = strpos($string, "}"); - if ($end === false) { - return $string; + + /** + * This function finds the first matching {...} block and + * executes the replacement. It then calls itself to find + * subsequent blocks, if any. + */ + private function resolveNextSection($string, $parameters) { + $start = strpos($string, "{"); + if ($start === false) { + return $string; + } + $end = strpos($string, "}"); + if ($end === false) { + return $string; + } + $string = $this->replace($string, $start, $end, $parameters); + return $this->resolveNextSection($string, $parameters); } - $string = $this->replace($string, $start, $end, $parameters); - return $this->resolveNextSection($string, $parameters); - } - private function replace($string, $start, $end, $parameters) - { - // We know a data block will have {} round it, so we can strip that. - $data = substr($string, $start + 1, $end - $start - 1); + private function replace($string, $start, $end, $parameters) { + // We know a data block will have {} round it, so we can strip that. + $data = substr($string, $start + 1, $end - $start - 1); - // If the first character is one of the reserved operators, it effects - // the processing of the stream. - if (isset($this->operators[$data[0]])) { - $op = $this->operators[$data[0]]; - $data = substr($data, 1); - $prefix = ""; - $prefix_on_missing = false; + // If the first character is one of the reserved operators, it effects + // the processing of the stream. + if (isset($this->operators[$data[0]])) { + $op = $this->operators[$data[0]]; + $data = substr($data, 1); + $prefix = ""; + $prefix_on_missing = false; - switch ($op) { - case "reserved": - // Reserved means certain characters should not be URL encoded - $data = $this->replaceVars($data, $parameters, ",", null, true); - break; - case "fragment": - // Comma separated with fragment prefix. Bare values only. - $prefix = "#"; - $prefix_on_missing = true; - $data = $this->replaceVars($data, $parameters, ",", null, true); - break; - case "segments": - // Slash separated data. Bare values only. - $prefix = "/"; - $data =$this->replaceVars($data, $parameters, "/"); - break; - case "dotprefix": - // Dot separated data. Bare values only. - $prefix = "."; - $prefix_on_missing = true; - $data = $this->replaceVars($data, $parameters, "."); - break; - case "semicolon": - // Semicolon prefixed and separated. Uses the key name - $prefix = ";"; - $data = $this->replaceVars($data, $parameters, ";", "=", false, true, false); - break; - case "form": - // Standard URL format. Uses the key name - $prefix = "?"; - $data = $this->replaceVars($data, $parameters, "&", "="); - break; - case "continuation": - // Standard URL, but with leading ampersand. Uses key name. - $prefix = "&"; - $data = $this->replaceVars($data, $parameters, "&", "="); - break; - } - - // Add the initial prefix character if data is valid. - if ($data || ($data !== false && $prefix_on_missing)) { - $data = $prefix . $data; - } - - } else { - // If no operator we replace with the defaults. - $data = $this->replaceVars($data, $parameters); - } - // This is chops out the {...} and replaces with the new section. - return substr($string, 0, $start) . $data . substr($string, $end + 1); - } - - private function replaceVars( - $section, - $parameters, - $sep = ",", - $combine = null, - $reserved = false, - $tag_empty = false, - $combine_on_empty = true - ) { - if (strpos($section, ",") === false) { - // If we only have a single value, we can immediately process. - return $this->combine( - $section, - $parameters, - $sep, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ); - } else { - // If we have multiple values, we need to split and loop over them. - // Each is treated individually, then glued together with the - // separator character. - $vars = explode(",", $section); - return $this->combineList( - $vars, - $sep, - $parameters, - $combine, - $reserved, - false, // Never emit empty strings in multi-param replacements - $combine_on_empty - ); - } - } - - public function combine( - $key, - $parameters, - $sep, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ) { - $length = false; - $explode = false; - $skip_final_combine = false; - $value = false; - - // Check for length restriction. - if (strpos($key, ":") !== false) { - list($key, $length) = explode(":", $key); - } - - // Check for explode parameter. - if ($key[strlen($key) - 1] == "*") { - $explode = true; - $key = substr($key, 0, -1); - $skip_final_combine = true; - } - - // Define the list separator. - $list_sep = $explode ? $sep : ","; - - if (isset($parameters[$key])) { - $data_type = $this->getDataType($parameters[$key]); - switch($data_type) { - case self::TYPE_SCALAR: - $value = $this->getValue($parameters[$key], $length); - break; - case self::TYPE_LIST: - $values = array(); - foreach ($parameters[$key] as $pkey => $pvalue) { - $pvalue = $this->getValue($pvalue, $length); - if ($combine && $explode) { - $values[$pkey] = $key . $combine . $pvalue; - } else { - $values[$pkey] = $pvalue; + switch ($op) { + case "reserved": + // Reserved means certain characters should not be URL encoded + $data = $this->replaceVars($data, $parameters, ",", null, true); + break; + case "fragment": + // Comma separated with fragment prefix. Bare values only. + $prefix = "#"; + $prefix_on_missing = true; + $data = $this->replaceVars($data, $parameters, ",", null, true); + break; + case "segments": + // Slash separated data. Bare values only. + $prefix = "/"; + $data = $this->replaceVars($data, $parameters, "/"); + break; + case "dotprefix": + // Dot separated data. Bare values only. + $prefix = "."; + $prefix_on_missing = true; + $data = $this->replaceVars($data, $parameters, "."); + break; + case "semicolon": + // Semicolon prefixed and separated. Uses the key name + $prefix = ";"; + $data = $this->replaceVars($data, $parameters, ";", "=", false, true, false); + break; + case "form": + // Standard URL format. Uses the key name + $prefix = "?"; + $data = $this->replaceVars($data, $parameters, "&", "="); + break; + case "continuation": + // Standard URL, but with leading ampersand. Uses key name. + $prefix = "&"; + $data = $this->replaceVars($data, $parameters, "&", "="); + break; } - } - $value = implode($list_sep, $values); - if ($value == '') { - return ''; - } - break; - case self::TYPE_MAP: - $values = array(); - foreach ($parameters[$key] as $pkey => $pvalue) { - $pvalue = $this->getValue($pvalue, $length); - if ($explode) { - $pkey = $this->getValue($pkey, $length); - $values[] = $pkey . "=" . $pvalue; // Explode triggers = combine. - } else { - $values[] = $pkey; - $values[] = $pvalue; + + // Add the initial prefix character if data is valid. + if ($data || ($data !== false && $prefix_on_missing)) { + $data = $prefix . $data; } - } - $value = implode($list_sep, $values); - if ($value == '') { + + } else { + // If no operator we replace with the defaults. + $data = $this->replaceVars($data, $parameters); + } + // This is chops out the {...} and replaces with the new section. + return substr($string, 0, $start) . $data . substr($string, $end + 1); + } + + private function replaceVars( + $section, + $parameters, + $sep = ",", + $combine = null, + $reserved = false, + $tag_empty = false, + $combine_on_empty = true + ) { + if (strpos($section, ",") === false) { + // If we only have a single value, we can immediately process. + return $this->combine( + $section, + $parameters, + $sep, + $combine, + $reserved, + $tag_empty, + $combine_on_empty + ); + } else { + // If we have multiple values, we need to split and loop over them. + // Each is treated individually, then glued together with the + // separator character. + $vars = explode(",", $section); + return $this->combineList( + $vars, + $sep, + $parameters, + $combine, + $reserved, + false, // Never emit empty strings in multi-param replacements + $combine_on_empty + ); + } + } + + public function combine( + $key, + $parameters, + $sep, + $combine, + $reserved, + $tag_empty, + $combine_on_empty + ) { + $length = false; + $explode = false; + $skip_final_combine = false; + $value = false; + + // Check for length restriction. + if (strpos($key, ":") !== false) { + list($key, $length) = explode(":", $key); + } + + // Check for explode parameter. + if ($key[strlen($key) - 1] == "*") { + $explode = true; + $key = substr($key, 0, -1); + $skip_final_combine = true; + } + + // Define the list separator. + $list_sep = $explode ? $sep : ","; + + if (isset($parameters[$key])) { + $data_type = $this->getDataType($parameters[$key]); + switch ($data_type) { + case self::TYPE_SCALAR: + $value = $this->getValue($parameters[$key], $length); + break; + case self::TYPE_LIST: + $values = array(); + foreach ($parameters[$key] as $pkey => $pvalue) { + $pvalue = $this->getValue($pvalue, $length); + if ($combine && $explode) { + $values[$pkey] = $key . $combine . $pvalue; + } else { + $values[$pkey] = $pvalue; + } + } + $value = implode($list_sep, $values); + if ($value == '') { + return ''; + } + break; + case self::TYPE_MAP: + $values = array(); + foreach ($parameters[$key] as $pkey => $pvalue) { + $pvalue = $this->getValue($pvalue, $length); + if ($explode) { + $pkey = $this->getValue($pkey, $length); + $values[] = $pkey . "=" . $pvalue; // Explode triggers = combine. + } else { + $values[] = $pkey; + $values[] = $pvalue; + } + } + $value = implode($list_sep, $values); + if ($value == '') { + return false; + } + break; + } + } elseif ($tag_empty) { + // If we are just indicating empty values with their key name, return that. + return $key; + } else { + // Otherwise we can skip this variable due to not being defined. return false; - } - break; - } - } else if ($tag_empty) { - // If we are just indicating empty values with their key name, return that. - return $key; - } else { - // Otherwise we can skip this variable due to not being defined. - return false; + } + + if ($reserved) { + $value = str_replace($this->reservedEncoded, $this->reserved, $value); + } + + // If we do not need to include the key name, we just return the raw + // value. + if (!$combine || $skip_final_combine) { + return $value; + } + + // Else we combine the key name: foo=bar, if value is not the empty string. + return $key . ($value != '' || $combine_on_empty ? $combine . $value : ''); } - if ($reserved) { - $value = str_replace($this->reservedEncoded, $this->reserved, $value); + /** + * Return the type of a passed in value + */ + private function getDataType($data) { + if (is_array($data)) { + reset($data); + if (key($data) !== 0) { + return self::TYPE_MAP; + } + return self::TYPE_LIST; + } + return self::TYPE_SCALAR; } - // If we do not need to include the key name, we just return the raw - // value. - if (!$combine || $skip_final_combine) { - return $value; + /** + * Utility function that merges multiple combine calls + * for multi-key templates. + */ + private function combineList( + $vars, + $sep, + $parameters, + $combine, + $reserved, + $tag_empty, + $combine_on_empty + ) { + $ret = array(); + foreach ($vars as $var) { + $response = $this->combine( + $var, + $parameters, + $sep, + $combine, + $reserved, + $tag_empty, + $combine_on_empty + ); + if ($response === false) { + continue; + } + $ret[] = $response; + } + return implode($sep, $ret); } - - // Else we combine the key name: foo=bar, if value is not the empty string. - return $key . ($value != '' || $combine_on_empty ? $combine . $value : ''); - } - - /** - * Return the type of a passed in value - */ - private function getDataType($data) - { - if (is_array($data)) { - reset($data); - if (key($data) !== 0) { - return self::TYPE_MAP; - } - return self::TYPE_LIST; + + /** + * Utility function to encode and trim values + */ + private function getValue($value, $length) { + if ($length) { + $value = substr($value, 0, $length); + } + $value = rawurlencode($value); + return $value; } - return self::TYPE_SCALAR; - } - - /** - * Utility function that merges multiple combine calls - * for multi-key templates. - */ - private function combineList( - $vars, - $sep, - $parameters, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ) { - $ret = array(); - foreach ($vars as $var) { - $response = $this->combine( - $var, - $parameters, - $sep, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ); - if ($response === false) { - continue; - } - $ret[] = $response; - } - return implode($sep, $ret); - } - - /** - * Utility function to encode and trim values - */ - private function getValue($value, $length) - { - if ($length) { - $value = substr($value, 0, $length); - } - $value = rawurlencode($value); - return $value; - } } diff --git a/oauth/Google/Verifier/Abstract.php b/oauth/Google/Verifier/Abstract.php index e6c9eeb..2e7f1dc 100644 --- a/oauth/Google/Verifier/Abstract.php +++ b/oauth/Google/Verifier/Abstract.php @@ -20,11 +20,10 @@ * * @author Brian Eaton */ -abstract class Google_Verifier_Abstract -{ - /** - * Checks a signature, returns true if the signature is correct, - * false otherwise. - */ - abstract public function verify($data, $signature); +abstract class Google_Verifier_Abstract { + /** + * Checks a signature, returns true if the signature is correct, + * false otherwise. + */ + abstract public function verify($data, $signature); } diff --git a/oauth/Google/Verifier/Pem.php b/oauth/Google/Verifier/Pem.php index f281575..7067857 100644 --- a/oauth/Google/Verifier/Pem.php +++ b/oauth/Google/Verifier/Pem.php @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + require_once 'Google/Auth/Exception.php'; require_once 'Google/Verifier/Abstract.php'; @@ -23,52 +23,48 @@ require_once 'Google/Verifier/Abstract.php'; * * @author Brian Eaton */ -class Google_Verifier_Pem extends Google_Verifier_Abstract -{ - private $publicKey; +class Google_Verifier_Pem extends Google_Verifier_Abstract { + private $publicKey; - /** - * Constructs a verifier from the supplied PEM-encoded certificate. - * - * $pem: a PEM encoded certificate (not a file). - * @param $pem - * @throws Google_Auth_Exception - * @throws Google_Exception - */ - public function __construct($pem) - { - if (!function_exists('openssl_x509_read')) { - throw new Google_Exception('Google API PHP client needs the openssl PHP extension'); + /** + * Constructs a verifier from the supplied PEM-encoded certificate. + * + * $pem: a PEM encoded certificate (not a file). + * @param $pem + * @throws Google_Auth_Exception + * @throws Google_Exception + */ + public function __construct($pem) { + if (!function_exists('openssl_x509_read')) { + throw new Google_Exception('Google API PHP client needs the openssl PHP extension'); + } + $this->publicKey = openssl_x509_read($pem); + if (!$this->publicKey) { + throw new Google_Auth_Exception("Unable to parse PEM: $pem"); + } } - $this->publicKey = openssl_x509_read($pem); - if (!$this->publicKey) { - throw new Google_Auth_Exception("Unable to parse PEM: $pem"); - } - } - public function __destruct() - { - if ($this->publicKey) { - openssl_x509_free($this->publicKey); + public function __destruct() { + if ($this->publicKey) { + openssl_x509_free($this->publicKey); + } } - } - /** - * Verifies the signature on data. - * - * Returns true if the signature is valid, false otherwise. - * @param $data - * @param $signature - * @throws Google_Auth_Exception - * @return bool - */ - public function verify($data, $signature) - { - $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256"; - $status = openssl_verify($data, $signature, $this->publicKey, $hash); - if ($status === -1) { - throw new Google_Auth_Exception('Signature verification error: ' . openssl_error_string()); + /** + * Verifies the signature on data. + * + * Returns true if the signature is valid, false otherwise. + * @param $data + * @param $signature + * @return bool + * @throws Google_Auth_Exception + */ + public function verify($data, $signature) { + $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256"; + $status = openssl_verify($data, $signature, $this->publicKey, $hash); + if ($status === -1) { + throw new Google_Auth_Exception('Signature verification error: ' . openssl_error_string()); + } + return $status === 1; } - return $status === 1; - } } diff --git a/oauth/facebook.php b/oauth/facebook.php index ffe54e4..399283c 100644 --- a/oauth/facebook.php +++ b/oauth/facebook.php @@ -19,7 +19,7 @@ require_once('../config.php'); // Current Date & User IP $date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$ip = $_SERVER['REMOTE_ADDR']; // Database Connection $con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); @@ -38,40 +38,39 @@ if ($user) { try { // Proceed knowing you have a logged in user who's authenticated. $user_profile = $facebook->api('/me'); - } - catch (FacebookApiException $e) { - + } catch (FacebookApiException $e) { + $user = null; } - + if (!empty($user_profile)) { # User info ok? Let's print it (Here we will be adding the login and registering routines) - - $client_name = $user_profile['name']; - $client_id = $user_profile['id']; + + $client_name = $user_profile['name']; + $client_id = $user_profile['id']; $client_email = $user_profile['email']; - $client_pic = $user_profile['picture']; - $client_plat = 'Facebook'; - - + $client_pic = $user_profile['picture']; + $client_plat = 'Facebook'; + + if (!empty($user_profile)) { $query = mysqli_query($con, "SELECT * FROM users WHERE oauth_uid='$client_id'"); if (mysqli_num_rows($query) > 0) { - $query = "SELECT * FROM users WHERE oauth_uid='$client_id'"; + $query = "SELECT * FROM users WHERE oauth_uid='$client_id'"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { $user_username = $row['username']; - $db_verified = $row['verified']; + $db_verified = $row['verified']; } if ($db_verified == "2") { die("Your account has been banned."); } else { - - $_SESSION['username'] = $user_username; - $_SESSION['token'] = Md5($db_id . $username); + + $_SESSION['username'] = $user_username; + $_SESSION['token'] = Md5($db_id . $username); $_SESSION['oauth_uid'] = $client_id; - $_SESSION['pic'] = $client_pic; - + $_SESSION['pic'] = $client_pic; + $old_user = 1; header("Location: ."); exit(); @@ -79,26 +78,26 @@ if ($user) { } else { $new_user = 1; #user not present. - $query = "SELECT @last_id := MAX(id) FROM users"; - $result = mysqli_query($con, $query); + $query = "SELECT @last_id := MAX(id) FROM users"; + $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { $last_id = $row['@last_id := MAX(id)']; } if ($last_id == "" || $last_id == null) { $username = "User1"; } else { - $last_id = $last_id + 1; + $last_id = $last_id + 1; $username = "User$last_id"; } - $_SESSION['username'] = $username; + $_SESSION['username'] = $username; $_SESSION['oauth_uid'] = $client_id; - $_SESSION['token'] = Md5($db_id . $username); - $query = "INSERT INTO users (oauth_uid,username,email_id,full_name,platform,password,verified,picture,date,ip) VALUES ('$client_id','$username','$client_email','$client_name','$client_plat','$password','1','$client_pic','$date','$ip')"; + $_SESSION['token'] = Md5($db_id . $username); + $query = "INSERT INTO users (oauth_uid,username,email_id,full_name,platform,password,verified,picture,date,ip) VALUES ('$client_id','$username','$client_email','$client_name','$client_plat','$password','1','$client_pic','$date','$ip')"; mysqli_query($con, $query); header("Location: oauth.php?new_user"); exit(); } - + } } else { # For testing purposes, if there was an error, let's kill the script diff --git a/oauth/facebook/base_facebook.php b/oauth/facebook/base_facebook.php index b837fa7..d32b334 100644 --- a/oauth/facebook/base_facebook.php +++ b/oauth/facebook/base_facebook.php @@ -16,10 +16,10 @@ */ if (!function_exists('curl_init')) { - throw new Exception('Facebook needs the CURL PHP extension.'); + throw new Exception('Facebook needs the CURL PHP extension.'); } if (!function_exists('json_decode')) { - throw new Exception('Facebook needs the JSON PHP extension.'); + throw new Exception('Facebook needs the JSON PHP extension.'); } /** @@ -27,83 +27,82 @@ if (!function_exists('json_decode')) { * * @author Naitik Shah */ -class FacebookApiException extends Exception -{ - /** - * The result from the API server that represents the exception information. - */ - protected $result; +class FacebookApiException extends Exception { + /** + * The result from the API server that represents the exception information. + */ + protected $result; - /** - * Make a new API Exception with the given result. - * - * @param array $result The result from the API server - */ - public function __construct($result) { - $this->result = $result; + /** + * Make a new API Exception with the given result. + * + * @param array $result The result from the API server + */ + public function __construct($result) { + $this->result = $result; - $code = isset($result['error_code']) ? $result['error_code'] : 0; + $code = isset($result['error_code']) ? $result['error_code'] : 0; - if (isset($result['error_description'])) { - // OAuth 2.0 Draft 10 style - $msg = $result['error_description']; - } else if (isset($result['error']) && is_array($result['error'])) { - // OAuth 2.0 Draft 00 style - $msg = $result['error']['message']; - } else if (isset($result['error_msg'])) { - // Rest server style - $msg = $result['error_msg']; - } else { - $msg = 'Unknown Error. Check getResult()'; - } - - parent::__construct($msg, $code); - } - - /** - * Return the associated result object returned by the API server. - * - * @return array The result from the API server - */ - public function getResult() { - return $this->result; - } - - /** - * Returns the associated type for the error. This will default to - * 'Exception' when a type is not available. - * - * @return string - */ - public function getType() { - if (isset($this->result['error'])) { - $error = $this->result['error']; - if (is_string($error)) { - // OAuth 2.0 Draft 10 style - return $error; - } else if (is_array($error)) { - // OAuth 2.0 Draft 00 style - if (isset($error['type'])) { - return $error['type']; + if (isset($result['error_description'])) { + // OAuth 2.0 Draft 10 style + $msg = $result['error_description']; + } elseif (isset($result['error']) && is_array($result['error'])) { + // OAuth 2.0 Draft 00 style + $msg = $result['error']['message']; + } elseif (isset($result['error_msg'])) { + // Rest server style + $msg = $result['error_msg']; + } else { + $msg = 'Unknown Error. Check getResult()'; } - } + + parent::__construct($msg, $code); } - return 'Exception'; - } - - /** - * To make debugging easier. - * - * @return string The string representation of the error - */ - public function __toString() { - $str = $this->getType() . ': '; - if ($this->code != 0) { - $str .= $this->code . ': '; + /** + * Return the associated result object returned by the API server. + * + * @return array The result from the API server + */ + public function getResult() { + return $this->result; + } + + /** + * Returns the associated type for the error. This will default to + * 'Exception' when a type is not available. + * + * @return string + */ + public function getType() { + if (isset($this->result['error'])) { + $error = $this->result['error']; + if (is_string($error)) { + // OAuth 2.0 Draft 10 style + return $error; + } elseif (is_array($error)) { + // OAuth 2.0 Draft 00 style + if (isset($error['type'])) { + return $error['type']; + } + } + } + + return 'Exception'; + } + + /** + * To make debugging easier. + * + * @return string The string representation of the error + */ + public function __toString() { + $str = $this->getType() . ': '; + if ($this->code != 0) { + $str .= $this->code . ': '; + } + return $str . $this->message; } - return $str . $this->message; - } } /** @@ -115,1010 +114,1008 @@ class FacebookApiException extends Exception * * @author Naitik Shah */ -abstract class BaseFacebook -{ - /** - * Version. - */ - const VERSION = '3.1.1'; +abstract class BaseFacebook { + /** + * Version. + */ + const VERSION = '3.1.1'; - /** - * Default options for curl. - */ - public static $CURL_OPTS = array( - CURLOPT_CONNECTTIMEOUT => 10, - CURLOPT_RETURNTRANSFER => true, - CURLOPT_TIMEOUT => 60, - CURLOPT_USERAGENT => 'facebook-php-3.1', - ); + /** + * Default options for curl. + */ + public static $CURL_OPTS = array( + CURLOPT_CONNECTTIMEOUT => 10, + CURLOPT_RETURNTRANSFER => true, + CURLOPT_TIMEOUT => 60, + CURLOPT_USERAGENT => 'facebook-php-3.1', + ); - /** - * List of query parameters that get automatically dropped when rebuilding - * the current URL. - */ - protected static $DROP_QUERY_PARAMS = array( - 'code', - 'state', - 'signed_request', - ); + /** + * List of query parameters that get automatically dropped when rebuilding + * the current URL. + */ + protected static $DROP_QUERY_PARAMS = array( + 'code', + 'state', + 'signed_request', + ); - /** - * Maps aliases to Facebook domains. - */ - public static $DOMAIN_MAP = array( - 'api' => 'https://api.facebook.com/', - 'api_video' => 'https://api-video.facebook.com/', - 'api_read' => 'https://api-read.facebook.com/', - 'graph' => 'https://graph.facebook.com/', - 'www' => 'https://www.facebook.com/', - ); + /** + * Maps aliases to Facebook domains. + */ + public static $DOMAIN_MAP = array( + 'api' => 'https://api.facebook.com/', + 'api_video' => 'https://api-video.facebook.com/', + 'api_read' => 'https://api-read.facebook.com/', + 'graph' => 'https://graph.facebook.com/', + 'www' => 'https://www.facebook.com/', + ); - /** - * The Application ID. - * - * @var string - */ - protected $appId; + /** + * The Application ID. + * + * @var string + */ + protected $appId; - /** - * The Application API Secret. - * - * @var string - */ - protected $apiSecret; + /** + * The Application API Secret. + * + * @var string + */ + protected $apiSecret; - /** - * The ID of the Facebook user, or 0 if the user is logged out. - * - * @var integer - */ - protected $user; + /** + * The ID of the Facebook user, or 0 if the user is logged out. + * + * @var integer + */ + protected $user; - /** - * The data from the signed_request token. - */ - protected $signedRequest; + /** + * The data from the signed_request token. + */ + protected $signedRequest; - /** - * A CSRF state variable to assist in the defense against CSRF attacks. - */ - protected $state; + /** + * A CSRF state variable to assist in the defense against CSRF attacks. + */ + protected $state; - /** - * The OAuth access token received in exchange for a valid authorization - * code. null means the access token has yet to be determined. - * - * @var string - */ - protected $accessToken = null; + /** + * The OAuth access token received in exchange for a valid authorization + * code. null means the access token has yet to be determined. + * + * @var string + */ + protected $accessToken = null; - /** - * Indicates if the CURL based @ syntax for file uploads is enabled. - * - * @var boolean - */ - protected $fileUploadSupport = false; + /** + * Indicates if the CURL based @ syntax for file uploads is enabled. + * + * @var boolean + */ + protected $fileUploadSupport = false; - /** - * Initialize a Facebook Application. - * - * The configuration: - * - appId: the application ID - * - secret: the application secret - * - fileUpload: (optional) boolean indicating if file uploads are enabled - * - * @param array $config The application configuration - */ - public function __construct($config) { - $this->setAppId($config['appId']); - $this->setApiSecret($config['secret']); - if (isset($config['fileUpload'])) { - $this->setFileUploadSupport($config['fileUpload']); - } - - $state = $this->getPersistentData('state'); - if (!empty($state)) { - $this->state = $this->getPersistentData('state'); - } - } - - /** - * Set the Application ID. - * - * @param string $appId The Application ID - * @return BaseFacebook - */ - public function setAppId($appId) { - $this->appId = $appId; - return $this; - } - - /** - * Get the Application ID. - * - * @return string the Application ID - */ - public function getAppId() { - return $this->appId; - } - - /** - * Set the API Secret. - * - * @param string $apiSecret The API Secret - * @return BaseFacebook - */ - public function setApiSecret($apiSecret) { - $this->apiSecret = $apiSecret; - return $this; - } - - /** - * Get the API Secret. - * - * @return string the API Secret - */ - public function getApiSecret() { - return $this->apiSecret; - } - - /** - * Set the file upload support status. - * - * @param boolean $fileUploadSupport The file upload support status. - * @return BaseFacebook - */ - public function setFileUploadSupport($fileUploadSupport) { - $this->fileUploadSupport = $fileUploadSupport; - return $this; - } - - /** - * Get the file upload support status. - * - * @return boolean true if and only if the server supports file upload. - */ - public function useFileUploadSupport() { - return $this->fileUploadSupport; - } - - /** - * Sets the access token for api calls. Use this if you get - * your access token by other means and just want the SDK - * to use it. - * - * @param string $access_token an access token. - * @return BaseFacebook - */ - public function setAccessToken($access_token) { - $this->accessToken = $access_token; - return $this; - } - - /** - * Determines the access token that should be used for API calls. - * The first time this is called, $this->accessToken is set equal - * to either a valid user access token, or it's set to the application - * access token if a valid user access token wasn't available. Subsequent - * calls return whatever the first call returned. - * - * @return string The access token - */ - public function getAccessToken() { - if ($this->accessToken !== null) { - // we've done this already and cached it. Just return. - return $this->accessToken; - } - - // first establish access token to be the application - // access token, in case we navigate to the /oauth/access_token - // endpoint, where SOME access token is required. - $this->setAccessToken($this->getApplicationAccessToken()); - if ($user_access_token = $this->getUserAccessToken()) { - $this->setAccessToken($user_access_token); - } - - return $this->accessToken; - } - - /** - * Determines and returns the user access token, first using - * the signed request if present, and then falling back on - * the authorization code if present. The intent is to - * return a valid user access token, or false if one is determined - * to not be available. - * - * @return string A valid user access token, or false if one - * could not be determined. - */ - protected function getUserAccessToken() { - // first, consider a signed request if it's supplied. - // if there is a signed request, then it alone determines - // the access token. - $signed_request = $this->getSignedRequest(); - if ($signed_request) { - // apps.facebook.com hands the access_token in the signed_request - if (array_key_exists('oauth_token', $signed_request)) { - $access_token = $signed_request['oauth_token']; - $this->setPersistentData('access_token', $access_token); - return $access_token; - } - - // the JS SDK puts a code in with the redirect_uri of '' - if (array_key_exists('code', $signed_request)) { - $code = $signed_request['code']; - $access_token = $this->getAccessTokenFromCode($code, ''); - if ($access_token) { - $this->setPersistentData('code', $code); - $this->setPersistentData('access_token', $access_token); - return $access_token; + /** + * Initialize a Facebook Application. + * + * The configuration: + * - appId: the application ID + * - secret: the application secret + * - fileUpload: (optional) boolean indicating if file uploads are enabled + * + * @param array $config The application configuration + */ + public function __construct($config) { + $this->setAppId($config['appId']); + $this->setApiSecret($config['secret']); + if (isset($config['fileUpload'])) { + $this->setFileUploadSupport($config['fileUpload']); } - } - // signed request states there's no access token, so anything - // stored should be cleared. - $this->clearAllPersistentData(); - return false; // respect the signed request's data, even - // if there's an authorization code or something else + $state = $this->getPersistentData('state'); + if (!empty($state)) { + $this->state = $this->getPersistentData('state'); + } } - $code = $this->getCode(); - if ($code && $code != $this->getPersistentData('code')) { - $access_token = $this->getAccessTokenFromCode($code); - if ($access_token) { - $this->setPersistentData('code', $code); - $this->setPersistentData('access_token', $access_token); - return $access_token; - } - - // code was bogus, so everything based on it should be invalidated. - $this->clearAllPersistentData(); - return false; + /** + * Set the Application ID. + * + * @param string $appId The Application ID + * @return BaseFacebook + */ + public function setAppId($appId) { + $this->appId = $appId; + return $this; } - // as a fallback, just return whatever is in the persistent - // store, knowing nothing explicit (signed request, authorization - // code, etc.) was present to shadow it (or we saw a code in $_REQUEST, - // but it's the same as what's in the persistent store) - return $this->getPersistentData('access_token'); - } - - /** - * Retrieve the signed request, either from a request parameter or, - * if not present, from a cookie. - * - * @return string the signed request, if available, or null otherwise. - */ - public function getSignedRequest() { - if (!$this->signedRequest) { - if (isset($_REQUEST['signed_request'])) { - $this->signedRequest = $this->parseSignedRequest( - $_REQUEST['signed_request']); - } else if (isset($_COOKIE[$this->getSignedRequestCookieName()])) { - $this->signedRequest = $this->parseSignedRequest( - $_COOKIE[$this->getSignedRequestCookieName()]); - } - } - return $this->signedRequest; - } - - /** - * Get the UID of the connected user, or 0 - * if the Facebook user is not connected. - * - * @return string the UID if available. - */ - public function getUser() { - if ($this->user !== null) { - // we've already determined this and cached the value. - return $this->user; + /** + * Get the Application ID. + * + * @return string the Application ID + */ + public function getAppId() { + return $this->appId; } - return $this->user = $this->getUserFromAvailableData(); - } + /** + * Set the API Secret. + * + * @param string $apiSecret The API Secret + * @return BaseFacebook + */ + public function setApiSecret($apiSecret) { + $this->apiSecret = $apiSecret; + return $this; + } + + /** + * Get the API Secret. + * + * @return string the API Secret + */ + public function getApiSecret() { + return $this->apiSecret; + } + + /** + * Set the file upload support status. + * + * @param boolean $fileUploadSupport The file upload support status. + * @return BaseFacebook + */ + public function setFileUploadSupport($fileUploadSupport) { + $this->fileUploadSupport = $fileUploadSupport; + return $this; + } + + /** + * Get the file upload support status. + * + * @return boolean true if and only if the server supports file upload. + */ + public function useFileUploadSupport() { + return $this->fileUploadSupport; + } + + /** + * Sets the access token for api calls. Use this if you get + * your access token by other means and just want the SDK + * to use it. + * + * @param string $access_token an access token. + * @return BaseFacebook + */ + public function setAccessToken($access_token) { + $this->accessToken = $access_token; + return $this; + } + + /** + * Determines the access token that should be used for API calls. + * The first time this is called, $this->accessToken is set equal + * to either a valid user access token, or it's set to the application + * access token if a valid user access token wasn't available. Subsequent + * calls return whatever the first call returned. + * + * @return string The access token + */ + public function getAccessToken() { + if ($this->accessToken !== null) { + // we've done this already and cached it. Just return. + return $this->accessToken; + } + + // first establish access token to be the application + // access token, in case we navigate to the /oauth/access_token + // endpoint, where SOME access token is required. + $this->setAccessToken($this->getApplicationAccessToken()); + if ($user_access_token = $this->getUserAccessToken()) { + $this->setAccessToken($user_access_token); + } + + return $this->accessToken; + } + + /** + * Determines and returns the user access token, first using + * the signed request if present, and then falling back on + * the authorization code if present. The intent is to + * return a valid user access token, or false if one is determined + * to not be available. + * + * @return string A valid user access token, or false if one + * could not be determined. + */ + protected function getUserAccessToken() { + // first, consider a signed request if it's supplied. + // if there is a signed request, then it alone determines + // the access token. + $signed_request = $this->getSignedRequest(); + if ($signed_request) { + // apps.facebook.com hands the access_token in the signed_request + if (array_key_exists('oauth_token', $signed_request)) { + $access_token = $signed_request['oauth_token']; + $this->setPersistentData('access_token', $access_token); + return $access_token; + } + + // the JS SDK puts a code in with the redirect_uri of '' + if (array_key_exists('code', $signed_request)) { + $code = $signed_request['code']; + $access_token = $this->getAccessTokenFromCode($code, ''); + if ($access_token) { + $this->setPersistentData('code', $code); + $this->setPersistentData('access_token', $access_token); + return $access_token; + } + } + + // signed request states there's no access token, so anything + // stored should be cleared. + $this->clearAllPersistentData(); + return false; // respect the signed request's data, even + // if there's an authorization code or something else + } + + $code = $this->getCode(); + if ($code && $code != $this->getPersistentData('code')) { + $access_token = $this->getAccessTokenFromCode($code); + if ($access_token) { + $this->setPersistentData('code', $code); + $this->setPersistentData('access_token', $access_token); + return $access_token; + } + + // code was bogus, so everything based on it should be invalidated. + $this->clearAllPersistentData(); + return false; + } + + // as a fallback, just return whatever is in the persistent + // store, knowing nothing explicit (signed request, authorization + // code, etc.) was present to shadow it (or we saw a code in $_REQUEST, + // but it's the same as what's in the persistent store) + return $this->getPersistentData('access_token'); + } + + /** + * Retrieve the signed request, either from a request parameter or, + * if not present, from a cookie. + * + * @return string the signed request, if available, or null otherwise. + */ + public function getSignedRequest() { + if (!$this->signedRequest) { + if (isset($_REQUEST['signed_request'])) { + $this->signedRequest = $this->parseSignedRequest( + $_REQUEST['signed_request']); + } elseif (isset($_COOKIE[$this->getSignedRequestCookieName()])) { + $this->signedRequest = $this->parseSignedRequest( + $_COOKIE[$this->getSignedRequestCookieName()]); + } + } + return $this->signedRequest; + } + + /** + * Get the UID of the connected user, or 0 + * if the Facebook user is not connected. + * + * @return string the UID if available. + */ + public function getUser() { + if ($this->user !== null) { + // we've already determined this and cached the value. + return $this->user; + } + + return $this->user = $this->getUserFromAvailableData(); + } + + /** + * Determines the connected user by first examining any signed + * requests, then considering an authorization code, and then + * falling back to any persistent store storing the user. + * + * @return integer The id of the connected Facebook user, + * or 0 if no such user exists. + */ + protected function getUserFromAvailableData() { + // if a signed request is supplied, then it solely determines + // who the user is. + $signed_request = $this->getSignedRequest(); + if ($signed_request) { + if (array_key_exists('user_id', $signed_request)) { + $user = $signed_request['user_id']; + $this->setPersistentData('user_id', $signed_request['user_id']); + return $user; + } + + // if the signed request didn't present a user id, then invalidate + // all entries in any persistent store. + $this->clearAllPersistentData(); + return 0; + } + + $user = $this->getPersistentData('user_id', $default = 0); + $persisted_access_token = $this->getPersistentData('access_token'); + + // use access_token to fetch user id if we have a user access_token, or if + // the cached access token has changed. + $access_token = $this->getAccessToken(); + if ($access_token && + $access_token != $this->getApplicationAccessToken() && + !($user && $persisted_access_token == $access_token)) { + $user = $this->getUserFromAccessToken(); + if ($user) { + $this->setPersistentData('user_id', $user); + } else { + $this->clearAllPersistentData(); + } + } - /** - * Determines the connected user by first examining any signed - * requests, then considering an authorization code, and then - * falling back to any persistent store storing the user. - * - * @return integer The id of the connected Facebook user, - * or 0 if no such user exists. - */ - protected function getUserFromAvailableData() { - // if a signed request is supplied, then it solely determines - // who the user is. - $signed_request = $this->getSignedRequest(); - if ($signed_request) { - if (array_key_exists('user_id', $signed_request)) { - $user = $signed_request['user_id']; - $this->setPersistentData('user_id', $signed_request['user_id']); return $user; - } - - // if the signed request didn't present a user id, then invalidate - // all entries in any persistent store. - $this->clearAllPersistentData(); - return 0; } - $user = $this->getPersistentData('user_id', $default = 0); - $persisted_access_token = $this->getPersistentData('access_token'); + /** + * Get a Login URL for use with redirects. By default, full page redirect is + * assumed. If you are using the generated URL with a window.open() call in + * JavaScript, you can pass in display=popup as part of the $params. + * + * The parameters: + * - redirect_uri: the url to go to after a successful login + * - scope: comma separated list of requested extended perms + * + * @param array $params Provide custom parameters + * @return string The URL for the login flow + */ + public function getLoginUrl($params = array()) { + $this->establishCSRFTokenState(); + $currentUrl = $this->getCurrentUrl(); - // use access_token to fetch user id if we have a user access_token, or if - // the cached access token has changed. - $access_token = $this->getAccessToken(); - if ($access_token && - $access_token != $this->getApplicationAccessToken() && - !($user && $persisted_access_token == $access_token)) { - $user = $this->getUserFromAccessToken(); - if ($user) { - $this->setPersistentData('user_id', $user); - } else { - $this->clearAllPersistentData(); - } - } - - return $user; - } - - /** - * Get a Login URL for use with redirects. By default, full page redirect is - * assumed. If you are using the generated URL with a window.open() call in - * JavaScript, you can pass in display=popup as part of the $params. - * - * The parameters: - * - redirect_uri: the url to go to after a successful login - * - scope: comma separated list of requested extended perms - * - * @param array $params Provide custom parameters - * @return string The URL for the login flow - */ - public function getLoginUrl($params=array()) { - $this->establishCSRFTokenState(); - $currentUrl = $this->getCurrentUrl(); - - // if 'scope' is passed as an array, convert to comma separated list - $scopeParams = isset($params['scope']) ? $params['scope'] : null; - if ($scopeParams && is_array($scopeParams)) { - $params['scope'] = implode(',', $scopeParams); - } - - return $this->getUrl( - 'www', - 'dialog/oauth', - array_merge(array( - 'client_id' => $this->getAppId(), - 'redirect_uri' => $currentUrl, // possibly overwritten - 'state' => $this->state), - $params)); - } - - /** - * Get a Logout URL suitable for use with redirects. - * - * The parameters: - * - next: the url to go to after a successful logout - * - * @param array $params Provide custom parameters - * @return string The URL for the logout flow - */ - public function getLogoutUrl($params=array()) { - return $this->getUrl( - 'www', - 'logout.php', - array_merge(array( - 'next' => $this->getCurrentUrl(), - 'access_token' => $this->getAccessToken(), - ), $params) - ); - } - - /** - * Get a login status URL to fetch the status from Facebook. - * - * The parameters: - * - ok_session: the URL to go to if a session is found - * - no_session: the URL to go to if the user is not connected - * - no_user: the URL to go to if the user is not signed into facebook - * - * @param array $params Provide custom parameters - * @return string The URL for the logout flow - */ - public function getLoginStatusUrl($params=array()) { - return $this->getUrl( - 'www', - 'extern/login_status.php', - array_merge(array( - 'api_key' => $this->getAppId(), - 'no_session' => $this->getCurrentUrl(), - 'no_user' => $this->getCurrentUrl(), - 'ok_session' => $this->getCurrentUrl(), - 'session_version' => 3, - ), $params) - ); - } - - /** - * Make an API call. - * - * @return mixed The decoded response - */ - public function api(/* polymorphic */) { - $args = func_get_args(); - if (is_array($args[0])) { - return $this->_restserver($args[0]); - } else { - return call_user_func_array(array($this, '_graph'), $args); - } - } - - /** - * Constructs and returns the name of the cookie that - * potentially houses the signed request for the app user. - * The cookie is not set by the BaseFacebook class, but - * it may be set by the JavaScript SDK. - * - * @return string the name of the cookie that would house - * the signed request value. - */ - protected function getSignedRequestCookieName() { - return 'fbsr_'.$this->getAppId(); - } - - /** - * Get the authorization code from the query parameters, if it exists, - * and otherwise return false to signal no authorization code was - * discoverable. - * - * @return mixed The authorization code, or false if the authorization - * code could not be determined. - */ - protected function getCode() { - if (isset($_REQUEST['code'])) { - if ($this->state !== null && - isset($_REQUEST['state']) && - $this->state === $_REQUEST['state']) { - - // CSRF state has done its job, so clear it - $this->state = null; - $this->clearPersistentData('state'); - return $_REQUEST['code']; - } else { - self::errorLog('CSRF state token does not match one provided.'); - return false; - } - } - - return false; - } - - - - /** - * Retrieves the UID with the understanding that - * $this->accessToken has already been set and is - * seemingly legitimate. It relies on Facebook's Graph API - * to retrieve user information and then extract - * the user ID. - * - * @return integer Returns the UID of the Facebook user, or 0 - * if the Facebook user could not be determined. - */ - protected function getUserFromAccessToken() { - try { - $user_info = $this->api('/me'); - return $user_info['id']; - } catch (FacebookApiException $e) { - return 0; - } - } - - /** - * Returns the access token that should be used for logged out - * users when no authorization code is available. - * - * @return string The application access token, useful for gathering - * public information about users and applications. - */ - protected function getApplicationAccessToken() { - return $this->appId.'|'.$this->apiSecret; - } - - /** - * Lays down a CSRF state token for this process. - * - * @return void - */ - protected function establishCSRFTokenState() { - if ($this->state === null) { - $this->state = md5(uniqid(mt_rand(), true)); - $this->setPersistentData('state', $this->state); - } - } - - /** - * Retrieves an access token for the given authorization code - * (previously generated from www.facebook.com on behalf of - * a specific user). The authorization code is sent to graph.facebook.com - * and a legitimate access token is generated provided the access token - * and the user for which it was generated all match, and the user is - * either logged in to Facebook or has granted an offline access permission. - * - * @param string $code An authorization code. - * @return mixed An access token exchanged for the authorization code, or - * false if an access token could not be generated. - */ - protected function getAccessTokenFromCode($code, $redirect_uri = null) { - if (empty($code)) { - return false; - } - - if ($redirect_uri === null) { - $redirect_uri = $this->getCurrentUrl(); - } - - try { - // need to circumvent json_decode by calling _oauthRequest - // directly, since response isn't JSON format. - $access_token_response = - $this->_oauthRequest( - $this->getUrl('graph', '/oauth/access_token'), - $params = array('client_id' => $this->getAppId(), - 'client_secret' => $this->getApiSecret(), - 'redirect_uri' => $redirect_uri, - 'code' => $code)); - } catch (FacebookApiException $e) { - // most likely that user very recently revoked authorization. - // In any event, we don't have an access token, so say so. - return false; - } - - if (empty($access_token_response)) { - return false; - } - - $response_params = array(); - parse_str($access_token_response, $response_params); - if (!isset($response_params['access_token'])) { - return false; - } - - return $response_params['access_token']; - } - - /** - * Invoke the old restserver.php endpoint. - * - * @param array $params Method call object - * - * @return mixed The decoded response object - * @throws FacebookApiException - */ - protected function _restserver($params) { - // generic application level parameters - $params['api_key'] = $this->getAppId(); - $params['format'] = 'json-strings'; - - $result = json_decode($this->_oauthRequest( - $this->getApiUrl($params['method']), - $params - ), true); - - // results are returned, errors are thrown - if (is_array($result) && isset($result['error_code'])) { - throw new FacebookApiException($result); - } - - return $result; - } - - /** - * Invoke the Graph API. - * - * @param string $path The path (required) - * @param string $method The http method (default 'GET') - * @param array $params The query/post data - * - * @return mixed The decoded response object - * @throws FacebookApiException - */ - protected function _graph($path, $method = 'GET', $params = array()) { - if (is_array($method) && empty($params)) { - $params = $method; - $method = 'GET'; - } - $params['method'] = $method; // method override as we always do a POST - - $result = json_decode($this->_oauthRequest( - $this->getUrl('graph', $path), - $params - ), true); - - // results are returned, errors are thrown - if (is_array($result) && isset($result['error'])) { - $this->throwAPIException($result); - } - - return $result; - } - - /** - * Make a OAuth Request. - * - * @param string $url The path (required) - * @param array $params The query/post data - * - * @return string The decoded response object - * @throws FacebookApiException - */ - protected function _oauthRequest($url, $params) { - if (!isset($params['access_token'])) { - $params['access_token'] = $this->getAccessToken(); - } - - // json_encode all params values that are not strings - foreach ($params as $key => $value) { - if (!is_string($value)) { - $params[$key] = json_encode($value); - } - } - - return $this->makeRequest($url, $params); - } - - /** - * Makes an HTTP request. This method can be overridden by subclasses if - * developers want to do fancier things or use something other than curl to - * make the request. - * - * @param string $url The URL to make the request to - * @param array $params The parameters to use for the POST body - * @param CurlHandler $ch Initialized curl handle - * - * @return string The response text - */ - protected function makeRequest($url, $params, $ch=null) { - if (!$ch) { - $ch = curl_init(); - } - - $opts = self::$CURL_OPTS; - $opts[CURLOPT_SSL_VERIFYPEER] = false; - if ($this->useFileUploadSupport()) { - $opts[CURLOPT_POSTFIELDS] = $params; - } else { - $opts[CURLOPT_POSTFIELDS] = http_build_query($params, null, '&'); - } - $opts[CURLOPT_URL] = $url; - - // disable the 'Expect: 100-continue' behaviour. This causes CURL to wait - // for 2 seconds if the server does not support this header. - if (isset($opts[CURLOPT_HTTPHEADER])) { - $existing_headers = $opts[CURLOPT_HTTPHEADER]; - $existing_headers[] = 'Expect:'; - $opts[CURLOPT_HTTPHEADER] = $existing_headers; - } else { - $opts[CURLOPT_HTTPHEADER] = array('Expect:'); - } - - curl_setopt_array($ch, $opts); - $result = curl_exec($ch); - - if (curl_errno($ch) == 60) { // CURLE_SSL_CACERT - self::errorLog('Invalid or no certificate authority found, '. - 'using bundled information'); - curl_setopt($ch, CURLOPT_CAINFO, - dirname(__FILE__) . '/fb_ca_chain_bundle.crt'); - $result = curl_exec($ch); - } - - if ($result === false) { - $e = new FacebookApiException(array( - 'error_code' => curl_errno($ch), - 'error' => array( - 'message' => curl_error($ch), - 'type' => 'CurlException', - ), - )); - curl_close($ch); - throw $e; - } - curl_close($ch); - return $result; - } - - /** - * Parses a signed_request and validates the signature. - * - * @param string $signed_request A signed token - * @return array The payload inside it or null if the sig is wrong - */ - protected function parseSignedRequest($signed_request) { - list($encoded_sig, $payload) = explode('.', $signed_request, 2); - - // decode the data - $sig = self::base64UrlDecode($encoded_sig); - $data = json_decode(self::base64UrlDecode($payload), true); - - if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') { - self::errorLog('Unknown algorithm. Expected HMAC-SHA256'); - return null; - } - - // check sig - $expected_sig = hash_hmac('sha256', $payload, - $this->getApiSecret(), $raw = true); - if ($sig !== $expected_sig) { - self::errorLog('Bad Signed JSON signature!'); - return null; - } - - return $data; - } - - /** - * Build the URL for api given parameters. - * - * @param $method String the method name. - * @return string The URL for the given parameters - */ - protected function getApiUrl($method) { - static $READ_ONLY_CALLS = - array('admin.getallocation' => 1, - 'admin.getappproperties' => 1, - 'admin.getbannedusers' => 1, - 'admin.getlivestreamvialink' => 1, - 'admin.getmetrics' => 1, - 'admin.getrestrictioninfo' => 1, - 'application.getpublicinfo' => 1, - 'auth.getapppublickey' => 1, - 'auth.getsession' => 1, - 'auth.getsignedpublicsessiondata' => 1, - 'comments.get' => 1, - 'connect.getunconnectedfriendscount' => 1, - 'dashboard.getactivity' => 1, - 'dashboard.getcount' => 1, - 'dashboard.getglobalnews' => 1, - 'dashboard.getnews' => 1, - 'dashboard.multigetcount' => 1, - 'dashboard.multigetnews' => 1, - 'data.getcookies' => 1, - 'events.get' => 1, - 'events.getmembers' => 1, - 'fbml.getcustomtags' => 1, - 'feed.getappfriendstories' => 1, - 'feed.getregisteredtemplatebundlebyid' => 1, - 'feed.getregisteredtemplatebundles' => 1, - 'fql.multiquery' => 1, - 'fql.query' => 1, - 'friends.arefriends' => 1, - 'friends.get' => 1, - 'friends.getappusers' => 1, - 'friends.getlists' => 1, - 'friends.getmutualfriends' => 1, - 'gifts.get' => 1, - 'groups.get' => 1, - 'groups.getmembers' => 1, - 'intl.gettranslations' => 1, - 'links.get' => 1, - 'notes.get' => 1, - 'notifications.get' => 1, - 'pages.getinfo' => 1, - 'pages.isadmin' => 1, - 'pages.isappadded' => 1, - 'pages.isfan' => 1, - 'permissions.checkavailableapiaccess' => 1, - 'permissions.checkgrantedapiaccess' => 1, - 'photos.get' => 1, - 'photos.getalbums' => 1, - 'photos.gettags' => 1, - 'profile.getinfo' => 1, - 'profile.getinfooptions' => 1, - 'stream.get' => 1, - 'stream.getcomments' => 1, - 'stream.getfilters' => 1, - 'users.getinfo' => 1, - 'users.getloggedinuser' => 1, - 'users.getstandardinfo' => 1, - 'users.hasapppermission' => 1, - 'users.isappuser' => 1, - 'users.isverified' => 1, - 'video.getuploadlimits' => 1); - $name = 'api'; - if (isset($READ_ONLY_CALLS[strtolower($method)])) { - $name = 'api_read'; - } else if (strtolower($method) == 'video.upload') { - $name = 'api_video'; - } - return self::getUrl($name, 'restserver.php'); - } - - /** - * Build the URL for given domain alias, path and parameters. - * - * @param $name string The name of the domain - * @param $path string Optional path (without a leading slash) - * @param $params array Optional query parameters - * - * @return string The URL for the given parameters - */ - protected function getUrl($name, $path='', $params=array()) { - $url = self::$DOMAIN_MAP[$name]; - if ($path) { - if ($path[0] === '/') { - $path = substr($path, 1); - } - $url .= $path; - } - if ($params) { - $url .= '?' . http_build_query($params, null, '&'); - } - - return $url; - } - - /** - * Returns the Current URL, stripping it of known FB parameters that should - * not persist. - * - * @return string The current URL - */ - protected function getCurrentUrl() { - $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' - ? 'https://' - : 'http://'; - $currentUrl = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; - $parts = parse_url($currentUrl); - - $query = ''; - if (!empty($parts['query'])) { - // drop known fb params - $params = explode('&', $parts['query']); - $retained_params = array(); - foreach ($params as $param) { - if ($this->shouldRetainParam($param)) { - $retained_params[] = $param; + // if 'scope' is passed as an array, convert to comma separated list + $scopeParams = isset($params['scope']) ? $params['scope'] : null; + if ($scopeParams && is_array($scopeParams)) { + $params['scope'] = implode(',', $scopeParams); } - } - if (!empty($retained_params)) { - $query = '?'.implode($retained_params, '&'); - } + return $this->getUrl( + 'www', + 'dialog/oauth', + array_merge(array( + 'client_id' => $this->getAppId(), + 'redirect_uri' => $currentUrl, // possibly overwritten + 'state' => $this->state), + $params)); } - // use port if non default - $port = - isset($parts['port']) && - (($protocol === 'http://' && $parts['port'] !== 80) || - ($protocol === 'https://' && $parts['port'] !== 443)) - ? ':' . $parts['port'] : ''; + /** + * Get a Logout URL suitable for use with redirects. + * + * The parameters: + * - next: the url to go to after a successful logout + * + * @param array $params Provide custom parameters + * @return string The URL for the logout flow + */ + public function getLogoutUrl($params = array()) { + return $this->getUrl( + 'www', + 'logout.php', + array_merge(array( + 'next' => $this->getCurrentUrl(), + 'access_token' => $this->getAccessToken(), + ), $params) + ); + } - // rebuild - return $protocol . $parts['host'] . $port . $parts['path'] . $query; - } + /** + * Get a login status URL to fetch the status from Facebook. + * + * The parameters: + * - ok_session: the URL to go to if a session is found + * - no_session: the URL to go to if the user is not connected + * - no_user: the URL to go to if the user is not signed into facebook + * + * @param array $params Provide custom parameters + * @return string The URL for the logout flow + */ + public function getLoginStatusUrl($params = array()) { + return $this->getUrl( + 'www', + 'extern/login_status.php', + array_merge(array( + 'api_key' => $this->getAppId(), + 'no_session' => $this->getCurrentUrl(), + 'no_user' => $this->getCurrentUrl(), + 'ok_session' => $this->getCurrentUrl(), + 'session_version' => 3, + ), $params) + ); + } + + /** + * Make an API call. + * + * @return mixed The decoded response + */ + public function api(/* polymorphic */) { + $args = func_get_args(); + if (is_array($args[0])) { + return $this->_restserver($args[0]); + } else { + return call_user_func_array(array($this, '_graph'), $args); + } + } + + /** + * Constructs and returns the name of the cookie that + * potentially houses the signed request for the app user. + * The cookie is not set by the BaseFacebook class, but + * it may be set by the JavaScript SDK. + * + * @return string the name of the cookie that would house + * the signed request value. + */ + protected function getSignedRequestCookieName() { + return 'fbsr_' . $this->getAppId(); + } + + /** + * Get the authorization code from the query parameters, if it exists, + * and otherwise return false to signal no authorization code was + * discoverable. + * + * @return mixed The authorization code, or false if the authorization + * code could not be determined. + */ + protected function getCode() { + if (isset($_REQUEST['code'])) { + if ($this->state !== null && + isset($_REQUEST['state']) && + $this->state === $_REQUEST['state']) { + + // CSRF state has done its job, so clear it + $this->state = null; + $this->clearPersistentData('state'); + return $_REQUEST['code']; + } else { + self::errorLog('CSRF state token does not match one provided.'); + return false; + } + } - /** - * Returns true if and only if the key or key/value pair should - * be retained as part of the query string. This amounts to - * a brute-force search of the very small list of Facebook-specific - * params that should be stripped out. - * - * @param string $param A key or key/value pair within a URL's query (e.g. - * 'foo=a', 'foo=', or 'foo'. - * - * @return boolean - */ - protected function shouldRetainParam($param) { - foreach (self::$DROP_QUERY_PARAMS as $drop_query_param) { - if (strpos($param, $drop_query_param.'=') === 0) { return false; - } } - return true; - } - /** - * Analyzes the supplied result to see if it was thrown - * because the access token is no longer valid. If that is - * the case, then the persistent store is cleared. - * - * @param $result array A record storing the error message returned - * by a failed API call. - */ - protected function throwAPIException($result) { - $e = new FacebookApiException($result); - switch ($e->getType()) { - // OAuth 2.0 Draft 00 style - case 'OAuthException': - // OAuth 2.0 Draft 10 style - case 'invalid_token': - $message = $e->getMessage(); - if ((strpos($message, 'Error validating access token') !== false) || - (strpos($message, 'Invalid OAuth access token') !== false)) { - $this->setAccessToken(null); - $this->user = 0; - $this->clearAllPersistentData(); - } + /** + * Retrieves the UID with the understanding that + * $this->accessToken has already been set and is + * seemingly legitimate. It relies on Facebook's Graph API + * to retrieve user information and then extract + * the user ID. + * + * @return integer Returns the UID of the Facebook user, or 0 + * if the Facebook user could not be determined. + */ + protected function getUserFromAccessToken() { + try { + $user_info = $this->api('/me'); + return $user_info['id']; + } catch (FacebookApiException $e) { + return 0; + } } - throw $e; - } - - - /** - * Prints to the error log if you aren't in command line mode. - * - * @param string $msg Log message - */ - protected static function errorLog($msg) { - // disable error log if we are running in a CLI environment - // @codeCoverageIgnoreStart - if (php_sapi_name() != 'cli') { - error_log($msg); + /** + * Returns the access token that should be used for logged out + * users when no authorization code is available. + * + * @return string The application access token, useful for gathering + * public information about users and applications. + */ + protected function getApplicationAccessToken() { + return $this->appId . '|' . $this->apiSecret; } - // uncomment this if you want to see the errors on the page - // print 'error_log: '.$msg."\n"; - // @codeCoverageIgnoreEnd - } - /** - * Base64 encoding that doesn't need to be urlencode()ed. - * Exactly the same as base64_encode except it uses - * - instead of + - * _ instead of / - * - * @param string $input base64UrlEncoded string - * @return string - */ - protected static function base64UrlDecode($input) { - return base64_decode(strtr($input, '-_', '+/')); - } + /** + * Lays down a CSRF state token for this process. + * + * @return void + */ + protected function establishCSRFTokenState() { + if ($this->state === null) { + $this->state = md5(uniqid(mt_rand(), true)); + $this->setPersistentData('state', $this->state); + } + } - /** - * Each of the following four methods should be overridden in - * a concrete subclass, as they are in the provided Facebook class. - * The Facebook class uses PHP sessions to provide a primitive - * persistent store, but another subclass--one that you implement-- - * might use a database, memcache, or an in-memory cache. - * - * @see Facebook - */ + /** + * Retrieves an access token for the given authorization code + * (previously generated from www.facebook.com on behalf of + * a specific user). The authorization code is sent to graph.facebook.com + * and a legitimate access token is generated provided the access token + * and the user for which it was generated all match, and the user is + * either logged in to Facebook or has granted an offline access permission. + * + * @param string $code An authorization code. + * @return mixed An access token exchanged for the authorization code, or + * false if an access token could not be generated. + */ + protected function getAccessTokenFromCode($code, $redirect_uri = null) { + if (empty($code)) { + return false; + } - /** - * Stores the given ($key, $value) pair, so that future calls to - * getPersistentData($key) return $value. This call may be in another request. - * - * @param string $key - * @param array $value - * - * @return void - */ - abstract protected function setPersistentData($key, $value); + if ($redirect_uri === null) { + $redirect_uri = $this->getCurrentUrl(); + } - /** - * Get the data for $key, persisted by BaseFacebook::setPersistentData() - * - * @param string $key The key of the data to retrieve - * @param boolean $default The default value to return if $key is not found - * - * @return mixed - */ - abstract protected function getPersistentData($key, $default = false); + try { + // need to circumvent json_decode by calling _oauthRequest + // directly, since response isn't JSON format. + $access_token_response = + $this->_oauthRequest( + $this->getUrl('graph', '/oauth/access_token'), + $params = array('client_id' => $this->getAppId(), + 'client_secret' => $this->getApiSecret(), + 'redirect_uri' => $redirect_uri, + 'code' => $code)); + } catch (FacebookApiException $e) { + // most likely that user very recently revoked authorization. + // In any event, we don't have an access token, so say so. + return false; + } - /** - * Clear the data with $key from the persistent storage - * - * @param string $key - * @return void - */ - abstract protected function clearPersistentData($key); + if (empty($access_token_response)) { + return false; + } - /** - * Clear all data from the persistent storage - * - * @return void - */ - abstract protected function clearAllPersistentData(); + $response_params = array(); + parse_str($access_token_response, $response_params); + if (!isset($response_params['access_token'])) { + return false; + } + + return $response_params['access_token']; + } + + /** + * Invoke the old restserver.php endpoint. + * + * @param array $params Method call object + * + * @return mixed The decoded response object + * @throws FacebookApiException + */ + protected function _restserver($params) { + // generic application level parameters + $params['api_key'] = $this->getAppId(); + $params['format'] = 'json-strings'; + + $result = json_decode($this->_oauthRequest( + $this->getApiUrl($params['method']), + $params + ), true); + + // results are returned, errors are thrown + if (is_array($result) && isset($result['error_code'])) { + throw new FacebookApiException($result); + } + + return $result; + } + + /** + * Invoke the Graph API. + * + * @param string $path The path (required) + * @param string $method The http method (default 'GET') + * @param array $params The query/post data + * + * @return mixed The decoded response object + * @throws FacebookApiException + */ + protected function _graph($path, $method = 'GET', $params = array()) { + if (is_array($method) && empty($params)) { + $params = $method; + $method = 'GET'; + } + $params['method'] = $method; // method override as we always do a POST + + $result = json_decode($this->_oauthRequest( + $this->getUrl('graph', $path), + $params + ), true); + + // results are returned, errors are thrown + if (is_array($result) && isset($result['error'])) { + $this->throwAPIException($result); + } + + return $result; + } + + /** + * Make a OAuth Request. + * + * @param string $url The path (required) + * @param array $params The query/post data + * + * @return string The decoded response object + * @throws FacebookApiException + */ + protected function _oauthRequest($url, $params) { + if (!isset($params['access_token'])) { + $params['access_token'] = $this->getAccessToken(); + } + + // json_encode all params values that are not strings + foreach ($params as $key => $value) { + if (!is_string($value)) { + $params[$key] = json_encode($value); + } + } + + return $this->makeRequest($url, $params); + } + + /** + * Makes an HTTP request. This method can be overridden by subclasses if + * developers want to do fancier things or use something other than curl to + * make the request. + * + * @param string $url The URL to make the request to + * @param array $params The parameters to use for the POST body + * @param CurlHandler $ch Initialized curl handle + * + * @return string The response text + */ + protected function makeRequest($url, $params, $ch = null) { + if (!$ch) { + $ch = curl_init(); + } + + $opts = self::$CURL_OPTS; + $opts[CURLOPT_SSL_VERIFYPEER] = false; + if ($this->useFileUploadSupport()) { + $opts[CURLOPT_POSTFIELDS] = $params; + } else { + $opts[CURLOPT_POSTFIELDS] = http_build_query($params, null, '&'); + } + $opts[CURLOPT_URL] = $url; + + // disable the 'Expect: 100-continue' behaviour. This causes CURL to wait + // for 2 seconds if the server does not support this header. + if (isset($opts[CURLOPT_HTTPHEADER])) { + $existing_headers = $opts[CURLOPT_HTTPHEADER]; + $existing_headers[] = 'Expect:'; + $opts[CURLOPT_HTTPHEADER] = $existing_headers; + } else { + $opts[CURLOPT_HTTPHEADER] = array('Expect:'); + } + + curl_setopt_array($ch, $opts); + $result = curl_exec($ch); + + if (curl_errno($ch) == 60) { // CURLE_SSL_CACERT + self::errorLog('Invalid or no certificate authority found, ' . + 'using bundled information'); + curl_setopt($ch, CURLOPT_CAINFO, + dirname(__FILE__) . '/fb_ca_chain_bundle.crt'); + $result = curl_exec($ch); + } + + if ($result === false) { + $e = new FacebookApiException(array( + 'error_code' => curl_errno($ch), + 'error' => array( + 'message' => curl_error($ch), + 'type' => 'CurlException', + ), + )); + curl_close($ch); + throw $e; + } + curl_close($ch); + return $result; + } + + /** + * Parses a signed_request and validates the signature. + * + * @param string $signed_request A signed token + * @return array The payload inside it or null if the sig is wrong + */ + protected function parseSignedRequest($signed_request) { + list($encoded_sig, $payload) = explode('.', $signed_request, 2); + + // decode the data + $sig = self::base64UrlDecode($encoded_sig); + $data = json_decode(self::base64UrlDecode($payload), true); + + if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') { + self::errorLog('Unknown algorithm. Expected HMAC-SHA256'); + return null; + } + + // check sig + $expected_sig = hash_hmac('sha256', $payload, + $this->getApiSecret(), $raw = true); + if ($sig !== $expected_sig) { + self::errorLog('Bad Signed JSON signature!'); + return null; + } + + return $data; + } + + /** + * Build the URL for api given parameters. + * + * @param $method String the method name. + * @return string The URL for the given parameters + */ + protected function getApiUrl($method) { + static $READ_ONLY_CALLS = + array('admin.getallocation' => 1, + 'admin.getappproperties' => 1, + 'admin.getbannedusers' => 1, + 'admin.getlivestreamvialink' => 1, + 'admin.getmetrics' => 1, + 'admin.getrestrictioninfo' => 1, + 'application.getpublicinfo' => 1, + 'auth.getapppublickey' => 1, + 'auth.getsession' => 1, + 'auth.getsignedpublicsessiondata' => 1, + 'comments.get' => 1, + 'connect.getunconnectedfriendscount' => 1, + 'dashboard.getactivity' => 1, + 'dashboard.getcount' => 1, + 'dashboard.getglobalnews' => 1, + 'dashboard.getnews' => 1, + 'dashboard.multigetcount' => 1, + 'dashboard.multigetnews' => 1, + 'data.getcookies' => 1, + 'events.get' => 1, + 'events.getmembers' => 1, + 'fbml.getcustomtags' => 1, + 'feed.getappfriendstories' => 1, + 'feed.getregisteredtemplatebundlebyid' => 1, + 'feed.getregisteredtemplatebundles' => 1, + 'fql.multiquery' => 1, + 'fql.query' => 1, + 'friends.arefriends' => 1, + 'friends.get' => 1, + 'friends.getappusers' => 1, + 'friends.getlists' => 1, + 'friends.getmutualfriends' => 1, + 'gifts.get' => 1, + 'groups.get' => 1, + 'groups.getmembers' => 1, + 'intl.gettranslations' => 1, + 'links.get' => 1, + 'notes.get' => 1, + 'notifications.get' => 1, + 'pages.getinfo' => 1, + 'pages.isadmin' => 1, + 'pages.isappadded' => 1, + 'pages.isfan' => 1, + 'permissions.checkavailableapiaccess' => 1, + 'permissions.checkgrantedapiaccess' => 1, + 'photos.get' => 1, + 'photos.getalbums' => 1, + 'photos.gettags' => 1, + 'profile.getinfo' => 1, + 'profile.getinfooptions' => 1, + 'stream.get' => 1, + 'stream.getcomments' => 1, + 'stream.getfilters' => 1, + 'users.getinfo' => 1, + 'users.getloggedinuser' => 1, + 'users.getstandardinfo' => 1, + 'users.hasapppermission' => 1, + 'users.isappuser' => 1, + 'users.isverified' => 1, + 'video.getuploadlimits' => 1); + $name = 'api'; + if (isset($READ_ONLY_CALLS[strtolower($method)])) { + $name = 'api_read'; + } elseif (strtolower($method) == 'video.upload') { + $name = 'api_video'; + } + return self::getUrl($name, 'restserver.php'); + } + + /** + * Build the URL for given domain alias, path and parameters. + * + * @param $name string The name of the domain + * @param $path string Optional path (without a leading slash) + * @param $params array Optional query parameters + * + * @return string The URL for the given parameters + */ + protected function getUrl($name, $path = '', $params = array()) { + $url = self::$DOMAIN_MAP[$name]; + if ($path) { + if ($path[0] === '/') { + $path = substr($path, 1); + } + $url .= $path; + } + if ($params) { + $url .= '?' . http_build_query($params, null, '&'); + } + + return $url; + } + + /** + * Returns the Current URL, stripping it of known FB parameters that should + * not persist. + * + * @return string The current URL + */ + protected function getCurrentUrl() { + $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' + ? 'https://' + : 'http://'; + $currentUrl = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; + $parts = parse_url($currentUrl); + + $query = ''; + if (!empty($parts['query'])) { + // drop known fb params + $params = explode('&', $parts['query']); + $retained_params = array(); + foreach ($params as $param) { + if ($this->shouldRetainParam($param)) { + $retained_params[] = $param; + } + } + + if (!empty($retained_params)) { + $query = '?' . implode($retained_params, '&'); + } + } + + // use port if non default + $port = + isset($parts['port']) && + (($protocol === 'http://' && $parts['port'] !== 80) || + ($protocol === 'https://' && $parts['port'] !== 443)) + ? ':' . $parts['port'] : ''; + + // rebuild + return $protocol . $parts['host'] . $port . $parts['path'] . $query; + } + + /** + * Returns true if and only if the key or key/value pair should + * be retained as part of the query string. This amounts to + * a brute-force search of the very small list of Facebook-specific + * params that should be stripped out. + * + * @param string $param A key or key/value pair within a URL's query (e.g. + * 'foo=a', 'foo=', or 'foo'. + * + * @return boolean + */ + protected function shouldRetainParam($param) { + foreach (self::$DROP_QUERY_PARAMS as $drop_query_param) { + if (strpos($param, $drop_query_param . '=') === 0) { + return false; + } + } + + return true; + } + + /** + * Analyzes the supplied result to see if it was thrown + * because the access token is no longer valid. If that is + * the case, then the persistent store is cleared. + * + * @param $result array A record storing the error message returned + * by a failed API call. + */ + protected function throwAPIException($result) { + $e = new FacebookApiException($result); + switch ($e->getType()) { + // OAuth 2.0 Draft 00 style + case 'OAuthException': + // OAuth 2.0 Draft 10 style + case 'invalid_token': + $message = $e->getMessage(); + if ((strpos($message, 'Error validating access token') !== false) || + (strpos($message, 'Invalid OAuth access token') !== false)) { + $this->setAccessToken(null); + $this->user = 0; + $this->clearAllPersistentData(); + } + } + + throw $e; + } + + + /** + * Prints to the error log if you aren't in command line mode. + * + * @param string $msg Log message + */ + protected static function errorLog($msg) { + // disable error log if we are running in a CLI environment + // @codeCoverageIgnoreStart + if (php_sapi_name() != 'cli') { + error_log($msg); + } + // uncomment this if you want to see the errors on the page + // print 'error_log: '.$msg."\n"; + // @codeCoverageIgnoreEnd + } + + /** + * Base64 encoding that doesn't need to be urlencode()ed. + * Exactly the same as base64_encode except it uses + * - instead of + + * _ instead of / + * + * @param string $input base64UrlEncoded string + * @return string + */ + protected static function base64UrlDecode($input) { + return base64_decode(strtr($input, '-_', '+/')); + } + + /** + * Each of the following four methods should be overridden in + * a concrete subclass, as they are in the provided Facebook class. + * The Facebook class uses PHP sessions to provide a primitive + * persistent store, but another subclass--one that you implement-- + * might use a database, memcache, or an in-memory cache. + * + * @see Facebook + */ + + /** + * Stores the given ($key, $value) pair, so that future calls to + * getPersistentData($key) return $value. This call may be in another request. + * + * @param string $key + * @param array $value + * + * @return void + */ + abstract protected function setPersistentData($key, $value); + + /** + * Get the data for $key, persisted by BaseFacebook::setPersistentData() + * + * @param string $key The key of the data to retrieve + * @param boolean $default The default value to return if $key is not found + * + * @return mixed + */ + abstract protected function getPersistentData($key, $default = false); + + /** + * Clear the data with $key from the persistent storage + * + * @param string $key + * @return void + */ + abstract protected function clearPersistentData($key); + + /** + * Clear all data from the persistent storage + * + * @return void + */ + abstract protected function clearAllPersistentData(); } diff --git a/oauth/facebook/facebook.php b/oauth/facebook/facebook.php index 91cea21..c2260fa 100644 --- a/oauth/facebook/facebook.php +++ b/oauth/facebook/facebook.php @@ -21,75 +21,74 @@ require_once "base_facebook.php"; * Extends the BaseFacebook class with the intent of using * PHP sessions to store user ids and access tokens. */ -class Facebook extends BaseFacebook -{ - /** - * Identical to the parent constructor, except that - * we start a PHP session to store the user ID and - * access token if during the course of execution - * we discover them. - * - * @param Array $config the application configuration. - * @see BaseFacebook::__construct in facebook.php - */ - public function __construct($config) { - if (!session_id()) { - session_start(); - } - parent::__construct($config); - } - - protected static $kSupportedKeys = - array('state', 'code', 'access_token', 'user_id'); - - /** - * Provides the implementations of the inherited abstract - * methods. The implementation uses PHP sessions to maintain - * a store for authorization codes, user ids, CSRF states, and - * access tokens. - */ - protected function setPersistentData($key, $value) { - if (!in_array($key, self::$kSupportedKeys)) { - self::errorLog('Unsupported key passed to setPersistentData.'); - return; +class Facebook extends BaseFacebook { + /** + * Identical to the parent constructor, except that + * we start a PHP session to store the user ID and + * access token if during the course of execution + * we discover them. + * + * @param Array $config the application configuration. + * @see BaseFacebook::__construct in facebook.php + */ + public function __construct($config) { + if (!session_id()) { + session_start(); + } + parent::__construct($config); } - $session_var_name = $this->constructSessionVariableName($key); - $_SESSION[$session_var_name] = $value; - error_log($_SESSION[$session_var_name]); - } + protected static $kSupportedKeys = + array('state', 'code', 'access_token', 'user_id'); - protected function getPersistentData($key, $default = false) { - if (!in_array($key, self::$kSupportedKeys)) { - self::errorLog('Unsupported key passed to getPersistentData.'); - return $default; + /** + * Provides the implementations of the inherited abstract + * methods. The implementation uses PHP sessions to maintain + * a store for authorization codes, user ids, CSRF states, and + * access tokens. + */ + protected function setPersistentData($key, $value) { + if (!in_array($key, self::$kSupportedKeys)) { + self::errorLog('Unsupported key passed to setPersistentData.'); + return; + } + + $session_var_name = $this->constructSessionVariableName($key); + $_SESSION[$session_var_name] = $value; + error_log($_SESSION[$session_var_name]); } - $session_var_name = $this->constructSessionVariableName($key); - return isset($_SESSION[$session_var_name]) ? - $_SESSION[$session_var_name] : $default; - error_log($_SESSION[$session_var_name]); - } + protected function getPersistentData($key, $default = false) { + if (!in_array($key, self::$kSupportedKeys)) { + self::errorLog('Unsupported key passed to getPersistentData.'); + return $default; + } - protected function clearPersistentData($key) { - if (!in_array($key, self::$kSupportedKeys)) { - self::errorLog('Unsupported key passed to clearPersistentData.'); - return; + $session_var_name = $this->constructSessionVariableName($key); + return isset($_SESSION[$session_var_name]) ? + $_SESSION[$session_var_name] : $default; + error_log($_SESSION[$session_var_name]); } - $session_var_name = $this->constructSessionVariableName($key); - unset($_SESSION[$session_var_name]); - } + protected function clearPersistentData($key) { + if (!in_array($key, self::$kSupportedKeys)) { + self::errorLog('Unsupported key passed to clearPersistentData.'); + return; + } - protected function clearAllPersistentData() { - foreach (self::$kSupportedKeys as $key) { - $this->clearPersistentData($key); + $session_var_name = $this->constructSessionVariableName($key); + unset($_SESSION[$session_var_name]); } - } - protected function constructSessionVariableName($key) { - return implode('_', array('fb', - $this->getAppId(), - $key)); - } + protected function clearAllPersistentData() { + foreach (self::$kSupportedKeys as $key) { + $this->clearPersistentData($key); + } + } + + protected function constructSessionVariableName($key) { + return implode('_', array('fb', + $this->getAppId(), + $key)); + } } diff --git a/oauth/google.php b/oauth/google.php index 34ab509..2a00684 100644 --- a/oauth/google.php +++ b/oauth/google.php @@ -17,8 +17,8 @@ session_start(); error_reporting(1); // required functions -require_once ('../config.php'); -require_once ('../includes/functions.php'); +require_once('../config.php'); +require_once('../includes/functions.php'); require_once 'Google/Client.php'; // Current Date & User IP @@ -28,8 +28,7 @@ $ip = $_SERVER['REMOTE_ADDR']; // Database Connection $con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); -if (mysqli_connect_errno()) -{ +if (mysqli_connect_errno()) { die("Unable connect to database"); } @@ -41,93 +40,83 @@ $client->setScopes(array( if (isset($_GET['code'])) { - $client->authenticate($_GET['code']); - $_SESSION['access_token'] = $client->getAccessToken(); - $redirect = 'http://' . $_SERVER['HTTP_HOST']; - header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); + $client->authenticate($_GET['code']); + $_SESSION['access_token'] = $client->getAccessToken(); + $redirect = 'http://' . $_SERVER['HTTP_HOST']; + header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); } if (isset($_SESSION['access_token']) && $_SESSION['access_token']) { - $client->setAccessToken($_SESSION['access_token']); - $access_token = json_decode($_SESSION['access_token'], 1); - $access_token = $access_token['access_token']; - $resp = file_get_contents('https://www.googleapis.com/oauth2/v1/userinfo?access_token='.$access_token); - $user = json_decode($resp, 1); - $client_email = filter_var($user['email'], FILTER_SANITIZE_EMAIL); - $client_name = filter_var($user['name'], FILTER_SANITIZE_STRING); - $client_id = filter_var($user['id']); - $client_plat = "Google"; - $client_pic = $user['picture']; - $content = $user; - $token = $client->getAccessToken(); + $client->setAccessToken($_SESSION['access_token']); + $access_token = json_decode($_SESSION['access_token'], 1); + $access_token = $access_token['access_token']; + $resp = file_get_contents('https://www.googleapis.com/oauth2/v1/userinfo?access_token=' . $access_token); + $user = json_decode($resp, 1); + $client_email = filter_var($user['email'], FILTER_SANITIZE_EMAIL); + $client_name = filter_var($user['name'], FILTER_SANITIZE_STRING); + $client_id = filter_var($user['id']); + $client_plat = "Google"; + $client_pic = $user['picture']; + $content = $user; + $token = $client->getAccessToken(); } else { - $authUrl = $client->createAuthUrl(); + $authUrl = $client->createAuthUrl(); } if ($client->getAccessToken() && isset($_GET['url'])) { - $_SESSION['access_token'] = $client->getAccessToken(); + $_SESSION['access_token'] = $client->getAccessToken(); } -if (isset($client_email)) -{ -$query = mysqli_query($con,"SELECT * FROM users WHERE oauth_uid='$client_id'"); -if(mysqli_num_rows($query) > 0){ -$query = "SELECT * FROM users WHERE oauth_uid='$client_id'"; - $result = mysqli_query($con,$query); - while($row = mysqli_fetch_array($result)) { - $user_username = $row['username']; - $db_verified = $row['verified']; - } - if ($db_verified == "2") - { - die("Your account has been suspended."); - } - else - { - $_SESSION['username'] = $user_username; - $_SESSION['token'] = $token; - $_SESSION['oauth_uid'] = $client_id; - $_SESSION['pic'] = $client_pic; - - $old_user =1; - header("Location: ../"); - exit(); - } +if (isset($client_email)) { + $query = mysqli_query($con, "SELECT * FROM users WHERE oauth_uid='$client_id'"); + if (mysqli_num_rows($query) > 0) { + $query = "SELECT * FROM users WHERE oauth_uid='$client_id'"; + $result = mysqli_query($con, $query); + while ($row = mysqli_fetch_array($result)) { + $user_username = $row['username']; + $db_verified = $row['verified']; + } + if ($db_verified == "2") { + die("Your account has been suspended."); + } else { + $_SESSION['username'] = $user_username; + $_SESSION['token'] = $token; + $_SESSION['oauth_uid'] = $client_id; + $_SESSION['pic'] = $client_pic; + + $old_user = 1; + header("Location: ../"); + exit(); + } + + } else { + $new_user = 1; + #user not present. + $query = "SELECT @last_id := MAX(id) FROM users"; + $result = mysqli_query($con, $query); + while ($row = mysqli_fetch_array($result)) { + $last_id = $row['@last_id := MAX(id)']; + } + if ($last_id == "" || $last_id == null) { + $username = "User1"; + } else { + $last_id = $last_id + 1; + $username = "User$last_id"; + } + $_SESSION['username'] = $username; + $_SESSION['token'] = $token; + $_SESSION['oauth_uid'] = $client_id; + $_SESSION['pic'] = $client_pic; + $query = "INSERT INTO users (oauth_uid,username,email_id,full_name,platform,password,verified,picture,date,ip) VALUES ('$client_id','$username','$client_email','$client_name','$client_plat','$password','1','$client_pic','$date','$ip')"; + mysqli_query($con, $query); + header("Location: ../oauth.php?new_user"); + exit(); + } } else { - $new_user= 1; - #user not present. - $query = "SELECT @last_id := MAX(id) FROM users"; - $result = mysqli_query($con,$query); - while($row = mysqli_fetch_array($result)) { - $last_id = $row['@last_id := MAX(id)']; - } - if ($last_id== "" || $last_id==null) - { - $username = "User1"; - } - else - { - $last_id = $last_id+1; - $username = "User$last_id"; - } - $_SESSION['username'] = $username; - $_SESSION['token'] = $token; - $_SESSION['oauth_uid'] = $client_id; - $_SESSION['pic'] = $client_pic; - $query = "INSERT INTO users (oauth_uid,username,email_id,full_name,platform,password,verified,picture,date,ip) VALUES ('$client_id','$username','$client_email','$client_name','$client_plat','$password','1','$client_pic','$date','$ip')"; - mysqli_query($con,$query); - header("Location: ../oauth.php?new_user"); - exit(); -} - -} -else -{ -if(isset($_GET['login'])) -{ -header("Location: $authUrl"); -exit(); -} + if (isset($_GET['login'])) { + header("Location: $authUrl"); + exit(); + } } ?> \ No newline at end of file diff --git a/pages.php b/pages.php index d2e7649..ba003d6 100644 --- a/pages.php +++ b/pages.php @@ -19,8 +19,8 @@ require_once('includes/functions.php'); // UTF-8 header('Content-Type: text/html; charset=utf-8'); -$date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$date = date('jS F Y'); +$ip = $_SERVER['REMOTE_ADDR']; updatePageViews($conn); @@ -30,11 +30,11 @@ if (isset($_GET['page'])) { $query = $conn->prepare('SELECT page_title, page_content, last_date FROM pages WHERE page_name = ?'); $query->execute([$page_name]); if ($row = $query->fetch()) { - $page_title = $row['page_title']; + $page_title = $row['page_title']; $page_content = $row['page_content']; - $last_date = $row['last_date']; - $stats = "OK"; - $p_title = $page_title; + $last_date = $row['last_date']; + $stats = "OK"; + $p_title = $page_title; } } // Theme diff --git a/paste.php b/paste.php index 6724943..f00dbee 100644 --- a/paste.php +++ b/paste.php @@ -48,18 +48,18 @@ if (!$row) { header('HTTP/1.1 404 Not Found'); $notfound = $lang['notfound']; // "Not found"; } else { - $p_title = $row['title']; - $p_content = $row['content']; - $p_visible = $row['visible']; - $p_code = $row['code']; - $p_expiry = Trim($row['expiry']); + $p_title = $row['title']; + $p_content = $row['content']; + $p_visible = $row['visible']; + $p_code = $row['code']; + $p_expiry = Trim($row['expiry']); $p_password = $row['password']; - $p_member = $row['member']; - $p_date = $row['date']; - $now_time = $row['now_time']; - $p_encrypt = $row['encrypt']; - $p_views = $row['views']; - $p_tagsys = $row['tagsys']; + $p_member = $row['member']; + $p_date = $row['date']; + $now_time = $row['now_time']; + $p_encrypt = $row['encrypt']; + $p_views = $row['views']; + $p_tagsys = $row['tagsys']; $mod_date = date("jS F Y h:i:s A", $now_time); @@ -68,22 +68,22 @@ if (!$row) { if (isset($_SESSION['username'])) { if ($p_member == Trim($_SESSION['username'])) { } else { - $notfound = $lang['privatepaste']; //" This is a private paste."; + $notfound = $lang['privatepaste']; //" This is a private paste."; $p_private_error = '1'; goto Not_Valid_Paste; } } else { - $notfound = $lang['privatepaste']; //" This is a private paste. If you created this paste, please login to view it."; + $notfound = $lang['privatepaste']; //" This is a private paste. If you created this paste, please login to view it."; $p_private_error = '1'; goto Not_Valid_Paste; } } if (!empty($p_expiry) && $p_expiry !== 'SELF') { - $input_time = $p_expiry; + $input_time = $p_expiry; $current_time = mktime(date("H"), date("i"), date("s"), date("n"), date("j"), date("Y")); if ($input_time < $current_time) { - $notfound = $lang['expired']; + $notfound = $lang['expired']; $p_private_error = 1; goto Not_Valid_Paste; } @@ -102,7 +102,7 @@ if (!$row) { exit(); } else { if (isset($_GET['password'])) { - if (password_verify($_GET['password'],$p_password)) { + if (password_verify($_GET['password'], $p_password)) { doDownload($paste_id, $p_title, $p_member, $op_content, $p_code); exit(); } else { @@ -121,7 +121,7 @@ if (!$row) { exit(); } else { if (isset($_GET['password'])) { - if (password_verify($_GET['password'],$p_password)) { + if (password_verify($_GET['password'], $p_password)) { rawView($paste_id, $p_title, $op_content, $p_code); exit(); } else { @@ -134,15 +134,15 @@ if (!$row) { } // Preprocess - $highlight = array(); + $highlight = array(); $prefix_size = strlen('!highlight!'); if ($prefix_size) { - $lines = explode("\n", $p_content); + $lines = explode("\n", $p_content); $p_content = ""; foreach ($lines as $idx => $line) { if (substr($line, 0, $prefix_size) == '!highlight!') { $highlight[] = $idx + 1; - $line = substr($line, $prefix_size); + $line = substr($line, $prefix_size); } $p_content .= $line . "\n"; } @@ -154,7 +154,7 @@ if (!$row) { if ($p_code === "pastedown") { $Parsedown = new Parsedown(); $Parsedown->setSafeMode(true); - $p_content = $Parsedown->text( $p_content ); + $p_content = $Parsedown->text($p_content); } else { $geshi = new GeSHi($p_content, $p_code, 'includes/geshi/'); @@ -170,19 +170,19 @@ if (!$row) { $geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 2); } $p_content = $geshi->parse_code(); - $style = $geshi->get_stylesheet(); + $style = $geshi->get_stylesheet(); $ges_style = ''; } // Embed view after GeSHI is applied so that $p_code is syntax highlighted as it should be. if (isset($_GET['embed'])) { - if ( $p_password == "NONE" ) { - embedView( $paste_id, $p_title, $p_content, $p_code, $title, $baseurl, $ges_style, $lang ); + if ($p_password == "NONE") { + embedView($paste_id, $p_title, $p_content, $p_code, $title, $baseurl, $ges_style, $lang); exit(); } else { - if ( isset( $_GET['password'] ) ) { - if ( password_verify( $_GET['password'], $p_password ) ) { - embedView( $paste_id, $p_title, $p_content, $p_code, $title, $p_baseurl, $ges_style, $lang ); + if (isset($_GET['password'])) { + if (password_verify($_GET['password'], $p_password)) { + embedView($paste_id, $p_title, $p_content, $p_code, $title, $p_baseurl, $ges_style, $lang); exit(); } else { $error = $lang['wrongpassword']; // 'Wrong password'; @@ -196,36 +196,36 @@ if (!$row) { require_once('theme/' . $default_theme . '/header.php'); if ($p_password == "NONE") { - - // No password & diplay the paste - - // Set download URL - if ($mod_rewrite == '1') { - $p_download = "download/$paste_id"; - } else { - $p_download = "paste.php?download&id=$paste_id"; - } - - // Set raw URL - if ($mod_rewrite == '1') { - $p_raw = "raw/$paste_id"; - } else { - $p_raw = "paste.php?raw&id=$paste_id"; - } - // Set embed URL - if ( $mod_rewrite == '1' ) { - $p_embed = "embed/$paste_id"; - } else { - $p_embed = "paste.php?embed&id=$paste_id"; - } - - //pasteviews - if($_SESSION['not_unique'] !== $paste_id) { - $_SESSION['not_unique'] = $paste_id; - updateMyView($conn, $paste_id); -} - + // No password & diplay the paste + + // Set download URL + if ($mod_rewrite == '1') { + $p_download = "download/$paste_id"; + } else { + $p_download = "paste.php?download&id=$paste_id"; + } + + // Set raw URL + if ($mod_rewrite == '1') { + $p_raw = "raw/$paste_id"; + } else { + $p_raw = "paste.php?raw&id=$paste_id"; + } + + // Set embed URL + if ($mod_rewrite == '1') { + $p_embed = "embed/$paste_id"; + } else { + $p_embed = "paste.php?embed&id=$paste_id"; + } + + //pasteviews + if ($_SESSION['not_unique'] !== $paste_id) { + $_SESSION['not_unique'] = $paste_id; + updateMyView($conn, $paste_id); + } + // Theme require_once('theme/' . $default_theme . '/view.php'); if ($p_expiry == "SELF") { diff --git a/profile.php b/profile.php index 1f36d4a..b168ed9 100644 --- a/profile.php +++ b/profile.php @@ -22,8 +22,8 @@ require_once('includes/password.php'); // UTF-8 header('Content-Type: text/html; charset=utf-8'); -$date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$date = date('jS F Y'); +$ip = $_SERVER['REMOTE_ADDR']; $p_title = $lang['myprofile']; //"My Profile"; @@ -32,7 +32,7 @@ $p_title = $lang['myprofile']; //"My Profile"; // Check if already logged in if (isset($_SESSION['token'])) { } else { - header("Location: ./login.php"); + header("Location: ./login.php"); } $user_username = htmlentities(trim($_SESSION['username'])); @@ -40,14 +40,14 @@ $query = $conn->prepare('SELECT * FROM users WHERE username = ?'); $query->execute([$user_username]); $row = $query->fetch(); $user_oauth_uid = $row['oauth_uid']; -$user_id = $row['id']; -$user_email_id = $row['email_id']; +$user_id = $row['id']; +$user_email_id = $row['email_id']; $user_full_name = $row['full_name']; -$user_platform = Trim($row['platform']); -$user_verified = $row['verified']; -$user_date = $row['date']; -$user_ip = $row['ip']; -$user_password = $row['password']; +$user_platform = Trim($row['platform']); +$user_verified = $row['verified']; +$user_date = $row['date']; +$user_ip = $row['ip']; +$user_password = $row['password']; if ($user_oauth_uid == '0') { $user_oauth_uid = "None"; @@ -55,8 +55,8 @@ if ($user_oauth_uid == '0') { if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST['cpassword'])) { - $user_new_full = trim(htmlspecialchars($_POST['full'])); - $user_old_pass = $_POST['old_password']; + $user_new_full = trim(htmlspecialchars($_POST['full'])); + $user_old_pass = $_POST['old_password']; if (password_verify($user_old_pass, $user_password)) { $user_new_cpass = password_hash($_POST['password'], PASSWORD_DEFAULT); diff --git a/report.php b/report.php index 425eae4..4fdd6b9 100644 --- a/report.php +++ b/report.php @@ -7,48 +7,48 @@ require_once('includes/functions.php'); // UTF-8 header('Content-Type: text/html; charset=utf-8'); -$date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$date = date('jS F Y'); +$ip = $_SERVER['REMOTE_ADDR']; $data_ip = file_get_contents('tmp/temp.tdata'); -$con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); +$con = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); if (mysqli_connect_errno()) { die("Unable to connect to database"); } -$query = "SELECT * FROM site_info"; +$query = "SELECT * FROM site_info"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { - $title = Trim($row['title']); - $des = Trim($row['des']); - $baseurl = Trim($row['baseurl']); - $keyword = Trim($row['keyword']); - $site_name = Trim($row['site_name']); - $email = Trim($row['email']); - $twit = Trim($row['twit']); - $face = Trim($row['face']); - $gplus = Trim($row['gplus']); - $ga = Trim($row['ga']); - $additional_scripts = Trim($row['additional_scripts']); + $title = Trim($row['title']); + $des = Trim($row['des']); + $baseurl = Trim($row['baseurl']); + $keyword = Trim($row['keyword']); + $site_name = Trim($row['site_name']); + $email = Trim($row['email']); + $twit = Trim($row['twit']); + $face = Trim($row['face']); + $gplus = Trim($row['gplus']); + $ga = Trim($row['ga']); + $additional_scripts = Trim($row['additional_scripts']); } // Set theme and language -$query = "SELECT * FROM interface"; +$query = "SELECT * FROM interface"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { - $default_lang = Trim($row['lang']); + $default_lang = Trim($row['lang']); $default_theme = Trim($row['theme']); } require_once("langs/$default_lang"); // Check if IP is banned -if ( is_banned($con, $ip) ) die($lang['banned']); // "You have been banned from ".$site_name; +if (is_banned($con, $ip)) die($lang['banned']); // "You have been banned from ".$site_name; // Logout if (isset($_GET['logout'])) { - header('Location: ' . $_SERVER['HTTP_REFERER']); + header('Location: ' . $_SERVER['HTTP_REFERER']); unset($_SESSION['token']); unset($_SESSION['oauth_uid']); unset($_SESSION['username']); @@ -56,26 +56,25 @@ if (isset($_GET['logout'])) { } - //Report paste -$p_reasonrep = Trim(htmlspecialchars($_POST['reasonrep'])); - if (isset($_SESSION['token'])) { - $p_memreport = htmlspecialchars($_SESSION['username']); - } else { - $p_memreport = "Guest"; - } +$p_reasonrep = Trim(htmlspecialchars($_POST['reasonrep'])); +if (isset($_SESSION['token'])) { + $p_memreport = htmlspecialchars($_SESSION['username']); +} else { + $p_memreport = "Guest"; +} $p_pastereport = Trim(htmlspecialchars($_POST['reppasteid'])); $p_reporttime = gmmktime(date("H"), date("i"), date("s"), date("n"), date("j"), date("Y")); -$p_reasonrep = preg_replace("/[^0-9]/", "", $p_reasonrep ); +$p_reasonrep = preg_replace("/[^0-9]/", "", $p_reasonrep); //Sec -$p_reasonrep = mysqli_real_escape_string($con, $p_reasonrep); -$p_memreport = mysqli_real_escape_string($con,$p_memreport); -$p_pastereport = mysqli_real_escape_string($con,$p_pastereport); +$p_reasonrep = mysqli_real_escape_string($con, $p_reasonrep); +$p_memreport = mysqli_real_escape_string($con, $p_memreport); +$p_pastereport = mysqli_real_escape_string($con, $p_pastereport); $reported = "INSERT INTO user_reports (m_report,p_report,t_report,rep_reason) VALUES ('$p_memreport','$p_pastereport ','$p_reporttime','$p_reasonrep')"; -if ($con->query($reported) === TRUE) { - $repmes = "Paste has been reported."; +if ($con->query($reported) === true) { + $repmes = "Paste has been reported."; } else { - $repmes = "Reporting failed"; + $repmes = "Reporting failed"; } ?> diff --git a/rules.php b/rules.php index 87cb609..e914e72 100644 --- a/rules.php +++ b/rules.php @@ -1,6 +1,6 @@ 0, - "message" => "Invalid request" - ]); - break; + // INVALID + default: + echo json_encode([ + "status" => 0, + "message" => "Invalid request" + ]); + break; - // GET TAGS FOR POST - case "get": - $tags = $tagDB->getAll($_POST['post_id']); - echo json_encode([ - "status" => is_array($tags) ? 1 : 0, - "message" => $tags - ]); - break; + // GET TAGS FOR POST + case "get": + $tags = $tagDB->getAll($_POST['post_id']); + echo json_encode([ + "status" => is_array($tags) ? 1 : 0, + "message" => $tags + ]); + break; - // SAVE TAGS - case "save": - $pass = $tagDB->reTag($_POST['post_id'], json_decode($_POST['tags'])); - echo json_encode([ - "status" => $pass ? 1 : 0, - "message" => $pass ? "OK" : $tagDB->error - ]); - break; + // SAVE TAGS + case "save": + $pass = $tagDB->reTag($_POST['post_id'], json_decode($_POST['tags'])); + echo json_encode([ + "status" => $pass ? 1 : 0, + "message" => $pass ? "OK" : $tagDB->error + ]); + break; } ?> \ No newline at end of file diff --git a/testbin/3a-my-post.php b/testbin/3a-my-post.php index b9cded1..85c8583 100644 --- a/testbin/3a-my-post.php +++ b/testbin/3a-my-post.php @@ -11,43 +11,44 @@ $tags = $tagDB->getAll($postID); // HTML ?> - + Simple Tag Demo - - - -

    - Lord of the Minks -

    -

    - The undone complaint collapses past an east estate. The insulting nurse flames the era. A willed hierarchy surfaces. A tentative wife bites the consenting fence. -

    + + + +

    + Lord of the Minks +

    +

    + The undone complaint collapses past an east estate. The insulting nurse flames the era. A willed hierarchy surfaces. + A tentative wife bites the consenting fence. +

    - -
    -

    MANAGE TAGS

    + +
    +

    MANAGE TAGS

    - -
    +
    %s
    ", $t); - } + foreach ($tags as $t) { + printf("
    %s
    ", $t); + } } - ?>
    + ?>
    - - -
    - + + + + +
    + \ No newline at end of file diff --git a/testbin/lib/2b-lib-tag.php b/testbin/lib/2b-lib-tag.php index b189a40..1fe06ca 100644 --- a/testbin/lib/2b-lib-tag.php +++ b/testbin/lib/2b-lib-tag.php @@ -1,171 +1,179 @@ pdo = new PDO( - $str, DB_USER, DB_PASSWORD, [ - PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, - PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, - PDO::ATTR_EMULATE_PREPARES => false - ] - ); - } - - // ERROR - CRITICAL STOP - THROW ERROR MESSAGE - catch (Exception $ex) { - print_r($ex); - die(); - } - } - - function __destruct () { - // __destruct() : close connection when done - - if ($this->stmt !== null) { $this->stmt = null; } - if ($this->pdo !== null) { $this->pdo = null; } - } - - function exec ($sql, $data=null) { - // exec() : run insert, replace, update, delete query - // PARAM $sql : SQL query - // $data : array of data - - try { - $this->stmt = $this->pdo->prepare($sql); - $this->stmt->execute($data); - $this->lastID = $this->pdo->lastInsertId(); - } catch (Exception $ex) { - $this->error = $ex; - return false; - } - $this->stmt = null; - return true; - } - - function start () { - // start() : auto-commit off - - $this->pdo->beginTransaction(); - } - - function end ($commit=1) { - // end() : commit or roll back? - - if ($commit) { $this->pdo->commit(); } - else { $this->pdo->rollBack(); } - } - - function fetchAll ($sql, $cond=null, $key=null, $value=null) { - // fetchAll() : perform select query (multiple rows expected) - // PARAM $sql : SQL query - // $cond : array of conditions - // $key : sort in this $key=>data order, optional - // $value : $key must be provided. If string provided, sort in $key=>$value order. If function provided, will be a custom sort. - - $result = []; - try { - $this->stmt = $this->pdo->prepare($sql); - $this->stmt->execute($cond); - // Sort in given order - if (isset($key)) { - if (isset($value)) { - if (is_callable($value)) { - while ($row = $this->stmt->fetch(PDO::FETCH_NAMED)) { - $result[$row[$key]] = $value($row); + // ATTEMPT CONNECT + try { + $str = "mysql:host=" . DB_HOST . ";charset=" . DB_CHARSET; + if (defined('DB_NAME')) { + $str .= ";dbname=" . DB_NAME; } - } else { - while ($row = $this->stmt->fetch(PDO::FETCH_NAMED)) { - $result[$row[$key]] = $row[$value]; - } - } - } else { - while ($row = $this->stmt->fetch(PDO::FETCH_NAMED)) { - $result[$row[$key]] = $row; - } + $this->pdo = new PDO( + $str, DB_USER, DB_PASSWORD, [ + PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, + PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, + PDO::ATTR_EMULATE_PREPARES => false + ] + ); + } // ERROR - CRITICAL STOP - THROW ERROR MESSAGE + catch (Exception $ex) { + print_r($ex); + die(); } - } - // No key-value sort order - else { - $result = $this->stmt->fetchAll(); - } - } catch (Exception $ex) { - $this->error = $ex; - return false; - } - // Return result - $this->stmt = null; - return count($result)==0 ? false : $result ; - } - - function fetchCol ($sql, $cond=null) { - // fetchCol() : yet another version of fetch that returns a flat array - // I.E. Good for one column SELECT `col` FROM `table` - - $this->stmt = $this->pdo->prepare($sql); - $this->stmt->execute($cond); - $result = $this->stmt->fetchAll(PDO::FETCH_COLUMN, 0); - return count($result)==0 ? false : $result; - } - - /* [TAG FUNCTIONS] */ - function getAll($id) { - // get all tags for the given post ID - - $sql = "SELECT * FROM `tags` WHERE `post_id`=?"; - return $this->fetchCol("SELECT `tag` FROM `tags` WHERE `post_id`=?", [$id]); - } - - function search($tag) { - // search() : search for posts with the given tag - - return $this->fetchAll( - "SELECT p.* FROM `tags` t LEFT JOIN posts `p` USING (`post_id`) WHERE t.`tag`=?", - [$tag], - "post_id" - ); - } - - function reTag($id, $tags=null) { - // reTag() : replace tags for the given post ID - // PARAM $id : post ID - // $tags : array of tags - - // Auto-commit off - $this->start(); - - // Remove old tags first - $pass = $this->exec( - "DELETE FROM `tags` WHERE `post_id`=?", [$id] - ); - - // Add new tags - If any - // Might be a good idea to limit the total number of tags... - if ($pass && is_array($tags) && count($tags)>0) { - $sql = "INSERT INTO `tags` (`post_id`, `tag`) VALUES "; - $data = []; - foreach ($tags as $t) { - $sql .= "(?,?),"; - $data[] = $id; - $data[] = $t; - } - $sql = substr($sql, 0, -1); - $pass = $this->exec($sql, $data); } - // End - commit or rollback - $this->end($pass); - return $pass; - } + function __destruct() { + // __destruct() : close connection when done + + if ($this->stmt !== null) { + $this->stmt = null; + } + if ($this->pdo !== null) { + $this->pdo = null; + } + } + + function exec($sql, $data = null) { + // exec() : run insert, replace, update, delete query + // PARAM $sql : SQL query + // $data : array of data + + try { + $this->stmt = $this->pdo->prepare($sql); + $this->stmt->execute($data); + $this->lastID = $this->pdo->lastInsertId(); + } catch (Exception $ex) { + $this->error = $ex; + return false; + } + $this->stmt = null; + return true; + } + + function start() { + // start() : auto-commit off + + $this->pdo->beginTransaction(); + } + + function end($commit = 1) { + // end() : commit or roll back? + + if ($commit) { + $this->pdo->commit(); + } else { + $this->pdo->rollBack(); + } + } + + function fetchAll($sql, $cond = null, $key = null, $value = null) { + // fetchAll() : perform select query (multiple rows expected) + // PARAM $sql : SQL query + // $cond : array of conditions + // $key : sort in this $key=>data order, optional + // $value : $key must be provided. If string provided, sort in $key=>$value order. If function provided, will be a custom sort. + + $result = []; + try { + $this->stmt = $this->pdo->prepare($sql); + $this->stmt->execute($cond); + // Sort in given order + if (isset($key)) { + if (isset($value)) { + if (is_callable($value)) { + while ($row = $this->stmt->fetch(PDO::FETCH_NAMED)) { + $result[$row[$key]] = $value($row); + } + } else { + while ($row = $this->stmt->fetch(PDO::FETCH_NAMED)) { + $result[$row[$key]] = $row[$value]; + } + } + } else { + while ($row = $this->stmt->fetch(PDO::FETCH_NAMED)) { + $result[$row[$key]] = $row; + } + } + } // No key-value sort order + else { + $result = $this->stmt->fetchAll(); + } + } catch (Exception $ex) { + $this->error = $ex; + return false; + } + // Return result + $this->stmt = null; + return count($result) == 0 ? false : $result; + } + + function fetchCol($sql, $cond = null) { + // fetchCol() : yet another version of fetch that returns a flat array + // I.E. Good for one column SELECT `col` FROM `table` + + $this->stmt = $this->pdo->prepare($sql); + $this->stmt->execute($cond); + $result = $this->stmt->fetchAll(PDO::FETCH_COLUMN, 0); + return count($result) == 0 ? false : $result; + } + + /* [TAG FUNCTIONS] */ + function getAll($id) { + // get all tags for the given post ID + + $sql = "SELECT * FROM `tags` WHERE `post_id`=?"; + return $this->fetchCol("SELECT `tag` FROM `tags` WHERE `post_id`=?", [$id]); + } + + function search($tag) { + // search() : search for posts with the given tag + + return $this->fetchAll( + "SELECT p.* FROM `tags` t LEFT JOIN posts `p` USING (`post_id`) WHERE t.`tag`=?", + [$tag], + "post_id" + ); + } + + function reTag($id, $tags = null) { + // reTag() : replace tags for the given post ID + // PARAM $id : post ID + // $tags : array of tags + + // Auto-commit off + $this->start(); + + // Remove old tags first + $pass = $this->exec( + "DELETE FROM `tags` WHERE `post_id`=?", [$id] + ); + + // Add new tags - If any + // Might be a good idea to limit the total number of tags... + if ($pass && is_array($tags) && count($tags) > 0) { + $sql = "INSERT INTO `tags` (`post_id`, `tag`) VALUES "; + $data = []; + foreach ($tags as $t) { + $sql .= "(?,?),"; + $data[] = $id; + $data[] = $t; + } + $sql = substr($sql, 0, -1); + $pass = $this->exec($sql, $data); + } + + // End - commit or rollback + $this->end($pass); + return $pass; + } } + ?> \ No newline at end of file diff --git a/theme/bulma/archive.php b/theme/bulma/archive.php index 72639fb..01d8213 100644 --- a/theme/bulma/archive.php +++ b/theme/bulma/archive.php @@ -15,71 +15,71 @@ */ ?>
    -
    -
    -
    -
    -
    -
    +
    +
    +
    +
    +
    +
    There are pastes that still need to be tagged.
    - -

    - -

    - - - - - - - - - - - - - - - - - -
    + +

    + +

    + + + + + + + + + + + + + + + + + +
    -
    - -
    -
    +
    + +
    +
    \ No newline at end of file diff --git a/theme/bulma/discover.php b/theme/bulma/discover.php index 73e18e8..d30a97a 100644 --- a/theme/bulma/discover.php +++ b/theme/bulma/discover.php @@ -15,49 +15,50 @@ ?>
    - -
    -
    -
    -
    - -
    -
    -
    - -
    - + +
    +
    +
    +
    + +
    +
    +
    + +
    + - -
    -
    -

    -
    - $row) { - $title = Trim($row['title']); - $p_member = Trim($row['member']); - $titlehov = ($row['title']); - $p_id = Trim($row['id']); - $p_date = Trim($row['date']); - $p_time = Trim($row['now_time']); - $nowtime = time(); - $oldtime = $p_time; - $p_time = conTime($nowtime-$oldtime); - $p_tagsys = Trim($row['tagsys']); - $tags = htmlentities($p_tagsys, ENT_QUOTES, 'UTF-8'); - $tagui = sandwitch($tags); - ?> - +
    +
    +

    +

    +
    + $row) { + $title = Trim($row['title']); + $p_member = Trim($row['member']); + $titlehov = ($row['title']); + $p_id = Trim($row['id']); + $p_date = Trim($row['date']); + $p_time = Trim($row['now_time']); + $nowtime = time(); + $oldtime = $p_time; + $p_time = conTime($nowtime - $oldtime); + $p_tagsys = Trim($row['tagsys']); + $tags = htmlentities($p_tagsys, ENT_QUOTES, 'UTF-8'); + $tagui = sandwitch($tags); + ?> +
    @@ -65,239 +66,258 @@

    ' . $title . '

    ' . $p_member . '

    '; - if(strlen($p_tagsys) > 0) { - echo $tagui; - }else{ echo ' No tags';} - echo '
    + if (strlen($p_tagsys) > 0) { + echo $tagui; + } else { + echo ' No tags'; + } + echo '


    -
    '; - - } else{ - echo '' . ucfirst($title) . ''; - }} - ?> -
    -

    -
    - -
    -
    -

    -
    - $row) { - $title = Trim($row['title']); - $p_member = Trim($row['member']); - $titlehov = ($row['title']); - $p_id = Trim($row['id']); - $p_date = Trim($row['date']); - $p_time = Trim($row['now_time']); - $nowtime = time(); - $oldtime = $p_time; - $p_time = conTime($nowtime-$oldtime); - $p_tagsys = Trim($row['tagsys']); - $tags = htmlentities($p_tagsys, ENT_QUOTES, 'UTF-8'); - $tagui = sandwitch($tags); - ?> - -
    -
    -
    -
    -

    ' . $title . '

    -

    ' . $p_member . '

    '; - if(strlen($p_tagsys) > 0) { - echo $tagui; - }else{ echo ' No tags';} - echo '
    -
    -
    -

    -
    '; - - } else{ - echo '' . ucfirst($title) . ''; - }} - ?> -

    -
    -
    - - -
    -
    -

    -
    - $row) { - $title = Trim($row['title']); - $p_member = Trim($row['member']); - $titlehov = ($row['title']); - $p_id = Trim($row['id']); - $p_date = Trim($row['date']); - $p_time = Trim($row['now_time']); - $nowtime = time(); - $oldtime = $p_time; - $p_time = conTime($nowtime-$oldtime); - $p_tagsys = Trim($row['tagsys']); - $tags = htmlentities($p_tagsys, ENT_QUOTES, 'UTF-8'); - $tagui = sandwitch($tags); - ?> - -
    -
    -
    -
    -

    ' . $title . '

    -

    ' . $p_member . '

    '; - if(strlen($p_tagsys) > 0) { - echo $tagui; - }else{ echo ' No tags';} - echo '
    -
    -
    -

    -
    '; - - } else{ - echo '' . ucfirst($title) . ''; - }} - ?> -

    -
    -
    - - -
    -
    -

    -
    - $row) { - $title = Trim($row['title']); - $p_member = Trim($row['member']); - $titlehov = ($row['title']); - $p_id = Trim($row['id']); - $p_date = Trim($row['date']); - $p_time = Trim($row['now_time']); - $nowtime = time(); - $oldtime = $p_time; - $p_time = conTime($nowtime-$oldtime); - $p_tagsys = Trim($row['tagsys']); - $tags = htmlentities($p_tagsys, ENT_QUOTES, 'UTF-8'); - $tagui = sandwitch($tags); - ?> - -
    -
    -
    -
    -

    ' . $title . '

    -

    ' . $p_member . '

    '; - if(strlen($p_tagsys) > 0) { - echo $tagui; - }else{ echo ' No tags';} - echo '
    -
    -
    -

    -
    '; - - } else{ - echo '' . ucfirst($title) . ''; - }} - ?> -

    -
    -
    - -
    -
    -

    -
    - $row) { - $title = Trim($row['title']); - $p_member = Trim($row['member']); - $titlehov = ($row['title']); - $p_id = Trim($row['id']); - $p_date = Trim($row['date']); - $p_time = Trim($row['now_time']); - $nowtime = time(); - $oldtime = $p_time; - $p_time = conTime($nowtime-$oldtime); - $p_tagsys = Trim($row['tagsys']); - $tags = htmlentities($p_tagsys, ENT_QUOTES, 'UTF-8'); - $tagui = sandwitch($tags); - ?> - -
    -
    -
    -
    -

    ' . $title . '

    -

    ' . $p_member . '

    '; - if(strlen($p_tagsys) > 0) { - echo $tagui; - }else{ echo ' No tags';} - echo '
    -
    -
    -

    -
    '; - - } else{ - echo '' . ucfirst($title) . ''; - }} - ?> -

    -
    -
    - +
    '; -
    -
    -
    + } else { + echo '' . ucfirst($title) . ''; + } + } + ?> +
    +
    +
    + +
    +
    +

    +

    +
    + $row) { + $title = Trim($row['title']); + $p_member = Trim($row['member']); + $titlehov = ($row['title']); + $p_id = Trim($row['id']); + $p_date = Trim($row['date']); + $p_time = Trim($row['now_time']); + $nowtime = time(); + $oldtime = $p_time; + $p_time = conTime($nowtime - $oldtime); + $p_tagsys = Trim($row['tagsys']); + $tags = htmlentities($p_tagsys, ENT_QUOTES, 'UTF-8'); + $tagui = sandwitch($tags); + ?> + +
    +
    +
    +
    +

    ' . $title . '

    +

    ' . $p_member . '

    '; + if (strlen($p_tagsys) > 0) { + echo $tagui; + } else { + echo ' No tags'; + } + echo '
    +
    +
    +

    +
    '; + + } else { + echo '' . ucfirst($title) . ''; + } + } + ?> +

    +
    +
    + + +
    +
    +

    +

    +
    + $row) { + $title = Trim($row['title']); + $p_member = Trim($row['member']); + $titlehov = ($row['title']); + $p_id = Trim($row['id']); + $p_date = Trim($row['date']); + $p_time = Trim($row['now_time']); + $nowtime = time(); + $oldtime = $p_time; + $p_time = conTime($nowtime - $oldtime); + $p_tagsys = Trim($row['tagsys']); + $tags = htmlentities($p_tagsys, ENT_QUOTES, 'UTF-8'); + $tagui = sandwitch($tags); + ?> + +
    +
    +
    +
    +

    ' . $title . '

    +

    ' . $p_member . '

    '; + if (strlen($p_tagsys) > 0) { + echo $tagui; + } else { + echo ' No tags'; + } + echo '
    +
    +
    +

    +
    '; + + } else { + echo '' . ucfirst($title) . ''; + } + } + ?> +

    +
    +
    + + +
    +
    +

    +

    +
    + $row) { + $title = Trim($row['title']); + $p_member = Trim($row['member']); + $titlehov = ($row['title']); + $p_id = Trim($row['id']); + $p_date = Trim($row['date']); + $p_time = Trim($row['now_time']); + $nowtime = time(); + $oldtime = $p_time; + $p_time = conTime($nowtime - $oldtime); + $p_tagsys = Trim($row['tagsys']); + $tags = htmlentities($p_tagsys, ENT_QUOTES, 'UTF-8'); + $tagui = sandwitch($tags); + ?> + +
    +
    +
    +
    +

    ' . $title . '

    +

    ' . $p_member . '

    '; + if (strlen($p_tagsys) > 0) { + echo $tagui; + } else { + echo ' No tags'; + } + echo '
    +
    +
    +

    +
    '; + + } else { + echo '' . ucfirst($title) . ''; + } + } + ?> +

    +
    +
    + +
    +
    +

    +

    +
    + $row) { + $title = Trim($row['title']); + $p_member = Trim($row['member']); + $titlehov = ($row['title']); + $p_id = Trim($row['id']); + $p_date = Trim($row['date']); + $p_time = Trim($row['now_time']); + $nowtime = time(); + $oldtime = $p_time; + $p_time = conTime($nowtime - $oldtime); + $p_tagsys = Trim($row['tagsys']); + $tags = htmlentities($p_tagsys, ENT_QUOTES, 'UTF-8'); + $tagui = sandwitch($tags); + ?> + +
    +
    +
    +
    +

    ' . $title . '

    +

    ' . $p_member . '

    '; + if (strlen($p_tagsys) > 0) { + echo $tagui; + } else { + echo ' No tags'; + } + echo '
    +
    +
    +

    +
    '; + + } else { + echo '' . ucfirst($title) . ''; + } + } + ?> +

    +
    + + + + + + \ No newline at end of file diff --git a/theme/bulma/errors.php b/theme/bulma/errors.php index 64ac12d..8e13cd8 100644 --- a/theme/bulma/errors.php +++ b/theme/bulma/errors.php @@ -16,30 +16,32 @@ ?>
    -
    -
    -
    -
    - -

    - New Paste - -

    - -

    - -
    -
    -
    - - -
    -
    - -
    - -

    - -
    -
    +
    +
    +
    +
    + +

    + New Paste + +

    +

    + +

    + +
    +
    +
    + + +
    +
    + +
    + +

    + +
    +
    \ No newline at end of file diff --git a/theme/bulma/event.php b/theme/bulma/event.php index 6dcc77a..293bbfe 100644 --- a/theme/bulma/event.php +++ b/theme/bulma/event.php @@ -14,155 +14,161 @@ */ ?> + clearInterval(x); + } + //seconds + }, 0) + }()); +
    - -
    -
    -
    -
    - -
    - - -
    -
    -
    - -

    -
    -
    -
    - - - - -
    - Entries Deadline + +
    +
    +
    +
    + +
    + + +
    +
    +
    + +

    +
    +
    +
    + + + + +
    + Entries Deadline
    -

    - Days, - Hours, - Minutes, - Seconds Remaining -

    -
    -
    +

    + Days, + Hours, + Minutes, + Seconds Remaining +

    +
    +

    -

    Welcome to Ponepaste /pj50kb/ Pastejam

    -

    No context 50kb Challenge

    - What is the PasteJam 50kb challange? -

    The PasteJam 50kb challenge is a competition that last for two weeks that any one can join.

    - What do I win? -

    >A fucking badge, plus the best pony game the host can find.

    - -

    Note: This is a steam game, winner will be sent a cdkey

    -
    - What do I have to do? -

    A prompt is given and you have to write a 50kb greentext or prose.

    - Does it have to be exactly 50kb -

    As close as possible. This is more of a guide due to magin of error.

    - What will happen if I submit a paste thats under 50kb? -

    Again, As close as possible.

    - Can I ask for feedback for my green/prose? -

    From other anons on /mlp/ is fine.

    - Can I write anything? -

    As long it follows the prompt, mlp related and follows Ponepaste rules.

    - How is the prompt chosen? -

    Hand picked homonyms.

    - How do I submit? -

    Make a UNLISTED paste with /pj50kb/ in the title and tag.

    - How is the winner chosen? -

    By a vote after the closing date

    - When is the closing date? -

    28th of May

    - When does the voting start? -

    28th of May, to gives (you) time to read.

    - Where do I vote? -

    Here, on this page.

    - How long will the vote last? -

    Two weeks. Vote ends on 11th of June, 8pm UTC

    - What will I be voting on? -

    How well the story is written, how unique the idea is and how it fits the prompt.

    - Can the entry be a sequel/ side arc of one of their existing greens? -

    It must be a stand alone story.

    -
    -
    -
    - Prompt: -
    -
    Listen to the prompt:
    - -
    +

    Welcome to Ponepaste /pj50kb/ Pastejam +

    +

    No context 50kb Challenge +

    + What is the PasteJam 50kb challange? +

    The PasteJam 50kb challenge is a competition that last for two weeks that any one + can join.

    + What do I win? +

    >A fucking badge, plus the best pony game the host can + find.

    + +

    Note: This is a steam game, winner will be sent a cdkey

    +
    + What do I have to do? +

    A prompt is given and you have to write a 50kb greentext or prose.

    + Does it have to be exactly 50kb +

    As close as possible. This is more of a guide due to magin of error.

    + What will happen if I submit a paste thats under 50kb? +

    Again, As close as possible.

    + Can I ask for feedback for my green/prose? +

    From other anons on /mlp/ is fine.

    + Can I write anything? +

    As long it follows the prompt, mlp related and follows Ponepaste rules.

    + How is the prompt chosen? +

    Hand picked homonyms.

    + How do I submit? +

    Make a UNLISTED paste with /pj50kb/ in the title and tag.

    + How is the winner chosen? +

    By a vote after the closing date

    + When is the closing date? +

    28th of May

    + When does the voting start? +

    28th of May, to gives (you) time to read.

    + Where do I vote? +

    Here, on this page.

    + How long will the vote last? +

    Two weeks. Vote ends on 11th of June, 8pm UTC

    + What will I be voting on? +

    How well the story is written, how unique the idea is and how it fits the + prompt.

    + Can the entry be a sequel/ side arc of one of their existing greens? +

    It must be a stand alone story.

    +
    +
    +
    + Prompt: +
    +
    Listen to the prompt:
    + +
    -
    - -
    -
    -

    Submited Entries

    -
    -
    - - +
    + +
    +
    +

    Submited Entries +

    + + ''; + ?> + + +

    +

    +
    - Note: -
    -

    - No one has been nominated for the Wooden Spoon Award. -

    -
    -
    - -
    -

    -
    - -
    -

    -

    + Note: +
    +

    + No one has been nominated for the Wooden Spoon Award. +

    +
    +
    + +
    +
    +
    + +
    +
    +
    - - + diff --git a/theme/bulma/footer.php b/theme/bulma/footer.php index 2ce85d0..f4cb742 100644 --- a/theme/bulma/footer.php +++ b/theme/bulma/footer.php @@ -1,136 +1,136 @@ - - - + + diff --git a/theme/bulma/header.php b/theme/bulma/header.php index 31dfcb6..ace56d4 100644 --- a/theme/bulma/header.php +++ b/theme/bulma/header.php @@ -19,60 +19,68 @@ $time = $time[1] + $time[0]; $start = $time; ?> - + "> - - - - <?php if (isset($p_title)) { - echo $p_title . ' - '; - } - echo $title; - ?> - - - - - - - - - - - "; - } - ?> + + + + <?php if (isset($p_title)) { + echo $p_title . ' - '; + } + echo $title; + ?> + + + + + + + + + + + "; + } + ?> - - - diff --git a/theme/bulma/login.php b/theme/bulma/login.php index 745897a..f6cf78c 100644 --- a/theme/bulma/login.php +++ b/theme/bulma/login.php @@ -16,280 +16,296 @@ ?>
    -
    -
    -
    -
    - ' . $success . '

    '; - // Verification email sent - if (isset($_GET['register']) && $verification == 'enabled') { - echo '

    ' . $lang['versent'] . '

    '; - } - } - // Errors - elseif (isset($error)) { - echo '

    ' . $error . '

    '; - } - // Login page - if (isset($_GET['login'])) { - ?> -
    -
    -
    -

    Login

    -
    - -
    - - +
    +
    +
    +
    + ' . $success . '

    '; + // Verification email sent + if (isset($_GET['register']) && $verification == 'enabled') { + echo '

    ' . $lang['versent'] . '

    '; + } + } // Errors + elseif (isset($error)) { + echo '

    ' . $error . '

    '; + } + // Login page + if (isset($_GET['login'])) { + ?> + +
    +
    +

    Login

    +
    + +
    + + -
    -
    -
    - -
    - - +
    +
    +
    + +
    + + -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    -
    -
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    +
    +
    -
    -
    - - - - -
    - - - - - -
    -
    -
    -

    Register

    -
    - -
    - - +
    +
    + + + + +
    + + + + + +
    +
    +
    +

    Register

    +
    + +
    + + -
    -
    -
    - -
    - - +
    +
    +
    + +
    + + -
    -
    -
    - -
    - - +
    +
    +
    + +
    + + -
    -
    -
    - - -
    -
    - CAPTCHA Image -
    - -
    - -
    -
    -
    -
    -
    -
    +
    +
    +
    + + +
    +
    + CAPTCHA Image +
    + +
    + +
    +
    +
    +
    +
    +
    -
    -
    -
    -

    By signing up you agree to our Privacy policy and Site rules. This site may contain material not sutible for under 18's

    +
    - - - - -
    - - - - - -
    -
    -
    -

    Forgot Password

    -
    - -
    - - +
    +

    By signing up you agree to our Privacy + policy and Site rules. This site may contain material + not sutible for under 18's

    +
    + + + + +
    + + + + + +
    +
    +
    +

    Forgot Password

    +
    + +
    + + -
    -
    -
    - -
    -
    -
    -
    -
    +
    +
    +
    + +
    +
    +
    +
    +
    -
    -
    - - -
    -
    -
    -

    Resend verification email

    -
    - -
    - - +
    +
    + + +
    +
    +
    +

    Resend verification email

    +
    + +
    + + -
    -
    -
    - -
    -
    -
    -
    -
    +
    +
    +
    + +
    +
    +
    +
    +
    -
    -
    - - -
    - -
    -
    -
    +
    +
    + + +
    + +
    +
    +
    -
    -
    - -
    - -
    -
    +
    +
    + +
    + +
    +
    \ No newline at end of file diff --git a/theme/bulma/main.php b/theme/bulma/main.php index f4c336f..892ca18 100644 --- a/theme/bulma/main.php +++ b/theme/bulma/main.php @@ -16,75 +16,87 @@ ?> - + + document.addEventListener('DOMContentLoaded', function () { + BulmaTagsInput.attach(); + }); +
    -
    -
    -
    -
    - - -
    -
    -
    -
    -

    Site News:

    -
    -
    -
    -
      -
    • Ponepaste has now a favorite system. You can now favorite pastes and bookmark them on your userpage under "Favorites"
    • -
    • Report function and UI has been overhauled.
    • -
    • The archive page has now been updated, tags are now clickable for a faster search.
    • -
    • Tags UI has been overhauled. Tags containing "SAFE" and "NSFW" will appear green and red.
    • -
    • When Creating paste the tag input box has been updated with a new visual style.
    • -
    • Tags are now being canonized, if you see your tags change, it's just the admin working in the background
    • -
    -
    -
    -
    -
    -
    -
    -
    -
    - $row) { - $title = Trim($row['title']); - $titlehov = ($row['title']); - $p_member = Trim($row['member']); - $p_id = Trim($row['id']); - $p_date = Trim($row['date']); - $p_time = Trim($row['now_time']); - $nowtime = time(); - $oldtime = $p_time; - $title = truncate($title, 24, 60); - ?> +
    +
    +
    +
    + + +
    +
    +
    +
    +

    Site News:

    +
    +
    +
    +
      +
    • Ponepaste has now a favorite system. You can now favorite pastes and + bookmark them on your userpage under "Favorites" +
    • +
    • Report function and UI has been overhauled.
    • +
    • The archive page has now been updated, tags are now clickable for a + faster search. +
    • +
    • Tags UI has been overhauled. Tags containing "SAFE" and "NSFW" will + appear green and red. +
    • +
    • When Creating paste the tag input box has been updated with a new visual + style. +
    • +
    • Tags are now being canonized, if you see your tags change, it's just the + admin working in the background +
    • +
    +
    +
    +
    +
    +
    +
    +
    +
    + - + as $index => $row) { + $title = Trim($row['title']); + $titlehov = ($row['title']); + $p_member = Trim($row['member']); + $p_id = Trim($row['id']); + $p_date = Trim($row['date']); + $p_time = Trim($row['now_time']); + $nowtime = time(); + $oldtime = $p_time; + $title = truncate($title, 24, 60); + ?> + +

    + ' . $title . ' @@ -92,38 +104,41 @@

    ' . 'by ' . ' ' . $p_member . '

    ' . - ''; - } else { - echo '' . ucfirst($title) . ''; - }} - ?> + ''; + } else { + echo '' . ucfirst($title) . ''; + } + } + ?> -

    -
    -
    -
    -
    -
    -
    - $row) { - $title = Trim($row['title']); - $titlehov = ($row['title']); - $p_member = Trim($row['member']); - $p_id = Trim($row['id']); - $p_date = Trim($row['date']); - $p_time = Trim($row['now_time']); - $nowtime = time(); - $oldtime = $p_time; - - $title = truncate($title, 24, 60); - ?> +

    +
    +
    +
    +
    +
    +
    + - + as $index => $row) { + $title = Trim($row['title']); + $titlehov = ($row['title']); + $p_member = Trim($row['member']); + $p_id = Trim($row['id']); + $p_date = Trim($row['date']); + $p_time = Trim($row['now_time']); + $nowtime = time(); + $oldtime = $p_time; + + $title = truncate($title, 24, 60); + ?> + +

    + ' . $title . ' @@ -131,271 +146,312 @@

    ' . 'by ' . ' ' . $p_member . '

    ' . - ''; - } else { - echo '' . ucfirst($title) . ''; - }} - ?> -

    -
    -
    -
    -
    -
    -
    -
    - - - - - - -

    - -

    -
    -
    +
    +
    +
    +
    + + + + + + +

    + +

    + + - - -

    File Size: 1000/1000Kb

    -
    - -
    -
    -
    -
    +

    +
    + +
    +
    + +
    +
    + +
    + +
    +
    + + + +

    File Size: 1000/1000Kb

    +
    + +
    +
    +
    +
    -
    - -
    - "> -
    -
    +
    + +
    + "> +
    +
    -
    -
    -
    -
    - - -
    - -
    -
    - - -
    - -
    -
    +
    +
    +
    +
    + + +
    + +
    +
    + + +
    + +
    +
    -
    -
    - - -
    -
    - - -
    -
    - '; ?> - -

    and press "Enter"

    -
    -
    - -
    -
    - -
    -
    - -
    +
    +
    + + +
    +
    + + +
    +
    + '; ?> + +

    and press + "Enter"

    +
    +
    + +
    +
    + - - - + + + + + + +
    \ No newline at end of file diff --git a/theme/bulma/oauth.php b/theme/bulma/oauth.php index 68041ff..fcfc77c 100644 --- a/theme/bulma/oauth.php +++ b/theme/bulma/oauth.php @@ -16,64 +16,67 @@ ?>
    -
    -
    -
    -
    - ' . $success . '
    ' . $lang['49'] . '

    '; - echo ''; - } - // Errors - elseif (isset($error)) { - echo '

    ' . $error . '

    '; - } - if (isset($old_user)) { - echo '

    ' . $success . '
    ' . $lang['50'] . '

    '; - echo ''; - } else { - ?> -

    -
    -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    - -

    - -
    -
    +
    +
    +
    +
    + ' . $success . '
    ' . $lang['49'] . '

    '; + echo ''; + } // Errors + elseif (isset($error)) { + echo '

    ' . $error . '

    '; + } + if (isset($old_user)) { + echo '

    ' . $success . '
    ' . $lang['50'] . '

    '; + echo ''; + } else { + ?> +

    +

    +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    + +

    + +
    +
    \ No newline at end of file diff --git a/theme/bulma/pages.php b/theme/bulma/pages.php index 1710c26..e55ce26 100644 --- a/theme/bulma/pages.php +++ b/theme/bulma/pages.php @@ -16,24 +16,24 @@ ?>
    -
    -
    -
    -
    -

    - ' . $lang['notfound'] . '

    '; - } - - if (isset($site_ads)) { - echo $site_ads['ads_2']; +
    +
    +
    +
    +

    + ' . $lang['notfound'] . '

    '; } - ?> -

    - -
    -
    + + if (isset($site_ads)) { + echo $site_ads['ads_2']; + } + ?> +

    + +
    +
    \ No newline at end of file diff --git a/theme/bulma/profile.php b/theme/bulma/profile.php index 0611913..70786b9 100644 --- a/theme/bulma/profile.php +++ b/theme/bulma/profile.php @@ -16,91 +16,96 @@ ?>
    -
    -
    -
    -
    -

    -

    ' . $lang['mypastes'] . ''; ?>

    - +
    +
    +
    +
    +

    +

    ' . $lang['mypastes'] . ''; ?>

    + ' . $success . '
    '; - } elseif (isset($error)) { - echo '
    + } elseif (isset($error)) { + echo '
    ' . $error . '
    '; - } - } - ?> -
    -

    -
    -
    -
    -
    - -
    - - + } + } + ?> +
    +

    + +
    +
    +
    + +
    + + -
    -
    -
    - -
    - type="text" class="input" name="email" placeholder=""> - +
    +
    +
    + +
    + type="text" class="input" name="email" + placeholder=""> + -
    -
    -
    -

    -
    - -
    - - +
    +
    +
    +

    +
    + +
    + + -
    -
    -
    - -
    - - +
    +
    +
    + +
    + + -
    -
    -
    - -
    - - +
    +
    +
    + +
    + + -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    - -
    - -
    -
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    \ No newline at end of file diff --git a/theme/bulma/report.php b/theme/bulma/report.php index c2b5b08..6fa5109 100644 --- a/theme/bulma/report.php +++ b/theme/bulma/report.php @@ -15,17 +15,18 @@ */ ?>
    -
    -
    -
    -
    -

    Paste Reported

    -

    - New Paste
    - Archive
    - Discover -

    - -
    -
    +
    +
    +
    +
    +

    Paste Reported +

    +

    + New Paste
    + Archive
    + Discover +

    + +
    +
    \ No newline at end of file diff --git a/theme/bulma/rules.php b/theme/bulma/rules.php index 53138cc..467190a 100644 --- a/theme/bulma/rules.php +++ b/theme/bulma/rules.php @@ -1,83 +1,120 @@
    - -
    -
    -
    -
    - -
    - - -

    Rules

    + +
    +
    +
    +
    + +
    + -

    1. Keep pastes/greens relevant to mlp pony.

    +

    Rules

    -
      -
    • The paste must have recognizable show characters, mlp universe influnces (AU allowed) or/and Links to mlp content (eg. youtube, /mlp/.)
    • -
    • Pony drama pastes are allowed, but must not contain any dox (information revealing an internet users real identity. Or call to harm said users in anyway.)
    • -
    • Storing code for pony related projects is allowed. For anything else use Pastebin.
    • -
    • Storing archived greentext/prose is allowed if they are already publicly available. Please credit original author in title or the start of text, if possible. 
    • -
    +

    1. Keep pastes/greens relevant to mlp pony. +

    -

     

    +
      +
    • The paste must have recognizable show characters, mlp universe influnces (AU allowed) or/and Links to mlp content (eg. youtube, /mlp/.) +
    • +
    • Pony drama pastes are allowed, but must not contain any dox (information revealing an internet users real identity. Or call to harm said users in anyway.) +
    • +
    • Storing code for pony related projects is allowed. For anything else use Pastebin. +
    • +
    • Storing archived greentext/prose is allowed if they are already publicly available. Please credit original author in title or the start of text, if possible.  +
    • +
    -

    2. Do not upload links to illegal content

    +

     

    -
      -
    • Links to photographs or videos depicting human minors in a pornographic, sexually suggestive, or violent manner.
    • -
    • Actual photographs or videos of sadistic gore or animal cruelty (Art, as in rendered drawing, is allowed)
    • -
    • Do not post storys containing explict sexual situations involving real underage humans.
    • -
    • Pastes containing or linking calls to voilence, harm, or terrorist threats to the real world will be removed and the account banned/removed.
    • -
    • Links to the darkweb (.onion) will result in the paste being instantly removed without warning, the links themselves may be legal, but as the links themselves are encrypted we do not have the time to verify each link. 
    • -
    • Unless stated what it is in the title and paste, pastes containing link dumps to file upload sites will be removed. Again, we do not know what the files are and we do not have to time to verfity them.
    • -
    • Pastes containing calls to download and/or link to copyrighted material will be removed. 
    • -
    • Pastes containing calls to report copyrighted material on a third party site is allowed. Together, we can help win the war against piracy and protect copyrighted material.
    • -
    +

    2. Do not upload links to illegal content +

    -

     

    +
      +
    • Links to photographs or videos depicting human minors in a pornographic, sexually suggestive, or violent manner. +
    • +
    • Actual photographs or videos of sadistic gore or animal cruelty (Art, as in rendered drawing, is allowed) +
    • +
    • Do not post storys containing explict sexual situations involving real underage humans. +
    • +
    • Pastes containing or linking calls to voilence, harm, or terrorist threats to the real world will be removed and the account banned/removed. +
    • +
    • Links to the darkweb (.onion) will result in the paste being instantly removed without warning, the links themselves may be legal, but as the links themselves are encrypted we do not have the time to verify each link.  +
    • +
    • Unless stated what it is in the title and paste, pastes containing link dumps to file upload sites will be removed. Again, we do not know what the files are and we do not have to time to verfity them. +
    • +
    • Pastes containing calls to download and/or link to copyrighted material will be removed.  +
    • +
    • Pastes containing calls to report copyrighted material on a third party site is allowed. Together, we can help win the war against piracy and protect copyrighted material. +
    • +
    -

    3. Do not abuse site functionality 

    +

     

    -
      -
    • You are permitted to have multiple accounts for purposes of archiving or for personal privacy, for example, you use multiple names. (Please do not name your account the writefags names you are archiving. please use, [name-ARCHIVE])
    • -
    • You may not use multiple accounts for the purposes of evading bans.
    • -
    • Do not spam. While we do understand shitposting is part of chan culture, please do not go overboard. At least put a paste expirery time. We do reserve the right to remove shitposts during database clean up. 
    • -
    • Do not abuse the report function. This means crying to get your greentext taken down. You posted it to a public domain (eg 4chan), it belongs to the internet now. 
    • -
    • If you think someone is violating a rule, submit a report instead of otherwise calling them out (such as on /mlp/). Don’t submit false reports or report greentexts you do not like. Don't like it, don't read it. (Unless it breaks any rules listed here)
    • -
    +

    3. Do not abuse site functionality  +

    -

     

    +
      +
    • You are permitted to have multiple accounts for purposes of archiving or for personal privacy, for example, you use multiple names. (Please do not name your account the writefags names you are archiving. please use, [name-ARCHIVE]) +
    • +
    • You may not use multiple accounts for the purposes of evading bans. +
    • +
    • Do not spam. While we do understand shitposting is part of chan culture, please do not go overboard. At least put a paste expirery time. We do reserve the right to remove shitposts during database clean up.  +
    • +
    • Do not abuse the report function. This means crying to get your greentext taken down. You posted it to a public domain (eg 4chan), it belongs to the internet now.  +
    • +
    • If you think someone is violating a rule, submit a report instead of otherwise calling them out (such as on /mlp/). Don’t submit false reports or report greentexts you do not like. Don't like it, don't read it. (Unless it breaks any rules listed here) +
    • +
    -

    4. Keep this place tidy

    +

     

    -
      -
    • Keep pastes titles sensible and accurate.
    • -
    • Again, do not spam.
    • -
    +

    4. Keep this place tidy +

    -

     

    +
      +
    • Keep pastes titles sensible and accurate. +
    • +
    • Again, do not spam. +
    • +
    -

    5. Using Pastedown

    +

     

    -
      -
    • Embedded* images must not contain explict images. Lewd is fine. 
    • -
    • No non pony related images,
    • -
    • No real pictures of animal genitals. Being from documentry or educational source included. 
    • -
    • Embedded photographs or videos depicting human minors in a pornographic, sexually suggestive, or violent manner. This will end in an instant ban.
    • -
    • No foalcon, lolicon or any underaged cartoon characters depicted in a sexual situation. This includes nudity.
    • -
    • Links go through a whitelist system. Thus some links will be blocked. If you belived your link should be whitelisted please email us.  
    • -
    +

    5. Using Pastedown

    -

     

    +
      +
    • Embedded* images must not contain explict images. Lewd is fine.  +
    • +
    • No non pony related images, +
    • +
    • No real pictures of animal genitals. Being from documentry or educational source included.  +
    • +
    • Embedded photographs or videos depicting human minors in a pornographic, sexually suggestive, or violent manner. This will end in an instant ban. +
    • +
    • No foalcon, lolicon or any underaged cartoon characters depicted in a sexual situation. This includes nudity. +
    • +
    • Links go through a whitelist system. Thus some links will be blocked. If you belived your link should be whitelisted please email us.   +
    • +
    -

    N. Rules are not exhaustive

    +

     

    -

    There may always be situations or actions that were not accounted for in the above rules, or that may be unique or extraordinary in their circumstances. All enforcement of the rules, as well as the decision as to whether something is or is not acceptable, is ultimately left up to the discretion of the site's staff. There are no real rules about moderation — enjoy your ban.

    +

    N. Rules are not exhaustive +

    - - - - -
    -
    +

    There may always be situations or actions that were not accounted for in the above rules, or that may be unique or extraordinary in their circumstances. All enforcement of the rules, as well as the decision as to whether something is or is not acceptable, is ultimately left up to the discretion of the site's staff. There are no real rules about moderation — enjoy your ban. +

    + + +
    +
    diff --git a/theme/bulma/user_profile.php b/theme/bulma/user_profile.php index ecf0d10..26e89d2 100644 --- a/theme/bulma/user_profile.php +++ b/theme/bulma/user_profile.php @@ -16,35 +16,35 @@ $protocol = paste_protocol(); ?> - +
    @@ -53,66 +53,65 @@ $(document).ready(function () {

    - +

    Badges

    - '; - }elseif (strtotime($profile_join_date) <= 1608422400){ - echo ''; - }elseif (strtotime($profile_join_date) <= 1609459200){ - echo ''; - } + '; + } elseif (strtotime($profile_join_date) <= 1608422400) { + echo ''; + } elseif (strtotime($profile_join_date) <= 1609459200) { + echo ''; + } if (strpos($profile_badge, '0') !== false) { - }else{ - echo $profile_badge; - } - - + } else { + echo $profile_badge; + } + + //Paste count badges - if ($profile_total_public <= 4){ + if ($profile_total_public <= 4) { echo ''; - }elseif (($profile_total_public >= 5) && ($profile_total_public <= 24)){ + } elseif (($profile_total_public >= 5) && ($profile_total_public <= 24)) { echo ''; - }elseif (($profile_total_public >= 25) && ($profile_total_public <= 49)){ + } elseif (($profile_total_public >= 25) && ($profile_total_public <= 49)) { echo ''; - }elseif (($profile_total_public >= 50) && ($profile_total_public)){ + } elseif (($profile_total_public >= 50) && ($profile_total_public)) { echo ''; } - + //Pasteviews badges - - if (($profile_total_paste_views >= 1000) && ($profile_total_paste_views <= 2999)){ - echo ''; - }else if (($profile_total_paste_views >= 2000) && ($profile_total_paste_views <= 2999)){ - echo ''; - }else if (($profile_total_paste_views >= 3000) && ($profile_total_paste_views <= 4999)){ - echo ''; - }else if (($profile_total_paste_views >= 5000) && ($profile_total_paste_views <= 9999)){ - echo ''; - }else if (($profile_total_paste_views >= 10000) && ($profile_total_paste_views <= 49999)){ - echo ''; - }else if ($profile_total_paste_views >= 50000){ - echo ''; + + if (($profile_total_paste_views >= 1000) && ($profile_total_paste_views <= 2999)) { + echo ''; + } elseif (($profile_total_paste_views >= 2000) && ($profile_total_paste_views <= 2999)) { + echo ''; + } elseif (($profile_total_paste_views >= 3000) && ($profile_total_paste_views <= 4999)) { + echo ''; + } elseif (($profile_total_paste_views >= 5000) && ($profile_total_paste_views <= 9999)) { + echo ''; + } elseif (($profile_total_paste_views >= 10000) && ($profile_total_paste_views <= 49999)) { + echo ''; + } elseif ($profile_total_paste_views >= 50000) { + echo ''; } - - if (($profile_total_unlisted >= 5) && ($profile_total_unlisted <= 9)){ - echo ''; - }else if ($profile_total_unlisted >= 10){ - echo ''; - } - + + if (($profile_total_unlisted >= 5) && ($profile_total_unlisted <= 9)) { + echo ''; + } elseif ($profile_total_unlisted >= 10) { + echo ''; + } + ?>
    - ' . $success . '

    '; - } - // Errors + } // Errors elseif (isset($error)) { echo '

    ' . $error . '

    '; } @@ -121,8 +120,8 @@ $(document).ready(function () { -
    + ?> +
    — @@ -132,18 +131,18 @@ $(document).ready(function () {

    -
    - -
    - + +
    +
    - - +
    + @@ -156,8 +155,8 @@ $(document).ready(function () { echo ""; } ?> - - + + @@ -170,23 +169,22 @@ $(document).ready(function () { echo ""; } ?> - - + + ' . ($title) . ' - + if (strlen($p_tags) > 0) { + foreach ($tagArray as $key => $tags) { + echo '' . trim($tags) . ''; + }; + } else { + echo ' No tags'; + }; + + + echo ''; } } else { @@ -232,7 +233,7 @@ $(document).ready(function () { - -
    " . $lang['delete'] . "
    " . $lang['delete'] . "
    + ' . $p_dateui . ' ' . $p_views . ' '; - if (strlen($p_tags) > 0) { - foreach($tagArray as $key=>$tags){ echo '' . trim($tags) . '';}; - }else{ - echo ' No tags';}; - - - echo '
    ' . ($title) . ' + ' . $p_dateui . ' @@ -251,31 +252,31 @@ $(document).ready(function () { } } ?> -
    + +
    - - +
    + " . $lang['delete'] . ""; + //echo ""; //} ?> - - + + "; - }else{ - $updatenote = "";} + if ($past <= $Recent_update && $Recent_update <= $current_time) { + $updatenote = ""; + } else { + $updatenote = ""; + } - echo ' + echo ' - + if (strlen($f_tags) > 0) { + foreach ($ftagArray as $key => $ftags) { + echo '' . trim($ftags) . ''; + }; + } else { + echo ' No tags'; + }; + + + echo ''; - } + } } ?> - -
    " . $lang['delete'] . "
    ' . ($ftitle) . ' - ' . date("d F Y",$f_date) . ' + + ' . date("d F Y", $f_date) . ' ' . $Recent_update . ' ' . $updatenote . ' '; - if (strlen($f_tags) > 0) { - foreach($ftagArray as $key=>$ftags){ echo '' . trim($ftags) . '';}; - }else{ - echo ' No tags';}; - - - echo '
    + +
    \ No newline at end of file diff --git a/theme/bulma/view.php b/theme/bulma/view.php index 2f78839..47a0d75 100644 --- a/theme/bulma/view.php +++ b/theme/bulma/view.php @@ -1,53 +1,53 @@ - - + + - - +
    -
    -
    -
    -
    -
    -
    - +
    +
    +
    +

    Please select how this paste violates a rule:

    +
    +
    +
    +
    + +
    +
    +
    +
    +
    + +
    +
    +
    + +
    +
    + -
    +
    +
    + + +
    -    -    -    +    +    +   
    -    -    -    -
    -
    -

    - - ' . $p_member . ''; - } else { - echo 'By ' . $p_member . ''; - } - } - ?> -
    - Created: +    +    +    +
    +
    +

    + + ' . $p_member . ''; + } else { + echo 'By ' . $p_member . ''; + } + } + ?> +
    + Created:
    - Modified: + Modified: -
    -
    -
    -
    -
    - +
    +
    +
    +
    + - - - - - - - - - - -
    -
    -
    -
    - -
    - 0) { - foreach($tagArray as $tag_Array){ - $tag_Array = ucfirst($tag_Array); - echo '' . $tag_Array . ''; - }}else{ - echo ' No tags'; - } - - ?> + + + + + + + + + + +
    +
    -
    - ' . $error . '

    '; - } else { - if ($p_code != "pastedown") { - echo ' -
    ' . linkify($p_content) . '
    '; +
    + +
    + 0) { + foreach ($tagArray as $tag_Array) { + $tag_Array = ucfirst($tag_Array); + echo '' . $tag_Array . ''; + } } else { - echo ' -
    ' . $p_content . '
    '; - }} ?> -
    - - -
    - - $row) { - $title = Trim($row['title']); - $p_id = Trim($row['id']); - $p_member = Trim($row['member']); - $titlehov = ($row['title']); - $title = truncate($title, 24, 60); - ?> + echo ' No tags'; + } -

    - + ?> +

    +
    + ' . $error . '

    '; + } else { + if ($p_code != "pastedown") { + echo ' +
    ' . linkify($p_content) . '
    '; + } else { + echo ' +
    ' . $p_content . '
    '; + } + } ?> +
    + + +
    + + $row) { + $title = Trim($row['title']); + $p_id = Trim($row['id']); + $p_member = Trim($row['member']); + $titlehov = ($row['title']); + $title = truncate($title, 24, 60); + ?> + +

    + ' . $title . '

    ' . 'by ' . ' ' . $p_member . '' . '

    ' . - ''; - } else { - echo '' . ucfirst($title) . ''; - }} + ''; + } else { + echo '' . ucfirst($title) . ''; + } + } - // Display a message if the pastebin is empty + // Display a message if the pastebin is empty if ($totalpastes === 0) { echo $lang['emptypastebin']; } ?> -

    - - - -
    -

    -
    -

    - - -
    - + + + +

    File Size: 1000/1000Kb

    +
    + +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    + + +
    +
    - + > + + + + + + +
    + + + + + + + + + +
    - - + + diff --git a/user.php b/user.php index 4febdbc..fbef95c 100644 --- a/user.php +++ b/user.php @@ -20,25 +20,25 @@ require_once('includes/functions.php'); // UTF-8 header('Content-Type: text/html; charset=utf-8'); -$date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; +$date = date('jS F Y'); +$ip = $_SERVER['REMOTE_ADDR']; // If username defined in URL, then check if it's exists in database. If invalid, redirect to main site. $user_username = trim($_SESSION['username']); if (isset($_GET['user'])) { $profile_username = trim($_GET['user']); - if (!existingUser( $con, $profile_username ) ) { + if (!existingUser($con, $profile_username)) { // Invalid username header("Location: ../error.php"); die(); } -} else { - // No access to user.php - header("Location: ../error.php"); - die(); +} else { + // No access to user.php + header("Location: ../error.php"); + die(); } - + $p_title = $profile_username . $lang['user_public_pastes']; // "Username's Public Pastes" // Favorite Counts diff --git a/verify.php b/verify.php index b7fe3e5..a10ddb0 100644 --- a/verify.php +++ b/verify.php @@ -22,49 +22,49 @@ if (mysqli_connect_errno()) { } $username = htmlentities(trim($_GET['username'])); -$code = htmlentities(trim($_GET['code'])); +$code = htmlentities(trim($_GET['code'])); $query = "SELECT email_id, verified FROM users WHERE username=?"; if ($stmt = mysqli_prepare($con, $query)) { - mysqli_stmt_bind_param($stmt, "s", $username); - mysqli_stmt_execute($stmt); - mysqli_stmt_store_result($stmt); + mysqli_stmt_bind_param($stmt, "s", $username); + mysqli_stmt_execute($stmt); + mysqli_stmt_store_result($stmt); - if ( mysqli_stmt_num_rows($stmt) > 0 ) { + if (mysqli_stmt_num_rows($stmt) > 0) { - mysqli_stmt_bind_result($stmt, $db_email_id, $db_verified); + mysqli_stmt_bind_result($stmt, $db_email_id, $db_verified); - while (mysqli_stmt_fetch($stmt)) { - if ($db_verified == '1') { - die("Account already verified."); - } + while (mysqli_stmt_fetch($stmt)) { + if ($db_verified == '1') { + die("Account already verified."); + } - $ver_code = Md5('4et4$55765' . $db_email_id . 'd94ereg'); + $ver_code = Md5('4et4$55765' . $db_email_id . 'd94ereg'); - if ($ver_code == $code) { - // Code okay - let's say the user is verified - $query = "UPDATE users SET verified='1' WHERE username=?"; - $stmt = mysqli_prepare($con, $query); + if ($ver_code == $code) { + // Code okay - let's say the user is verified + $query = "UPDATE users SET verified='1' WHERE username=?"; + $stmt = mysqli_prepare($con, $query); - mysqli_stmt_bind_param($stmt, "s", $username); - mysqli_stmt_execute($stmt); + mysqli_stmt_bind_param($stmt, "s", $username); + mysqli_stmt_execute($stmt); - if (mysqli_stmt_errno($stmt)) { - $error = "Something went wrong."; - } else { - header("Location: login.php?login"); - exit(); - } + if (mysqli_stmt_errno($stmt)) { + $error = "Something went wrong."; + } else { + header("Location: login.php?login"); + exit(); + } - } else { - die("Invalid verification code."); - } - } - } else { - die("Username not found."); - } - mysqli_stmt_close($stmt); + } else { + die("Invalid verification code."); + } + } + } else { + die("Username not found."); + } + mysqli_stmt_close($stmt); } else { - die('Things went terribly wrong.'); + die('Things went terribly wrong.'); }